Commit Graph

12474 Commits

Author SHA1 Message Date
Rambo Wang
30395da568 [DO NOT MERGE] Revert "Remove VCN Carrier Privilege grace period" am: 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-20 12:50:24 +00:00
Rambo Wang
3a8a004d2a [DO NOT MERGE] Revert "Remove VCN Carrier Privilege grace period"
This reverts commit fb4a590dbc.

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-19 22:58:29 +00:00
Benedict Wong
c6bb2bc315 Add to/from disk stable format am: 1e3c0ae64d am: 1f2df4845c
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-13 17:39:22 +00:00
Benedict Wong
1e3c0ae64d Add to/from disk stable format
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 823599b4a8)
Merged-In: Ifafb7081ec6a34ce3ab8e2aa502d46411405cb6d
2022-05-13 10:32:15 +00:00
Zach Johnson
af434cce85 Merge "Check for installed bluetooth package name" into tm-dev am: 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-11 21:25:06 +00:00
William Escande
8c9a96ad00 Check for installed bluetooth package name
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-10 18:50:37 -07:00
TreeHugger Robot
3a1f8029cd Merge "Revert "Remove workarounds by data_device_bins"" into tm-dev am: 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-07 04:18:02 +00:00
Victor Hsieh
4e2e4c9337 Revert "Remove workarounds by data_device_bins"
This reverts commit 279bf21281.

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-06 16:32:23 -07:00
TreeHugger Robot
c1dd3c2782 Merge "Attempt to fix LaunchAppShowImeOnStartTest" into tm-dev am: 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-06 15:54:36 +00:00
TreeHugger Robot
8cda0aa38c Merge "Updating TrustManagerService to react to keyguard visible changes." 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-06 15:54:26 +00:00
TreeHugger Robot
0a6445f43b Merge "Attempt to fix LaunchAppShowImeOnStartTest" into tm-dev 2022-05-06 03:49:19 +00:00
Wilson Wu
2e41f95152 Attempt to fix LaunchAppShowImeOnStartTest
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-05 11:01:05 +08:00
Your Name
ac8c52db31 Updating TrustManagerService to react to keyguard visible changes.
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-04 23:05:39 +00:00
Riddle Hsu
4bf606c578 Move some IWindowManager methods to internal interface
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-04 22:53:17 +08:00
Nataniel Borges
33c379b7b6 Merge "Fix appVisible assertion on OpenAppFromNotificationWarm" into tm-dev 2022-05-02 20:13:49 +00:00
Ming-Shin Lu
e6a860a747 Merge changes I96b17c78,If4b09f5b into tm-dev
* changes:
  Make DialogThemedActivity main window is not focusable
  Make IME visiblity stable without unexpected hidden when setControl
2022-04-29 14:19:28 +00:00
Ming-Shin Lu
c3fcf5dbc2 Make DialogThemedActivity main window is not focusable
In case the window may become to IME input target when dismissing the
dialog window to mistakly hide the IME when getting the IME insets
control.

Also, add the SystemBars' insets visibility string on the dialog for the
test to easier track and verify the insets visiblity before thetest.

Bug: 227142436
Test: atest LaunchAppShowImeAndDialogThemeAppTest
      --rerun-until-failure 10
Change-Id: I96b17c78d4bd211a930bc0e4a083168e83f8aae9
2022-04-27 15:59:55 +00:00
Hongguang
fa49a958c8 Do not run NotificationTest on TV.
Fix: 230550325
Test: atest InputMethodStressTest
Change-Id: I52a79356dac2f73a0501a95b865d77812b0dcc2c
2022-04-27 03:57:10 +00:00
Makoto Onuki
7246463df0 Merge "Use a com.android prefix for hidden intent actions" into tm-dev 2022-04-25 15:29:52 +00:00
Makoto Onuki
f3d0bfaa4c Use a com.android prefix for hidden intent actions
CtsIntentSignatureTestCases asserts system apps' intent filters
shouldn't have any "android.*" intent actions that are not public/system
APIs.

So let's just use a com.android prefix.

Bug: 230099874
Test: atest ComponentAliasTests ComponentAliasTests1 ComponentAliasTests2
Change-Id: Ife697a58abb220cebce1ffda393f20cbe821a13a
2022-04-22 13:44:29 -07:00
Nataniel Borges
9af3089725 Fix appVisible assertion on OpenAppFromNotificationWarm
The assertion is flaky at the moment because `Splash Screen com.android.server.wm.flicker.testapp` sometimes appear

