summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Makoto Onuki <omakoto@google.com> 2024-09-09 17:31:32 -0700
committer Makoto Onuki <omakoto@google.com> 2024-09-12 13:33:57 -0700
commit55cb426b84c4df46576b1cf62489cc63a8ea8615 (patch)
treec44620b31a5619b1d3cdcd837be1385cb83b3780 /libs/androidfw/StringPool.cpp
parent686b26fe69d2142b9f45888a8613de084f738276 (diff)
Support test / target context, app context
- Instrumentation.getContext() and getTargetContext() now returns different context objects to simulate the real behavior. - Now RavenwoodConfig allows to set "target app package name". - Make sure the resources apk is connected to the correct context. - Unsupported behavior: On the real device, tests can access resouces of both the target APK and the test APK, but Ravenwood currently only supports resouces from the target APK. But this resources is available on the test context as well, if the test package name and the target package name are the same. (which is the default behavior) - Also made some internal clean up -- now RavenwoodRunnerState is just a member of RavenwoodAwareTestRunner. We put a stub class in junit-stub-src. Flag: EXEMPT host test change only Bug: 292141694 Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Change-Id: I3bffb04b227730f21c757f356ae0820cc85963ab
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions