Commit Graph

413751 Commits

Author SHA1 Message Date
Ryan Mitchell
0c0cedff00 Check value in dump before printing
For applications that remove the names of resources from the string
pool, check that the attribute has a name before attempting to print it.

Test: manual
Bug: 130553900
Change-Id: I05e5d59f01b2c02c8a024d06fd896074d6bf465b
2019-04-16 12:00:30 -07:00
TreeHugger Robot
4886935329 Merge "Don't allow PI-based starts and trampolines when sender is SYSTEM_UID and it happens to pass foregroundness check at the time of sending" into qt-dev 2019-04-16 16:58:24 +00:00
TreeHugger Robot
4bf8532689 Merge "Add more documentation for ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS." into qt-dev 2019-04-16 16:41:03 +00:00
TreeHugger Robot
cee859e26e Merge "Only reset layout seq when moved to a new display." into qt-dev 2019-04-16 16:40:53 +00:00
Fabian Kozynski
48e0b6b91b Merge "Change the label color to textColorSecondary" into qt-dev 2019-04-16 16:15:26 +00:00
TreeHugger Robot
aec888d7cd Merge "Sharesheet - Add copy text in response to UXR" into qt-dev 2019-04-16 16:15:24 +00:00
TreeHugger Robot
10ae84a9c1 Merge "New activity transitions" into qt-dev 2019-04-16 16:01:13 +00:00
TreeHugger Robot
ef2e036f96 Merge "Fix VR-related system APIs" into qt-dev 2019-04-16 15:49:33 +00:00
TreeHugger Robot
1c1c65ee56 Merge "Copy rects such that we don't modify state" into qt-dev 2019-04-16 15:44:24 +00:00
TreeHugger Robot
d072df4d6e Merge "Revert "Revert "Fix issue in attached layouting""" into qt-dev 2019-04-16 15:35:22 +00:00
TreeHugger Robot
b6abb2c59c Merge "make onGetSupportedVoiceActions return @NonNull and return empty set by default" into qt-dev 2019-04-16 15:28:22 +00:00
TreeHugger Robot
37f27b53a8 Merge "Always send Adjustment for importance" into qt-dev 2019-04-16 15:13:33 +00:00
Michal Karpinski
2927b542ab Don't allow PI-based starts and trampolines when sender
is SYSTEM_UID and it happens to pass foregroundness check
at the time of sending

It could lead to abuses like directing the user to Settings app
and then giving a PI through any API, so that app could open
activity/trampoline due to Settings app (SYSTEM_UID) being fg.

PI-based starts where sender is SYSTEM_UID will no longer be
supported based on foregroundness check. Any such starts need
to now be explicitly whitelisted (see b/124858756).

Also, ignore windows of type TYPE_APPLICATION_STARTING in
isAnyNonToastWindowVisibleForUid() check.

Bug: 129563343
Test: atest WmTests:ActivityStarterTests
Test: atest BackgroundActivityLaunchTest
Test: atest CtsActivityManagerDeviceTestCases:ActivityStarterTests
Test: atest WmTests:RootWindowContainerTests
Change-Id: I563f71f0b1c7922d8c675d2e4feed909f43446be
2019-04-16 15:50:13 +01:00
TreeHugger Robot
815397ad47 Merge "Fix crash when clearing package preferred activities." into qt-dev 2019-04-16 14:45:23 +00:00
Tyler Gunn
b1145bd87e Merge "Add PhoneAccountHandle method to check if 2 accts are from same CS." into qt-dev 2019-04-16 14:16:33 +00:00
TreeHugger Robot
0fd71745d6 Merge "Ensure all fields of AutoBufferPointer are initialized" into qt-dev 2019-04-16 14:14:29 +00:00
TreeHugger Robot
c574a91e44 Merge changes from topic "viewRootImplTest failure" into qt-dev
* changes:
  Introduce InsetsModeSession to InsetsAnimationControlImplTest
  Move no longer flaky tests into pre-submit
