Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 13 of 13) sorted by relevance

/build/blueprint/bootstrap/bpdoc/
Dreader.go38 ps map[string]*PropertyStruct // Map of module type name to property struct, protected by mutex member
45 ps: make(map[string]*PropertyStruct),
87 ps := r.getPropertyStruct(pkgPath, name)
89 if ps == nil {
97 ps, err = newPropertyStruct(t)
101 ps = r.putPropertyStruct(pkgPath, name, ps)
106 if ps == nil {
110 ps = ps.Clone()
111 ps.SetDefaults(defaults)
113 return ps, nil
[all …]
Dreader_test.go73 ps, err := r.PropertyStruct(pkgPath, "props", reflect.ValueOf(props{A: "B"}))
78 if ps.Text != "props docs.\n" {
79 t.Errorf("unexpected docs %q", ps.Text)
81 if len(ps.Properties) != 1 {
82 t.Fatalf("want 1 property, got %d", len(ps.Properties))
85 …if ps.Properties[0].Name != "a" || ps.Properties[0].Text != "A docs.\n\n" || ps.Properties[0].Defa…
87 ps.Properties[0].Name, ps.Properties[0].Text, ps.Properties[0].Default)
Dproperties.go35 func (ps *PropertyStruct) Clone() *PropertyStruct {
36 ret := *ps
63 func (ps *PropertyStruct) SetDefaults(defaults reflect.Value) {
64 setDefaults(ps.Properties, defaults)
141 func (ps *PropertyStruct) GetByName(name string) *Property {
142 return getByName(name, "", &ps.Properties)
162 ps := PropertyStruct{
173 ps.Properties, err = structProperties(structType)
178 return &ps, nil
240 func (ps *PropertyStruct) ExcludeByTag(key, value string) {
[all …]
Dbpdoc.go126 ps, err := r.PropertyStruct(t.PkgPath(), t.Name(), v)
130 ps.ExcludeByTag("blueprint", "mutated")
144 nestPoint := ps.GetByName(nestedName)
159 mt.PropertyStructs = append(mt.PropertyStructs, ps)
257 for _, ps := range mt.PropertyStructs {
258 collapseNestedProperties(&ps.Properties)
289 for _, ps := range mt.PropertyStructs {
290 combineDuplicateSubProperties(&ps.Properties)
/build/blueprint/proptools/
Dtag_test.go74 ps interface{}
79 ps: &struct {
86 ps: &struct {
93 ps: &struct {
101 ps: &struct {
109 ps: &struct {
118 ps: &struct {
127 ps: (*struct {
135 if got := PropertyIndexesWithTag(test.ps, "name", "value"); !reflect.DeepEqual(got, test.want) {
Dtag.go37 func PropertyIndexesWithTag(ps interface{}, key, value string) [][]int {
38 t := reflect.TypeOf(ps)
/build/soong/android/
Dpath_properties.go38 for _, ps := range props {
39 pathProperties := pathPropertiesForPropertyStruct(ctx, ps)
55 func pathPropertiesForPropertyStruct(ctx BottomUpMutatorContext, ps interface{}) []string {
56 v := reflect.ValueOf(ps)
65 pathPropertyIndexes := pathPropertyIndexesForPropertyStruct(ps)
118 func pathPropertyIndexesForPropertyStruct(ps interface{}) [][]int {
119 key := NewCustomOnceKey(reflect.TypeOf(ps))
121 return proptools.PropertyIndexesWithTag(ps, "android", "path")
Dutil.go208 ps := strings.SplitN(pat, "%", 2)
209 if len(ps) != 2 {
217 if ps[0] != "" {
218 trimed = strings.TrimPrefix(in, ps[0])
224 if ps[1] != "" {
225 trimed = strings.TrimSuffix(in, ps[1])
/build/blueprint/
Dninja_strings.go63 func (ps *parseState) pushVariable(v Variable) {
64 if len(ps.result.variables) == len(ps.result.strings) {
66 ps.result.strings = append(ps.result.strings, "")
68 if ps.pendingStr != "" {
71 ps.result.variables = append(ps.result.variables, v)
74 func (ps *parseState) pushString(s string) {
75 if len(ps.result.strings) != len(ps.result.variables) {
78 ps.result.strings = append(ps.result.strings, ps.pendingStr+s)
79 ps.pendingStr = ""
/build/kati/
Dstrutil.go148 ps := strings.SplitN(pat, "%", 2)
149 if len(ps) != 2 {
157 if ps[0] != "" {
158 trimed = strings.TrimPrefix(in, ps[0])
164 if ps[1] != "" {
165 trimed = strings.TrimSuffix(in, ps[1])
/build/soong/ui/build/sandbox/darwin/
Dglobal.sb38 ; Allow suid /bin/ps to function
39 (allow process-exec (literal "/bin/ps") (with no-sandbox))
/build/
Denvsetup.sh1041 adb shell ps \
/build/make/
Denvsetup.sh1041 adb shell ps \