Lines Matching refs:ctx
134 ctx := android.NewTestArchContext()
135 cc.RegisterRequiredBuildComponentsForTest(ctx)
136 ctx.RegisterModuleType("aidl_interface", aidlInterfaceFactory)
137 ctx.RegisterModuleType("aidl_interfaces_metadata", aidlInterfacesMetadataSingletonFactory)
138 ctx.RegisterModuleType("android_app", java.AndroidAppFactory)
139 ctx.RegisterModuleType("java_defaults", func() android.Module {
142 ctx.RegisterModuleType("java_library_static", java.LibraryStaticFactory)
143 ctx.RegisterModuleType("java_library", java.LibraryFactory)
144 ctx.RegisterModuleType("java_system_modules", java.SystemModulesFactory)
146 ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators)
147 ctx.PostDepsMutators(android.RegisterOverridePostDepsMutators)
148 ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
149 ctx.BottomUp("checkUnstableModule", checkUnstableModuleMutator).Parallel()
150 ctx.BottomUp("checkDuplicatedVersions", checkDuplicatedVersions).Parallel()
152 ctx.Register(config)
154 return ctx, config
159 ctx, config := _testAidl(t, bp, customizers...)
160 _, errs := ctx.ParseFileList(".", []string{"Android.bp"})
162 _, errs = ctx.PrepareBuildActions(config)
164 return ctx, config
169 ctx, config := _testAidl(t, bp, customizers...)
170 _, errs := ctx.ParseFileList(".", []string{"Android.bp"})
175 _, errs = ctx.PrepareBuildActions(config)
184 func assertModulesExists(t *testing.T, ctx *android.TestContext, names ...string) {
187 variants := ctx.ModuleVariantsForTests(name)
195 ctx.VisitAllModules(func(m blueprint.Module) {
196 allModuleNames[ctx.ModuleName(m)] = true
215 ctx, _ := testAidl(t, vintfWithoutVersionBp)
216 assertModulesExists(t, ctx, "foo-java", "foo-cpp", "foo-ndk", "foo-ndk_platform")
332 ctx, _ := testAidl(t, `
342 assertModulesExists(t, ctx, "foo-java", "foo-cpp", "foo-ndk", "foo-ndk_platform")
346 ctx, _ := testAidl(t, `
355 assertModulesExists(t, ctx, "foo-java", "foo-cpp", "foo-ndk", "foo-ndk_platform")
372 ctx, _ := testAidl(t, `
387 assertModulesExists(t, ctx, "foo-java", "foo-cpp", "foo-ndk", "foo-ndk_platform")
391 assertModulesExists(t, ctx, "foo-V1-java")
394 …assertModulesExists(t, ctx, "foo-unstable-java", "foo-unstable-cpp", "foo-unstable-ndk", "foo-unst…
403 var ctx *android.TestContext
406 producer, ok := ctx.ModuleForTests(moduleName, variant).Module().(android.OutputFileProducer)
420 ctx, _ = testAidl(t, `
433 ctx, _ = testAidl(t, `
554 ctx, _ := testAidl(t, `
572 ldRule := ctx.ModuleForTests("foo-cpp", nativeVariant).Rule("ld")