summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2023-03-22Merge t-qpr-2023-03Matt Lee
Change-Id: Ib19b214e638901c3b0620fef13096ce839362c9b
2022-12-16Merge t-qpr-2022-12Matt Lee
Change-Id: I6df2150cfc615205a4d41172844789f617da4d0c
2022-12-15Add newlyUnlocked to onTrustChangedDerek Jedral
onTrustChanged doesn't notify listeners if the trust change was actually used to unlock the device, and so listeners cannot react to the change properly. We need to pass an additional boolean. Test: manual test Bug: 258001148 Change-Id: Ia205640fbdb5ddeb328ea81f1fe74c80ce25bca8
2022-10-07Create gesture navication test on Assistant test app.Benno Lin
Test: N/A Bug: 244261370 Change-Id: I5795b0ad9ab40a646d8bd414fbc9998ecf533f8d Merged-In: I5795b0ad9ab40a646d8bd414fbc9998ecf533f8d
2022-10-03Increased the ratio of the bottom coordinate to the screen for doing quick ↵Josh Chien
switch gesture in tests. The original ratio is not lower enough on the bottom of screen to trigger quick swich gesture in some device types. Test: http://ab/I28000010095241260 Bug: 244261956 Bug: 250459417 Change-Id: Ib867648d9a1265b029e2b03fb1ce12bd8677085c Merged-In: Ib867648d9a1265b029e2b03fb1ce12bd8677085c
2022-09-16Merge "Create test app to emulate assistant UI." into tm-qpr-devBenno Lin
2022-09-16Merge "Created a helper for mock game test app for gesture navigation cuj." ↵Josh Chien
into tm-qpr-dev
2022-09-15Created a helper for mock game test app for gesture navigation cuj.Josh Chien
Test: http://ab/I65200010089592249 Bug: 244261956 Bug: 242247304 Change-Id: I67e375e902b0e5bd0ddd5551f1722d81bbd06493 Merged-In: I67e375e902b0e5bd0ddd5551f1722d81bbd06493
2022-09-14Create a new test for gesture navigation on Gmail test appBenno Lin
Test: http://ab/I46500010089410017 Bug: 244261364 Bug: 242247304 Bug: 232584723 Change-Id: Icb247f0cad760a00c7966ad107803848159df7fc Merged-In: Icb247f0cad760a00c7966ad107803848159df7fc
2022-09-13Create test app to emulate assistant UI.Benno Lin
Example: https://screenshot.googleplex.com/8ApxVM9DGvUhFjZ.png Test: manual Bug: 244261370 Change-Id: Iac0e7cc04742963dc12ad650043b7cc63307fb97
2022-09-09Created a test app that mimics game app.Josh Chien
This CL creates a test app that emulates game apps by using surfaceview in immersive mode for implementing ironwood P0 CUJs (b/244261956). Demo: https://screencast.googleplex.com/cast/NTI2NDQ0Mzk5NTg0ODcwNHwzYTcxZWY1Yi1lZg Test: manual Bug: 244261956 Bug: 242247304 Change-Id: Iaee9fee5a343df0544057de485e9d6092b69b483 Merged-In: Iaee9fee5a343df0544057de485e9d6092b69b483
2022-09-07Merge "Create test app that mimics GMail" into tm-qpr-devBenno Lin
2022-09-01Register VibrationSettings as a listener to:Zixuan Qu
1) virtual displays creation and removal. 2) App Uids running on virtual displays. These will be used in combination to ignore vibration initiated from a virtual display. This change also consolicates the fix to avoid Null reference when VirtualDeviceManger is not present in the available system services. See also ag/19744341. Test: VibrationSettingsTest, VibratorManagerServiceTest bug: 189474679 Change-Id: Ie10dbfe65bb3ab9d62ed5c7b5ed7095a51bccf24 Merged-In: Ie10dbfe65bb3ab9d62ed5c7b5ed7095a51bccf24 (cherry picked from commit a0ae5c195186971e0b581451a3da856645a1fd6d)
2022-09-01Create test app that mimics GMailBenno Lin
This CL creates a test app that emulates GMail's list view for implementing ironwood P0 CUJs (b/244261364). Demo: https://screenshot.googleplex.com/B8fup8QChvJHMWz.png Test: manual Bug: 244261364 Bug: 242247304 Bug: 232584723 Change-Id: Ic7259007c1e6fc3991fc799a62816749b0b64c62 Merged-In: Ic7259007c1e6fc3991fc799a62816749b0b64c62
2022-08-25Merge "Added success lotties to BP for fp" into tm-qpr-devJoshua Mccloskey
2022-08-22Add three new IKE options in IkeSessionParamsUtilsYan Yan
This commit updates IkeSessionParamsUtils to be able to encode/decode IkeSessionParams with IKE_OPTION_REKEY_MOBILITY, IKE_OPTION_AUTOMATIC_ADDRESS_FAMILY_SELECTION and IKE_OPTION_AUTOMATIC_NATT_KEEPALIVES. This commit can also maintain compatibility with older T IPsec modules that do not support the two IKE_OPTION_AUTOMATIC_ options Bug: 242231517 Test: atest IkeSessionParamsUtilsTest Change-Id: Icadbe98b3df3cf3a80f51dc1467eb99753d82216 (cherry picked from commit 332f738998c030ee166d02587d8d93a2622780d5) Merged-In: Icadbe98b3df3cf3a80f51dc1467eb99753d82216
2022-08-18Added success lotties to BP for fpJoshua McCloskey
Test: Manually verified animations worked as expected. Fixes: 242783377 Change-Id: I95ea8c4d1ee1ecc1bd3c1ac3c0d33fe0e9803473
2022-08-15Merge "Reland: Remove workarounds by data_device_bins" into tm-dev am: ↵TreeHugger Robot
7faed5aaff am: 79f899dfd4 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19098483 Change-Id: I35991a7dcab8964fda62fb188b6769a5631c5e4e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-28Reland: Remove workarounds by data_device_binsVictor Hsieh
This reverts commit 4e2e4c93379fbb53f88a09147d17caefdcf850fd, plus replacing data_device_bins with data_device_bins_both. Previously, the test has dirty hacks that force building the device executable in correct name. Switch to the proper solution now that we have it. Bug: 228775576 Test: atest ApkVerityTest Test: lunch cf_x86_64_tv-eng; atest ApkVerityTest (against cf_x86_tv VM) Change-Id: Iccb457131d74a83b9f5cb8457833d7c5ea495b05 Merged-In: Iccb457131d74a83b9f5cb8457833d7c5ea495b05 (cherry picked from commit 3b6c701cc7b0ed470bbd32d2173de5d56d546a89)
2022-06-23Merge "Update the assertion to get correct navigation mode value." into ↵Mateusz Cicheński
tm-qpr-dev
2022-06-13Merge "Fix InsetsState#calculateUncontrollableInsetsFromFrame" into tm-qpr-devTiger Huang
2022-06-09Update the assertion to get correct navigation mode value.Mateusz Cicheński
Test: atest WMShellFlickerTests:PipRotationTest Bug: 206753786 Change-Id: Ie7ecaf1ca7df3055f270029fdfbb8c229a28ee7f
2022-06-08Merge "Update OpenImeWindowFromFixedOrientationAppTest (2nd)" into tm-qpr-devTreeHugger Robot
2022-06-08Update OpenImeWindowFromFixedOrientationAppTest (2nd)Ming-Shin Lu
To catch Bug 230733128 that the size of TaskSnapshotStartingWindow surface wrongly rendered by not applying fixed-rotation when the snapshot included IME, Add snapshotStartingWindowLayerCoversExactlyOnApp to verify the size of snapshotRegion should cover appVisibleRegion exactly in animation. Bug: 232242249 Test: atest FlickerTest:OpenImeWindowFromFixedOrientationAppTest Change-Id: I709d8899381126efff82a43a0d39d3342079f122
2022-06-06Merge "Fix unexpected IME visible temporary while dismissing the editor ↵TreeHugger Robot
dialog" into tm-qpr-dev
2022-06-06Fix unexpected IME visible temporary while dismissing the editor dialogMing-Shin Lu
In DC#computeImeParent we defer reparenting IME surface to the target until the target has started the input to be the input target since the IME requested visibility will updated after then. However the logic didn't aware of the IME input target may null when it be removed, so IME surface will be appear on the display area if the next layering target has not yet to start the input. The lucky thing is CloseImeEditorPopupDialogTest caught this errorprone when verifying IME layer will expected gone after IME-snapshot/dialog dismissed, but actually may failed by IME layer may still visible after dismissed the dialog. Fix this defer IME reparent logic and also consolidate CloseImeEditorPopupDialogTest in FlickerTest to verify IME snpshot and IME visiblity until IME window has gone to ensure the layer tracing could record the full animation frames to verify the IME-snapshot / IME layer visiblity correctly during the animation. Fix: 231108751 Test: atest FlickerTests:CloseImeEditorPopupDialogTest --rerun-until-failure 20 Change-Id: I863231507c210739fd363746ccbc8ac9072e8094
2022-05-31Fix InsetsState#calculateUncontrollableInsetsFromFrameTiger Huang
If a type of insets doesn't provide any insets to a window, the previous logic would think the type is controllable. This is wrong. If a type of insets provides the entire inset to a window, the previous logic would think the type is not controllable when the width or height doesn't match the display frame. This doesn't make much sense as well. This CL fixes the issues mentioned above and also refines WindowInsetsTests. It displays the name (string) of the controllable types, not the value (number). Fix: 234426300 Test: WindowInsetsTests Test: atest InsetsControllerTest Change-Id: Ice71db61cc4963c6d8489096bec9c295d58bfd78
2022-05-26Update OpenImeWindowFromFixedOrientationAppTestMing-Shin Lu
To detect IME gone bugs 230733128 in ShellTransition with following refined test steps: - Launch the activity with expecting IME will be shown. - Swiping out the IME activity to home. - Bring the exist IME activity to the front in landscape mode device rotation. Fix: 232242249 Test: atest FlickerTest:OpenImeWindowFromFixedOrientationAppTest Change-Id: I0148545ed19f52c58e0f45d578e6fe5634d1cc06
2022-05-25Merge TP1A.220523.001Deyao Ren
Change-Id: Iad63b34ec67e34156c16aba7fcd320023afec098
2022-05-20Merge TP1A.220520.001Daniel Norman
Change-Id: Ida0b297e7a4526668dbae03a5fd532e995199635
2022-05-20[DO NOT MERGE] Revert "Remove VCN Carrier Privilege grace period" am: ↵Rambo Wang
3a8a004d2a am: 597690dc7f Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18497226 Change-Id: I5ba9071f58b5a76a0c0773b862619a3cb96d9696 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19[DO NOT MERGE] Revert "Remove VCN Carrier Privilege grace period"Rambo Wang
This reverts commit fb4a590dbcb7d2782137678f12f23ae303e14e70. This change brings back the grace period built in VCN because the carrier privileges grace period is turn off. Bug: 229418673 Test: atest FrameworksVcnTests CtsVcnTestCases Change-Id: I85738c969c2bf78da33beaebe5863432948b7735
2022-05-17Merge TP1A.220513.001Daniel Norman
Change-Id: Iab98aeacac6ff385950e17f78df72e7f824e09a6
2022-05-15Merge TP1A.220507.001Brian Orr
Change-Id: I62e961e20b00142a8243ae4433921241226e3b58
2022-05-13Add to/from disk stable format am: 1e3c0ae64d am: 1f2df4845cBenedict Wong
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18218766 Change-Id: I28bea528b77db0a72c50e63f6293bec70a3ce08e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13Add to/from disk stable formatBenedict Wong
This change adds a utility to convert persistable bundles to and from disk-stable byte arrays. Bug: 192078259 Test: atest FrameworksVcnTests:PersistableBundleUtilsTest Change-Id: Ifafb7081ec6a34ce3ab8e2aa502d46411405cb6d (cherry picked from commit 823599b4a86ba20638a41bac66cadefeeae05108) Merged-In: Ifafb7081ec6a34ce3ab8e2aa502d46411405cb6d
2022-05-11Merge "Check for installed bluetooth package name" into tm-dev am: ↵Zach Johnson
945df7d77d am: 72dfd7b317 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17774836 Change-Id: If4621f4e12cd84f51ce8c02b1238f07e2a015591 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-10Check for installed bluetooth package nameWilliam Escande
Since Bluetooth is optional module, it can have 2 name depending on the target. Test: Build + pre-submit + try to send message from carkit Bug: 226403247 Fix: 228936027 Change-Id: I96a9bf4de972f16d5a391cc277aae237ff89e31c
2022-05-09Merge TP1A.220426.001Deyao Ren
Change-Id: I86d1aa16403a24bc11a33c009ec0474ce349d03b
2022-05-08Merge TP1A.220425.001Deyao Ren
Change-Id: I4fde9ea0405c9073adcf44539470d4f0c9898f0b
2022-05-07Merge "Revert "Remove workarounds by data_device_bins"" into tm-dev am: ↵TreeHugger Robot
778f431a83 am: 01a34cf18e Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18206547 Change-Id: I4a8be4896e0a200d4eeb1e9466633c4ab37e2ff6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06Revert "Remove workarounds by data_device_bins"Victor Hsieh
This reverts commit 279bf21281709c3d9e8166bf82f61944faa62ebf. Manual change: * Resolved conflicts in Android.bp to not change "test_suites". * bpfmt to silence repo upload warning Fixes: 229948069 Fixes: 230556754 Test: TH Change-Id: Iecccae4008c6fefd3f6ab47fb5e37ca4b22090be
2022-05-06Merge "Attempt to fix LaunchAppShowImeOnStartTest" into tm-dev am: ↵TreeHugger Robot
0a6445f43b am: b4d6b2cd8b Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18157813 Change-Id: I387f1543a09d521746495927764fee582584cc84 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06Merge "Updating TrustManagerService to react to keyguard visible changes." ↵TreeHugger Robot
into tm-dev am: bd5592e65b am: b0075d1b1d Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18102036 Change-Id: I9ce9298441da726e69d054ea7429666a95b7feb8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-06Merge "Attempt to fix LaunchAppShowImeOnStartTest" into tm-devTreeHugger Robot
2022-05-05Attempt to fix LaunchAppShowImeOnStartTestWilson Wu
Launch an ImeStateInitializeActivity to make sure the Ime state is expected before we run into each test. Bug: 227146931 Test: atest FlickerTests:LaunchAppShowImeOnStartTest --rerun-until-failure 100 Change-Id: I41028a97757d65db06b06043b42cd433a6810135
2022-05-04Updating TrustManagerService to react to keyguard visible changes.Your Name
Trustagents should know to downgrade to trustable when the keyguard visiblity changes. This will fix a bug on tablet where hitting the power button doesn't sleep the device, and consequently doesn't broadcast the SCREEN_OFF broadcast which causes the unit tests to fail. This also fixes a larger issue where if the phone gets unlatched, or if a trustagent is set up while the phone is unlocked, the phone will be able to downgrade the trustagent to trustable at the correct time. As part of this chance, we can remove the USER_PRESENT broadcast which ends up duplicating the reportKeyguardShowingChanged. Also, in TemporaryAndRenewableTrustTest.kt, we now grantTrust after waking the phone which is more realistic and was causing the tests to fail before. Test: atest TrustTests:TemporaryAndRenewableTrustTests --iterations Bug: 213631682 Fixes: 231326751 Change-Id: I10a3270ff0b9f12d62acd448ad754f829d843b0e
2022-05-04Move some IWindowManager methods to internal interfaceRiddle Hsu
The methods are only used in system server. It is unnecessary to declare in aidl. This also eliminates the confusion of missing permission check for updateRotation(). Bug: 230863943 Test: atest WindowManagerPermissionTests Change-Id: I703830650bab3a792982cada99aa1512430658a4
2022-05-03Merge TP1A.220422.001Deyao Ren
Change-Id: Ib5eb0ad992150683e93e3e54c125e68b90179633
2022-05-02Merge "Fix appVisible assertion on OpenAppFromNotificationWarm" into tm-devNataniel Borges