Commit Graph

30677 Commits

Author SHA1 Message Date
Wale Ogunwale
951fdd64db Merge "Allow CTS test to control organized tasks" into rvc-dev am: 201af5078f am: ef931eee02
Change-Id: I4ed81bb4af88b677642df9ba9471920c235ff2ab
2020-04-21 22:27:47 +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
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
Nicholas Ambur
ac42a7c999 Merge "add KeyphraseEnrollmentInfo to TestApi" into rvc-dev am: 01b4d5cb13
Change-Id: I316ee034119f08155ac51cfc4a6e38a4287a4e35
2020-04-18 02:25:09 +00:00
Nicholas Ambur
d3c1f27b0c add KeyphraseEnrollmentInfo to TestApi
KeyphraseEnrollmentInfo is used for testing the system enrollment
application support within GTS.

Bug: 153264697
Test: gts-tradefed run gts-dev -m GtsAssistIntentTestCases \
-t com.google.android.assist.gts.KeyphraseModelManagerTest# \
testAllSystemKeyphrasesAndLocales

Change-Id: I66558cf849f2815f2c917d128f9f9cc0673750ef
Merged-In: I66558cf849f2815f2c917d128f9f9cc0673750ef
2020-04-17 22:12:13 +00:00
TreeHugger Robot
63c1271fbc Merge "Mark more directory getter APIs @TestApi" into rvc-dev am: 5ac047d365
Change-Id: I0c36668774a2ec2b2710f06f51b474c48f14a849
2020-04-17 15:41:20 +00:00
Jerry Chang
e63ae2f84f Mark more directory getter APIs @TestApi
To have a way to verify behavior of more directories, mark more
directory getter APIs @TestApi.

Bug: 148664742
Test: atest SysConfigTest#testStageWhitelist
Change-Id: I2d22412935b24ec4c33d8d1b3a7fbb7df4a08841
2020-04-17 14:50:48 +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
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
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
Winson Chung
1df39e2cf6 Send task description changed though task org taskInfoChanged
- This removes the need for a separate task stack listener and aligns
  with other task info change properties
- Also implement equals/hashCode for the token so we can use it in
  containers

Bug: 148977538
Test: atest TaskOrganizerTests

Signed-off-by: Winson Chung <winsonc@google.com>
Change-Id: Ie035e6389fdbdc374c1a4b4a684758efa0cb7a9e
2020-04-11 00:01:05 -07:00
Michael Groover
f3d732b0ad Merge "Update permission requirements for TelecomManager#getLine1Number" into rvc-dev am: f4cd234bcb
Change-Id: I870b599d2c6f5d98d9a6eecbdc1c69462c395386
2020-04-09 17:28:14 +00:00
Michael Groover
f4cd234bcb Merge "Update permission requirements for TelecomManager#getLine1Number" into rvc-dev 2020-04-09 17:21:42 +00:00
TreeHugger Robot
0e8486557c Merge "Make OPSTR_MANAGE_EXTERNAL_STORAGE test API" into rvc-dev am: ffce5f2b7c
Change-Id: I029689affca7a450379110651fb54f18723f10e8
2020-04-08 23:24:41 +00:00
TreeHugger Robot
ffce5f2b7c Merge "Make OPSTR_MANAGE_EXTERNAL_STORAGE test API" into rvc-dev 2020-04-08 23:21:23 +00:00
Andrii Kulian
8e0f3c3a94 Merge "6/n Manage multiple task display area in the policy" into rvc-dev am: ac4b972e7a
Change-Id: Id4e4883d5ce7dbd0ab1f6ea8c3f75520b31bd796
2020-04-08 17:38:20 +00:00
Andrii Kulian
ac4b972e7a Merge "6/n Manage multiple task display area in the policy" into rvc-dev 2020-04-08 17:35:42 +00:00
shafik
2a20790621 Make OPSTR_MANAGE_EXTERNAL_STORAGE test API
We need that to enable CTS for Environment#isExternalStorageManager API

