diff options
| author | 2024-09-01 00:47:03 +0000 | |
|---|---|---|
| committer | 2024-09-03 22:27:49 +0000 | |
| commit | 98c92c153d58860715fa49a9799e95cbd48fd0ec (patch) | |
| tree | f68188cfc1c820d6fb25556c3112f409438ff7e2 /libs/androidfw/AssetManager.cpp | |
| parent | ed2255abaaba08dca00285d6837b8a95a163fac9 (diff) | |
[HostStubGen] Allow method policy to override native substitution
A policy explicitly set on the method should override the class-level
native substitution setting. In order to do so, we introduce a new
method-level "NativeSubstitution" policy that can only be propagated
from a class-wide level, which makes it possible to override it in outer
filter levels (e.g. text policy + annotation policy).
We also update BodyReplacingMethodVisitor to support writing code into
methods without a body, so that all body replacing policies can be used
on any method.
Bug: 292141694
Flag: EXEMPT host test change only
Test: atest hoststubgen-test-tiny-test
Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh
Change-Id: I75c016b96bf52e97dc0e685419abad23650e958b
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
0 files changed, 0 insertions, 0 deletions