Commit Graph

18423 Commits

Author SHA1 Message Date
Darryl Johnson
5b432e47a8 Merge "Make sure config change items are executed in the order dispatched." into rvc-dev am: 0d8822c94a am: 7944d2771e am: ebd472475c am: 2008286ce7
Change-Id: I8c4b19835d035f4324df2b05cabd4b4ae1f07878
2020-05-18 18:55:32 +00:00
Darryl Johnson
7944d2771e Merge "Make sure config change items are executed in the order dispatched." into rvc-dev am: 0d8822c94a
Change-Id: I463de8363aa447016a191e233495ed861844e57a
2020-05-18 17:28:17 +00:00
Darryl Johnson
0d8822c94a Merge "Make sure config change items are executed in the order dispatched." into rvc-dev 2020-05-18 17:26:14 +00:00
TreeHugger Robot
d4c64e219f Merge "Add setSchedPolicyCgroup to AM service" 2020-05-16 03:19:41 +00:00
Automerger Merge Worker
3066a3352b Merge "Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22 am: 944cf071e9" into rvc-d1-dev-plus-aosp am: 66f580d37f am: 519008f089
Change-Id: I6d9744b0429224b179c170dad3dad056576d3d4c
2020-05-16 00:06:02 +00:00
TreeHugger Robot
944cf071e9 Merge "Handle apps that upgrade to full conversations" into rvc-dev am: 01ae9d5c22
Change-Id: Ic8b81e6d967bbdaf257318fe5115f12339716e8f
2020-05-15 23:39:06 +00:00
TreeHugger Robot
01ae9d5c22 Merge "Handle apps that upgrade to full conversations" into rvc-dev 2020-05-15 23:35:06 +00:00
TreeHugger Robot
62dd613bb5 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e am: 805df51104 am: f14fb4fc93 am: 5f623756d8
Change-Id: I30e55425a47e45d25ed509bb2efc56ddff5b29db
2020-05-15 21:34:40 +00:00
TreeHugger Robot
5f623756d8 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e am: 805df51104 am: f14fb4fc93
Change-Id: Ieba4572368526d4c44c15196b060ada2ed82a09c
2020-05-15 21:04:09 +00:00
TreeHugger Robot
bb95962723 Merge "Some improvements to process state dumpsys output." into rvc-dev am: 02ed46782e
Change-Id: I0b979b08628fbb511b18f37f5c605c3e89a44d10
2020-05-15 21:02:58 +00:00
TreeHugger Robot
02ed46782e Merge "Some improvements to process state dumpsys output." into rvc-dev 2020-05-15 20:55:13 +00:00
Darryl L Johnson
2b9720c694 Make sure config change items are executed in the order dispatched.
In the previous implementation a batch of process/activity config
changes would effectively be executed out of order. When the server
would dispatch changes in config in quick succession the config change
items would update the pending configs first through the preexecute()
calls and then apply the activity config before the process config
is applied even though the process config was dispatched before the activity
config change item. See b/148639784 for more detail.

Fixes: 148639784

Test: ActivityThreadTest#testHandleActivityConfigurationChanged_EnsureUpdatesProcessedInOrder
Test: ActivityThreadTest#testHandleActivityConfigurationChanged_SkipWhenNewerConfigurationPending

Change-Id: I3c926076ac8dba73eb0471c7bc91313df519cf92
2020-05-15 09:40:30 -07:00
Julia Reynolds
bc23c7e813 Handle apps that upgrade to full conversations
- Apps that have sent incomplete conversations only are allowed
into the conversation section, but not allowed to have full controls.
Users can also demote these apps entirely from the converstion space
- Once an app starts using complete notifications, it can no longer
be fully demoted out of the conversation space, it's only demoted on
a per conversation basis.
- If an app has sent full conversation notifications, and then sends
an incomplete one, the incomplete notification will not be shown in
the conversation space.

Test: atest
Bug: 155276427

Change-Id: Iba9b01c53949632b6db2834511165e3571387ac9
2020-05-15 12:17:13 -04:00
Winson Chung
39fbb5d7c1 Merge "Skip parceling destroyed buffer" into rvc-dev am: b159f28fce
Change-Id: I51bcc3b51a3f12b467881d77bcba997d1e134353
2020-05-15 15:55:23 +00:00
Winson Chung
5ca5134da0 Merge "Skip parceling destroyed buffer" into rvc-dev am: b159f28fce am: 4cf9c58ce3 am: 2c1f71acfd
Change-Id: Ie621abe0677f178723419c22604120f237969162
2020-05-15 15:52:38 +00:00
Rick Yiu
d2b8105f03 Add setSchedPolicyCgroup to AM service
Add setSchedPolicyCgroup function to Activity Manager Service and aidl
of Activity Manager binder interface.