2019-04-16 13:48:20 +00:00
Jorim Jaggi
a72b4cc373 Copy rects such that we don't modify state
Test: PopupWindowTest
Bug: 130553898
Bug: 130231322
Change-Id: I8abe25d054b34f1bf1234e1328b32aefc2020cf6
2019-04-16 15:40:28 +02:00
Jorim Jaggi
d6490572e2 Revert "Revert "Fix issue in attached layouting""
This reverts commit 9acce42652.

Underlying issue fixed in follow up CL.

Test: PopupWindowTest
Bug: 130231322
Bug: 130553898
Change-Id: I5e332394868eb26ef44ce155bc41eb4405d0093a
2019-04-16 15:39:51 +02:00
Hai Zhang
c826cf4fa6 Fix crash when clearing package preferred activities.
Use put() instead of setValueAt().

Bug: 130468857
Test: presubmit
Change-Id: If155c2a4ae9d4f953703b653eef2c04b2b516953
2019-04-16 20:54:49 +08:00
Matt Pietal
9ea80f3d37 Sharesheet - Add copy text in response to UXR
Add copy text underneath image to make it clear what the button
means. Make text clickable. Align text colors with spec.

Bug: 130350131
Test: Manual inspection
Change-Id: Ia2916fd48ef8b2d1862d9baf5f9f695f54187d55
2019-04-16 08:26:53 -04:00
Leon Scroggins
949305fe52 Merge "Do not cache AVDs that are off screen" into qt-dev 2019-04-16 12:15:16 +00:00
Charles Chen
2783faff58 Introduce InsetsModeSession to InsetsAnimationControlImplTest
InsetsAnimationControlImplTest sets new insets mode to full mode when setUp(), which
leads some tests in ViewRootImplTest fail. Introduce InsetsModeSession
to fix it.

Change-Id: Id159db1395d1b105d9d4d3d13cdba778015e9989
Fix: 130609028
Test: atest ViewRootImplTest InsetsAnimationControlImplTest
2019-04-16 20:04:30 +08:00
Charles Chen
9b98748a43 Move no longer flaky tests into pre-submit
Bug: 123654474
Test: test metrics and wm-tests
Change-Id: I299a471be08c465823e1c18d04f3399797ba5a60
2019-04-16 19:41:05 +08:00
TreeHugger Robot
083190633a Merge "ActivityThread: Preserve windows when relaunching all activities" into qt-dev 2019-04-16 11:20:45 +00:00
Orion Hodson
4174b7691f Ensure all fields of AutoBufferPointer are initialized
In the process of revising libnativehelper interface, the
initialization of the fArray field was dropped. This change fixes
this and adds regression tests.

In writing the tests, it became apparent that the AutoBufferPointer
destructor would crash if the underlying buffer was heap array backed
and the buffer position was non-zero. ReleasePrimitiveArrayCritical
was called with the element corresponding to the current position
rather than the first element.

Bug: b/130390512
Test: atest FrameworksCoreTests:android.graphics.BitmapTest

(cherry picked from commit e522c99430)

Merged-In: I319512aaede7ba8af5d013c9281417695abf9099
Change-Id: I319512aaede7ba8af5d013c9281417695abf9099
2019-04-16 11:29:02 +01:00
TreeHugger Robot
df573a6210 Merge "If the calling process isn't whitelisted for background activity start, check the other processes of calling UID too" into qt-dev 2019-04-16 09:38:25 +00:00
Tarandeep Singh
77d354efa1 Merge "Allow MSIME to set inactive when window loses focus." into qt-dev 2019-04-16 07:37:06 +00:00
Jin Seok Park
b225cffabe Merge "Rename Session2Command methods" into qt-dev 2019-04-16 06:47:18 +00:00
TreeHugger Robot
e6b9bdf4d0 Merge "Defer top process state for VM" into qt-dev 2019-04-16 06:37:50 +00:00
Sean Stout
a0d852907d Merge "Add android.settings.ACTION_APP_BATTERY_SETTINGS to public API" into qt-dev 2019-04-16 05:50:30 +00:00
Hai Zhang
770a29bf72 Add more documentation for ACTION_MANAGE_MORE_DEFAULT_APPS_SETTINGS.
Bug: 130351486
Test: build
Change-Id: If15aa04a3a3ebe717718ae99157e845acbccf6ae
2019-04-16 13:16:16 +08:00
Kevin Chyn
12154d85a4 Merge "Cache and log enrollment settings" into qt-dev 2019-04-16 04:43:32 +00:00
Jin Seok Park
dbee428755 Rename Session2Command methods
Bug: 130580655
Test: atest CtsMediaTestCases:android.media.cts.Session2CommandTest
Change-Id: I89509ddc1b10d47a01f7227ae60c5529718d39de
2019-04-16 04:02:26 +00:00
jiayuzhou
5422f30c14 make onGetSupportedVoiceActions return @NonNull and return empty set by default
Test: make
Fix: 124302147

