Commit Graph

17941 Commits

Author SHA1 Message Date
Darryl Johnson
76b64efa38 Merge "Add test to ensure virtual display orientation doesn't change when device rotates." into rvc-dev am: 77fae23490
Change-Id: Ib14fb09532f4256d7ab5a2b8934b8af7b67d5ac8
2020-04-30 00:18:27 +00:00
Darryl Johnson
77fae23490 Merge "Add test to ensure virtual display orientation doesn't change when device rotates." into rvc-dev 2020-04-30 00:18:02 +00:00
Todd Kennedy
6b653a348f Merge "Add documentation for OPSTR_LOADER_USAGE_STATS" into rvc-dev am: aeb383ec87
Change-Id: Ia6cd533255331dce5fa91058b9d9c8df6b562c4d
2020-04-29 22:35:08 +00:00
Todd Kennedy
aeb383ec87 Merge "Add documentation for OPSTR_LOADER_USAGE_STATS" into rvc-dev 2020-04-29 22:27:55 +00:00
Todd Kennedy
0f00675d74 Add documentation for OPSTR_LOADER_USAGE_STATS
Fixes: 150219240
Test: None. Doc only change
Change-Id: I6b156acd49acf95b34ecacff6d252b7ccab6303a
2020-04-29 09:37:10 -07:00
Mady Mellor
f8d8080612 Merge "Fix CTS" into rvc-dev am: cf8ab8447e
Change-Id: Ia2a9663fbb6daaa4f133e3a3e55295ed9d20fc0b
2020-04-29 14:38:19 +00:00
Mady Mellor
cf8ab8447e Merge "Fix CTS" into rvc-dev 2020-04-29 14:33:36 +00:00
TreeHugger Robot
e1516315da Merge "Add RoleControllerManagerTest." into rvc-dev am: 447914fcfe
Change-Id: If2d1e9f96fcdf103a38934203753170205c76c5d
2020-04-29 05:59:48 +00:00
TreeHugger Robot
447914fcfe Merge "Add RoleControllerManagerTest." into rvc-dev 2020-04-29 05:56:34 +00:00
Mady Mellor
a114b79392 Fix CTS
* fix BubbleExtractor tests to work with this & better
  test things now that the channel is a tristate

Test: atest NotificationManagerTest BubbleExtractorTest
Bug: 155025024
Change-Id: I8b75c1b0087ca79cea29741e32c7c524cb056d04
2020-04-28 20:06:03 -07:00
TreeHugger Robot
1b1edc944e Merge "Don't remove OnAlarmListener mappings in the client" into rvc-dev am: 007a73c551
Change-Id: Idae467e9a9bb17174251dfa8960b0133be998b26
2020-04-29 01:28:13 +00:00
TreeHugger Robot
007a73c551 Merge "Don't remove OnAlarmListener mappings in the client" into rvc-dev 2020-04-29 01:09:32 +00:00
Suprabh Shukla
7d40780e39 Don't remove OnAlarmListener mappings in the client
Removing the mapping is prone to races in keeping the state consistent
with the server. An inconsistent state can lead to multiple alarms on
the server for the same listener.

Test: atest CtsJobSchedulerTestCases doesn't fill the alarm queue with
more than one alarm.
atest CtsAlarmManagerTestCases

Bug: 154444435
Change-Id: Iaf11d5decb17fbf2366b49d9865231bf65dbdc41
2020-04-28 15:37:21 -07:00
TreeHugger Robot
fc1392ade0 Merge "Close heap dump ParcelFileDescriptor." into rvc-dev am: 48f0527199
Change-Id: I5f76bb90769c098fe0de57a27bc9e7dc3a66ffc3
2020-04-28 21:21:07 +00:00
TreeHugger Robot
48f0527199 Merge "Close heap dump ParcelFileDescriptor." into rvc-dev 2020-04-28 20:52:29 +00:00
Darryl L Johnson
78d4e6dc7b Add test to ensure virtual display orientation doesn't change when
device rotates.

Bug: 148639826
Bug: 149213586

Test: ActivityThreadTest#testOrientationChangeDoesntOverrideVirtualDisplayOrientation

Change-Id: I74d5d9ad6d051e1059ca03102716319ac1b674a7
2020-04-28 13:38:01 -07:00
Hai Zhang
a39cf78c63 Add RoleControllerManagerTest.
Fixes: 155119713
Test: atest RoleControllerManagerTest
Change-Id: If90ba60cccbe1589365142a06d917a87b7a092ef
2020-04-28 12:14:01 -07:00
TreeHugger Robot
46779de570 Merge "Update logging" into rvc-dev am: 94f8f6cb25
Change-Id: I4631ffd16aab1337d7d8072489d4f28de9e936dc
2020-04-28 17:51:25 +00:00
Julia Reynolds
49467eebac Update logging
Priority isn't used; shortcut is

