Commit Graph

11881 Commits

Author SHA1 Message Date
JW Wang
244bbadcfe Merge "Expose ROLLBACK_DATA_POLICY_* as system api" 2021-08-09 08:30:30 +00:00
Jiakai Zhang
9a977cc090 Merge "Disable JIT in BootImageProfileTest." am: 89320ec08f am: 3e8f4a285c am: 2b3b5e27ec am: e1a6e5e53b am: ed664b611a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1781192

Change-Id: Ibdd6ddd12f5fad2cc591f6fa41f1b804fd7425f3
2021-08-09 07:19:06 +00:00
Jiakai Zhang
ed664b611a Merge "Disable JIT in BootImageProfileTest." am: 89320ec08f am: 3e8f4a285c am: 2b3b5e27ec am: e1a6e5e53b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1781192

Change-Id: I7f155e3ab4a037378ec93ffdbc2c2156fc569d50
2021-08-09 07:02:19 +00:00
Jiakai Zhang
2b3b5e27ec Merge "Disable JIT in BootImageProfileTest." am: 89320ec08f am: 3e8f4a285c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1781192

Change-Id: I495428c47a8ae41588380a4395d994772a761c44
2021-08-09 06:31:07 +00:00
Jiakai Zhang
eefd827ba8 Disable JIT in BootImageProfileTest.
When JIT is enabled, it is possible that some methods are inlined and therefore not captured in the profile.

Test: atest BootImageProfileTest
Bug: 194975422
Change-Id: I6fc99cb596646e365f50cfb8484f792039d8b222
2021-08-09 02:20:09 +00:00
Kohsuke Yatoh
9f6a0aacc8 Merge "Initial commit of InputMethodStressTest." 2021-08-06 16:59:31 +00:00
JW Wang
dabef7a8de Expose ROLLBACK_DATA_POLICY_* as system api
The constants will be used by phonesky and CTS
to replace hardcoded values.

Bug: 194981157
Test: m
Change-Id: I4567334be554055ef2a5c20ef7160d991674cb9e
2021-08-06 10:58:06 +08:00
Kohsuke Yatoh
08603e695f Initial commit of InputMethodStressTest.
This CL added a simple test of showing and hiding IME for 100 times.

TODOs:
1. Add more complicated flows (such as notification).
2. Check IME visibility in several points (WindowManager dump,
   SurfaceFlinger dump, etc), not just the inset that the app received.

Bug: 195468725
Test: atest InputMethodStressTest
Change-Id: I1959225a7396d17750d799e11c42eb1899fe5bb9
2021-08-05 16:58:13 -07:00
JW Wang
f6785aa31c Remove tests (6/n)
Remove tests that have been migrated to CTS.

Bug: 194971428
Test: m RollbackTest
Change-Id: I923681c69223f10ed4ee2593a1401e96bdcece9c
2021-08-05 14:57:17 +08:00
JW Wang
94d0377b60 Merge "Remove tests (2/n)" 2021-08-03 05:52:43 +00:00
JW Wang
2f582b9d4a Remove tests (2/n)
Remove tests that have been migrated to CTS.

Bug: 194971428
Test: m RollbackTest
Change-Id: Ib880b067b93396e097b3bbe6aca004b524d8833f
2021-08-02 17:21:57 +08:00
Ioana Moraru
007709c3a8 Merge "Add assertions for two activities transition" 2021-07-30 18:05:09 +00:00
Nataniel Borges
de3ab6daab [DO NOT MERGE] Full - Compatibilize winscope with master am: 3dab1eaeec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15403074

Change-Id: If1bc500776c7a411de294e66d220cf29a6302d91
2021-07-30 14:54:34 +00:00
Ioana Moraru
fbab19d794 Add assertions for two activities transition
Start fullscreen activity A, then start another fullscreen activity B in the same task, finish B so there should back to A.

Test: atest FlickerTests:ActivitiesTransitionTest
Bug: 167521780
Change-Id: I82a065f15ad7109c74d3f4c8c5193ed6a4743134
2021-07-30 10:31:56 +00:00
Ioana Moraru
a2c1839bcd Move assertions for non-resizeable application
Move the tests for non-resizeable application from postsubmit to
presubmit

