Commit Graph

11975 Commits

Author SHA1 Message Date
Tianjie Xu
70c9ef04f9 Merge "Report RoR metrics in recovery system" am: b079fe666f am: 7bbf62a939
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1597519

Change-Id: Ia2f2f67c5b0362d2e2de5782e5ed3ebd72902516
2021-03-19 06:44:49 +00:00
Tianjie Xu
b079fe666f Merge "Report RoR metrics in recovery system" 2021-03-19 06:00:46 +00:00
Tianjie
9a8538c819 Report RoR metrics in recovery system
Add metrics reporting for resume on reboot in RecoverySystem.
These metrics are reported before reboot. Details in
http://go/ror-metrics

Bug: 179105110
Test: build
Change-Id: I5a4cb56bd1e6596f41d35259be5be4958f4a20e9
2021-03-18 10:23:40 -07:00
Treehugger Robot
3561e4ace9 Merge "Adding OWNERS to assets of device policy tests" am: 89cbac790c am: bdb4be158c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1622429

Change-Id: Id0d1efba5591fda4bc9e9b9a234fe8ff64ace2e5
2021-03-17 19:33:56 +00:00
Treehugger Robot
89cbac790c Merge "Adding OWNERS to assets of device policy tests" 2021-03-17 17:28:27 +00:00
Janis Danisevskis
5f2b63be5e Merge "Keystore 2.0: Remove hidden Keystore API from locksettings tests." am: 665844b1e2 am: a8781112be
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1638940

Change-Id: I1f0e2a9e01faee759a24f5ee48d43de4b373c44b
2021-03-17 04:21:38 +00:00
Janis Danisevskis
665844b1e2 Merge "Keystore 2.0: Remove hidden Keystore API from locksettings tests." 2021-03-17 03:01:24 +00:00
Christian Wailes
adbdbbf168 Merge "Adds tests for Install Scenarios to DexManagerTests" am: 98432e96b0 am: 719599d844
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1634484

Change-Id: I33b77eb9e3601e2744e4e354d34a743e845bb773
2021-03-16 23:35:50 +00:00
Christian Wailes
98432e96b0 Merge "Adds tests for Install Scenarios to DexManagerTests" 2021-03-16 23:02:39 +00:00
Yan Wang
ed0d068f0c Merge "Rename enum in ArtDexMetadataType with appropriate prefix." am: 59437812ad am: 637ebffc04
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1639439

Change-Id: Ia0335c3e5e391f170a0a9893cf43980c4d268c37
2021-03-16 18:40:03 +00:00
Janis Danisevskis
53ed9207a7 Keystore 2.0: Remove hidden Keystore API from locksettings tests.
Test: N/A
Bug: 171305684
Change-Id: I6fd90c29dd1fb077c25f1bd428fb8adf9782330e
2021-03-15 18:33:46 -07:00
yawanng
5e5f92a829 Rename enum in ArtDexMetadataType with appropriate prefix.
Bug: 177694884
Test: m
Change-Id: I34cac45ab2210b7da4ad897ea3cf3ac9c1537c34
2021-03-16 00:06:23 +00:00
Yan Wang
f30c9c80c8 Merge "Add support to report ART metrics to statsd." am: 2d7f8bcdf4 am: 29d87fc490
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1619941

Change-Id: I58e5d0dc4694e2deacfd1865fe5796c1b3387b4c
2021-03-15 21:59:57 +00:00
yawanng
c936d646bb Add support to report ART metrics to statsd.
It will report dex2oat related metrics (total time, dex bytes and result
code) after each run of dex2oat.

Bug: 177694884
Test: atest ArtStatsLogUtilsTest
Change-Id: Ic167e250a74e29dee0c8dc628d1cc731d778fa26
Merged-In: Ic167e250a74e29dee0c8dc628d1cc731d778fa26
2021-03-15 18:57:35 +00:00
Julia Reynolds
8e7d5e0889 Vibrate as system instead of as an app am: aec7cbecdc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13875192

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9c2f9061c91ffe54e3981535fc64049b58aff194
2021-03-15 16:05:02 +00:00
Julia Reynolds
aec7cbecdc Vibrate as system instead of as an app
When DND is on, apps aren't allowed to play vibrations on
blocked usages. However, we still need to play vibrations for
notifications from those apps that meet DND criteria.

Previously we accomplished this by passing in the bypass
DND flag, however this flag is also being used to bypass camera
audio restrictions, which we don't want.

So now we'll play vibrations as "android", which is always
exception from DND restrictions and isn't exempt from the
camera restriction. In order to maintain debugging from bugreports,
the package name and uid that we're vibrating for are now included
in the vibration reason.

Test: BuzzBeepBlinkTest
Test: trigger notification vibration
Test: trigger notification vibration, DND on, notif allowed
Test: fail to trigger notification vibration, DND on, notif intercepted
Test: fail to trigger notification vibration, camera is recording video
Test: check bugreport output

