Distinguish # apex and # systemapi symbols
Previously, the symbol tag `# apex` was treated the same as `# systemapi`. With this CL, they have different meanings. `# systemapi`: APIs that are defined in the platform (the non-updatable part), and are exposed to unbundled system components like APEX `# apex`: APIs that are defined in the APEX and are exposed to the platform or other APEXes Bug: 239274367 Test: m Change-Id: I0484ea349656dbbd337e5fe3a5970f0ad275b807
This commit is contained in:
@@ -949,8 +949,10 @@ func TestApexWithStubs(t *testing.T) {
|
||||
// mylib2Cflags := ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_static").Rule("cc").Args["cFlags"]
|
||||
// ensureNotContains(t, mylib2Cflags, "-include ")
|
||||
|
||||
// Ensure that genstub is invoked with --apex
|
||||
ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_3").Rule("genStubSrc").Args["flags"])
|
||||
// Ensure that genstub for platform-provided lib is invoked with --systemapi
|
||||
ensureContains(t, ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_3").Rule("genStubSrc").Args["flags"], "--systemapi")
|
||||
// Ensure that genstub for apex-provided lib is invoked with --apex
|
||||
ensureContains(t, ctx.ModuleForTests("mylib3", "android_arm64_armv8-a_shared_12").Rule("genStubSrc").Args["flags"], "--apex")
|
||||
|
||||
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
|
||||
"lib64/mylib.so",
|
||||
@@ -1134,8 +1136,8 @@ func TestApexWithStubsWithMinSdkVersion(t *testing.T) {
|
||||
mylib2Cflags := ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_29").Rule("cc").Args["cFlags"]
|
||||
ensureNotContains(t, mylib2Cflags, "-include ")
|
||||
|
||||
// Ensure that genstub is invoked with --apex
|
||||
ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_29").Rule("genStubSrc").Args["flags"])
|
||||
// Ensure that genstub is invoked with --systemapi
|
||||
ensureContains(t, ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_shared_29").Rule("genStubSrc").Args["flags"], "--systemapi")
|
||||
|
||||
ensureExactContents(t, ctx, "myapex", "android_common_myapex_image", []string{
|
||||
"lib64/mylib.so",
|
||||
|
Reference in New Issue
Block a user