Commit Graph

17883 Commits

Author SHA1 Message Date
Mady Mellor
3e64f49264 Merge "Make bubble channel setting 3 state with unset / on / off" into rvc-dev am: 582784757d
Change-Id: I0f2818a15b5b3c02490d6f05d3fd0ee641da6c3c
2020-04-21 22:37:47 +00:00
Mady Mellor
582784757d Merge "Make bubble channel setting 3 state with unset / on / off" into rvc-dev 2020-04-21 22:30:28 +00:00
Wale Ogunwale
089608a0a3 Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f
Change-Id: I43787a43ea79d506ece2358a00fb952688fe34e6
2020-04-21 22:15:45 +00:00
Wale Ogunwale
201af5078f Merge "Allow CTS test to control organized tasks" into rvc-dev 2020-04-21 22:01:40 +00:00
TreeHugger Robot
c92f564c38 Merge "Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager." into rvc-dev am: 6b74050d48
Change-Id: I2e6738265d5df69e1e6afaaf1355282fdff5b334
2020-04-21 18:50:56 +00:00
TreeHugger Robot
6b74050d48 Merge "Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager." into rvc-dev 2020-04-21 18:35:44 +00:00
Yuncheol Heo
5d9b2710da Add currentUiModeSupportsErrorDialogs() into ActivityTaskManager.
The method will be used in AnrTests to check if the system can support ANR Dialog or not.

Bug: 149510025
Test: atest AnrTests
Change-Id: I7a78be06fcf3c4882931aaea1d330b2cebdc2d84
2020-04-21 16:24:22 +00:00
Mady Mellor
ee8d5b59e2 Make bubble channel setting 3 state with unset / on / off
Test: atest NotificationManagerTest (with CTS cl)
Test: manual - have test app on "all" setting
             - get a bubble
             - hit "unbubble" from notification
             => no longer bubble
             - get update to that notif, it shouldn't bubble
Bug: 154232758
Change-Id: I1611002418cad18ec2426e7d8b4cd4dc93e6df24
2020-04-21 16:10:26 +00:00
Stanislav Zholnin
0807ec1f69 Merge "Allow listening for noted Ops if app is sampled for Stack trace collection." into rvc-dev am: ae4605eee8
Change-Id: I4b25c315fc7989981246c360e70b3775edde1524
2020-04-20 15:28:12 +00:00
Michael Wachenschwanz
8c4540ffcf Merge "Add permission check to UsageStatsManager#isAppInactive" into rvc-dev am: dcc388ab44
Change-Id: I0ee8681752311979bf2b8c6e569dff4a42ba9a7d
2020-04-20 15:27:38 +00:00
Stanislav Zholnin
ae4605eee8 Merge "Allow listening for noted Ops if app is sampled for Stack trace collection." into rvc-dev 2020-04-20 15:21:10 +00:00
Michael Wachenschwanz
dcc388ab44 Merge "Add permission check to UsageStatsManager#isAppInactive" into rvc-dev 2020-04-20 15:15:35 +00:00
Linus Tufvesson
7745b320f3 Merge "Make ActivityViews backing virtual display private" into rvc-dev am: 3bfec32633
Change-Id: Ieb031f9be5e1813a1196a7d91d344543355ec0da
2020-04-20 14:04:09 +00:00
Linus Tufvesson
3bfec32633 Merge "Make ActivityViews backing virtual display private" into rvc-dev 2020-04-20 14:00:28 +00:00
Wale Ogunwale
20ab6d4999 Allow CTS test to control organized tasks
Changes to allow CTS test to control organized task so we can have the
tests run the same way sys-ui is driving things now. Control is given
back to sys-ui once the test is done running.