Bug: 139521784
Test: function works
Change-Id: I3e5796eefa1066f61dfcb1bd962ca6c548f8713a
2020-05-15 06:55:00 +00:00
Winson Chung
b159f28fce Merge "Skip parceling destroyed buffer" into rvc-dev 2020-05-14 17:32:08 +00:00
Winson Chung
5bd2a157c6 Skip parceling destroyed buffer
- Haven't been able to repro, but we shouldn't crash system server

Bug: 154382448
Test: Just adding a destroyed check
Change-Id: I412ab1703602723511a6bd3c598d34b6ade68db7
Merged-In: I412ab1703602723511a6bd3c598d34b6ade68db7
2020-05-14 16:05:07 +00:00
Dianne Hackborn
cb6db38143 Some improvements to process state dumpsys output.
The detailed dumpsys output of ProcessRecord had some formatting
issues.  Cleaned this up, also reorganized and improved some of
the other output.

And improved debugging output of capabilities -- have special
formatting to print the flags in a more human-readable way, and
added this to the process list summaries.

Looks like this:

    Proc #28: psvc   F/ /PER  LCM  t: 0 32602:com.google.android.providers.media.module/u0a236 (service)
        com.google.android.providers.media.module/com.android.providers.media.fuse.ExternalStorageServiceImpl<=Proc{31384:system/1000}
    Proc # 4: psvc   F/ /PER  LCM  t: 0 31614:com.android.bluetooth/1002 (service)
        com.android.bluetooth/.gatt.GattService<=Proc{31384:system/1000}
    Proc # 2: fg+50  F/A/TOP  LCM  t: 0 4029:com.google.android.apps.maps/u0a186 (fg-service-act)
    Proc # 0: vis    F/A/TOP  LCM  t: 0 32033:com.google.android.apps.nexuslauncher/u0a155 (service)
        com.google.android.apps.nexuslauncher/com.android.launcher3.notification.NotificationListener<=Proc{31384:system/1000}
    Proc # 8: vis    F/ /BTOP LCM  t: 0 32563:com.google.android.googlequicksearchbox:interactor/u0a151 (service)
        com.google.android.googlequicksearchbox/com.google.android.voiceinteraction.GsaVoiceInteractionService<=Proc{777:com.google.android.googlequicksearchbox:search/u0a151}
    Proc # 7: vis    F/ /BTOP LCM  t: 0 4406:com.google.android.tts/u0a204 (service)
        com.google.android.tts/.service.GoogleTTSService<=Proc{4029:com.google.android.apps.maps/u0a186}
    Proc # 6: vis    F/ /BTOP LCM  t: 0 777:com.google.android.googlequicksearchbox:search/u0a151 (service)
        com.google.android.googlequicksearchbox/com.google.android.apps.gsa.publicsearch.PublicSearchService<=Proc{4029:com.google.android.apps.maps/u0a186}
    Proc # 1: vis    F/ /BTOP LCM  t: 0 32254:com.google.android.gms.persistent/u0a152 (service)
        com.google.android.gms/com.google.android.location.internal.GoogleLocationManagerService<=Proc{4029:com.google.android.apps.maps/u0a186}
    Proc #47: vis    F/ /BFGS ---  t: 0 31954:com.google.android.ext.services/u0a70 (service)
        com.google.android.ext.services/android.ext.services.notification.Assistant<=Proc{31384:system/1000}
    Proc #16: vis    F/ /BFGS LCM  t: 0 32515:com.google.android.as/u0a112 (service)
        com.google.android.as/com.google.android.apps.miphone.aiai.captions.SystemCaptionsManagerService<=Proc{31384:system/1000}
    Proc #51: vis    F/ /IMPF ---  t: 0 2072:com.qualcomm.qcrilmsgtunnel/1001 (service)
        com.qualcomm.qcrilmsgtunnel/.QcrilMsgTunnelService<=Proc{31915:com.android.phone/1001}
    Proc #48: prcp   b/ /IMPB ---  t: 0 3783:com.google.android.inputmethod.latin/u0a182 (service)
        com.google.android.inputmethod.latin/com.android.inputmethod.latin.LatinIME<=Proc{31384:system/1000}

Bug: 156545187
Test: manually checked output
Change-Id: I99d8136b98b39e74d9f316da5954f85aec570c01
2020-05-13 17:34:35 -07:00
Winson Chung
54d48d0824 Skip parceling destroyed buffer
- Haven't been able to repro, but we shouldn't crash system server

