Lines Matching refs:variant

40 	variant := ctx.ModuleForTests("foo", "android_common")
43 if variant.MaybeOutput("dexpreopt/oat/arm64/package.vdex").Rule == nil ||
44 variant.MaybeOutput("dexpreopt/oat/arm64/package.odex").Rule == nil {
49 signedApk := variant.Output("signed/foo.apk")
69 variant := ctx.ModuleForTests("foo", "android_common")
72 if variant.MaybeOutput("dexpreopt/oat/arm64/package.vdex").Rule != nil ||
73 variant.MaybeOutput("dexpreopt/oat/arm64/package.odex").Rule != nil {
90 variant := ctx.ModuleForTests("foo", "android_common")
93 if variant.MaybeOutput("dexpreopt/oat/arm64/package.vdex").Rule == nil ||
94 variant.MaybeOutput("dexpreopt/oat/arm64/package.odex").Rule == nil {
98 if variant.MaybeOutput("signed/foo.apk").Rule != nil {
101 if variant.MaybeOutput("zip-aligned/foo.apk").Rule == nil {
122 variant := ctx.ModuleForTests("foo", "android_common")
124 signedApk := variant.Output("signed/foo.apk")
156 variant := ctx.ModuleForTests("foo", "android_common")
158 signedApk := variant.Output("signed/foo.apk")
179 variant := ctx.ModuleForTests("foo", "android_common")
182 if variant.MaybeOutput("dexpreopt/oat/arm64/package.vdex").Rule == nil ||
183 variant.MaybeOutput("dexpreopt/oat/arm64/package.odex").Rule == nil {
188 signedApk := variant.Output("signed/foo.apk")
263 variant := result.ModuleForTests("foo", "android_common")
264 jniRuleCommand := variant.Output("jnis-uncompressed/foo.apk").RuleParams.Command
306 variant := ctx.ModuleForTests(test.name, "android_common")
307 if variant.MaybeOutput(test.expected).Rule == nil {
308 t.Errorf("can't find output named %q - all outputs: %v", test.expected, variant.AllOutputs())
311 a := variant.Module().(*AndroidAppImport)
390 variant := ctx.ModuleForTests("foo", "android_common")
392 if variant.Module().Enabled() {
397 jniRuleCommand := variant.Output("jnis-uncompressed/foo.apk").RuleParams.Command
424 variant := ctx.ModuleForTests("prebuilt_foo", "android_common")
425 a := variant.Module().(*AndroidAppImport)
545 variant := ctx.ModuleForTests("foo", "android_common")
546 jniRule := variant.Output("jnis-uncompressed/foo.apk").RuleParams.Command
551 variant = ctx.ModuleForTests("foo_presigned", "android_common")
552 jniRule = variant.Output("jnis-uncompressed/foo_presigned.apk").BuildParams.Rule.String()
556 if variant.MaybeOutput("zip-aligned/foo_presigned.apk").Rule == nil {
581 variant := ctx.ModuleForTests(m, "android_common")
582 jniRule := variant.Output("jnis-uncompressed/" + apkName).BuildParams.Rule.String()
588 if variant.MaybeOutput("signed/"+apkName).Rule != nil {
591 if variant.MaybeOutput("zip-aligned/"+apkName).Rule != nil {