Bug: 167521668
Test: atest FlickerTests:OpenAppNonResizeableTest
Change-Id: If25f813975204772734331ff5ae686eeb1aa9f4c
2021-07-29 10:40:47 +00:00
Ioana Moraru
a9f1d762a1 Merge "Add assertions for non-resizeable application" 2021-07-28 18:54:31 +00:00
Ioana Moraru
014d3f96dc Add assertions for non-resizeable application
Actions:
1. Lock phone
2. Launch app

Assertions:
1. app window not visible start, window appears, app window visible at the end
2. app layer not visible start, app layer appears, app layer visible at the end
3. launcher visible at start, launcher disappears, launcher invisible at the end

Bug: 167521668
Test: atest FlickerTests:OpenAppNonResizeableTest
Change-Id: I36aa6491eebcfa677c0c2a439e8c2aa105377d4e
2021-07-28 16:13:17 +00:00
Nataniel Borges
3dab1eaeec [DO NOT MERGE] Full - Compatibilize winscope with master
Bug: 194813677
Test: none
Change-Id: I88e0e6d5b75ae3511491d6711279b951b3d9c761
2021-07-28 07:23:14 +00:00
Kohsuke Yatoh
406226fd43 Merge "Rename NotoColorEmojiTtf module." 2021-07-27 22:23:49 +00:00
Kohsuke Yatoh
5b1bac7a16 Rename NotoColorEmojiTtf module.
Bug: 191914223
Test: atest UpdatableSystemFontTest
Change-Id: Ic79290beb5d8d24d8835a808de90cb820d774003
2021-07-22 18:58:15 +00:00
Nikita Ioffe
98c6fe9bbc Merge changes from topic "apex-installers-restriction" into sc-dev am: e8b129351c am: 6fc998c833
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15347597

Change-Id: Icc79cedd3910274557f3602b1bc9c6ee1af64a0f
2021-07-22 17:27:03 +00:00
Nikita Ioffe
cc2578c34b Restrict what APEXes different installers can update am: e501fd8379 am: 85af284b2f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15331871

Change-Id: I62b1ad90cd47aee96437de8bf8d36e5ef9cc111d
2021-07-22 17:26:55 +00:00
Nikita Ioffe
9e0f4ac414 Merge changes from topic "apex-installers-restriction" into sc-dev am: e8b129351c am: 476c20cf84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15347597

Change-Id: Ia18fd231d7bba4fb168a4c7e2419ef26b9baa099
2021-07-22 17:22:48 +00:00
Nikita Ioffe
16627833ac Merge changes from topic "apex-installers-restriction" into sc-dev am: e8b129351c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15347597

Change-Id: I744b1572ff539ff8e34c2551e48f0d0efe538a2a
2021-07-22 17:21:23 +00:00
Nikita Ioffe
6cbb784216 Restrict what APEXes different installers can update am: e501fd8379
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15331871

Change-Id: I3548f8a43e237fb3e7ee3d8ccaf303239153f5c1
2021-07-22 17:21:18 +00:00
Nikita Ioffe
6fc998c833 Merge changes from topic "apex-installers-restriction" into sc-dev am: e8b129351c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15347597

Change-Id: I73ec1d4f70afe3ac8f9f25cdeed64b05943b92a3
2021-07-22 16:56:07 +00:00
Nikita Ioffe
85af284b2f Restrict what APEXes different installers can update am: e501fd8379
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15331871

Change-Id: I06443f46326c1a877d7245ba913e0261432db352
2021-07-22 16:56:05 +00:00
Nikita Ioffe
db9892300e Reject non-staged APEX install if there is staged install of same APEX
There is a interesting interaction between staged and non-staged
installs of the same APEX. Let's say an installer staged v1 -> v2 APEX
update, and then does a non-staged update to v3. After device is
rebooted, apexd will apply the staged v1 -> v2 session, silently
downgrading an APEX from v3.

For apks, this problem is solved by storing an expected version. When an
APK session is being applied during boot, Package Manager will check if
the currently installed version is equal to the expected one stored in
the staged session. If they mismatch, an install is failed.
Unfortunately, implementing the same logic in apexd will require a
non-trivial refactoring which is too late to do in S. Instead we are
just going to fail the non-staged installation.