Bug: 171946151
Change-Id: I8958852403827341480351ee0c60a4fd30f5280d
(cherry picked from commit e13866164b)
Merged-In: e13866164b
2021-03-15 13:20:59 +00:00
Chris Wailes
b7e8adc976 Adds tests for Install Scenarios to DexManagerTests
This CL moves the existing DexManagerTests into the Extended Mockito
directory, mocks out the relevant system services, and tests the
non-default Install Scenarios (as the default scenario is exercised by
the existing tests.)

Bug: 174783329
Test: atest DexManagerTests
Merged-In: Ie446ed748fc0b5690184c3a0a6498b82e8827181
Change-Id: Ie446ed748fc0b5690184c3a0a6498b82e8827181
2021-03-12 15:03:18 -08:00
Andrei-Valentin Onea
3fb101a052 Merge changes Idd7d86f9,I73569744 am: 420476e0cd am: 086acc1ba8
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1532338

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idec178eb39c014c9817db666fd3d5b5a39be52ba
2021-03-12 14:38:40 +00:00
tomnatan
6f83ff6463 Add support for loading a static overrides file located in /product. am: ed60ceba22 am: b470b0d67e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614848

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib4d81116d58c4821b157d9c97fd5ec59af26fc03
2021-03-12 14:38:30 +00:00
tomnatan
b470b0d67e Add support for loading a static overrides file located in /product. am: ed60ceba22
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614848

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3194eee0ac82c6bb3b579ce297437d48cfcc854e
2021-03-12 14:03:45 +00:00
Andrei-Valentin Onea
420476e0cd Merge changes Idd7d86f9,I73569744
* changes:
  Do not enable changes newer than the current sdk
  Add support for loading a static overrides file located in /product.
2021-03-12 13:28:50 +00:00
Tianjie Xu
2184af92df Merge "Extend the metrics for resume on reboot" am: 1c5faf6141 am: f593e71276
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556763

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8dbb655ca1511ab9a194c68171995b93fb95a24c
2021-03-11 22:37:33 +00:00
Kevin Han
a1cb84d03c Merge "Fix local service binding in tests." am: 6d0bf150e3 am: fe54088dcb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1624867

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7767b6abb495a5c3e96cc991b18bbd4647b4ef70
2021-03-11 22:36:33 +00:00
Tianjie Xu
1c5faf6141 Merge "Extend the metrics for resume on reboot" 2021-03-11 22:13:25 +00:00
Kevin Han
6d0bf150e3 Merge "Fix local service binding in tests." 2021-03-11 21:10:43 +00:00
Janis Danisevskis
2a38d13272 Merge "Keystore 2.0: Remove hidden API from RecoverableKeystore" am: 5de808c5e2 am: 8b7ca71fd7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1624871

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I41a1d4c746b1bc390a6060f526b90580d3f2397a
2021-03-11 16:56:41 +00:00
Janis Danisevskis
5de808c5e2 Merge "Keystore 2.0: Remove hidden API from RecoverableKeystore" 2021-03-11 15:50:32 +00:00
Jeff Sharkey
aef16a6c96 Merge "Add OWNERS file to AM test helper app" am: 958a1ab393 am: b59b8b0040
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1627139

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I454c3973a6cd3f5847754240448aaea7f5f74d4b
2021-03-11 02:20:08 +00:00
Jing Ji
46ab35ec5f Add OWNERS file to AM test helper app
Test: N/A
Change-Id: I7eafb4e513a1e7216a05c87c5dbf670a1d3ebc13
2021-03-10 16:08:09 -08:00
Kevin Han
fcc5accda1 Fix local service binding in tests.
AppHibernationServiceTest failed because every set up would instantiate
AppHibernationService which would try to add to the static
LocalServices registry. We now remove any registered local services
before each test.

Also, add @Presubmit label so that these tests actually run in
presubmit.

Bug: 175829330
Test: atest AppHibernationServiceTest
Test: check that test actually runs in presubmit
Change-Id: I5510f7e862d608cacaf12d8a561af7ac74774782
2021-03-10 13:09:26 -08:00
Janis Danisevskis
9b6e38f9a2 Keystore 2.0: Remove hidden API from RecoverableKeystore
Bug: 171305545
Test: N/A
Change-Id: I81061b702d306cadcc26d6b85a60a3240914459e
2021-03-10 09:42:31 -08:00
Andrei Onea
7bf80c14ac Do not enable changes newer than the current sdk
Do not allow enabling compat changes in APEX gated on an sdk version
greater than the current one.

Test: atest OverrideValidatorImplTest
Test: atest PlatformCompatTest
Bug: 175790344
Bug: 179149558
Change-Id: Idd7d86f96a380bfe01940f356d38ad49d3f27678
2021-03-10 13:36:36 +00:00
Tianjie Xu
1c5e5fe444 Merge "Fix ResumeOnRebootServiceProviderTests" am: db8ed62e01 am: aae8912a37
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1623182

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I81d0d2d799150d8bcf66b350b9a52998999b347a
2021-03-09 19:59:36 +00:00
Tianjie Xu
db8ed62e01 Merge "Fix ResumeOnRebootServiceProviderTests" 2021-03-09 19:20:17 +00:00
tomnatan
ed60ceba22 Add support for loading a static overrides file located in /product.
Note that the dynamic overrides file in the /data/misc/appcompat will be
loaded after the static file is loaded and take precedence over it
(overrides in the dynamic file will override corresponding ones in the
static file).

