Lines Matching refs:apex
15 package apex
38 ctx.RegisterModuleType("apex", android.ModuleFactoryAdaptor(apexBundleFactory))
47 ctx.BottomUp("apex", apexMutator)
164 "system/sepolicy/apex/myapex-file_contexts": nil,
165 "system/sepolicy/apex/myapex_keytest-file_contexts": nil,
166 "system/sepolicy/apex/otherapex-file_contexts": nil,
182 "myapex-arm64.apex": nil,
183 "myapex-arm.apex": nil,
255 apex {
322 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
324 // Ensure that apex variant is created for the direct dep
327 // Ensure that apex variant is created for the indirect dep
330 // Ensure that both direct and indirect deps are copied into apex
331 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
332 ensureContains(t, copyCmds, "image.apex/lib64/mylib2.so")
366 apex {
401 // Ensure that APEX variant is created for the direct dep
404 // Ensure that APEX variant is created for the indirect dep
407 // Ensure that both direct and indirect deps are copied into apex
414 apex {
468 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
471 ensureNotContains(t, copyCmds, "image.apex/lib64/mylib2.so")
474 ensureContains(t, copyCmds, "image.apex/lib64/mylib3.so")
483 // Ensure that mylib is linking with the non-stub (impl) of mylib3 (because mylib3 is in the same apex)
492 // Ensure that genstub is invoked with --apex
493 ensureContains(t, "--apex", ctx.ModuleForTests("mylib2", "android_arm64_armv8-a_core_static_3_myapex").Rule("genStubSrc").Args["flags"])
498 apex {
542 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
545 ensureNotContains(t, copyCmds, "image.apex/lib64/libfoo.so")
548 ensureNotContains(t, copyCmds, "image.apex/lib64/libbar.so")
565 apex {
636 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
637 ensureContains(t, copyCmds, "image.apex/lib64/bionic/libm.so")
638 ensureContains(t, copyCmds, "image.apex/lib64/bionic/libdl.so")
641 ensureNotContains(t, copyCmds, "image.apex/lib64/bionic/libc.so")
686 apex {
746 apex {
785 // ensure that the apex includes vendor variants of the direct and indirect deps
789 // ensure that the apex does not include core variants
796 apex {
836 apex {
868 // check the APEX keys
890 apex {
896 apex {
916 // non-APEX variant does not have __ANDROID__APEX__ defined
921 // APEX variant has __ANDROID_APEX__=<apexname> defined
926 // APEX variant has __ANDROID_APEX__=<apexname> defined
934 apex {
982 apex {
1006 if apex, ok := module.Module().(*apexBundle); !ok || apex.testApex {
1007 t.Log("Apex was a test apex!")
1011 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
1013 // Ensure that apex variant is created for the direct dep
1016 // Ensure that both direct and indirect deps are copied into apex
1017 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common.so")
1023 t.Log("Found mylib_common not in any apex!")
1057 if apex, ok := module.Module().(*apexBundle); !ok || !apex.testApex {
1058 t.Log("Apex was not a test apex!")
1062 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
1064 // Ensure that apex variant is created for the direct dep
1067 // Ensure that both direct and indirect deps are copied into apex
1068 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common_test.so")
1074 t.Log("Found mylib_common_test in some apex!")
1081 apex {
1141 ensureContains(t, apexRule.Output.String(), "myapex.apex.unsigned")
1143 // Ensure that apex variant is created for the direct dep
1148 // Ensure that both direct and indirect deps are copied into apex
1149 ensureContains(t, copyCmds, "image.apex/lib64/mylib.so")
1150 ensureContains(t, copyCmds, "image.apex/lib64/mylib_common.so")
1151 ensureNotContains(t, copyCmds, "image.apex/lib64/mylib2.so")
1161 apex {
1184 ensureContains(t, copyCmds, "image.apex/bin/script/myscript.sh")
1189 apex {
1211 apex := ctx.ModuleForTests("myapex", "android_common_myapex").Module().(*apexBundle)
1212 expected := "target/product/test_device/product/apex"
1213 actual := apex.installDir.RelPathString()
1258 src: "myapex-arm64.apex",
1261 src: "myapex-arm.apex",
1269 expectedInput := "myapex-arm64.apex"
1279 src: "myapex-arm.apex",
1280 filename: "notmyapex.apex",
1286 expected := "notmyapex.apex"