Bug: 154382448
Test: Just adding a destroyed check
Change-Id: I412ab1703602723511a6bd3c598d34b6ade68db7
2020-05-13 16:57:27 +00:00
TreeHugger Robot
e819ddb8bc Merge "Allow some OpEntry#* methods for apps targeting R" into rvc-dev am: d775b6404f am: 413c74903e am: c6f6ce73ea am: 86d822fb3d
Change-Id: I53c220013f67ebdb1aeceeb59024d58038675b4f
2020-05-13 00:00:47 +00:00
TreeHugger Robot
86d822fb3d Merge "Allow some OpEntry#* methods for apps targeting R" into rvc-dev am: d775b6404f am: 413c74903e am: c6f6ce73ea
Change-Id: I3cb06f5127977d56486af67f20e566c08d2c66e7
2020-05-12 23:54:51 +00:00
TreeHugger Robot
d19f9c31d0 Merge "Allow some OpEntry#* methods for apps targeting R" into rvc-dev am: d775b6404f
Change-Id: I0e6b7a44ec2e73aa675e850fc43bce3f3e071940
2020-05-12 23:34:02 +00:00
TreeHugger Robot
d775b6404f Merge "Allow some OpEntry#* methods for apps targeting R" into rvc-dev 2020-05-12 23:18:52 +00:00
Philip P. Moltmann
ac44350639 Allow some OpEntry#* methods for apps targeting R
Bug: 156254238
Test: built
Change-Id: Ie4a2cb155c40d46c52d44e0f53c05d52a8a9b523
2020-05-12 09:10:14 -07:00
Martijn Coenen
b51e8892c2 Merge "Limit rename() workaround to /storage/emulated." into rvc-dev am: 5019f6c50b am: 24508819d3 am: 9a88158599 am: 088e9321a8
Change-Id: Idd3d14e2776051d3db79dddd73520aa5409d0b24
2020-05-12 15:58:11 +00:00
Martijn Coenen
24508819d3 Merge "Limit rename() workaround to /storage/emulated." into rvc-dev am: 5019f6c50b
Change-Id: If0679cd07ffc1211573c36b2ef9cb5c464ce0c64
2020-05-12 15:15:28 +00:00
Martijn Coenen
5019f6c50b Merge "Limit rename() workaround to /storage/emulated." into rvc-dev 2020-05-12 15:01:13 +00:00
Mocy Sheng
35501e5b25 Merge "Fix nullable annotation to match overriden method in super class" 2020-05-12 13:00:27 +00:00
Charles Chen
805bc242e9 Merge "Introducee maxBounds in WindowConfiguration" 2020-05-12 10:42:47 +00:00
Riddle Hsu
5b198db82d Merge changes from topic "b147213487" into rvc-dev am: 8e726a2ef7 am: 2d42c72f14 am: bd9a3d97c6 am: 9f1ad6529f
Change-Id: Icaff9e75d20f5c9b5ae0b1afddb5985576bf9019
2020-05-12 10:13:03 +00:00
Riddle Hsu
2d42c72f14 Merge changes from topic "b147213487" into rvc-dev am: 8e726a2ef7
Change-Id: Ic8fbd04c2ae5bf57c76476639ad28dea1e560d27
2020-05-12 09:20:34 +00:00
Riddle Hsu
8e726a2ef7 Merge changes from topic "b147213487" into rvc-dev
* changes:
  Send fixed rotation adjustments to the associated client
  Add support to override display adjustments by token
  Add fixed rotation display adjustments
2020-05-12 09:05:17 +00:00
Martijn Coenen
76ce2ccb19 Limit rename() workaround to /storage/emulated.
This workaround was intended to silently fix EXDEV move failures due to
the /Android/data and /Android/obb bind mounts. However, the workaround
should be limited to moves to *and* from the emulated filesystem. For
moves from the emulated filesystem to another filesystem (or
vice-versa), this would never have worked in the first place, and we
want to give the app this feedback, so it knows it needs to do a more
expensive copy operation and can show this in the UI. We know some apps
(like DocsUI) already handle this.

Public volumes (eg /storage/ABCD-1234) don't need this workaround, since
they don't have the bind mounts. Private volumes that aren't primary
don't have these bind mounts either.

Bug: 146430607
Test: N/A
Change-Id: I7bfe88e07708fe044ce8df02000a97cfad19bdee
2020-05-12 10:32:48 +02:00
Hongwei Wang
24eed933a2 Merge "Set mIsInMultiWindowMode in activity creation" into rvc-dev am: 954820b047 am: 65404c8253 am: 3b55fc902f am: ae97d8bb76
Change-Id: I796093780d936558da49859c6f69e4623c545e69
2020-05-12 06:20:42 +00:00
Hongwei Wang
65404c8253 Merge "Set mIsInMultiWindowMode in activity creation" into rvc-dev am: 954820b047
Change-Id: I881c754d12e8ec25897ad230b97994aae0fc046e
2020-05-12 05:39:31 +00:00
Hongwei Wang
f7e5a23106 Set mIsInMultiWindowMode in activity creation
When an Activity is launched directly into split-screen mode, there
won't be any onMultiWindowModeChanged callback. Upon activity creation,
the current windowing mode should be part of the configuration, use
the windowing mode from that as initial values for both
isInPictureInPictureMode and isInMultiWindowMode.

