Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 102) sorted by relevance

12345

/build/soong/ui/build/
Denvironment.go49 func (e *Environment) Set(key, value string) {
51 *e = append(*e, key+"="+value)
105 if value, ok := e.Get(key); ok {
106 return value == "1" || value == "y" || value == "yes" || value == "on" || value == "true"
113 if value, ok := e.Get(key); ok {
114 return value == "0" || value == "n" || value == "no" || value == "off" || value == "false"
152 key, value, ok := decodeKeyValue(cmd[1])
161 value, ok = singleUnquote(value)
166 e.Set(key, value)
Ddumpvars.go106 if key, value, ok := decodeKeyValue(line); ok {
107 if value, ok = singleUnquote(value); ok {
108 ret[key] = value
109 ctx.Verboseln(key, value)
/build/soong/android/
Donceper.go28 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
44 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} {
58 v := value()
77 func (once *OncePer) OnceStringSlice(key OnceKey, value func() []string) []string {
78 return once.Once(key, func() interface{} { return value() }).([]string)
82 func (once *OncePer) Once2StringSlice(key OnceKey, value func() ([]string, []string)) ([]string, []…
[all …]
Dneverallow.go180 value string // e.x.: true member
221 func (r *rule) with(properties, value string) *rule {
224 value: value,
229 func (r *rule) without(properties, value string) *rule {
232 value: value,
257 s += " " + strings.Join(v.fields, ".") + "=" + v.value
260 s += " -" + strings.Join(v.fields, ".") + "=" + v.value
343 return prop.value == "*" || prop.value == v
353 func matchValue(value reflect.Value, check func(string) bool) bool {
354 if !value.IsValid() {
[all …]
Dmakevars.go81 StrictRaw(name, value string)
82 CheckRaw(name, value string)
138 value string member
232 fmt.Fprintf(buf, "SOONG_%s := %s\n", v.name, v.value)
255 fmt.Fprintf(buf, "SOONG_%s := %s\n", v.name, v.value)
280 func (c *makeVarsContext) addVariableRaw(name, value string, strict, sort bool) {
283 value: value,
290 value, err := c.Eval(ninjaStr)
294 c.addVariableRaw(name, value, strict, sort)
303 func (c *makeVarsContext) StrictRaw(name, value string) {
[all …]
/build/kati/testcase/
Dvalue.mk14 echo $(value FOO)
15 echo $(value FOO BAR)
16 echo $(value FOO,BAR)
17 echo $(value $(FOOREF))
20 echo $(value @)
25 $(info $(value X))
/build/kati/
Dthread_local.h69 void Set(const Type& value) { Ref() = value; } in Set() argument
72 Type* value = reinterpret_cast<Type*>(pthread_getspecific(*key)); in GetPointer() local
73 if (value) in GetPointer()
74 return value; in GetPointer()
76 value = new Type(); in GetPointer()
77 int error = pthread_setspecific(*key, value); in GetPointer()
80 return value; in GetPointer()
Dvar.go94 value []string member
102 func (v *simpleVar) String() string { return strings.Join(v.value, " ") }
105 for _, v := range v.value {
123 d.Int(len(v.value))
124 for _, v := range v.value {
140 v.value = append(v.value, abuf.String())
151 v.value = append(v.value, abuf.String())
157 value []byte member
164 func (v *automaticVar) String() string { return string(v.value) }
166 w.Write(v.value)
[all …]
/build/blueprint/proptools/
Dtag.go24 func HasTag(field reflect.StructField, name, value string) bool {
27 if entry == value {
37 func PropertyIndexesWithTag(ps interface{}, key, value string) [][]int {
44 return propertyIndexesWithTag(t, key, value)
46 func propertyIndexesWithTag(t reflect.Type, key, value string) [][]int {
56 subIndexes := propertyIndexesWithTag(ft, key, value)
61 } else if HasTag(field, key, value) {
Dextend.go482 value, err := getStruct(in)
484 value := reflect.ValueOf(in)
485 newValue := reflect.New(value.Type().Elem())
486 value.Set(newValue)
489 return value, err
493 value := reflect.ValueOf(in)
494 if value.Kind() != reflect.Ptr {
497 if value.Type().Elem().Kind() != reflect.Struct {
500 if value.IsNil() {
503 value = value.Elem()
[all …]
/build/soong/scripts/
Dmanifest_fixer.py38 attr_name, value): argument
41 if attr is not None and attr.value == value:
94 attr.value = android_ns
96 elif ns.value != android_ns:
98 ns.value)
180 min_attr.value = min_sdk_version
183 if compare_version_gt(min_sdk_version, min_attr.value):
184 min_attr.value = min_sdk_version
197 target_attr.value = '15'
199 target_attr.value = target_sdk_version
[all …]
/build/make/tools/
Dpost_process_props.py65 for key, value in buildprops.iteritems():
67 if len(value) > PROP_VALUE_MAX and not key.startswith("ro."):
71 sys.stderr.write("%s (%d)\n" % (value, len(value)))
85 key, value = line.split("=", 1)
86 props[key] = value
96 def put(self, name, value): argument
100 self.lines[i] = key + value
102 self.lines.append(key + value)
Dgenerate-notice-files.py85 for value in file_hash:
86 for filename in value:
113 for value in file_hash:
114 print >> output_file, '<tr id="id%d"><td class="same-license">' % id_table.get(value[0])
117 for filename in value:
122 print >> output_file, html_escape(open(value[0]).read())
140 for value in file_hash:
143 for filename in value:
146 print >> output_file, open(value[0]).read()
/build/blueprint/
Dlive_tracker.go71 for _, value := range def.Variables {
72 err = l.addNinjaStringDeps(value)
78 for _, value := range def.Args {
79 err = l.addNinjaStringDeps(value)
117 for _, value := range def.Variables {
118 err = l.addNinjaStringDeps(value)
151 value, err := v.value(l.config)
162 l.variables[v] = value
164 err = l.addNinjaStringDeps(value)
Dninja_defs.go156 value, err := parseNinjaString(scope, params.Command)
160 r.Variables["command"] = value
163 value, err = parseNinjaString(scope, params.Depfile)
167 r.Variables["depfile"] = value
175 value, err = parseNinjaString(scope, params.Description)
179 r.Variables["description"] = value
191 value, err = parseNinjaString(scope, params.Rspfile)
195 r.Variables["rspfile"] = value
199 value, err = parseNinjaString(scope, params.RspfileContent)
204 r.Variables["rspfile_content"] = value
[all …]
Dunpack.go291 var value reflect.Value
303 return value, fmt.Errorf("%s: can't assign %s value to bool property %q",
306 value = reflect.ValueOf(b.Value)
311 return value, fmt.Errorf("%s: can't assign %s value to int64 property %q",
314 value = reflect.ValueOf(b.Value)
319 return value, fmt.Errorf("%s: can't assign %s value to string property %q",
322 value = reflect.ValueOf(s.Value)
327 return value, fmt.Errorf("%s: can't assign %s value to list property %q",
332 for i, value := range l.Values {
333 s, ok := value.Eval().(*parser.String)
[all …]
/build/blueprint/parser/
Dparser.go214 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/soong/androidmk/parser/
Dparser.go234 value := SimpleMakeString("", p.pos())
240 value.appendString(p.scanner.TokenText())
250 value.appendString(" ")
256 value.appendString(`\` + string(p.tok))
268 value.appendString(p.scanner.TokenText())
273 return value, p.pos()
283 value := SimpleMakeString("", p.pos())
297 value.appendString(")")
312 value.appendString(p.scanner.TokenText())
318 value.appendString(" ")
[all …]
/build/soong/androidmk/cmd/androidmk/
Dandroid.go210 func emptyList(value bpparser.Expression) bool {
211 if list, ok := value.(*bpparser.List); ok {
252 key, value, err := keyFunc(val)
256 if value.Type() == bpparser.ListType {
257 lists[key] = value
260 Values: []bpparser.Expression{value},
265 key, value, err := keyFunc(v)
273 l.(*bpparser.List).Values = append(l.(*bpparser.List).Values, value)
285 func classifyLocalOrGlobalPath(value bpparser.Expression) (string, bpparser.Expression, error) {
286 switch v := value.(type) {
[all …]
/build/make/tools/droiddoc/test/stubs/expected/com/android/stubs/
DAnnot.java3 @java.lang.annotation.Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME)
4 @java.lang.annotation.Target(value={java.lang.annotation.ElementType.TYPE})
7 java.lang.String value() default "yo\u1234"; in value() method
/build/make/tools/fs_config/
Dfs_config_generator.py77 def in_any_range(value, ranges): argument
91 return any(lower <= value <= upper for (lower, upper) in ranges)
143 def __init__(self, identifier, value, found, login_shell): argument
157 self.value = value
162 self.normalized_value = str(int(value, 0))
165 'Invalid "value", not aid number, got: \"%s\"' % value)
178 and self.value == other.value and self.found == other.found \
286 value = match.group(2)
290 self.caps[cap] = int(value, 0)
293 % (cap, value))
[all …]
/build/soong/symbol_inject/
Dsymbol_inject.go54 func InjectStringSymbol(file *File, w io.Writer, symbol, value, from string) error { argument
60 if uint64(len(value))+1 > size {
61 return fmt.Errorf("value length %d overflows symbol size %d", len(value), size)
80 copy(buf, value)
85 func InjectUint64Symbol(file *File, w io.Writer, symbol string, value uint64) error {
96 binary.LittleEndian.PutUint64(buf, value)
/build/make/tools/releasetools/
Dsign_target_files_apks.py675 key, value = line.split("=", 1)
678 pieces = value.split("/")
680 value = "/".join(pieces)
682 pieces = value.split("/")
684 value = "/".join(pieces)
686 pieces = value.split(" ")
689 value = " ".join(pieces)
691 value = EditTags(value)
694 value = value.split()
695 if len(value) > 1 and value[-1].endswith("-keys"):
[all …]
Dsign_target_files_apks675 key, value = line.split("=", 1)
678 pieces = value.split("/")
680 value = "/".join(pieces)
682 pieces = value.split("/")
684 value = "/".join(pieces)
686 pieces = value.split(" ")
689 value = " ".join(pieces)
691 value = EditTags(value)
694 value = value.split()
695 if len(value) > 1 and value[-1].endswith("-keys"):
[all …]
/build/make/core/
Dchecktree34 def __init__(self,value): argument
35 self.value = value
37 return repr(self.value)

12345