Mark all the public members of the existing internal platform API as
@SystemApi (except for some @TestApi methods).
Update system-current.txt & test-current.txt to match.
Modify the demo app and the test APK and dependencies to build against
system / test SDK (respectively), instead of the implementation JAR /
platform APIs. (We still use platform APIs for the native payload code
though.)
Bug: 243512115
Test: atest MicrodroidTests MicrodroidHostTestCases
Test: Install & run demo app
CTS-Coverage-Bug: 244561836
Change-Id: Ibfffbb221f3ac37e03d5cfdbc9208428eeadbb9f
There are a bunch of variables that are already set in the
framework-module-defaults, so there is no need to duplicate them.
Also disable the JavaApiUsedByMainlineModule check, since we are not an
updatable module we don't need it, and it's quite spammy.
As a side effect of this change our tests & demo apks need to compile
against framework-virtualization.impl library (which includes the hidden
APIs). Once the APIs are promoted to @SystemApi we can change the tests
to compile against framework-virtualization (which contains the API
stubs).
Bug: 243512044
Test: presubmit
Change-Id: Ib614d266f7a9cb8517afccd4feb737068b51fb20
In Android U we are planning to provide privileged @SystemApi's to
manage virtual machines. These APIs will be provided by the
framework-virtualization jar.
This change moves the framework-virtualization jar to be part of
the BCP, which will allow us to use the processes and guidelines setup
for Android APIs.
This change also renames the java_sdk_library to framework-virtualization
to align it with other BCP jars provided by APEX modules.
Bug: 243512044
Test: build on product with AVF support
Test: build on product without AVF support
Test: atest --test-mapping packages/modules/Virtualization:avf-presubmit
Change-Id: Ifb0d04d58bb7e18fe548ab3780a0d753c8baba2d
Vendor code can set a property to tag performance metric names. This can
be useful if devices in the lab have varying performance
characteristics.
Test: atest -p packages/modules/Virtualization:avf-postsubmit
Change-Id: I46478471571639a145079cdc296b9824f1328fc3
This CL renames the device test helper com.android.microdroid.test to
com.android.microdroid.test.device package to eventually have two
separate separate packages for the device test helper and host
test helper.
Test: atest MicrodroidBenchmarks
Change-Id: I748f8ccda2c94d819ce6f2d75745372db807b693
This CL adds MetricsProcessor class to calculate metrics stats
for both device tests and host tests.
Test: atest MicrodroidBenchmarks
Change-Id: I4f742d6800f14c857a5d0e0718e09870e8ca6547
Remove unsafe_ignore_missing_latest_api: true, and instead add
prebuilt_apis with empty baseline api/*.txt files.
Remove platform_apis: true in various places where it does nothing
and/or is unnecessary.
Bug: 242828259
Test: atest MicrodroidHostTestCases
Change-Id: I3e4377a17a106e5ce03e9f39a716ef2c9b8b993e
We skip some tests when running on Cuttlefish, typically because nested
virtualization is too slow and the tests time out, but logic has been
duplicated across multiple test files. Clean things up by adding a new
common host/device helper VirtualizationTestHelper and make both the
MicrodroidHostTestCaseBase and MicrodroidDeviceTestBase share the same
logic.
Test: m MicrodroidTestApp ComposBenchmarkApp MicrodroidHostTestCases
Change-Id: Ibb9d25fc40818ffeb971d366dea409f8ee55ef48