Test: build
Bug: 152478019
Change-Id: I8c24c08991558629c83a25b4bed89c817723d732
2020-04-08 17:49:47 +01:00
Jorim Jaggi
d04e3ed6c0 Merge "Re-apply local client state when leash changes" into rvc-dev am: 9c50a64e91
Change-Id: I751a0e054e87db48de185442bfc0d35b666ad6f5
2020-04-08 11:16:16 +00:00
Andrii Kulian
44b3c569f4 6/n Manage multiple task display area in the policy
Delegate task display area creation and container management to the
display area policy implementation. This should allow creating and
handling device-specific task display area arrangements.

Bug: 152116619
Test: WM CTS and unit tests
Change-Id: Ic1182d064e7d8387f701f04fb267e2bb6d4da0c5
2020-04-07 21:30:26 -07:00
Jorim Jaggi
ee54070608 Re-apply local client state when leash changes
When leash changes, we need to re-apply our local state, to ensure
new leash has same state as before and new leash is visible on
screen.

Test: Switch IME while open
Test: SurfaceControlTest
Fixes: 152876819
Change-Id: Ieae1aecdc3ddc427ccb89c4aa7ef7ae9283f39eb
2020-04-07 23:04:44 +00:00
Steven Thomas
c5fc057244 Merge "Add frame rate flexibility token" into rvc-dev am: 2845ad86a4
Change-Id: I097b98b81419b442805ae88bf3468f7b73b8114d
2020-04-07 18:32:43 +00:00
Steven Thomas
2845ad86a4 Merge "Add frame rate flexibility token" into rvc-dev 2020-04-07 18:20:36 +00:00
TreeHugger Robot
236c8f84a2 Merge "Expose Display.getType() via TestApi." into rvc-dev am: bd745f763a
Change-Id: Ic55bb7836e4d0e3ea2b0736ed5d73c043b7da2e4
2020-04-07 16:49:59 +00:00
Ming-Shin Lu
b6d7002f36 Add test APIs for makeCustomAnimation
For CTS to verify activity custom transition duration
with onAnimationStartedListener / onAnimationFinishedListener
in ActivityOptions

Bug: 150443017
Test: build, atest ActivityTransitionTests
Change-Id: I603ab60a65343f3f336b311064ad55b01ead4929
2020-04-07 21:21:59 +08:00
Santos Cordon
29d5b8f43e Expose Display.getType() via TestApi.
Bug: 151124371
Test: atest android.display.cts.DisplayTest
Change-Id: Id3c25fe675c1fa2b0070cf95736c608315b5e26b
2020-04-07 09:56:16 +00:00
TreeHugger Robot
8bfdc107cc Merge "Store conversation requirement in a setting" into rvc-dev am: 5eb9c8fada
Change-Id: I7cb2dde555ac4480d3ad18c675f3a6466184345b
2020-04-07 03:58:21 +00:00
TreeHugger Robot
5eb9c8fada Merge "Store conversation requirement in a setting" into rvc-dev 2020-04-07 03:47:02 +00:00
Eric Laurent
1a533b5f70 Merge "AudioSystem: add annotation on API used by CTS media" into rvc-dev am: 3b13f5ef87
Change-Id: I1d8b8b49615310332290efe39217fd95a61a66b9
2020-04-07 01:09:58 +00:00
François Gaffie
d83e946d53 AudioSystem: add annotation on API used by CTS media
Add @TestApi for the class so some methods and
constants can be visible to test API.
  Also @hide for all other members of the class
that are not @TestApi, as they are exposed to the
test API visibility.

Bug: 136121584
Test: run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioProductStrategyTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioVolumeGroupChangeHandlerTest
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testPermissionsForVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateProductStrategies
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testGetAndValidateVolumeGroups
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributesWithInvalidAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testSetGetVolumePerAttributes
run cts-dev -m CtsMediaTestCase --test android.media.cts.AudioManagerTest#testVolumeGroupCallback
Signed-off-by: François Gaffie <francois.gaffie@renault.com>

Change-Id: Iff9abda2cf971d9c234dcf7df7c2b9a4ad5294c3
2020-04-06 15:04:22 -07:00
Joanne Chung
6828c3e551 Merge "Made ExplicitHealthCheckService testable." into rvc-dev am: 62cd75f90d
Change-Id: I9a7fe8c35d760302355e57a0d52af1c89e2ecd8b
2020-04-06 02:42:03 +00:00
Joanne Chung
62cd75f90d Merge "Made ExplicitHealthCheckService testable." into rvc-dev 2020-04-06 02:33:24 +00:00
Steven Thomas
6ec6fbc2cc Add frame rate flexibility token
Add support for temporarily relaxing frame rate restrictions in surface
flinger. This is used by CTS tests to get a consistent device state
while running frame rate tests.

