To enable experimental API, use ``` export RAVENWOOD_ENABLE_EXP_API=1 # enable experimental api for all tests. ``` or ``` export RAVENWOOD_ENABLE_EXP_API_TestModuleName=1 ``` Also rename the env flag to enable sysprop reads to `RAVENWOOD_ALLOW_ANY_SYSPROP_READ` with support of per-module flag, like `RAVENWOOD_ALLOW_ANY_SYSPROP_READ_TestModuleName=1`. Bug: 292141694 Flag: TEST_ONLY Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh -s Change-Id: I7ac83640d4cfce78ace9fc407eb57a50e370d777
21 lines
613 B
Plaintext
21 lines
613 B
Plaintext
# File containing standard options to HostStubGen for Ravenwood
|
|
|
|
# --debug # To enable debug log on console
|
|
|
|
# Keep all classes / methods / fields, but make the methods throw.
|
|
--default-throw
|
|
|
|
--delete-finals
|
|
|
|
--experimental-method-call-hook
|
|
android.platform.test.ravenwood.RavenwoodExperimentalApiChecker.onExperimentalApiCalled
|
|
|
|
# Uncomment below lines to enable each feature.
|
|
|
|
# Enable method call hook.
|
|
#--default-method-call-hook
|
|
# android.platform.test.ravenwood.RavenwoodMethodCallLogger.logMethodCall
|
|
|
|
#--default-class-load-hook
|
|
# com.android.hoststubgen.hosthelper.HostTestUtils.logClassLoaded
|