/build/soong/android/ |
D | onceper.go | 28 func (once *OncePer) maybeWaitFor(key OnceKey, value interface{}) interface{} { 29 if wait, isWaiter := value.(onceValueWaiter); isWaiter { 33 value, _ = once.values.Load(key) 34 if _, isWaiter := value.(onceValueWaiter); isWaiter { 39 return value 45 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} { 66 v = value() 83 func (once *OncePer) OnceStringSlice(key OnceKey, value func() []string) []string { 84 return once.Once(key, func() interface{} { return value() }).([]string) 88 func (once *OncePer) Once2StringSlice(key OnceKey, value func() ([]string, []string)) ([]string, []… [all …]
|
D | neverallow.go | 270 func (m *equalMatcher) Test(value string) bool { 271 return m.expected == value 281 func (m *anyMatcher) Test(value string) bool { 295 func (m *startsWithMatcher) Test(value string) bool { 296 return strings.HasPrefix(value, m.prefix) 307 func (m *regexMatcher) Test(value string) bool { 308 return m.re.MatchString(value) 319 func (m *notInListMatcher) Test(value string) bool { 320 return !InList(value, m.allowed) 329 func (m *isSetMatcher) Test(value string) bool { [all …]
|
/build/soong/cmd/extract_apks/ |
D | main_test.go | 46 value { min { value: 29 } } } } 53 value { density_alias: LDPI } } 55 value { min { value: 21 } } } } 61 value { density_alias: MDPI } } 63 value { min { value: 21 } } } } 69 value { min { value: 21 } } } } 75 value { alias: ARMEABI_V7A } 80 value { min { value: 21 } } } } 86 value { alias: ARM64_V8A } 91 value { min { value: 21 } } } } [all …]
|
/build/soong/ui/build/ |
D | environment.go | 74 func (e *Environment) Set(key, value string) { 76 *e = append(*e, key+"="+value) 133 if value, ok := e.Get(key); ok { 134 return value == "1" || value == "y" || value == "yes" || value == "on" || value == "true" 141 if value, ok := e.Get(key); ok { 142 return value == "0" || value == "n" || value == "no" || value == "off" || value == "false" 187 key, value, ok := decodeKeyValue(cmd[1]) 196 value, ok = singleUnquote(value) 202 e.Set(key, value)
|
/build/soong/bp2build/ |
D | configurability.go | 15 value := reflect.ValueOf(list.Value) 17 return value, nil, nil 30 return value, archSelects, osSelects 34 var value reflect.Value 43 value = reflect.ValueOf(label.Value) 46 return value, archSelects, nil 50 value := reflect.ValueOf(list.Value.Includes) 52 return value, nil, nil 65 return value, archSelects, osSelects 71 var value reflect.Value [all …]
|
D | androidbp_to_build_templates.go | 81 def _is_supported_type(value): 82 if type(value) in _SUPPORTED_TYPES: 84 elif type(value) == "list": 86 for v in value: 109 for key, value in kwargs.items(): 110 if _is_supported_type(value): 111 supported_kwargs[key] = value
|
/build/soong/sdk/ |
D | bp.go | 41 func convertToPropertySet(value reflect.Value) *bpPropertySet { 43 structType := value.Type() 47 fieldVal := value.Field(i) 71 func coercePropertyValue(value interface{}) interface{} { 72 val := reflect.ValueOf(value) 77 panic(fmt.Sprintf("Value is a struct, not a pointer to one: %v", value)) 79 if _, ok := value.(*bpPropertySet); !ok { 82 panic(fmt.Sprintf("A pointer must be to a struct, got: %v", value)) 87 return value 101 func (s *bpPropertySet) AddProperty(name string, value interface{}) { [all …]
|
/build/blueprint/proptools/ |
D | tag.go | 24 func HasTag(field reflect.StructField, name, value string) bool { 30 return tag == value 32 if tag[:idx] == value { 44 func PropertyIndexesWithTag(ps interface{}, key, value string) [][]int { 51 return propertyIndexesWithTag(t, key, value) 53 func propertyIndexesWithTag(t reflect.Type, key, value string) [][]int { 63 subIndexes := propertyIndexesWithTag(ft, key, value) 68 } else if HasTag(field, key, value) {
|
D | unpack.go | 326 value := reflect.MakeSlice(sliceType, 0, len(exprs)) 328 return value, true 336 value, err := propertyToValue(t, property) 339 return value, false 341 return value, true 375 value = reflect.Append(value, ptrValue) 379 value = reflect.Append(value, itemValue) 383 return value, true 388 var value reflect.Value 401 return value, &UnpackError{ [all …]
|
/build/soong/linkerconfig/ |
D | linkerconfig_test.go | 57 if value, ok := entries.EntryMap[k]; ok { 58 if !reflect.DeepEqual(value, expectedValue) { 59 t.Errorf("Value of %s is '%s', but expected as '%s'", k, value, expectedValue) 66 if value, ok := entries.EntryMap["LOCAL_UNINSTALLABLE_MODULE"]; ok { 67 t.Errorf("Value of LOCAL_UNINSTALLABLE_MODULE is %s, but expected as empty", value) 84 if value, ok := entries.EntryMap["LOCAL_UNINSTALLABLE_MODULE"]; ok { 85 if !reflect.DeepEqual(value, expected) { 86 t.Errorf("LOCAL_UNINSTALLABLE_MODULE is expected to be true but %s", value)
|
/build/make/tools/ |
D | post_process_props.py | 99 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."): 103 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value))) 129 if all(overriding_props[0].value == p.value for p in overriding_props): 160 def __init__(self, name, value, optional=False, comment=None): argument 162 self.value = value.strip() 175 name, value = line.split("?=", 1) 176 return Prop(name, value, optional=True) 178 name, value = line.split("=", 1) 179 return Prop(name, value, optional=False) 197 self.value = "" [all …]
|
/build/blueprint/ |
D | ninja_defs.go | 159 value, err := parseNinjaString(scope, params.Command) 163 r.Variables["command"] = value 166 value, err = parseNinjaString(scope, params.Depfile) 170 r.Variables["depfile"] = value 178 value, err = parseNinjaString(scope, params.Description) 182 r.Variables["description"] = value 194 value, err = parseNinjaString(scope, params.Rspfile) 198 r.Variables["rspfile"] = value 202 value, err = parseNinjaString(scope, params.RspfileContent) 207 r.Variables["rspfile_content"] = value [all …]
|
D | live_tracker.go | 76 for _, value := range def.Variables { 77 err = l.addNinjaStringDeps(value) 83 for _, value := range def.Args { 84 err = l.addNinjaStringDeps(value) 122 for _, value := range def.Variables { 123 err = l.addNinjaStringDeps(value) 156 value, err := v.value(l.config) 167 l.variables[v] = value 169 err = l.addNinjaStringDeps(value)
|
/build/soong/cc/ |
D | api_level.go | 44 value, err := android.ApiLevelFromUser(ctx, raw) 49 if value.LessThan(min) { 53 return value, nil 58 value, err := nativeApiLevelFromUser(ctx, raw) 62 return value
|
/build/bazel/bazel_skylib/rules/ |
D | common_settings.bzl | 16 These rules return a BuildSettingInfo with the value of the build setting. 23 doc = "A singleton provider that contains the raw value of a build setting", 25 "value": "The value of the build setting in the current configuration. " + 26 "This value may come from the command line or an upstream transition, " + 32 return BuildSettingInfo(value = ctx.build_setting_value) 72 value = ctx.build_setting_value 73 if len(allowed_values) == 0 or value in ctx.attr.values: 74 return BuildSettingInfo(value = value) 76 …fail("Error setting " + str(ctx.label) + ": invalid value '" + value + "'. Allowed values are " + … 83 …c = "The list of allowed values for this setting. An error is raised if any other value is given.", [all …]
|
/build/make/tools/releasetools/ |
D | check_partition_sizes.py | 45 def __init__(self, desc, expr, value=None): argument 51 self.value = int(expr) if value is None else value 54 format_args = (self.desc, other.desc, self.expr, self.value, 55 other.expr, other.value) 56 if self.value <= other.value: 67 format_args = (self.desc, other.desc, self.expr, self.value, 68 other.expr, other.value) 69 if self.value < other.value: 81 format_args = (self.desc, other.desc, self.expr, self.value, 82 other.expr, other.value) [all …]
|
/build/blueprint/parser/ |
D | parser.go | 214 value := p.parseExpression() 218 assignment.Value = value 219 assignment.OrigValue = value 320 value := p.parseExpression() 324 property.Value = value 330 func (p *parser) parseExpression() (value Expression) { 331 value = p.parseValue() 334 return p.parseOperator(value) 337 return value 339 return value [all …]
|
/build/make/tools/warn/ |
D | severity.py | 26 def __init__(self, value, color, column_header, header): argument 27 self.value = value 60 levels = sorted(levels, key=lambda severity: severity.value)
|
D | html_writer.py | 147 warnings = {p: {s.value: 0 for s in Severity.levels} for p in project_names} 149 value = pattern['severity'].value 151 warnings[project][value] += pattern['projects'][project] 158 p: sum(warnings[p][s.value] for s in Severity.levels) 166 s.value: sum(warnings[p][s.value] for p in project_names) 176 if total_by_severity[severity.value]: 206 if total_by_severity[severity.value]: 207 one_row.append(warnings[p_name][severity.value]) 229 if total_by_severity[severity.value]: 230 one_row.append(total_by_severity[severity.value]) [all …]
|
/build/soong/scripts/ |
D | manifest_fixer.py | 107 min_attr.value = min_sdk_version 110 if compare_version_gt(min_sdk_version, min_attr.value): 111 min_attr.value = min_sdk_version 124 target_attr.value = '16' 126 target_attr.value = target_sdk_version 250 attr.value = 'true' 270 attr.value = 'true' 272 elif attr.value != 'true': 289 value = str(extract_native_libs).lower() 293 attr.value = value [all …]
|
D | manifest.py | 36 attr_name, value): argument 39 if attr is not None and attr.value == value: 61 attr.value = android_ns 63 elif ns.value != android_ns: 65 ns.value)
|
/build/bazel/json_module_graph/ |
D | distanceFromLeaves.jq | 12 map({key: .Name, value: .Deps}) | from_entries 21 map(.key as $key | {key: .key, value: .value | [.[] | select(. != $key)]}) | 30 value: ( 41 map({key: ., value: -1}) | from_entries |
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | MakeWriter.java | 86 final Str value = values.get(0); in writeAssign() local 87 out.print(varName + " := " + value); in writeAssign() 88 pos = value.getPosition(); in writeAssign() 91 final Str value = values.get(1); in writeAssign() local 92 out.print(varName + " += " + value); in writeAssign() 93 pos = value.getPosition(); in writeAssign() 145 final Value value = entry.getValue(); in writeFlat() local 146 if (value.getVarType() == VarType.LIST) { in writeFlat() 147 final List<Str> list = value.getList(); in writeFlat() 156 out.print(value.getStr().toString()); in writeFlat()
|
/build/soong/androidmk/parser/ |
D | parser.go | 247 value := SimpleMakeString("", p.pos()) 253 value.appendString(p.scanner.TokenText()) 263 value.appendString(" ") 269 value.appendString(`\` + string(p.tok)) 281 value.appendString(p.scanner.TokenText()) 286 return value, p.pos() 296 value := SimpleMakeString("", p.pos()) 310 value.appendString(")") 325 value.appendString(p.scanner.TokenText()) 331 value.appendString(" ") [all …]
|
/build/soong/bazel/ |
D | properties.go | 256 func (attr *LabelAttribute) SetValueForArch(arch string, value Label) { 259 attr.Arm = value 261 attr.Arm64 = value 263 attr.X86 = value 265 attr.X86_64 = value 316 func MakeLabelListAttribute(value LabelList) LabelListAttribute { 317 return LabelListAttribute{Value: UniqueBazelLabelList(value)} 377 func (attrs *LabelListAttribute) SetValueForArch(arch string, value LabelList) { 382 *v = value 407 func (attrs *LabelListAttribute) SetValueForOS(os string, value LabelList) { [all …]
|