Test: manual
Bug: 149651274
Change-Id: If6577c5588afe5e48787ae7e6bc528442fdb3423
2020-04-28 14:50:01 +00:00
Alex Johnston
83bd3e37fc Merge "Update setOrganizationColor javadoc" into rvc-dev am: a077a8a0cc
Change-Id: I2d3684d7a6e68be39fd14d600ce3b201b926582f
2020-04-28 08:51:17 +00:00
Alex Johnston
a077a8a0cc Merge "Update setOrganizationColor javadoc" into rvc-dev 2020-04-28 08:36:57 +00:00
Chris Li
182f17606e Merge "Cache isSystemOrSystemUI on ContextImpl creation" into rvc-dev am: 9859a326c1
Change-Id: Icbf8fcfad9eb2645faf1eff0cdbb6b0388b1773f
2020-04-28 04:26:23 +00:00
Chris Li
9859a326c1 Merge "Cache isSystemOrSystemUI on ContextImpl creation" into rvc-dev 2020-04-28 04:02:05 +00:00
Kweku Adams
f1ddecc60e Close heap dump ParcelFileDescriptor.
The file descriptor is only closed in certain situations. Explicitly
closing it to ensure we don't have any leaks.

Bug: 154277871
Test: take a system heap dump via developer options & and watch for StrictMode violation
Test: adb shell am dumpheap <system|another app> & and watch for StrictMode violation
Change-Id: I3ae3e270bcec18ba531055becfff32924c8f2a2d
2020-04-27 18:43:09 +00:00
Chris Li
e7f4f30698 Cache isSystemOrSystemUI on ContextImpl creation
When creating Context without a container Context, cache the value of #isSystemOrSystemUI().

Fix: 154161051
Test: atest FrameworksCoreTests:ContextTest
Change-Id: I1d16173c7da06a73d1338e3d6e75f5b56fcdbe23
2020-04-27 11:35:31 -07:00
TreeHugger Robot
1bbe0b4efc Merge "Inform receivers of restart attempt previous visibility" into rvc-dev am: 756662fb2f
Change-Id: I75848eccd8e398e3029faa20a64e58dfd970ee44
2020-04-27 18:35:21 +00:00
TreeHugger Robot
756662fb2f Merge "Inform receivers of restart attempt previous visibility" into rvc-dev 2020-04-27 18:29:46 +00:00
Diego Vela
7aedfae0b1 Merge "Update Documentation for onActivityResult." into rvc-dev am: 7c59c63943
Change-Id: Id885797db3cc7b3a141d96eaab3bb03c0c0a2f00
2020-04-27 18:06:02 +00:00
Diego Vela
7c59c63943 Merge "Update Documentation for onActivityResult." into rvc-dev 2020-04-27 17:58:29 +00:00
Evan Rosky
8d1c24e0a5 Inform receivers of restart attempt previous visibility
This way receivers like recents know whether the activity
was already visible before a restart attempt.

Bug: 154575664
Test: added test. Can also launch a running activity into
      split-primary and it won't expand it.
Change-Id: If59ee1615fa36bbe3af9412194a7f96b9377528a
2020-04-27 09:13:31 -07:00
Diego Vela
6e99bfcd6c Update Documentation for onActivityResult.
Update doc to be more accurate about when onActivityResult is called

Bug: 140608415
Test: n/a
Change-Id: If44b02719e18b3107b064d749396d896bed08f86
2020-04-27 15:10:18 +00:00
Alex Johnston
6be8cda180 Update setOrganizationColor javadoc
Background
* In Android R, the UI of the work challenge was
  updated to latest material spec which no longer
  uses the organization color.

Changes
* Update javadoc of setOrganizationColor mentioning
  the organization color will no longer affect the
  work challenge starting from R.

