Home
last modified time | relevance | path

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

123

/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.go95 for key, val := range properties {
96 rewriteProperties[key] = includeVariable(bpVariable{val, propertyType})
250 func splitBpList(val bpparser.Expression, keyFunc listSplitFunc) (lists map[string]bpparser.Express…
253 switch val := val.(type) {
255 listsA, err := splitBpList(val.Args[0], keyFunc)
260 listsB, err := splitBpList(val.Args[1], keyFunc)
277 expression := val.Copy().(*bpparser.Operator)
285 key, value, err := keyFunc(val)
297 for _, v := range val.Values {
310 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)
451 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.go502 for val, _ := range context.requests {
503 labelString := fmt.Sprintf("\"@%s\"", val.label)
504 configString := getConfigString(val)
540 for val, _ := range context.requests {
541 cqueryId := getCqueryId(val)
543 requestTypeToCqueryIdEntries[val.requestType] =
544 append(requestTypeToCqueryIdEntries[val.requestType], mapEntryString)
724 for val := range context.requests {
725 if cqueryResult, ok := cqueryResults[getCqueryId(val)]; ok {
726 context.results[val] = cqueryResult
[all …]
Dexpand_test.go31 if val, ok := vars[s]; ok {
32 return val, s == "escape", nil
Dvariable.go1030 val := productVariables.FieldByName(name)
1031 if !val.IsValid() || val.Kind() != reflect.Ptr || val.IsNil() {
1035 val = val.Elem()
1038 if val.Kind() == reflect.Bool && val.Bool() == false {
1046 a.setVariableProperties(mctx, property, variableValue, val.Interface())
/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/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/
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/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/java/config/
Derror_prone.go32 func errorProneVar(val *[]string, sep string) func() string {
34 return strings.Join(*val, sep)
/build/soong/scripts/
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/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/soong/bazel/
Dproperties.go457 val := getLabelList(&boolPtr)
458 if !val.Equals(mainVal) {
459 result.SetSelectValue(axis, config, val)
768 val := lla.SelectValue(axis, config)
769 newList := SubtractBazelLabelList(val, labelList)
779 for config, val := range configToLabels {
781 lla.Value = SubtractBazelLabelList(lla.Value, LabelList{Includes: val.Excludes})
786 allLabels.Append(val)
787 …lla.ConfigurableValues[axis][config] = SubtractBazelLabelList(allLabels, LabelList{Includes: val.E…
792 for config, val := range configToLabels {
[all …]
/build/make/core/
Dproduct_config.rbc74 for attr, val in sorted(globals.items()):
76 __print_attr("SOONG_CONFIG_NAMESPACES", val.keys())
77 for nsname, nsvars in sorted(val.items()):
82 for var, val in sorted(nsvars.items()):
83 if val:
84 __print_attr("SOONG_CONFIG_%s_%s" % (nsname, var), val)
91 for goal_name, goal_src_dst_list in sorted(val.items()):
99 elif attr not in globals_base or globals_base[attr] != val:
100 __print_attr(attr, val)
183 for var, val in evaluate_finalized_product_variables(configs, pcm_name[:-3]).items():
[all …]
/build/blueprint/proptools/
Dunpack.go474 val, ok := f(property, t)
476 return val, ok
479 ptrValue := reflect.New(val.Type())
480 ptrValue.Elem().Set(val)
483 return val, true
/build/soong/cc/
Dcompdb.go119 if val, err := evalAndSplitVariable(ctx, arg); err == nil {
120 out = append(out, val...)

123