Lines Matching refs:variant
40 variant := ctx.ModuleForTests("foo", "android_common")
43 if variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.vdex").Rule == nil ||
44 variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.odex").Rule == nil {
49 signedApk := variant.Output("signed/foo.apk")
55 rule := variant.Rule("genProvenanceMetaData")
74 variant := ctx.ModuleForTests("foo", "android_common")
77 if variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.vdex").Rule != nil ||
78 variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.odex").Rule != nil {
82 rule := variant.Rule("genProvenanceMetaData")
101 variant := ctx.ModuleForTests("foo", "android_common")
104 if variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.vdex").Rule == nil ||
105 variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.odex").Rule == nil {
109 if variant.MaybeOutput("signed/foo.apk").Rule != nil {
112 if variant.MaybeOutput("zip-aligned/foo.apk").Rule == nil {
116 rule := variant.Rule("genProvenanceMetaData")
140 variant := ctx.ModuleForTests("foo", "android_common")
142 signedApk := variant.Output("signed/foo.apk")
159 rule := variant.Rule("genProvenanceMetaData")
181 variant := ctx.ModuleForTests("foo", "android_common")
183 signedApk := variant.Output("signed/foo.apk")
191 rule := variant.Rule("genProvenanceMetaData")
210 variant := ctx.ModuleForTests("foo", "android_common")
213 if variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.vdex").Rule == nil ||
214 variant.MaybeOutput("dexpreopt/foo/oat/arm64/package.odex").Rule == nil {
219 signedApk := variant.Output("signed/foo.apk")
226 rule := variant.Rule("genProvenanceMetaData")
305 variant := result.ModuleForTests("foo", "android_common")
306 input := variant.Output("jnis-uncompressed/foo.apk").Input.String()
311 provenanceMetaDataRule := variant.Rule("genProvenanceMetaData")
359 variant := ctx.ModuleForTests(test.name, "android_common")
360 if variant.MaybeOutput(test.expected).Rule == nil {
361 t.Errorf("can't find output named %q - all outputs: %v", test.expected, variant.AllOutputs())
364 a := variant.Module().(*AndroidAppImport)
374 rule := variant.Rule("genProvenanceMetaData")
510 variant := ctx.ModuleForTests("foo", "android_common")
512 if variant.Module().Enabled(android.PanickingConfigAndErrorContext(ctx)) {
515 rule := variant.MaybeRule("genProvenanceMetaData")
519 input := variant.Output("jnis-uncompressed/foo.apk").Input.String()
523 rule := variant.Rule("genProvenanceMetaData")
587 variant := ctx.ModuleForTests("foo", "android_common")
589 if variant.Module().Enabled(android.PanickingConfigAndErrorContext(ctx)) {
592 rule := variant.MaybeRule("genProvenanceMetaData")
596 input := variant.Output("jnis-uncompressed/foo.apk").Input.String()
600 rule := variant.Rule("genProvenanceMetaData")
625 variant := ctx.ModuleForTests("prebuilt_foo", "android_common")
626 a := variant.Module().(*AndroidAppImport)
737 variant := ctx.ModuleForTests("foo", "android_common")
738 jniRule := variant.Output("jnis-uncompressed/foo.apk").BuildParams.Rule.String()
743 variant = ctx.ModuleForTests("foo_presigned", "android_common")
744 jniRule = variant.Output("jnis-uncompressed/foo_presigned.apk").BuildParams.Rule.String()
748 if variant.MaybeOutput("zip-aligned/foo_presigned.apk").Rule == nil {
764 variant := ctx.ModuleForTests("foo", "android_common")
765 jniRule := variant.Output("jnis-uncompressed/" + apkName).BuildParams.Rule.String()
771 if variant.MaybeOutput("signed/"+apkName).Rule != nil {
774 if variant.MaybeOutput("zip-aligned/"+apkName).Rule != nil {
790 variant := ctx.ModuleForTests("foo", "android_common")
791 outputBuildParams := variant.Output(apkName).BuildParams
801 validationBuildParams := variant.Output("validated-prebuilt/check.stamp").BuildParams