Home
last modified time | relevance | path

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

/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 …]
Dtag_test.go33 field string
37 field: "NoTag",
41 field: "EmptyTag",
45 field: "OtherTag",
49 field: "MatchingTag",
53 field: "ExtraValues",
57 field: "ExtraTags",
62 t.Run(test.field, func(t *testing.T) {
63 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field)
64 if got := HasTag(field, "name", "value"); got != test.want {
[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
274 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {
275 if HasTag(field, "keep", "true") {
276 field.Tag = ""
277 return true, field
279 return false, field
[all …]
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 …]
Dtag.go24 func HasTag(field reflect.StructField, name, value string) bool {
25 tag := field.Tag.Get(name)
50 field := t.Field(i)
51 ft := field.Type
61 } else if HasTag(field, key, value) {
62 indexes = append(indexes, field.Index)
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
/build/soong/android/
Dconfig_test.go28 field := reflectType.Field(i)
29 jsonTag := field.Tag.Get("json")
37 reflectType.Name(), field.Name, field.Tag, jsonTag, ","+jsonTag)
44 reflectType.Name(), field.Name, field.Tag, requestedName)
63 …pe.PopulateMe has tag json:"omitempty" which specifies to change its json field name to "omitempty…
65 (Alternatively, to change the json name of the field, rename the field in source instead.)`
Darch.go1063 func filterArchStruct(field reflect.StructField, prefix string) (bool, reflect.StructField) {
1064 if proptools.HasTag(field, "android", "arch_variant") {
1071 androidTag := field.Tag.Get("android")
1074 if string(field.Tag) != `android:"`+strings.Join(values, ",")+`"` {
1075 panic(fmt.Errorf("unexpected tag format %q", field.Tag))
1080 panic(fmt.Errorf("unknown tags %q in field %q", values, prefix+field.Name))
1083 field.Tag = ""
1084 return true, field
1086 return false, field
1133 dst interface{}, src reflect.Value, field, srcPrefix string) reflect.Value { argument
[all …]
Dvariable.go465 field := productVariablePropertyValue.Type().Field(i).Name
466 property := prefix + "." + proptools.PropertyNameForField(field)
598 func(field reflect.StructField, prefix string) (bool, reflect.StructField) {
602 return true, field
607 return true, field
614 if fieldExistsByNameRecursive(reflect.TypeOf(p).Elem(), prefix, field.Name) {
616 return true, field
620 return false, field
Dpath_properties.go86 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
/build/make/tools/droiddoc/templates-ndk/
Dclass.cs212 <?cs each:field=fields ?>
215 <?cs var:field.scope ?>
216 <?cs var:field.static ?>
217 <?cs var:field.final ?>
218 <?cs call:type_link(field.type) ?></nobr></td>
219 … <td class="jd-linkcol"><?cs call:cond_link(field.name, toroot, field.href, included) ?></td>
221 <?cs call:short_descr(field) ?>
222 <?cs call:show_annotations_list(field) ?>
231 <?cs each:field=fields ?>
233 <td class="jd-typecol"><?cs call:type_link(field.type) ?></td>
[all …]
/build/blueprint/bootstrap/bpdoc/
Dbpdoc.go162 field := typ.Field(i)
163 if field.PkgPath != "" {
167 if proptools.HasTag(field, "blueprint", "mutated") {
177 walk(fieldValue, prefix+proptools.PropertyNameForField(field.Name)+".")
186 "refers to a non-pointer", field.Name))
191 nestPoint := prefix + proptools.PropertyNameForField(field.Name)
198 field.Name, fieldValue.Kind()))
/build/soong/android/soongconfig/
Dmodules.go544 field := propStruct.Field(i)
545 kind := field.Kind()
547 if field.IsNil() {
550 field = field.Elem()
554 err := printfIntoProperty(field, configValue)
559 for j := 0; j < field.Len(); j++ {
560 err := printfIntoProperty(field.Index(j), configValue)
/build/make/tools/droiddoc/test/stubs/src/com/android/stubs/a/
DA.java38 int field; field in A.Inner
/build/soong/ui/status/ninja_frontend/
Dfrontend.proto47 // Description field from the edge.
49 // Command field from the edge.
/build/soong/sdk/
Dupdate.go1337 field := structType.Field(f)
1338 if field.PkgPath != "" {
1344 if proptools.HasTag(field, "sdk", "keep") {
1351 if proptools.HasTag(field, "sdk", "ignored-on-host") {
1365 name := field.Name
1387 if field.Type.Kind() == reflect.Struct && field.Anonymous {
1389 e.gatherFields(field.Type, fieldGetter)
1395 reflect.Zero(field.Type),
1396 proptools.HasTag(field, "android", "arch_variant"),
Dsdk_test.go416 …h.AssertErrorMessageEquals("unexpected error", `field "S_Common" is not tagged as "arch_variant" b…
/build/make/tools/zipalign/
DREADME.txt22 the "extra" field in the zip Local File Header sections. Existing data
/build/soong/bpfix/bpfix/
Dbpfix.go687 for _, field := range relevantFields {
688 listValue, ok := getLiteralListProperty(mod, field)
696 return fmt.Errorf("Expecting string for %s.%s fields", mod.Type, field)
704 removeProperty(mod, field)
/build/soong/java/
Dsdk_library.go1741 field := reflect.StructField{
1745 fields = append(fields, field)
1759 field := allScopePropertiesStruct.FieldByName(apiScope.fieldName)
1760 scopeProperties[apiScope] = field.Addr().Interface().(*sdkLibraryScopeProperties)