Fixes: 228878926
Test: atest FlickerTests
Change-Id: I0cb4e32502abe78e6bc4f1624ecd83864560c5b5
2022-04-22 17:06:53 +02:00
TreeHugger Robot
c3947aa6ff Merge "Do not run NotificationTest on Auto." into tm-dev 2022-04-22 05:58:06 +00:00
Kohsuke Yatoh
7f1e7a1e65 Do not run NotificationTest on Auto.
Bug: 229820964
Test: atest InputMethodStressTest
Change-Id: Icf218460fa842f59125c2c09b822b3444ffc1281
2022-04-21 17:35:17 -07:00
Kohsuke Yatoh
eae7ca8165 Do not cleanup IME window if show is requested.
This CL fixes a race condition for IMM#showSoftInput, which surfaces
when it's called during an IME hide animation.
IMM#showSoftInput ends up calling WIC#show asynchronously, but at that
time the running IME hide animation may have already been finished
successfully, and WIC#show may fail to cancel the hide animation
(then the cleanup IMM#notifyImeHidden hides the IME again disruptively).

I think a clean fix is to have IMM#showSoftInput call WIC#show
synchronously. However, this requires a significant refactoring.

As a short term fix, this CL adds a boolean field indicating whether or
not IMM#showSoftInput has been called. If it's called, we skip calling
IMM#notifyImeHidden.

Bug: 221483132
Bug: 225674038
Test: atest InputMethodStressTest
Test: atest CtsInputMethodTestCases
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I36d570630085d0bc34097a2433208601dc9cb0fd
(cherry picked from commit 4c607982ed)
Merged-In: I36d570630085d0bc34097a2433208601dc9cb0fd
2022-04-21 21:34:31 +00:00
Kohsuke Yatoh
4844170377 Notify IMMS synchronously on IME insets hidden.
Currently, IMMS will be notified asynchronously when an IME hide
animation finishes, via message dispatching through IMS
(IMM#notifyImeHidden -> IMS#notifyImeHidden -> IMMS#hideMySoftInput).
This creates a race condition when IMM#showSoftInput or WIC#show is
called around the end of hide animation.

This CL fixes the race condition by synchronously and directly
calling IMMS#hideSoftInput from IMM#notifyImeHidden.

Note that there is still another race condition for IMM#showSoftInput
(not WIC#show) if it's called during an IME hide animation;
IMM#showSoftInput ended up calling WIC#show asynchronously, but at that
time the running IME hide animation may have already been finished
successfully and WIC#show may fail to cancel the hide animation
(then the cleanup IMM#notifyImeHidden hides the IME again disruptively).
I will fix the latter issue in a separate CL.

Bug: 221483132
Bug: 225674038
Test: atest InputMethodStressTest
Test: atest CtsInputMethodTestCases
Test: atest WindowInsetsAnimationControllerTests
Change-Id: I7c71dc5a1d6b61aa79d1666f0e257e6401e4adb2
(cherry picked from commit 9065310f81)
Merged-In: I7c71dc5a1d6b61aa79d1666f0e257e6401e4adb2
2022-04-21 21:34:24 +00:00
Benedict Wong
83e6ae270a Merge "Add CarrierConfig to TelephonySubscriptionSnapshot" am: 59aeaf29c0 am: d868725c8c am: 1670176e65
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063410

Change-Id: I83b7473cc8358213b5ce87781cb534d9ebf79991
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 18:27:16 +00:00
Benedict Wong
59aeaf29c0 Merge "Add CarrierConfig to TelephonySubscriptionSnapshot" 2022-04-21 17:40:58 +00:00
TreeHugger Robot
5428fee94e Merge "Disable flaky flicker tests" into tm-dev 2022-04-21 14:14:22 +00:00
TreeHugger Robot
77e8e3599a Merge "Disable failing app launch assertion on shell transitions" into tm-dev 2022-04-21 13:54:52 +00:00
Nataniel Borges
97a456125c Disable flaky flicker tests
Reduce resource usage in presubmit by mitigating flakiness

Bug: 229738092
Bug: 203538234
Test: atest FlickerTests
Change-Id: Ifaa50e0cbf63a8cfdd571555570cbf10fa787ce2
2022-04-21 11:30:47 +02:00
Nataniel Borges
5070363c87 Disable failing app launch assertion on shell transitions
Bug: 229738092
Test: atest FlickerTests:OpenImeWindowToOverViewTest
Change-Id: I03c28017a8bcd58af197f0d144f3a141a978f698
2022-04-21 11:12:19 +02:00
Benedict Wong
52629838cb Add CarrierConfig to TelephonySubscriptionSnapshot
This change ensures that carrier configs are saved as part of the
snapshot, allowing all entities in the VCN to query telephony
subscription information from the same source.

Test: atest FrameworksVcnTests
Change-Id: I31447d84fe98d6bd2cc78ead41746198728c400b
2022-04-21 01:09:36 +00:00
Derek Jedral
a4a4f42b3a Merge "[Trust] Add test target for tablets." into tm-dev 2022-04-20 17:10:06 +00:00
Nataniel Borges
eca6ae398d Merge "Disable failing visible consecutive layers assertion" into tm-dev 2022-04-20 11:18:24 +00:00
TreeHugger Robot
af84398fed Merge "Disable flaky app launch flicker tests" into tm-dev 2022-04-20 07:04:58 +00:00
Nataniel Borges
c1655ef37d Merge "Don't assert bars location when display is off" into tm-dev 2022-04-20 06:28:13 +00:00
Nataniel Borges
56d66c7dd3 Merge "Wait IME visible after launch" into tm-dev 2022-04-20 06:28:08 +00:00
Yan Yan
780a2b31bc Merge "Maximize VCN MTU when using IPv6" am: 6d70c7f36a am: 8f8e80779a am: 30ac2c94d3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2063435

Change-Id: I0de762eeadbb7218f1b41c18d2475b459c722a85
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 04:36:30 +00:00
Nataniel Borges
ed1fbd9dbe Disable failing visible consecutive layers assertion
Currently, one frame of the animation shows 2 instances of the launcher, making the test flaky

Bug: 229762973
Test: atest FlickerTests
Change-Id: I51f2854e24ea6a4114ebfd7726b5cc0ffe32e416
2022-04-19 20:18:55 +00:00
Nataniel Borges
b358224e5b Wait IME visible after launch
The ImeAppAutoFocus shows the IME when the app is launched. at the moment it doesn't wait for the IME to be visible before continuing and this causes test flakiness

Test: atest FlickerTests
Change-Id: If3ab191fcc9d026553a1859e594e4d38da37f41d
2022-04-19 18:58:22 +00:00
Nataniel Borges
6e2960cba6 Disable flaky app launch flicker tests
Bug: 229735718
Bug: 229738092
Test: atest FlickerTests
Change-Id: I50eaeedf2bac0d824595fcea744c4f7ea7fedfab
2022-04-19 16:13:55 +00:00
Nataniel Borges
3df2e39b48 Don't assert bars location when display is off
Currently the assertions fail when the dipslay is off because no layers
are visible

Bug: 228582475
Test: atest FlickerTests
Change-Id: I718192064c1d1cf0bdf19015e3b7daeb00879d3c
2022-04-19 15:38:35 +00:00
TreeHugger Robot
d423d78014 Merge "Assert correct nav bar visibility in overview" into tm-dev 2022-04-19 07:06:19 +00:00
Yan Yan
6d70c7f36a Merge "Maximize VCN MTU when using IPv6" 2022-04-18 17:30:44 +00:00
Derek Jedral
3c4a8625b9 [Trust] Add test target for tablets.
Add a target for tablets that we can point to in order to run tests
during pre and post-submit.

Test: local atest
Bug: 228851008
Change-Id: Ie0a1186cc97388c1b9c282c81e8bfcab5eec814b
2022-04-18 16:46:48 +00:00
Ming-Shin Lu
e00e624da2 Merge "Fix imeLayerAndImeSnapshotVisibleOnScreen flaky" into tm-dev 2022-04-18 16:15:19 +00:00
Ming-Shin Lu
26780b4d6d Fix imeLayerAndImeSnapshotVisibleOnScreen flaky
In case IME-snapshot removed and the assertion can't verify IME-snapshot
visible from the next frame, fix the assertion by verifying both
IME-snapshot and IME are invisible in the end.

Fix: 228947097
Test: atest FlickerTests:CloseImeEditorPopupDialogTest \
         --rerun-until-failure 20
Change-Id: I1d945cd10761af1c7dad9154a550e69bf4d481ee
2022-04-18 20:58:25 +08:00
Yan Yan
eb00e3c77a Maximize VCN MTU when using IPv6
This commit maximizes VCN MTU by considering IP version. Specifically,
VcnGateWayConnection stores/updates the IkeSessionConnectionInfo passed
out from the IKE library during IKE setup and migration. By looking into
the addresses stored in the IkeSessionConnectionInfo, VCN is able to
know the IP family of the VCN tunnels.

Bug: 222331693
Test: atest FrameworksVcnTests(new tests), CtsVcnTestCases
Change-Id: I9a2839d7827f1d6451546ec222129f286e94ae36
2022-04-15 12:16:20 -07:00
Benedict Wong
0ae3528dc7 Merge "Allow provisioning package to retrieve subGrp, clear it's own config" am: 1428215bee am: 6b6f825b26 am: 4a6b279bb5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2056512

Change-Id: Ic537ef95af0424aef9f980cd124adac3dde1294a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-14 19:48:12 +00:00
Winson Chiu
fbf8386dc7 Merge "Re-root and use device remount APIs for SystemPreparer" into tm-dev 2022-04-14 16:57:17 +00:00