Commit Graph

7 Commits

Author SHA1 Message Date
Alan Stokes
be9ec976c5 Separate job service for dynamic code logging.
Decouple logging of dynamic code loading from background DEX
optimisation/reconciliation (BackgroundDexOptService).

Add DynamicCodeLoggingService to run DCL logging daily while idle and
charging.

Update DexLoggerIntegrationTests to use the new job, and to verify
that we now handle unknown class loaders.

Bug: 111336847
Test: atest -p services/core/java/com/android/server/pm/dex
Change-Id: Id688a7eef5976120be12606e726830ce32451a1e
2018-12-13 10:30:02 +00:00
Alan Stokes
eb1b41f8e1 Fix minSdkVersion for test.
P is 28 not 27, and the test requires P.

Test: atest DexLoggerIntegrationTests
Change-Id: Ib83ec92bf5d7e791bac90331b5dcc3c4b826a4fd
2018-09-25 10:28:52 +01:00
Nicolas Geoffray
b0284fb5de Exempt tests for hidden APIs.
Bug: 64382372
Bug: 74963051
Test: m
Change-Id: I5234dd6230f2bdd6ffccbf12b25a02d929d20161
2018-04-06 14:54:39 +01:00
Anton Hansson
ab6ec61251 frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 15:13:23 +00:00
Alan Stokes
55d11f6197 More DexLoggerIntegrationTests tweaks.
Add @LargeTest explicitly.
Change package to ...pm.dex for consistency with other tests
(and because that's where the code being tested lives).

Test: atest DexLoggerIntegrationTests
Bug: 63927552
Change-Id: Id76258292f318b331f19fac01fdbd94ed33e2d2e
2018-01-09 13:39:49 +00:00
Alan Stokes
1e24bf6043 Tidy up DexLoggerIntegrationTests.
Addressing comments from ag/3381420.
I also fixed two lines that were slightly too long.

Bug: 63927552
Test: atest DexLoggerIntegrationTests
Change-Id: I258d0aa2068c76175d30c0be9ba95482d3db9437
2018-01-05 14:36:00 +00:00
Alan Stokes
761d618a13 Add integration test for DexLogger.
Bug: 63927552
Bug: 68703204
Test: atest DexLoggerIntegrationTests
Change-Id: Ib61cf433ef4729c4e4a0539682b5ddbefdb65575
2018-01-03 11:21:45 +00:00