/build/make/tools/ |
D | test_post_process_props.py | 70 self.props = PropList("file") 74 self.props = None 77 self.assertEqual(4, len(self.props.get_all_props())) 84 for i,p in enumerate(self.props.get_all_props()): 90 self.assertEqual(set(["foo", "bar", "qux"]), self.props.get_all_names()) 92 self.assertEqual("true", self.props.get_value("foo")) 93 self.assertEqual("false", self.props.get_value("bar")) 94 self.assertEqual("1", self.props.get_value("qux")) 97 self.assertEqual(2, len(self.props.get_props("foo"))) 100 self.props.put("new", "30") [all …]
|
D | post_process_props.py | 124 props = prop_list.get_props(name) 125 optional_props = [p for p in props if p.is_optional()] 126 overriding_props = [p for p in props if not p.is_optional()] 214 self.props = [Prop.from_line(l) 218 return [p for p in self.props if not p.is_comment()] 228 return next((p.value for p in self.props if p.name == name), "") 235 index = next((i for i,p in enumerate(self.props) 238 self.props.append(Prop(name, value, 241 self.props[index].comments.append( 243 self.props[index].value) [all …]
|
/build/soong/cc/ |
D | pgo.go | 78 func (props *PgoProperties) isInstrumentation() bool { 79 return props.Pgo.Instrumentation != nil && *props.Pgo.Instrumentation == true 82 func (props *PgoProperties) isSampling() bool { 83 return props.Pgo.Sampling != nil && *props.Pgo.Sampling == true 86 func (pgo *pgo) props() []interface{} { func 90 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl… 92 if props.ShouldProfileModule { 93 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...) 99 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags { 100 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...) [all …]
|
D | toolchain_library.go | 50 var props []interface{} 51 props = append(props, library.libraryDecorator.linkerProps()...) 52 return append(props, &library.Properties, &library.stripper.StripProperties)
|
D | bp2build.go | 223 for _, props := range module.compiler.compilerProps() { 224 if baseCompilerProps, ok := props.(*BaseCompilerProperties); ok { 245 for arch, props := range module.GetArchProperties(ctx, &BaseCompilerProperties{}) { 246 if baseCompilerProps, ok := props.(*BaseCompilerProperties); ok { 262 for arch, props := range module.GetArchProperties(ctx, &BaseCompilerProperties{}) { 263 if _, ok := props.(*BaseCompilerProperties); ok { 276 for os, props := range module.GetTargetProperties(&BaseCompilerProperties{}) { 277 if baseCompilerProps, ok := props.(*BaseCompilerProperties); ok { 422 for arch, props := range module.GetArchProperties(ctx, &FlagExporterProperties{}) { 423 if flagExporterProperties, ok := props.(*FlagExporterProperties); ok { [all …]
|
D | object.go | 163 for _, props := range m.linker.linkerProps() { 164 if objectLinkerProps, ok := props.(*ObjectLinkerProperties); ok { 171 if props, exists := productVariableProps["Asflags"]; exists { 173 for _, prop := range props { 194 props := bazel.BazelTargetModuleProperties{ 199 ctx.CreateBazelTargetModule(BazelObjectFactory, m.Name(), props, attrs)
|
D | gen.go | 69 outFile android.ModuleGenPath, props *YaccProperties) (headerFiles android.Paths) { 86 if props != nil { 87 flags = props.Flags 89 if Bool(props.Gen_location_hh) { 95 if Bool(props.Gen_position_hh) { 164 func genLex(ctx android.ModuleContext, lexFile android.Path, outFile android.ModuleGenPath, props *… 166 if props != nil { 167 flags = props.Flags
|
/build/soong/java/ |
D | prebuilt_apis.go | 93 props := struct { 100 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, apiver)) 101 props.Jars = append(props.Jars, path) 102 props.Sdk_version = proptools.StringPtr(sdkVersion) 103 props.Installable = proptools.BoolPtr(false) 104 props.Compile_dex = proptools.BoolPtr(compileDex) 106 mctx.CreateModule(ImportFactory, &props) 124 props := struct { 129 props.Name = proptools.StringPtr(name) 130 props.Out = []string{name} [all …]
|
D | sdk_library.go | 1305 props := struct { 1327 &props, 1335 props := struct { 1359 props.Name = proptools.StringPtr(module.stubsLibraryModuleName(apiScope)) 1360 props.Visibility = childModuleVisibility(module.sdkLibraryProperties.Stubs_library_visibility) 1362 props.Srcs = []string{":" + module.stubsSourceModuleName(apiScope)} 1364 props.Sdk_version = proptools.StringPtr(sdkVersion) 1365 props.System_modules = module.deviceProperties.System_modules 1366 props.Patch_module = module.properties.Patch_module 1367 props.Installable = proptools.BoolPtr(false) [all …]
|
D | robolectric.go | 353 module.AddProperties(&module.props) 366 props robolectricRuntimesProperties member 378 if !ctx.Config().AlwaysUsePrebuiltSdks() && r.props.Lib != nil { 379 ctx.AddVariationDependencies(nil, libTag, String(r.props.Lib)) 388 files := android.PathsForModuleSrc(ctx, r.props.Jars) 396 if !ctx.Config().AlwaysUsePrebuiltSdks() && r.props.Lib != nil { 397 runtimeFromSourceModule := ctx.GetDirectDepWithTag(String(r.props.Lib), libTag) 400 ctx.AddMissingDependencies([]string{String(r.props.Lib)}) 402 ctx.PropertyErrorf("lib", "missing dependency %q", String(r.props.Lib))
|
/build/soong/bp2build/ |
D | testing.go | 39 props customProps member 54 module.AddProperties(&module.props) 74 props customProps member 84 m.AddProperties(&m.props) 143 paths := bazel.MakeLabelListAttribute(android.BazelLabelForModuleSrc(ctx, m.props.Arch_paths)) 145 for arch, props := range m.GetArchProperties(ctx, &customProps{}) { 146 if archProps, ok := props.(*customProps); ok && archProps.Arch_paths != nil { 152 String_prop: m.props.String_prop, 153 String_list_prop: m.props.String_list_prop, 157 props := bazel.BazelTargetModuleProperties{ [all …]
|
D | bzl_conversion.go | 175 props := make([]property, 0) 189 props = extractPropertyDescriptionsFromStruct(t) 201 properties: props, 207 func getPropertyDescriptions(props []interface{}) []property { 210 for _, p := range props {
|
/build/blueprint/bootstrap/bpdoc/ |
D | properties.go | 149 func getByName(name string, prefix string, props *[]Property) *Property { 150 for i := range *props { 151 if prefix+(*props)[i].Name == name { 152 return &(*props)[i] 153 } else if strings.HasPrefix(name, prefix+(*props)[i].Name+".") { 154 return getByName(name, prefix+(*props)[i].Name+".", &(*props)[i].Properties) 189 func structProperties(structType *ast.StructType) (props []Property, err error) { 218 props = append(props, Property{ 228 return props, nil 270 func filterPropsByTag(props *[]Property, key, value string, exclude bool) { [all …]
|
D | properties_test.go | 54 func actualProperties(t *testing.T, props []Property) []string { 58 for _, p := range props {
|
/build/soong/android/soongconfig/ |
D | modules.go | 127 props := &ModuleTypeProperties{} 129 _, errs = proptools.UnpackProperties(def.Properties, props) 134 if props.Name == "" { 138 if props.Config_namespace == "" { 142 if props.Module_type == "" { 150 if mt, errs := newModuleType(props); len(errs) > 0 { 153 v.ModuleTypes[props.Name] = mt 209 props := &VariableProperties{} 211 allProps := append([]interface{}{props}, extraProps...) 218 if props.Name == "" { [all …]
|
/build/soong/tradefed/suite_harness/ |
D | tradefed_binary.go | 44 props := &TradefedBinaryProperties{} 46 module.AddProperties(props) 47 android.AddLoadHook(module, tradefedBinaryLoadHook(props)) 73 props := struct { 79 props.Libs = []string{ 87 props.Java_resources = []string{":" + genName} 89 ctx.AppendProperties(&props)
|
/build/soong/android/ |
D | hooks.go | 68 func (l *loadHookContext) AppendProperties(props ...interface{}) { 69 for _, p := range props { 82 func (l *loadHookContext) PrependProperties(props ...interface{}) { 83 for _, p := range props { 96 func (l *loadHookContext) CreateModule(factory ModuleFactory, props ...interface{}) Module { 98 module := l.bp.CreateModule(ModuleFactoryAdaptor(factory), append(inherited, props...)...).(Module)
|
D | path_properties_test.go | 23 props struct { member 52 module.AddProperties(&module.props, &module.props2, &module.props3) 64 if p.props.Foo != "" { 66 if ctx.GetDirectDepWithTag(SrcIsModule(p.props.Foo), sourceOrOutputDepTag("")) == nil {
|
D | path_properties.go | 36 props := ctx.Module().base().generalProperties 37 addPathDepsForProps(ctx, props) 40 func addPathDepsForProps(ctx BottomUpMutatorContext, props []interface{}) { 44 for _, ps := range props {
|
D | soong_config_modules_test.go | 39 props soongConfigTestModuleProperties member 48 m.AddProperties(&m.props) 297 AssertDeepEquals(t, "foo cflags", tc.fooExpectedFlags, foo.props.Cflags) 300 …AssertDeepEquals(t, "foo_with_defaults cflags", tc.fooDefaultsExpectedFlags, fooDefaults.props.Cfl…
|
D | neverallow.go | 385 props []ruleProperty member 433 r.props = append(r.props, ruleProperty{ 483 for _, v := range r.props { 553 includeProps := hasAllProperties(properties, r.props) 592 func hasAnyProperty(properties []interface{}, props []ruleProperty) bool { 593 for _, v := range props { 601 func hasAllProperties(properties []interface{}, props []ruleProperty) bool { 602 for _, v := range props {
|
/build/soong/python/ |
D | defaults.go | 37 func DefaultsFactory(props ...interface{}) android.Module { 40 module.AddProperties(props...)
|
D | binary.go | 75 if props, ok := propIntf.(*BinaryProperties); ok { 77 if props.Main != nil { 78 main = *props.Main 110 props := bazel.BazelTargetModuleProperties{ 115 ctx.CreateBazelTargetModule(BazelPythonBinaryFactory, m.Name(), props, attrs)
|
/build/soong/cmd/soong_build/ |
D | writedocs.go | 64 props := make([]bpdoc.Property, 0) 66 props = append(props, propStruct.Properties...) 68 sort.Slice(props, func(i, j int) bool { 69 if rankI, ok := propertyRank[props[i].Name]; ok { 70 if rankJ, ok := propertyRank[props[j].Name]; ok { 76 if _, ok := propertyRank[props[j].Name]; ok { 79 return props[i].Name < props[j].Name 83 for _, prop := range props {
|
/build/blueprint/proptools/ |
D | unpack_test.go | 1018 run := func(b *testing.B, props []interface{}, input string) { 1040 for _, p := range props { 1058 props := []interface{}{ 1072 run(b, props, bp) 1076 props := []interface{}{ 1092 run(b, props, bp) 1096 props := []interface{}{ 1124 run(b, props, bp) 1128 props := []interface{}{ 1162 run(b, props, bp) [all …]
|