Bug: 155811896
Bug: 156204380
Test: launch activity to split-screen secondary and verify
      isInMultiWindowMode in dumpsys
Change-Id: I6061a2d5687b68a981abcf8b184bfb007cdcf501
2020-05-11 18:03:55 -07:00
Tim Murray
27a1d00948 Merge "fix app binder tracing on userdebug builds" into rvc-dev am: 52d70eaa12 am: bc6fda94b2 am: 648a549d0b am: 592de6e335
Change-Id: Ieb5763c2a1dcf7972a4cb190a50da891c1249c43
2020-05-11 21:17:27 +00:00
Tim Murray
bc6fda94b2 Merge "fix app binder tracing on userdebug builds" into rvc-dev am: 52d70eaa12
Change-Id: Ib4f930c18eb434b698600dbdafc36daee79d98fc
2020-05-11 20:37:03 +00:00
Tim Murray
52d70eaa12 Merge "fix app binder tracing on userdebug builds" into rvc-dev 2020-05-11 20:20:03 +00:00
Mocy Sheng
ba61f71ff3 Fix nullable annotation to match overriden method in super class
Bug: 156238511
Test: Treehugger
Change-Id: I349e8628ea77d3051f40f903c3438c3fc0a489ea
2020-05-11 14:44:12 -05:00
Tim Murray
6d2b1bfe38 fix app binder tracing on userdebug builds
All apps are profileable on debuggable builds, so enable binder
tracing during app startup on debuggable builds if binder tracing has
already been enabled.

Test: binder tracing shows up for new apps on userdebug
Bug: 156259316
Change-Id: I8cc6c2f711943c21b54f346a23ba7089dc9c9180
2020-05-11 10:27:09 -07:00
Riddle Hsu
d490c57905 Send fixed rotation adjustments to the associated client
So the real information of display can be adjusted according
to the adjustments for the application started with fixed
rotation transform.

The enabling adjustments may be sent in different ways:
- Launch activity
  The information is bundled with LaunchActivityItem.
- Resume activity or update non-activity window
  Send a standalone FixedRotationAdjustmentsItem.

The disabling adjustments (null) are always sent by
FixedRotationAdjustmentsItem.

Bug: 147213487
Test: AppConfigurationTests#testRotatedInfoWithFixedRotationTransform
      TransactionParcelTests#testFixedRotationAdjustments

Change-Id: I5238888a5c8352db83fc12749f4de2bfabf46026
2020-05-11 22:17:03 +08:00
Riddle Hsu
e03b9669e3 Add support to override display adjustments by token
This is the bridge to link customized adjustments to an activity
or window token.

The DisplayAdjustments in ResourcesImpl is associated with
ResourcesKey. The new usage requires to associate with token.
That is why the new field is added in Resources.

Bug: 147213487
Test: atest ResourcesManagerTest#testOverrideDisplayAdjustments
Change-Id: Ie79c331654d564aee7af8c6ce98a4c72dd3132b1
2020-05-11 13:30:14 +08:00
Beverly Tai
1284caefec Merge "Add badge colors for dark theme" into rvc-dev am: 78a66d6c36 am: 3e2a0d2682 am: 1c1c47c972 am: c7914e7a94
Change-Id: I344d57b6ace676f599b0919890b9c0c035b062fd
2020-05-10 19:06:14 +00:00
Beverly Tai
3e2a0d2682 Merge "Add badge colors for dark theme" into rvc-dev am: 78a66d6c36
Change-Id: I7ad6f0991a78cfba9bcd77383309acb70a6fe89a
2020-05-10 18:19:47 +00:00
Beverly Tai
78a66d6c36 Merge "Add badge colors for dark theme" into rvc-dev 2020-05-10 18:10:15 +00:00
Charles Chen
32f14f0378 Introducee maxBounds in WindowConfiguration
This value is used to report WM#getMaximumWindowMetrics.
Current approach, which is use logical display metrics,
is not compatible with display area feature.
Especially, when multiple task display area feature
are phasing in.

Test: atest WindowConfigurationTests
Bug: 151414021

Change-Id: Iaa1f52395a1b7a0a7fefd5c31cfde703fa81f509
2020-05-07 22:42:15 +08:00
Alex Johnston
451d4a697b Merge "Deprecate organization color" 2020-05-07 13:38:01 +00:00
Beverly
2b4306a8ec Add badge colors for dark theme
Test: manual
Test: atest UserManagerTest#testProfileTypeInformation
Fixes: 149669756
Change-Id: Ib3fd377a4902bbe936d574dc52bac4eae6e25dd4
2020-05-07 09:20:19 -04:00