Home
last modified time | relevance | path

Searched refs:field (Results 1 – 25 of 26) sorted by relevance

12

/build/blueprint/proptools/
Dfilter.go23 type FilterFieldPredicate func(field reflect.StructField, string string) (bool, reflect.StructField)
26 field reflect.StructField member
32 x.field.Name, x.field.Type.String(), strconv.Quote(string(x.field.Tag)),
33 fieldToTypeNameSize(x.field, true)+2, x.size)
46 appendAndShardIfNameFull := func(field reflect.StructField) {
47 fieldTypeNameSize := fieldToTypeNameSize(field, true)
53 if isStruct(field.Type) || isStructPtr(field.Type) {
57 field.Type.String(), len(field.Type.String()), maxTypeNameSize-structNameSize))
59 panic(cantFitPanic{field, maxTypeNameSize - structNameSize})
67 filteredFields = append(filteredFields, field)
[all …]
Dfilter_test.go224 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {
225 if HasTag(field, "keep", "true") {
226 field.Tag = ""
227 return true, field
229 return false, field
318 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {
319 if HasTag(field, "keep", "true") {
320 field.Tag = ""
321 return true, field
323 return false, field
[all …]
Dtag.go24 func HasTag(field reflect.StructField, name, value string) bool {
25 tag := field.Tag.Get(name)
57 field := t.Field(i)
58 ft := field.Type
68 } else if HasTag(field, key, value) {
69 indexes = append(indexes, field.Index)
Dclone.go55 for i, field := range typeFields(typ) {
56 if field.PkgPath != "" {
57 panic(fmt.Errorf("can't copy a private field %q", field.Name))
73 newSlice := reflect.MakeSlice(field.Type, srcFieldValue.Len(),
91 field.Name, srcFieldValue.Type()))
131 field.Name, srcFieldValue.Type()))
135 field.Name, srcFieldValue.Type()))
152 for i, field := range typeFields(typ) {
153 if field.PkgPath != "" {
173 field.Name, fieldValue.Type()))
[all …]
Dunpack.go188 field := structType.Field(i)
194 if field.Name == "BlueprintEmbed" {
195 field.Name = ""
196 field.Anonymous = true
199 if field.PkgPath != "" {
204 propertyName := fieldPath(namePrefix, PropertyNameForField(field.Name))
235 if fieldValue.IsNil() && (propertyIsSet || field.Anonymous) {
250 if !HasTag(field, "blueprint", "mutated") {
251 panic(fmt.Errorf(`int field %s must be tagged blueprint:"mutated"`, propertyName))
258 if field.Anonymous && isStruct(fieldValue.Type()) {
[all …]
Dextend.go296 for _, field := range dstFields {
297 if field.Name == srcField.Name {
298 dstField = field
Dunpack_test.go837 errors: []string{`<input>:3:13: mutated field mutated cannot be set in a Blueprint file`},
855 errors: []string{`<input>:4:14: mutated field nested.mutated cannot be set in a Blueprint file`},
/build/soong/android/
Dconfig_test.go29 field := reflectType.Field(i)
30 jsonTag := field.Tag.Get("json")
38 reflectType.Name(), field.Name, field.Tag, jsonTag, ","+jsonTag)
45 reflectType.Name(), field.Name, field.Tag, requestedName)
64 …pe.PopulateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty…
66 (Alternatively, to change the json name of the field, rename the field in source instead.)`
Darch.go936 func filterArchStruct(field reflect.StructField, prefix string) (bool, reflect.StructField) {
937 if proptools.HasTag(field, "android", "arch_variant") {
944 androidTag := field.Tag.Get("android")
947 if string(field.Tag) != `android:"`+strings.Join(values, ",")+`"` {
948 panic(fmt.Errorf("unexpected tag format %q", field.Tag))
954 panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name))
956 field.Tag = reflect.StructTag(`android:"` + strings.Join(values, ",") + `"`)
958 field.Tag = ``
961 return true, field
963 return false, field
[all …]
Dvariable.go575 field := productVariablePropertyValue.Type().Field(i).Name
576 property := prefix + "." + proptools.PropertyNameForField(field)
708 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {
712 return true, field
717 return true, field
724 if fieldExistsByNameRecursive(reflect.TypeOf(p).Elem(), prefix, field.Name) {
726 return true, field
730 return false, field
Dpath_properties.go105 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
/build/blueprint/bootstrap/bpdoc/
Dbpdoc.go187 var nestStruct func(field reflect.StructField, value reflect.Value, fieldName string)
188 nestStruct = func(field reflect.StructField, value reflect.Value, fieldName string) {
190 if field.Anonymous {
195 ret = append(ret, nestedProperty{nestPoint: nestPoint, value: value, anonymous: field.Anonymous})
204 field := typ.Field(i)
205 if field.PkgPath != "" {
209 if proptools.HasTag(field, "blueprint", "mutated") {
219 nestStruct(field, fieldValue, field.Name)
229 "refers to a non-pointer", field.Name))
234 nestStruct(field, elem, field.Name)
[all …]
/build/make/tools/product_config/src/com/android/build/config/
DCsvParser.java214 String field = new String(buf, 0, pos); in parse() local
215 final String cached = stringPool.get(field); in parse()
217 stringPool.put(field, field); in parse()
219 field = cached; in parse()
221 fields.add(field); in parse()
DErrorReporter.java208 for (Field field: getClass().getFields()) { in initLocked()
209 if (Category.class.isAssignableFrom(field.getType())) { in initLocked()
212 category = (Category)field.get(this); in initLocked()
/build/soong/bp2build/
Dconversion.go133 func shouldSkipStructField(field reflect.StructField) bool {
134 if field.PkgPath != "" {
141 if proptools.HasTag(field, "blueprint", "mutated") {
Dbzl_conversion.go159 field := structType.Field(i)
160 if shouldSkipStructField(field) {
164 properties = append(properties, extractPropertyDescriptions(field.Name, field.Type)...)
Dbuild_conversion.go481 field := structType.Field(i)
482 if shouldSkipStructField(field) {
492 propertyName := proptools.PropertyNameForField(field.Name)
/build/soong/cmd/sbox/sbox_proto/
Dsbox.proto32 // A list of copy rules to run before the sandboxed command. The from field is relative to the
33 // $PWD when sbox was run, the to field is relative to the top of the temporary sandbox directory.
43 // A list of copy rules to run after the sandboxed command. The from field is relative to the
44 // top of the temporary sandbox directory, the to field is relative to the $PWD when sbox was run.
/build/make/tools/droiddoc/test/stubs/src/com/android/stubs/a/
DA.java38 int field; field in A.Inner
/build/soong/android/soongconfig/
Dmodules.go676 field := propStruct.Field(i)
677 kind := field.Kind()
679 if field.IsNil() {
682 field = field.Elem()
686 err := printfIntoProperty(field, configValue)
691 for j := 0; j < field.Len(); j++ {
692 err := printfIntoProperty(field.Index(j), configValue)
/build/soong/ui/status/ninja_frontend/
Dfrontend.proto47 // Description field from the edge.
49 // Command field from the edge.
/build/soong/sdk/
Dupdate.go1732 field := structType.Field(f)
1733 if field.PkgPath != "" {
1739 if proptools.HasTag(field, "sdk", "keep") {
1746 if proptools.HasTag(field, "sdk", "ignored-on-host") {
1760 name := namePrefix + field.Name
1782 if field.Type.Kind() == reflect.Struct {
1785 if field.Anonymous {
1790 e.gatherFields(field.Type, fieldGetter, subNamePrefix)
1796 reflect.Zero(field.Type),
1797 proptools.HasTag(field, "android", "arch_variant"),
Dbp.go46 field := structType.Field(i)
64 res.AddProperty(strings.ToLower(field.Name), fieldVal.Interface())
/build/make/tools/zipalign/
DREADME.txt22 the "extra" field in the zip Local File Header sections. Existing data
/build/make/tools/releasetools/
Dota_metadata.proto47 // device name. i.e. ro.product.device; if the field has multiple values, it

12