Home
last modified time | relevance | path

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

/build/blueprint/proptools/
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 …]
Dclone.go36 for i, field := range typeFields(typ) {
37 if field.PkgPath != "" {
38 panic(fmt.Errorf("can't copy a private field %q", field.Name))
54 newSlice := reflect.MakeSlice(field.Type, srcFieldValue.Len(),
72 field.Name))
76 field.Name))
118 field.Name, srcFieldValue.Kind()))
122 field.Name, srcFieldValue.Kind()))
130 for i, field := range typeFields(typ) {
131 if field.PkgPath != "" {
[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)
Dextend.go289 for _, field := range dstFields {
290 if field.Name == srcField.Name {
291 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.go829 for _, field := range fields {
830 if !proptools.HasTag(field, "android", "arch_variant") {
842 if field.Tag == `android:"arch_variant"` {
843 field.Tag = ""
847 switch field.Type.Kind() {
850 field.Type, subFiltered = filterArchStruct(field.Type)
852 if field.Type == nil {
856 if field.Type.Elem().Kind() == reflect.Struct {
857 nestedType, subFiltered := filterArchStruct(field.Type.Elem())
862 field.Type = reflect.PtrTo(nestedType)
[all …]
Dpath_properties.go87 …panic(fmt.Errorf(`field %s in type %s has tag android:"path" but is not a string or slice of strin…
Dvariable.go397 field := productVariablePropertyValue.Type().Field(i).Name
398 property := prefix + "." + proptools.PropertyNameForField(field)
/build/blueprint/
Dunpack.go129 field := structType.Field(i)
135 if field.Name == "BlueprintEmbed" {
136 field.Name = ""
137 field.Anonymous = true
140 if field.PkgPath != "" {
145 propertyName := namePrefix + proptools.PropertyNameForField(field.Name)
164 elemType := field.Type.Elem()
166 if !proptools.HasTag(field, "blueprint", "mutated") {
183 if fieldValue.IsNil() && (propertyIsSet || field.Anonymous) {
198 if !proptools.HasTag(field, "blueprint", "mutated") {
[all …]
/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.go171 field := typ.Field(i)
172 if field.PkgPath != "" {
183 walk(fieldValue, prefix+proptools.PropertyNameForField(field.Name)+".")
192 "refers to a non-pointer", field.Name))
197 nestPoint := prefix + proptools.PropertyNameForField(field.Name)
204 field.Name, fieldValue.Kind()))
/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/make/tools/zipalign/
DREADME.txt22 the "extra" field in the zip Local File Header sections. Existing data