summaryrefslogtreecommitdiff
path: root/services/tests
AgeCommit message (Collapse)Author
2021-03-23Merge "Adds OWNERS for `servicestests/utils-mockito`"Rhed Jao
2021-03-23Merge changes Ieeb0ebef,I1f33a8c6,I07168a7bTianjie Xu
* changes: Add a specific error code for keystore failure Add a specific error code for provider mismatches Report the true value of more RoR metrics
2021-03-23Add OWNERS file for content tests.Varun Shah
Bug: n/a Test: n/a Change-Id: Ic346a36bb15498cf0a60b91c378b1f5cad198f64
2021-03-23Merge "Move disk reads to background"Rajeev Kumar
2021-03-22Add a specific error code for provider mismatchesTianjie
If the device used HAL based RoR to arm the escrow key, the recovery will fail if we switch to server based RoR after reboot. Set a specific error for metrics purpose. Bug: 183140900 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: I1f33a8c6cf111d868a2b96a155f5a0926a7c788a
2021-03-22Report the true value of more RoR metricsTianjie
Design ErrorCode for errors of loadRebootEscrowData. Also report the status of vbmeta digest, as we plan to associate k_k with vbmeta in the future. Bug: 179105110 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: I07168a7bc4fd20d41df9b87136e1e5158129d7f6
2021-03-22Merge "Report more metrics in RecoverySystem"Tianjie Xu
2021-03-22Adds OWNERS for `servicestests/utils-mockito`Rhed Jao
Bug: 166181423 Test: NA Change-Id: I0d80b5547e162524246947175dbe6f9e52859fe4
2021-03-20Merge changes from topic "app_hibernation_permission"Kevin Han
* changes: Add API to get hibernating packages Add MANAGE_APP_HIBERNATION permission
2021-03-19Report more metrics in RecoverySystemTianjie
Use shared preferences in recovery system service. So it be used for metrics storage and report RoR metrics. Bug: 179105110 Test: atest FrameworksServicesTests:RecoverySystemServiceTest; check the value of prefs Change-Id: Id09545824713ab124882f2f2add67e7f93cb43ca
2021-03-19Merge "Update OWNERS file"Christian Wailes
2021-03-19Move disk reads to backgroundKevin Han
Move disk reading to background to improve performance on user unlocking. Bug: 182098676 Test: atest AppHibernationServiceTest Change-Id: I087bd9d29f4f90c818a03648ee75e3cbfb2ded41
2021-03-19Add API to get hibernating packagesKevin Han
Add API to AppHibernationService to get hibernating packages so Settings can access this information. Bug: 175829330 Test: atest AppHibernationServiceTest Change-Id: Icd186807c19ece55a21fc4d240d2f0132951af82
2021-03-19Merge "Remove the reading of APK file."Yan Wang
2021-03-19Merge "Report RoR metrics in recovery system"Tianjie Xu
2021-03-18Remove the reading of APK file.yawanng
Dex file size is etract from APK file. It seems to consume MBs memory. Report this metrics from dex2oat instead of in PackageManager. Bug: 182997960 Test: m Change-Id: I09144dde48ed73de88e8d7bcc6078f88fc993b05
2021-03-18Report RoR metrics in recovery systemTianjie
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-17Update OWNERS fileChris Wailes
This CL updates an OWNERS file to use an include directive instead of an explicit list of owners. Test: None Change-Id: Ibea5a370c43f7b6d9d56275507cb9fb5e226da2a
2021-03-17Merge "Adding OWNERS to assets of device policy tests"Treehugger Robot
2021-03-17Merge "Keystore 2.0: Remove hidden Keystore API from locksettings tests."Janis Danisevskis
2021-03-16Merge "Adds tests for Install Scenarios to DexManagerTests"Christian Wailes
2021-03-15Keystore 2.0: Remove hidden Keystore API from locksettings tests.Janis Danisevskis
Test: N/A Bug: 171305684 Change-Id: I6fd90c29dd1fb077c25f1bd428fb8adf9782330e
2021-03-16Rename enum in ArtDexMetadataType with appropriate prefix.yawanng
Bug: 177694884 Test: m Change-Id: I34cac45ab2210b7da4ad897ea3cf3ac9c1537c34
2021-03-15Add support to report ART metrics to statsd.yawanng
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-12Adds tests for Install Scenarios to DexManagerTestsChris Wailes
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-12Merge changes Idd7d86f9,I73569744Andrei-Valentin Onea
* changes: Do not enable changes newer than the current sdk Add support for loading a static overrides file located in /product.
2021-03-11Merge "Extend the metrics for resume on reboot"Tianjie Xu
2021-03-11Merge "Fix local service binding in tests."Kevin Han
2021-03-11Merge "Keystore 2.0: Remove hidden API from RecoverableKeystore"Janis Danisevskis
2021-03-10Add OWNERS file to AM test helper appJing Ji
Test: N/A Change-Id: I7eafb4e513a1e7216a05c87c5dbf670a1d3ebc13
2021-03-10Fix local service binding in tests.Kevin Han
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-10Keystore 2.0: Remove hidden API from RecoverableKeystoreJanis Danisevskis
Bug: 171305545 Test: N/A Change-Id: I81061b702d306cadcc26d6b85a60a3240914459e
2021-03-10Do not enable changes newer than the current sdkAndrei Onea
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-09Merge "Fix ResumeOnRebootServiceProviderTests"Tianjie Xu
2021-03-09Add support for loading a static overrides file located in /product.tomnatan
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-08Extend the metrics for resume on rebootTianjie
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-08Fix ResumeOnRebootServiceProviderTestsTianjie
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-08Adding OWNERS to assets of device policy testsEran Messeri
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-06[FUI25] Migrate NetworkPolicyManagerService to use ConnectivityManagerjunyulai
Test: atest NetworkPolicyManagerServiceTest Bug: 174123988 Change-Id: I6512d3f704f35f2cc3555dcc40b46c7294d3b455
2021-03-06[FUI24] Use getAllNetworkStateSnapshot in NetworkPolicyManagerServicejunyulai
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-05Merge "Update NPMS to listen for all uid procstate changes."Treehugger Robot
2021-03-05Update NPMS to listen for all uid procstate changes.Sudheer Shanka
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-05Merge "[RESTRICT AUTOMERGE]Fix launching app from work profile cannot show ↵Wei Sheng Shih
splash screen."
2021-03-04Merge "Add a unittest to cover the retry of load escrow data"Tianjie Xu
2021-03-04[RESTRICT AUTOMERGE]Fix launching app from work profile cannot show splash ↵wilsonshih
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-02Add a unittest to cover the retry of load escrow dataTianjie
The load escrow data is async. Add a unit test to cover the retry of temporarily failure. Bug: 172780686 Test: atest FrameworksServicesTests:RebootEscrowManagerTests Change-Id: I63b264a5f9b68039868fcf962f4654c8d587985d
2021-03-02Merge "[FUI17] Migrate NetworkStatsService to use NetworkStateSnapshot" am: ↵Treehugger Robot
60faefffe9 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1556553 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I2b19538843007e38e170163120f38477e4b76be8
2021-03-02[FUI17] Migrate NetworkStatsService to use NetworkStateSnapshotjunyulai
This change migrates NetworkStatsService and related code to use NetworkStateSnapshot which is used for replacing the NetworkState. This patch also changes some formating which is suggested by the linter. Test: FrameworksNetTests NetworkPolicyManagerServiceTest Bug: 174123988 Change-Id: I547da8f411cb45bdadc376ac3cadf3f3c55bb282
2021-03-01Merge RQ2A.210305.007 into stage.Xin Li
Bug: 180401296 Merged-In: I1a16808426934f4a8d12410576d769443e4c2a04 Change-Id: I247a99c33c62cd1d000b7e50d1dda8b14df229d7
2021-02-26Merge "Migrate recoverablekeystore to KeyStore V2." am: dbf8a7c1bdDmitry Dementyev
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1603470 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I7f96343c65df7accaae3fb5032771dbcd05191f5