Bug: 149338177
Test: atest CtsWindowManagerDeviceTestCases:SplitScreenTests
Change-Id: I74a03ee3411f5b10ea4e26c1cc3c663dc394dd97
2020-04-19 19:09:33 -07:00
TreeHugger Robot
1bfa924804 Merge "Try to reland Ib3ee007bc" into rvc-dev am: 7f801fe0d1
Change-Id: I554f07ee937c1afbfb294e3de718e01aee4e2879
2020-04-20 00:42:44 +00:00
TreeHugger Robot
7f801fe0d1 Merge "Try to reland Ib3ee007bc" into rvc-dev 2020-04-20 00:29:45 +00:00
Lee Shombert
656bf159fd Merge "Disable binder caches in unit tests" into rvc-dev am: 9bca3a380d
Change-Id: I5c3f77f70b12ccf00909bca4f44249357c69f062
2020-04-19 19:26:27 +00:00
Lee Shombert
9bca3a380d Merge "Disable binder caches in unit tests" into rvc-dev 2020-04-19 19:07:24 +00:00
Stanislav Zholnin
d4968a0221 Allow listening for noted Ops if app is sampled for Stack trace collection.
Bug: 136134050
Test: manual verification
Change-Id: I86a70e7b0bbcb114bd28bf5ab90bbf1c625f333a
2020-04-18 21:11:22 +01:00
TreeHugger Robot
def5442913 Merge "Fixed Task#getVisibility to take into account task hierarchy" into rvc-dev am: 872afaeaeb
Change-Id: I7cc51bde785b545f41707d5ae5974c5c643672f7
2020-04-18 02:25:39 +00:00
TreeHugger Robot
872afaeaeb Merge "Fixed Task#getVisibility to take into account task hierarchy" into rvc-dev 2020-04-18 02:23:41 +00:00
Daniel Colascione
26218a248e RESTRICT AUTOMERGE: Add a facility for time-based cache corking am: f0e88b2f2c
Change-Id: I4b111649c54ec07a7a90cf849acc03fc41fe60ae
2020-04-18 00:02:59 +00:00
Lee Shombert
6747eaa8e5 Disable binder caches in unit tests
Bug: 152451909

Unit tests often execute server code in the context if a test process.
Such a process does not have the same permissions as formal system
processes.  In particular, such a process does not have permission to
invalidate binder caches.

This change disables all binder cache code in the current process.
This means caching is disabled and invalidation never occurs.  There
are no permission violations and the test process is also unable to
affect (through cache invalidation) the actual system processes.

Test: Ran a list of atests.  Two had security violations before the
change but were okay after the change:
 * FrameworksServicesTests
 * UserSystemPackageInstallerTest
 Ran additional tests to verify no regressions:
 * PlatformScenarioTests
 * PtsChreTestCases
 * BluetoothInstrumentationTests
 * UserLifecycleTests

Change-Id: I011ee1eb39b2d52c69b6d5164b64f7418d2bbdd4
2020-04-17 16:37:50 -07:00
TreeHugger Robot
e185aca339 Merge changes If07d6938,I32f9b89a,Ife4f8c4e into rvc-dev
* changes:
  RESTRICT AUTOMERGE: Add a facility for time-based cache corking
  RESTRICT AUTOMERGE: Cork permission and package cache around bulk permission update
  RESTRICT AUTOMERGE: Cork package information cache invalidations during boot
2020-04-17 23:25:02 +00:00
Wale Ogunwale
0db64ac043 Fixed Task#getVisibility to take into account task hierarchy
Also, correct some uses of getRootHomeTask()

Fixes: 153086746
Bug: 154331729
Bug: 80414790
Test: atest WmTests:ActivityStackTests#testGetVisibility_MultiLevel
Change-Id: I8b9a38879a0b4e6c72686312b414319b8b086cd1
2020-04-17 15:05:34 -07:00
wilsonshih
b6415618f1 Try to reland Ib3ee007bc
Don't let process configuration change application configuration,
but allow to update non-default display configuration while
initialize since the context is focus on different display.

Bug: 148639826
Test: atest PresentationTest ActivityThreadTest AppConfigurationTests
Change-Id: I16ba4eee64406d097b7ff0b7ff5c45175623663a
2020-04-17 21:31:24 +08:00
Ming-Shin Lu
c1e19880fd Merge "Add test APIs for makeCustomAnimation" into rvc-dev am: 49ccdb557f
Change-Id: If0b278f6a4252f887a2b590ac3613e6c20dfa375
2020-04-17 03:54:17 +00:00
Ming-Shin Lu
49ccdb557f Merge "Add test APIs for makeCustomAnimation" into rvc-dev 2020-04-17 03:33:51 +00:00
Daniel Colascione
3001ecce24 RESTRICT AUTOMERGE: Add a "cork" mechanism to prevent cache invalidation flooding am: 264abafff0
Change-Id: I7d649e87169f0d39191fa0ca0b9efda8c56f1cfe
2020-04-17 01:57:09 +00:00
TreeHugger Robot
7929732000 Merge "RESTRICT AUTOMERGE: Add a "cork" mechanism to prevent cache invalidation flooding" into rvc-dev 2020-04-17 01:52:53 +00:00
Daniel Colascione
f0e88b2f2c RESTRICT AUTOMERGE: Add a facility for time-based cache corking
AutoCorker addresses the situation where big invalidation storms kill
performance but we don't have a way to insert a manual cork around
these update storms.