Bug: 153607870
Bug: 153607569
Test: verify no build breakages
Change-Id: I071f544e4fba1915d810fa741dbc79966f9e72f4
2020-04-27 15:20:14 +01:00
Alex Johnston
6e33365d5e Merge "Add factory reset protection policy Test API to DPM" into rvc-dev am: c5e9a48db8
Change-Id: Iefbf101897c96de20b8c896489ab026007a35d6a
2020-04-27 11:06:13 +00:00
Alex Johnston
c5e9a48db8 Merge "Add factory reset protection policy Test API to DPM" into rvc-dev 2020-04-27 11:04:46 +00:00
TreeHugger Robot
ce289c6dbf Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev am: 525fab26a1
Change-Id: Ie3903b8778b9adf92ccc299d059bfe1fe724d870
2020-04-25 01:19:15 +00:00
TreeHugger Robot
525fab26a1 Merge "Add back ActivityManagerService.onUserRemoved" into rvc-dev 2020-04-25 01:16:49 +00:00
Darryl Johnson
f6ada05a3a Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev am: 637fd24378
Change-Id: Ia64fd480a6d265039bad35393a3dbec547fd2c37
2020-04-25 01:02:01 +00:00
Darryl Johnson
637fd24378 Merge "Revert "Try to reland Ib3ee007bc"" into rvc-dev 2020-04-25 00:37:46 +00:00
Darryl Johnson
87f93a5585 Revert "Try to reland Ib3ee007bc"
This reverts commit b6415618f1.

Reason for revert: Caused regression of b/149213586

Bug: 148639826
Bug: 149213586

Change-Id: I5248e03b42e3f24a6e2abb134d0bf339e77f484b
2020-04-24 23:50:53 +00:00
Adam Bookatz
aa59419bbd Add back ActivityManagerService.onUserRemoved
ActivityManagerService.onUserRemoved was accidentally removed in
ag/4246926. This cl adds it back.

The part of onUserRemoved that told ActivityTaskManagerService that
the user had stopped (and thereby cleaned up ATMS) was retained, but
the additional actions of AMS.onUserRemoved - namely, telling
BatteryStatsService and UserController - were accidentally removed.
Consequently, those services were never told when a user was removed.

Bug: 140645064
Test: manual verification that profile is removed in  adb shell dumpsys activity users
Change-Id: I903b06ae68d583bdb326ad3b764a63d18b5555d8
2020-04-24 22:24:05 +00:00
Charles Chen
c046c423f5 Merge "Revert "Fix false positive of activity leak in NexusLauncherTests"" into rvc-dev am: 56dfd7c643
Change-Id: I03256fdf565799c728686ea127bd69fa0943f17b
2020-04-24 02:59:29 +00:00
Charles Chen
56dfd7c643 Merge "Revert "Fix false positive of activity leak in NexusLauncherTests"" into rvc-dev 2020-04-24 02:55:31 +00:00
Julia Reynolds
39a4ab65af Merge "Record whether apps have sent msg notifications" into rvc-dev am: 37e724b15d
Change-Id: I5c76a5fa557e5bab68a1b9cc16309055595f12b5
2020-04-23 22:22:29 +00:00
Julia Reynolds
a7dac439a3 Record whether apps have sent msg notifications
Test: atest
Bug: 154814754
Change-Id: I6b633c5e309deb11feda94d4e67858a376dd3d88
2020-04-23 20:19:15 +00:00
Darryl Johnson
700c2062a0 Revert "Fix false positive of activity leak in NexusLauncherTests"
This reverts commit b3230a3594.

Reason for revert: Possibly the cause of b/154581087
Bug: 154581087
Change-Id: I4a7ebeb33f68b8918d24b1e59638bbc5fa38bf72
2020-04-23 20:07:58 +00:00
Charles Chen
746a1d1fc1 Merge "Limit number of window context without any window" into rvc-dev am: 1e52a093ae
Change-Id: Id6d242168afe4f82158fcd23555e62e4a07accda
2020-04-23 03:44:15 +00:00
Charles Chen
1e52a093ae Merge "Limit number of window context without any window" into rvc-dev 2020-04-23 03:34:37 +00:00
Winson Chiu
30425ea8cb Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev am: c023f4474b
Change-Id: I4387df40a4beb5aeaaa0a86a1c1ed7ef7952d210
2020-04-23 01:02:23 +00:00
Winson Chiu
c023f4474b Merge "Calculate oldPaths for out of date LoadedApks" into rvc-dev 2020-04-23 00:44:57 +00:00
Charles Chen
2622d3ef7e Limit number of window context without any window
This change is to prevent misuse of window context from app
and leads to performance drop on system by limit the numer of window
context an app can use. Code snippet below is a sample to cause
this issue:
```
Rect getBounds() {
    Context windowContext = context.createWindowContext(...);
    return windowContext.getSystemService(WindowManager.class)
            .getCuttentWindowMetrics().getBounds()
}
```
This method could be invoked dozens of times and produce dozens of window
tokens. It would slow down the speed of window traversalling. These
token won't be removed until system server has been GC'd.

Test: atest WindowContextTests WindowContextPolicyTests
fixes: 152934797
Bug: 153369119

Change-Id: I927e85a45c05c4d90b51a624ea408ff3a3ffce93
2020-04-22 18:16:56 +08:00