Test: atest StagedInstallInternalTest
Bug: 187864524
Change-Id: I9000f40cede9a324a5059a09deb8eb5be13b21f9
2021-07-22 12:05:41 +01:00
Nikita Ioffe
e501fd8379 Restrict what APEXes different installers can update
* Mainline APEXes can only be updated by a modulesInstaller (an entry
in whitelisted-staged-installer.xml with isModulesInstaller="true")

* The whitelisted-staged-installer.xml file can have only one entry with
isModulesInstaller="true"

* Vendor APEXes can only be updated by an installer defined in the
corresponding entry in vendor-apex-allowlist.xml.

BYPASS_INCLUSIVE_LANGUAGE_REASON=existing occurrences

Test: atest StagedInstallInternalTest
Test: atest GtsStagedInstallHostTestCases
Test: atest CtsRollbackManagerHostTestCases
Test: atest CtsStagedInstallHostTestCases
Bug: 190802380
Change-Id: I729abb5153df079fb6885016a4b41d0acc827e3c
2021-07-21 16:44:42 +01:00
Benedict Wong
801a4cfaf7 Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" am: d92daec786 am: 697971f693 am: 2a1b0ab7cd am: 730d70a7f8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1772025

Change-Id: Ic9a3f83b08568027b39aee1274e6553f9fea9654
2021-07-21 02:31:19 +00:00
Benedict Wong
730d70a7f8 Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" am: d92daec786 am: 697971f693 am: 2a1b0ab7cd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1772025

Change-Id: Id69848c8f94771414b18cab1536d29e0d43aab3d
2021-07-21 02:18:28 +00:00
Benedict Wong
2a1b0ab7cd Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" am: d92daec786 am: 697971f693
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1772025

Change-Id: I3d678a8d3315f884bacfd3052218416604bf3e2c
2021-07-21 02:05:47 +00:00
Benedict Wong
d92daec786 Merge "Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents" 2021-07-21 01:29:25 +00:00
Benedict Wong
8d6f7c7280 Set TRANSPORT_PRIMARY for VCN NetworkOffers and NetworkAgents
This change sets TRANSPORT_PRIMARY for all NetworkScore objects passed
to ConnectivityService by the VCN. Without this patch, a VCN in safe
mode will never get any NetworkRequests, since the new Policy-based
NetworkRanker always prioritizes a existing satisfier of a network,
regardless of score. However, a higher-priority policy check ensures
that a TRANSPORT_PRIMARY request is used if it exists. This changes the
VCN to utilize that functionality.

Bug: 194122634
Test: atest FrameworksVcnTests
Change-Id: I3a298a6c4c594c6e224f3f05764614802c00e9b0
2021-07-21 00:44:19 +00:00
Mohammad Samiul Islam
018d6bcbb6 Merge "Test apexd behaves correctly when not in fs-checkpoint mode" into sc-dev am: b713ec62bb am: 1d508e5822
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302099

Change-Id: If3fc3715d1b336aa8475cc5a73fd52c10ed1c291
2021-07-20 18:16:22 +00:00
Mohammad Samiul Islam
7989a89b56 Merge "Test apexd behaves correctly when not in fs-checkpoint mode" into sc-dev am: b713ec62bb am: 7e0cbf4d28
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302099

Change-Id: I29f6106e32073af86d466a37450ae28c4b09632e
2021-07-20 18:14:34 +00:00
Mohammad Samiul Islam
7e0cbf4d28 Merge "Test apexd behaves correctly when not in fs-checkpoint mode" into sc-dev am: b713ec62bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302099

Change-Id: I25a8ee1135352b2a5ccc201e7652011782a35991
2021-07-20 18:13:52 +00:00
Mohammad Samiul Islam
e807f57d9a Merge "Test apexd behaves correctly when not in fs-checkpoint mode" into sc-dev am: b713ec62bb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15302099

Change-Id: I2edfb53a54d4d784296eb648be8d2cf29b542250
2021-07-20 18:13:47 +00:00
Mohammad Samiul Islam
b713ec62bb Merge "Test apexd behaves correctly when not in fs-checkpoint mode" into sc-dev 2021-07-20 18:02:29 +00:00
Samiul Islam
6d9107a468 Test apexd behaves correctly when not in fs-checkpoint mode
This CL contains two tests:
1) When fs-checkpoint-mode is false, but fs-rollback-mode is true
2) When both modes are false