This static file will be used to inject hard coded per app configuration.

Bug: 180396167
Test: atest FrameworksServicesTests:CompatConfigTest
Merged-In: I73569744e718274255885d270ab8285956647f4c
Change-Id: I73569744e718274255885d270ab8285956647f4c
2021-03-09 14:28:08 +00:00
Tianjie
e834205918 Extend the metrics for resume on reboot
We extend the resume on reboot metrics to help analyze the impact of
new RoR features. Detailed atoms added are available in
http://go/ror-metrics. This cl reports part of them in lock settings
service.

Bug: 179105110
Test: out/host/linux-x86/bin/statsd_testdrive 238;
      trigger ror & check the result;
      atest FrameworksServicesTests:RebootEscrowManagerTests
Change-Id: I7e92c78cbd448bb49f941670d0c4489bc28d0886
2021-03-08 17:20:23 -08:00
Tianjie
0ace1bfee1 Fix ResumeOnRebootServiceProviderTests
The mock class doesn't support accessing public fields directly. So
switch the ResolvedInfo and ServiceInfo to fake implementations.

Test: atest FrameworksServicesTests:ResumeOnRebootServiceProviderTests
Change-Id: I05d906123988c46a388e1dee7b7096c5f0271288
2021-03-08 12:56:46 -08:00
Eran Messeri
b80abdda7e Adding OWNERS to assets of device policy tests
Add OWNERS file for the asset directories of various Device Policy
Manager-related tests.

Bug: 181009337
Test: That it compiles.
Change-Id: Idc249492301dbb82f117166c693c4b876ce180f9
2021-03-08 15:03:16 +00:00
Junyu Lai
50a13c982f Merge changes I6512d3f7,I99bca71c am: eccbfe4b72 am: 26d42f094a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614984

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0c3af48a7dee4ff3261310d2a04c8c67f8d3dc22
2021-03-06 05:38:02 +00:00
junyulai
a76fc32242 [FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManager
Test: atest NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I6512d3f704f35f2cc3555dcc40b46c7294d3b455
2021-03-06 08:38:13 +08:00
junyulai
0d72b18349 [FUI24] Use getAllNetworkStateSnapshot in NetworkPolicyManagerService
Currently, in NPMS, getAllNetworkState is used to get all
information of all connected networks. However, this will not
be available after ConnectivityService goes to mainline module.

Thus, replace the usage with new API.

Test: atest NetworkPolicyManagerServiceTest
Bug: 174123988
Change-Id: I99bca71cb3b98f74eab036fac4517ee926eb539c
2021-03-06 08:38:05 +08:00
Treehugger Robot
0d260e60b4 Merge "Update NPMS to listen for all uid procstate changes." am: dfc3abdf72 am: e91f7deefa
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1620663

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5208b7648e99ead1b1329f32f1d9b9774a511c60
2021-03-05 11:56:30 +00:00
Treehugger Robot
dfc3abdf72 Merge "Update NPMS to listen for all uid procstate changes." 2021-03-05 10:23:27 +00:00
Sudheer Shanka
b5127c0713 Update NPMS to listen for all uid procstate changes.
This is a temporary change until we can fix an issue
in AMS internally.

Bug: 177641226
Test: treehugger
Change-Id: I7d04b4116f8ecb7da8c3fb0b9229a8896b836811
Merged-In: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
2021-03-05 06:36:31 +00:00
wilsonshih
90d42f5865 [RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash screen. am: 413456e640 am: 27cc5ded70
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612037

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie3ffaa4fea8a0ab2600db5efec0533f3ff47ce7b
2021-03-05 06:35:49 +00:00
wilsonshih
27cc5ded70 [RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash screen. am: 413456e640
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1612037

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1f38792a5c77161ed5b4ae7661af0443597c5bec
2021-03-05 06:16:07 +00:00
Wei Sheng Shih
cc1e7da83c Merge "[RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash screen." 2021-03-05 05:55:56 +00:00
Tianjie Xu
6a725edd03 Merge "Add a unittest to cover the retry of load escrow data" am: b13ad07770 am: dc579c1960
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1614001

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic070c015b8213e4a134908edfc7f3e77a435955b
2021-03-05 05:10:39 +00:00
Tianjie Xu
b13ad07770 Merge "Add a unittest to cover the retry of load escrow data" 2021-03-04 23:10:57 +00:00
wilsonshih
413456e640 [RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash screen.
Unable to find resource if the application is installed from work
profile, which cause the splash screen window cannot build up normally.

Bug: 179819075
Test: atest ActivityRecordTests
Change-Id: I1bfd48fc32d549feee687c56fe9cdbcae789813f
2021-03-04 09:07:06 +08:00