Bug: 148033900

Test: - On a Pixel 4, I turned the brightness down and covered the
ambient light sensor, causing the display manager to set a frame rate
restriction. I ran the frame rate CTS test without these CLs applied,
and confirmed the test failed because surface flinger couldn't switch
frame rates, as expected. Then I ran the tests with the CLs applied, and
confirmed the tests pass.

- I confirmed that, without adopting shell permission identity, the CTS
test is denied the request to acquire a frame rate flexibility token. So
normal apps won't be able to access this.

Change-Id: Ie2b611cf5726c14a7a22e315a85bf6200d190682
2020-04-04 19:55:00 -07:00
Henry Fang
d7b5f4399a Merge "Add test api for CTS to test resource lost event" into rvc-dev am: bc93009274
Change-Id: I4786e76cd24c014f7e1c3d00b9f5cba0a4d0715d
2020-04-03 20:29:05 +00:00
Henry Fang
1eef1d2f26 Add test api for CTS to test resource lost event
bug: 152343262
Test: Manual
Change-Id: I5660cea3e57771c8a09f57ed88723064bb592c30
2020-04-03 17:39:13 +00:00
Amith Yamasani
c8cc71a091 Merge "Mark secondary lockscreen API as SystemApi." into rvc-dev am: 040563da5f
Change-Id: Idd633967cc9eb5f16d7dbf29de9f2ea6efb09e1e
2020-04-03 14:28:23 +00:00
Amith Yamasani
040563da5f Merge "Mark secondary lockscreen API as SystemApi." into rvc-dev 2020-04-03 14:13:43 +00:00
Lorenzo Colitti
d7c9d9fbfe Merge "Added a new capability for temporarily unmetered network." into rvc-dev am: 0edabc5e4e
Change-Id: I4d43b28d25529d4dd9e4304c4edf95edb5c5110b
2020-04-03 05:07:20 +00:00
Jack Yu
30be5e5d3d Added a new capability for temporarily unmetered network.
Added a new network capability TEMOPORARILY_NOT_METERED to support
the case that a network can temporarily become unmetered. This
allows carriers to deploy unmetered 5G network. When devices
camp on 5G network, this capability will be dynamically added
to the network and will be removed once leaving 5G coverage.

Bug: 153081494
Test: Manual
Change-Id: I10e26cb0852e67f614e7b9c4e49f95e078602e21
2020-04-02 19:28:41 -07:00
Julia Reynolds
e24faa2c86 Store conversation requirement in a setting
So we can show it in developer options. Also fix a bug
where the setting wasn't being respected in systemui.

Test: atest
Bug: 152907434
Change-Id: I1eaed93a0c8a1ec4486c7072972e2f924402bb94
2020-04-02 16:28:40 -04:00
Yvonne Jiang
70a62376d0 Mark secondary lockscreen API as SystemApi.
It is currently not meant for use by general enterprise device admins.

Bug: 152478326

Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest KeyguardUpdateMonitorTest
Test: atest AdminSecondaryLockScreenControllerTest
Change-Id: I6d60bc35a4e8f74b1da55b042582a2f2fa89d57f
2020-04-02 08:41:04 +00:00
Joanne Chung
ea12c719b6 Made ExplicitHealthCheckService testable.
Bug: 149077550
Test: atest CtsPackageWatchdogTestCases
Change-Id: I588052de62bce6cbfa8118d1be56257a1dde422f
2020-04-01 22:54:35 +08:00
Wale Ogunwale
1bdc601c4f Merge "Add TestApi interfaces for window organizers" into rvc-dev am: 1df5eb0130
Change-Id: I2bbb327fede2bb789669e55f8dedb586e4384999
2020-04-01 13:43:41 +00:00
Wale Ogunwale
adf116ec95 Add TestApi interfaces for window organizers
Enables testing the API surfaces from CTS.

Bug: 149338177
Test: they pass!
Change-Id: I7e1f2852585a10c20d299bd87e9a87f828d06d6a
2020-04-01 13:25:23 +00:00