Bug: 140788621
Test: m
Change-Id: If07d693886fca340c7a18d5a607a4f235aa7107d
2020-04-17 00:19:05 +00:00
Daniel Colascione
264abafff0 RESTRICT AUTOMERGE: Add a "cork" mechanism to prevent cache invalidation flooding
Bug: 140788621
Test: subsequent CL
Change-Id: Idfc42110e655571578bae208b98ee61a6eb1b2c3
2020-04-17 00:16:35 +00:00
Andrii Kulian
9b992b1792 Merge "8/n Allow targeting task containers for activity launch" into rvc-dev am: 1a261f2f65
Change-Id: I41f94852ead394fa5c15f56665d718b493f8163b
2020-04-16 23:33:09 +00:00
Andrii Kulian
1a261f2f65 Merge "8/n Allow targeting task containers for activity launch" into rvc-dev 2020-04-16 23:15:42 +00:00
Linus Tufvesson
db1f2ec052 Make ActivityViews backing virtual display private
Bug: 150310377
Test: atest CtsWindowManagerDeviceTestCases:ActivityViewTest
Test: Used bubbles test app to verify that it's still happy when using
private VDs

Change-Id: I02c6840b1f908a5177c217494de0110f5ce78f7e
2020-04-16 15:50:48 +01:00
Andrii Kulian
1cfcae8108 8/n Allow targeting task containers for activity launch
- Allow targeting task display area in ActivityOptions.
- Change LaunchParamsController to select preferred task display
  area instead of display.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: I16ab96008e1ce03422f89a0609d3121051261fda
2020-04-15 12:21:24 -07:00
Soonil Nagarkar
af9f5ee2fe DO NOT MERGE Add utilities for creating AppOps listenerIds am: 4523f96ff1
Change-Id: I800077c873e30e28db03b94287ef1f218740ae53
2020-04-15 17:41:48 +00:00
Rubin Xu
25c8ff5dea Merge "Improve work profile unification flow" into rvc-dev am: a042c8afd3
Change-Id: I88df1bde45cf2234e304c336dbb6ecbd65ab96e0
2020-04-15 17:25:30 +00:00
Stanislav Zholnin
8bf5e2dd14 Merge "add AppOpsTest to related frameworks TEST_MAPPINGS" into rvc-dev am: 962b13c5ee
Change-Id: I7f4605871f3f360d97f296199b11fbc2f17618c7
2020-04-15 17:23:59 +00:00
Soonil Nagarkar
e89cef4edb Merge "DO NOT MERGE Add utilities for creating AppOps listenerIds" into rvc-dev 2020-04-15 15:44:22 +00:00
Rubin Xu
a042c8afd3 Merge "Improve work profile unification flow" into rvc-dev 2020-04-15 11:18:06 +00:00
Stanislav Zholnin
962b13c5ee Merge "add AppOpsTest to related frameworks TEST_MAPPINGS" into rvc-dev 2020-04-15 10:10:55 +00:00
Soonil Nagarkar
4523f96ff1 DO NOT MERGE Add utilities for creating AppOps listenerIds
Use utilities to support location listenerIds.

Bug: 153687899
Test: presubmits
Change-Id: Ie138c98a5f864490c6560166b652ea9509fa8728
2020-04-14 19:04:41 -07:00
Charles Chen
249e053dac Merge "Fix WindowContextTests" into rvc-dev am: 5c984b9a09
Change-Id: I54b8ed88ae91c15daad90ff5ec739269b890aa6b
2020-04-14 18:05:37 +00:00
Charles Chen
5c984b9a09 Merge "Fix WindowContextTests" into rvc-dev 2020-04-14 17:44:47 +00:00
Mady Mellor
f2e1c620a4 Make bubble settings a pref with an int rather than a bool am: a92268cd01
Change-Id: Iff5cd122b4ed2ee91461a04c36dd32a386e6b042
2020-04-14 11:28:37 +00:00
Julia Reynolds
c026d54cd7 Merge changes from topic "bubble_settings_wooo" into rvc-dev
* changes:
  Changes to enable bubble settings CTS
  Notification Bubble Button
  Make bubble settings a pref with an int rather than a bool
2020-04-14 11:22:14 +00:00
Charles Chen
7ba8e26c87 Fix WindowContextTests
Previously, window token assigns last config to mLastReportedConfiguration
directly, which makes it share the same reference with getConfiguration(),
and blocks all config changes request to clients.

This CL uses Configuration#setTo instead.

fixes: 152227175
Bug: 150251036
Test: atest WindowContextTests

Change-Id: I44143aa558f223eb301e28f2e9110bfd66eac636
2020-04-14 16:57:18 +08:00
Winson Chung
a68c1741c2 Merge "Send task description changed though task org taskInfoChanged" into rvc-dev am: 3908fb22b6
Change-Id: Id0cf41f97fbee61fb478b107494d5a29aaed080c
2020-04-13 17:18:32 +00:00