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
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
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
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
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
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
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
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
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
Add OWNERS file for the asset directories of various Device Policy
Manager-related tests.
Bug: 181009337
Test: That it compiles.
Change-Id: Idc249492301dbb82f117166c693c4b876ce180f9
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
This is a temporary change until we can fix an issue
in AMS internally.
Bug: 177641226
Test: treehugger
Change-Id: I7d04b4116f8ecb7da8c3fb0b9229a8896b836811
Merged-In: I888764ff22fba92fe2cccf3d8442ed318a19ad2a
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