Change-Id: Ie91184310a1709cd62cd7d89911beda5c4e2d513
2019-04-15 20:43:48 -07:00
Jeff Sharkey
977f63a3d3 Merge "Allow failures of applyBatch() operations." into qt-dev 2019-04-16 03:26:18 +00:00
TreeHugger Robot
4e57ccbea9 Merge "Remove MediaItem2" into qt-dev 2019-04-16 03:14:29 +00:00
TreeHugger Robot
93e21670c0 Merge "Don't cancel injected event when mouse event arrives" into qt-dev 2019-04-16 02:50:09 +00:00
NT Tsai
4d39c62169 Merge "Fix a deadlock WMG->WMS, WMS->WMG" into qt-dev 2019-04-16 02:27:02 +00:00
Winson Chung
8540e63dec Merge "Don't wait until next fetch of recent tasks to reset the task list" into qt-dev 2019-04-16 02:13:58 +00:00
TreeHugger Robot
0727797765 Merge "Log for pending activities launch" into qt-dev 2019-04-16 01:41:41 +00:00
TreeHugger Robot
805c739ada Merge "Ui should be UI in the javadoc" into qt-dev 2019-04-16 01:20:05 +00:00
TreeHugger Robot
0c7f7a1ee6 Merge "Restore navbar transparency state on config change" into qt-dev 2019-04-16 01:11:23 +00:00
Hall Liu
80ad2a4d8c Merge "Add EHPLMN and HPLMN to SubscriptionInfo" into qt-dev 2019-04-16 01:01:59 +00:00
Jeff Sharkey
295ddbae78 Allow failures of applyBatch() operations.
In some cases, the supplier of ContentProviderOperation is okay
if certain operations fail, and they'd like ContentProviderResult
to tell them about the failures instead of aborting the remainder
of the transaction.

Start using this for ModernMediaScanner, where we probably raced
with someone when building an UPSERT-style operation.  We'll
pick up any changes to those files during the next scan.

Bug: 128494336
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ida8230ff2bbb3bab56eb83928e49e7097bfbc9fd
2019-04-15 18:55:00 -06:00
TreeHugger Robot
575022f7d1 Merge "Remove the disableSelf() api" into qt-dev 2019-04-16 00:49:21 +00:00
Matt Pape
75d75ce38c Merge "Annotate single property listener from DeviceConfig as removed. Will remove entirely after all references (esp. Play Services) are cleaned up." into qt-dev 2019-04-16 00:34:31 +00:00
Mehdi Alizadeh
6164eb6a8d Merge "Add new constructors for mandatory fields in AppTarget.Builder" into qt-dev 2019-04-16 00:34:13 +00:00
Sungsoo Lim
5562ab8966 Remove MediaItem2
Bug: 130579223
Test: build
Change-Id: Ie772b508b51a12eb4e96f1f19c08ecdec4a9959b
2019-04-16 09:28:11 +09:00
TreeHugger Robot
786714e526 Merge "Add missing set/getExtras to ConversationActions.Request." into qt-dev 2019-04-16 00:17:10 +00:00