Bug: 193648282
Test: atest StagedInstallInternalTest
Change-Id: I9c96296343a7f39a65de9e06e8a07d765f832044
2021-07-19 13:54:57 +01:00
Benedict Wong
ff3a9bf309 Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" into sc-dev am: 0df66631c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15316004

Change-Id: I151b67855b705197cb832caa32c91cc746569b56
2021-07-17 03:15:31 +00:00
Benedict Wong
0df66631c0 Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" into sc-dev 2021-07-17 02:52:32 +00:00
Benedict Wong
a5565eb79c Merge "Limit VCNs to one running at a given time" into sc-dev am: dd6c887985
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15315835

Change-Id: I9c5c265402ca7b78cf618c61c0d24576cc89260b
2021-07-16 23:40:34 +00:00
Benedict Wong
d3b1e7028a Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" am: fc9e0c982f am: e98f254f96 am: adcba0ef9c am: 0989938dfa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1768623

Change-Id: If15c97f212dfbcb6504a5005b583dcbde9bcc4f4
2021-07-16 22:46:43 +00:00
Benedict Wong
0989938dfa Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" am: fc9e0c982f am: e98f254f96 am: adcba0ef9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1768623

Change-Id: Ia129cdf9230d7c77379ed5e9c2a25fdaeb6fc513
2021-07-16 22:31:43 +00:00
Benedict Wong
29b3fdd6b6 Ensure VcnGatewayConnection#isQuitting never gets unset after being set
This change ensures that the VcnGatewayConnection can never abort a
quitting command; specifically, if a non-quitting disconnect request is
processed after a quitting disconnect request, the isQuitting value MUST
continue to stay set (as true).

Failure to OR the values results in orphaned VcnGatewayConnection(s),
and the VCN network thrashing.

Additionally reduce verbosity of local logs, to ensure it better
captures failures and logWtf(s)

Bug: 192776413
Test: atest FrameworksVcnTests
Original-Change: https://android-review.googlesource.com/1768623
Merged-In: Iec8dae701838794261957609bae4e270eaa9cdc7
Change-Id: Iec8dae701838794261957609bae4e270eaa9cdc7
2021-07-16 22:30:25 +00:00
Benedict Wong
adcba0ef9c Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" am: fc9e0c982f am: e98f254f96
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1768623

Change-Id: I418557047f10b0224583f9e99770169356f07fa9
2021-07-16 22:16:36 +00:00
Benedict Wong
e53cbf4df3 Limit VCNs to one running at a given time
This change ensures that there is only ever one VCN running at a given
point in time, and that if the device has switched to using a
subscription in a different subscription group, the VCN will immediately
tear down.

This ensures that when on a DSDS device, when the VCN-enabled
subscription is not the default/active subscription, the other
subscription's network will never be outscored by the VCN, and thus get
torn down.

Bug: 190761448
Test: atest FrameworksVcnTests
Test: Manual testing to ensure common functionality
Original-Change: https://android-review.googlesource.com/1767050
Merged-In: I8031fab7502880d38420058451df41f47567c458
Change-Id: I8031fab7502880d38420058451df41f47567c458
2021-07-16 22:03:37 +00:00
Benedict Wong
fc9e0c982f Merge "Ensure VcnGatewayConnection#isQuitting never gets unset after being set" 2021-07-16 21:29:36 +00:00
Benedict Wong
e8c548fd02 Ensure VcnGatewayConnection#isQuitting never gets unset after being set
This change ensures that the VcnGatewayConnection can never abort a
quitting command; specifically, if a non-quitting disconnect request is
processed after a quitting disconnect request, the isQuitting value MUST
continue to stay set (as true).

Failure to OR the values results in orphaned VcnGatewayConnection(s),
and the VCN network thrashing.

Additionally reduce verbosity of local logs, to ensure it better
captures failures and logWtf(s)

Bug: 192776413
Test: atest FrameworksVcnTests
Change-Id: Iec8dae701838794261957609bae4e270eaa9cdc7
2021-07-16 12:10:08 -07:00