Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 25 of 65) sorted by relevance

123

/build/soong/java/
Ddexpreopt_test.go24 bp string
29 bp: `
39 bp: `
49 bp: `
58 bp: `
67 bp: `
83 bp: `
92 bp: `
101 bp: `
110 bp: `
[all …]
Dtesting.go30 func TestConfig(buildDir string, env map[string]string, bp string, fs map[string][]byte) android.Co…
31 bp += GatherRequiredDepsForTest()
114 config := android.TestArchConfig(buildDir, env, bp, mockFS)
120 var bp string
140 bp += fmt.Sprintf(`
150 bp += `
214 bp += fmt.Sprintf(`
227 return bp
Dapp_test.go46 func testAppConfig(env map[string]string, bp string, fs map[string][]byte) android.Config {
56 return testConfig(env, bp, appFS)
59 func testApp(t *testing.T, bp string) *android.TestContext {
60 config := testAppConfig(nil, bp, nil)
173 bp := `
216 config := testAppConfig(nil, bp, nil)
361 bp string
366 bp: `android_app {
376 bp: `android_app {
386 bp: `android_app {
[all …]
Ddevice_host_converter_test.go25 bp := `
53 ctx, config := testJava(t, bp)
105 bp := `
134 ctx, config := testJava(t, bp)
/build/soong/cmd/extract_apks/
Dmain_test.go24 bp "android/soong/cmd/extract_apks/bundle_proto" packageName
126 screenDpi: map[bp.ScreenDensity_DensityAlias]bool{
127 bp.ScreenDensity_DENSITY_UNSPECIFIED: true,
129 abis: map[bp.Abi_AbiAlias]int{
130 bp.Abi_ARMEABI_V7A: 0,
131 bp.Abi_ARM64_V8A: 1,
148 screenDpi: map[bp.ScreenDensity_DensityAlias]bool{
149 bp.ScreenDensity_LDPI: true,
151 abis: map[bp.Abi_AbiAlias]int{},
165 screenDpi: map[bp.ScreenDensity_DensityAlias]bool{
[all …]
/build/soong/android/
Dmutator.go194 bp blueprint.TopDownMutatorContext member
222 bp blueprint.BottomUpMutatorContext member
232 bp: ctx,
248 bp: ctx,
322 return t.bp.MutatorName()
326 t.bp.Rename(name)
332 module := t.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
352 return b.bp.MutatorName()
356 b.bp.Rename(name)
361 b.bp.AddDependency(module, tag, name...)
[all …]
Dandroidmk_test.go71 bp := `
80 config := TestConfig(buildDir, nil, bp, nil)
107 bp string
111 bp: `
125 bp: `
140 bp: `
157 bp: `
178 bp: `
199 bp: `
252 config := TestConfig(buildDir, nil, testCase.bp, nil)
Dpath_properties_test.go64 bp string
69 bp: `
81 bp: `
100 bp := test.bp + `
118 config := TestArchConfig(buildDir, nil, bp, nil)
Dsoong_config_modules_test.go73 bp := `
102 run := func(t *testing.T, bp string, fs map[string][]byte) {
103 config := TestConfig(buildDir, nil, bp, fs)
135 run(t, configBp+bp, nil)
139 run(t, importBp+bp, map[string][]byte{
Dhooks.go52 bp: ctx,
60 bp blueprint.LoadHookContext member
65 return l.bp.ModuleFactories()
98 module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
118 l.bp.RegisterScopedModuleType(name, factory)
Ddefaults_test.go62 bp := `
81 config := TestConfig(buildDir, nil, bp, nil)
105 bp := `
125 config := TestConfig(buildDir, nil, bp, nil)
Dmutator_test.go62 bp := `
70 config := TestConfig(buildDir, nil, bp, nil)
133 bp := `
139 config := TestConfig(buildDir, nil, bp, nil)
231 bp := `
243 config := TestConfig(buildDir, nil, bp, nil)
Dpaths_test.go956 bp string member
989 "foo/Android.bp": []byte(test.bp),
1032 bp: `
1042 bp: `
1055 bp: `
1065 bp: `
1075 bp: `
1085 bp: `
1095 bp: `
1110 bp: `
[all …]
Dnamespace_test.go175 `dir3/Android.bp:4:4: "b" depends on undefined module "a"
397 …errors.New(`dir1/Android.bp:2:4: module "soong_namespace": namespace a_nonexistent_namespace does …
426 errors.New(`dir1/subdir1/Android.bp:4:4: "b" depends on undefined module "a"
489 errors.New(`dir3/Android.bp:5:4: "c" depends on undefined module "a"
511 errors.New(`dir1/Android.bp:4:4: namespace dir1 already exists`),
532 errors.New(`dir1/Android.bp:5:4: a namespace must be the first module in the file`),
556 errors.New(`dir1/Android.bp:7:4: module "a" already defined
557 dir1/Android.bp:4:4 <-- previous definition here`),
578 errors.New(`include.bp:2:5: A namespace may only be declared in a file named Android.bp`),
/build/soong/sdk/
Dtesting.go32 func testSdkContext(bp string, fs map[string][]byte, extraOsTypes []android.OsType) (*android.TestC…
35 bp = bp + `
66 config := android.TestArchConfig(buildDir, nil, bp, mockFS)
149 func testSdkWithFs(t *testing.T, bp string, fs map[string][]byte) *testSdkResult {
151 ctx, config := testSdkContext(bp, fs, nil)
155 func testSdkError(t *testing.T, pattern, bp string) {
157 ctx, config := testSdkContext(bp, nil, nil)
244 for _, bp := range buildParams {
245 switch bp.Rule.String() {
247 output := bp.Output
[all …]
/build/soong/genrule/
Dgenrule_test.go68 func testConfig(bp string, fs map[string][]byte) android.Config {
69 bp += `
124 return android.TestArchConfig(buildDir, nil, bp, mockFS)
464 bp := "genrule {\n"
465 bp += "name: \"gen\",\n"
466 bp += test.prop
467 bp += "}\n"
469 config := testConfig(bp, nil)
519 bp := `
560 config := testConfig(bp, nil)
[all …]
/build/soong/rust/
Drust_test.go57 func testConfig(bp string) android.Config {
58 bp = bp + GatherRequiredDepsForTest()
71 return android.TestArchConfig(buildDir, nil, bp, fs)
74 func testRust(t *testing.T, bp string) *android.TestContext {
75 return testRustContext(t, bp, false)
78 func testRustCov(t *testing.T, bp string) *android.TestContext {
79 return testRustContext(t, bp, true)
82 func testRustContext(t *testing.T, bp string, coverage bool) *android.TestContext {
89 config := testConfig(bp)
108 func testRustError(t *testing.T, pattern string, bp string) {
[all …]
Dproject_json_test.go27 bp := `rust_library {
40 config := android.TestArchConfig(buildDir, env, bp, fs)
/build/soong/bpf/
Dbpf_test.go51 func testConfig(buildDir string, env map[string]string, bp string) android.Config {
57 return cc.TestConfig(buildDir, android.Android, env, bp, mockFS)
69 bp := `
83 config := testConfig(buildDir, nil, bp)
/build/soong/
DREADME.md4 replaces Android.mk files with Android.bp files, which are JSON-like simple
11 ## Android.bp file format
13 By design, Android.bp files are very simple. There are no conditionals or
15 Go. The syntax and semantics of Android.bp files are intentionally similar
21 A module in an Android.bp file starts with a module type, followed by a set of
34 all Android.bp files.
64 An Android.bp file may contain top-level variable assignments:
77 as any child Android.bp files. Variables are immutable with one exception - they
83 Android.bp files can contain C-style multiline `/* */` and C++ style single-line
133 A package is defined as a directory containing a file named `Android.bp`, residing beneath the
[all …]
Droot.bp1 // Soong finds all Android.bp and Blueprints files in the source tree,
3 // needs a list of the top level directories that may contain Android.bp
/build/soong/apex/
Dvndk_test.go65 bp := `
97 ctx, _ := testApex(t, bp)
110 ctx, _ := testApex(t, bp, func(fs map[string][]byte, config android.Config) {
120 ctx, _ := testApex(t, bp, func(fs map[string][]byte, config android.Config) {
/build/blueprint/proptools/
Dunpack_test.go784 bp := `
791 run(b, props, bp)
804 bp := `
811 run(b, props, bp)
829 bp := `
843 run(b, props, bp)
872 bp := `
881 run(b, props, bp)
900 bp := `
915 run(b, props, bp)
/build/soong/cc/
Dlibrary_test.go193 bp := `
202 config := TestConfig(buildDir, android.Android, nil, bp, nil)
216 bp := `
225 config := TestConfig(buildDir, android.Android, nil, bp, nil)
231 bp := `
241 testCcError(t, `"libfoo" .*: versions: SDK version should be`, bp)
/build/soong/sysprop/
Dsysprop_test.go92 func testConfig(env map[string]string, bp string, fs map[string][]byte) android.Config {
93 bp += cc.GatherRequiredDepsForTest(android.Android)
141 config := java.TestConfig(buildDir, env, bp, mockFS)
151 func test(t *testing.T, bp string) *android.TestContext {
153 config := testConfig(nil, bp, nil)

123