Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 43) sorted by relevance

12

/build/make/tools/product_config/src/com/android/build/config/
DValue.java96 public static Str normalize(Value val) { in normalize() argument
97 if (val == null) { in normalize()
100 if (val.mStr != null) { in normalize()
101 return normalize(val.mStr); in normalize()
104 if (val.mList.size() == 0) { in normalize()
109 final int size = val.mList.size(); in normalize()
112 String s = val.mList.get(i).toString().trim(); in normalize()
124 return new Str(val.mList.get(0).getPosition(), result.toString()); in normalize()
131 public static String oneLinePerWord(Value val, String nullValue) { in oneLinePerWord() argument
132 if (val == null) { in oneLinePerWord()
[all …]
DOptions.java193 final String val = getNextNonFlagArg(); in requireNextStringArg() local
194 if (val == null) { in requireNextStringArg()
197 return val; in requireNextStringArg()
201 final String val = getNextNonFlagArg(); in requireNextNumberArg() local
202 if (val == null) { in requireNextNumberArg()
206 return Integer.parseInt(val); in requireNextNumberArg()
208 throw new ParseException(arg + " requires a numeric argument. found: " + val); in requireNextNumberArg()
DMakeWriter.java118 Var(String name, Str val) { in Var() argument
120 this.val = val; in Var()
123 final Str val; field in MakeWriter.Var
135 out.println(var.val.getPosition() + var.name + " := " + var.val); in writeStrVars()
DFlattenConfig.java345 final StringBuilder val = new StringBuilder(); in flattenInheritsFrom() local
350 val.append(' '); in flattenInheritsFrom()
352 val.append(child); in flattenInheritsFrom()
354 mVariables.put(varName, new Value(VarType.UNKNOWN, new Str(val.toString()))); in flattenInheritsFrom()
458 final Value val = mVariables.get(varName); in setDefaultKnownVars() local
459 if (val == null) { in setDefaultKnownVars()
/build/soong/androidmk/androidmk/
Dandroid.go90 for key, val := range properties {
91 rewriteProperties[key] = includeVariable(bpVariable{val, propertyType})
233 func splitBpList(val bpparser.Expression, keyFunc listSplitFunc) (lists map[string]bpparser.Express…
236 switch val := val.(type) {
238 listsA, err := splitBpList(val.Args[0], keyFunc)
243 listsB, err := splitBpList(val.Args[1], keyFunc)
260 expression := val.Copy().(*bpparser.Operator)
268 key, value, err := keyFunc(val)
280 for _, v := range val.Values {
293 panic(fmt.Errorf("unexpected type %t", val))
[all …]
Dvalues.go64 var val bpparser.Expression
68 val = stringToStringValue(ms.Strings[0])
76 val, err = addValues(val, stringToStringValue(ret[0]))
94 val, err = addValues(val, tmp)
103 val, err = addValues(val, tmp)
110 return val, nil
179 val := listOfListValues[0]
182 val, err = addValues(val, tmp)
188 return val, nil
Dandroidmk.go341 var val bpparser.Expression
342 val, err = makeVariableToBlueprint(file, assignment.Value, bpparser.ListType)
344 err = setVariable(file, appendVariable, prefix, name, val, false)
366val, err := makeVariableToBlueprint(file, mkparser.SimpleMakeString("false", mkparser.NoPos), bppa…
368 err = setVariable(file, false, disabledPrefix, "enabled", val, true)
391 func makeVariableToBlueprint(file *bpFile, val *mkparser.MakeString,
398 exp, err = makeToListExpression(val, file)
400 exp, err = makeToStringExpression(val, file)
402 exp, err = makeToBoolExpression(val, file)
433 val, err := addValues(*oldValue, value)
[all …]
/build/soong/android/
Dvariable_test.go27 val interface{} member
35 val: 0,
40 val: 1,
45 val: 2,
50 val: false,
55 val: true,
60 val: -1,
66 val: 1,
71 val: 1,
76 val: "abc",
[all …]
Dbazel_handler.go454 for val, _ := range context.requests {
455 labelString := fmt.Sprintf("\"@%s\"", val.label)
456 archString := getArchString(val)
485 for val, _ := range context.requests {
486 cqueryId := getCqueryId(val)
488 requestTypeToCqueryIdEntries[val.requestType] =
489 append(requestTypeToCqueryIdEntries[val.requestType], mapEntryString)
647 for val, _ := range context.requests {
648 if cqueryResult, ok := cqueryResults[getCqueryId(val)]; ok {
649 context.results[val] = string(cqueryResult)
[all …]
Dvariable.go534 val := productVariables.FieldByName(name)
535 if !val.IsValid() || val.Kind() != reflect.Ptr || val.IsNil() {
539 val = val.Elem()
542 if val.Kind() == reflect.Bool && val.Bool() == false {
550 a.setVariableProperties(mctx, property, variableValue, val.Interface())
Dexpand_test.go31 if val, ok := vars[s]; ok {
32 return val, s == "escape", nil
/build/make/tools/zipalign/
DZipEntry.h107 void setMarked(bool val) { mMarked = val; } in setMarked() argument
119 static inline void putShortLE(uint8_t* buf, uint16_t val) { in putShortLE() argument
120 buf[0] = (uint8_t) val; in putShortLE()
121 buf[1] = (uint8_t) (val >> 8); in putShortLE()
123 static inline void putLongLE(uint8_t* buf, uint32_t val) { in putLongLE() argument
124 buf[0] = (uint8_t) val; in putLongLE()
125 buf[1] = (uint8_t) (val >> 8); in putLongLE()
126 buf[2] = (uint8_t) (val >> 16); in putLongLE()
127 buf[3] = (uint8_t) (val >> 24); in putLongLE()
/build/make/tools/
Dproduct_debug.py21 def break_lines(key, val): argument
24 return (key,val)
25 return (key, "\n".join(val.split()))
48 + "\n".join([ "<tr><th>%(key)s</th><td>%(val)s</td></tr>" % { "key": key, "val": val }
49 for key,val in variables])
83 variables = [break_lines(key,val) for key,val in variables]
Dcompare_fileslist.py21 val = None
24 if not val:
25 val = v
27 if val != v:
Dpost_process_props.py34 val = prop_list.get_value("persist.sys.usb.config")
35 if "adb" not in val:
36 if val == "":
37 val = "adb"
39 val = val + ",adb"
40 prop_list.put("persist.sys.usb.config", val)
/build/make/tools/droiddoc/templates-pdk/assets/
Dandroid-developer-resource-browser.js24 var keywords = $(this).val().split(/\s+/g);
202 var val = p[1] ? decodeURIComponent(p[1]) : p[1];
203 if (val === '0')
204 val = 0;
205 if (val === '1')
206 val = 1;
211 params[key].push(val);
213 params[key] = val;
Dandroid-developer-docs.js113 var val = document.cookie.substring(valStart, valEnd);
114 return val;
120 function writeCookie(cookie, val, section, expiration) { argument
121 if (val==undefined) return;
128 …document.cookie = cookie_namespace + section + cookie + "=" + val + "; expires=" + expiration+"; p…
/build/make/tools/ziptime/
DZipEntry.h59 static inline void putShortLE(uint8_t* buf, uint16_t val) { in putShortLE() argument
60 buf[0] = (uint8_t) val; in putShortLE()
61 buf[1] = (uint8_t) (val >> 8); in putShortLE()
/build/soong/androidmk/parser/
Dscope.go35 if val, ok := s.variables[name]; ok {
36 return val
39 } else if val, ok := builtinScope[name]; ok {
40 return val
/build/soong/scripts/
Dgen_ndk_backedby_apex.sh34 val="$1"
37 if [ "$x" = "$val" ]; then
Djsonmodify.py50 def apply(self, obj, val): argument
52 cur[key] = val
56 def apply(self, obj, val): argument
59 cur[key] = val
/build/soong/java/config/
Derror_prone.go34 func errorProneVar(name string, val *[]string, sep string) {
36 return strings.Join(*val, sep)
/build/soong/sdk/
Dbp_test.go57 func checkPropertySetFixture(t *testing.T, val interface{}, hasTags bool) {
58 set := val.(*bpPropertySet)
77 for name, val := range map[string]interface{}{
84 set.AddProperty(name, val)
85 android.AssertDeepEquals(t, "wrong value", val, set.getValue(name))
/build/make/core/
Dproduct_config.rbc71 for attr, val in sorted(cfg.items()):
72 __print_attr(attr, val)
75 for attr, val in sorted(globals.items()):
77 __print_attr(attr, val)
203 for attr, val in cfg.items():
205 if type(val) != "list":
209 cfg[attr] = _value_expand(configs, attr, val)
211 old_val = val
212 new_val = _value_expand(configs, attr, val)
346 for attr, val in cfg.items():
[all …]
/build/soong/cc/
Dcompdb.go119 if val, err := evalAndSplitVariable(ctx, arg); err == nil {
120 out = append(out, val...)

12