Home
last modified time | relevance | path

Searched refs:ps (Results 1 – 17 of 17) 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.go156 ps, err := r.PropertyStruct(pkgPath, "props", reflect.ValueOf(props{A: "B"}))
161 if ps.Text != "props docs.\n" {
162 t.Errorf("unexpected docs %q", ps.Text)
164 if len(ps.Properties) != 1 {
165 t.Fatalf("want 1 property, got %d", len(ps.Properties))
168 …if ps.Properties[0].Name != "a" || ps.Properties[0].Text != "A docs.\n\n" || ps.Properties[0].Defa…
170 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)
145 func (ps *PropertyStruct) Nest(nested *PropertyStruct) {
146 ps.Properties = append(ps.Properties, nested.Properties...)
170 ps := PropertyStruct{
181 ps.Properties, err = structProperties(structType)
[all …]
Dbpdoc.go128 ps, err := r.PropertyStruct(t.PkgPath(), t.Name(), v)
132 ps.ExcludeByTag("blueprint", "mutated")
149 ps.Nest(nested)
151 nestPoint := ps.GetByName(nestedName)
163 nestedProp := ps.GetByName(nestedName)
171 mt.PropertyStructs = append(mt.PropertyStructs, ps)
274 for _, ps := range mt.PropertyStructs {
275 ps.Properties = removeAnonymousProps(ps.Properties)
313 for _, ps := range mt.PropertyStructs {
314 collapseNestedProperties(&ps.Properties)
[all …]
/build/soong/android/soongconfig/
Dmodules_test.go73 ps interface{}
79 ps: struct {
87 ps: struct {
95 ps: struct {
103 ps: struct {
113 ps: struct {
123 ps: struct {
131 ps: struct {
141 ps: struct {
153 ps: struct {
[all …]
Dmodules.go360 for _, ps := range psList {
361 if typ := typeForPropertyFromPropertyStruct(ps, property); typ != nil {
369 func typeForPropertyFromPropertyStruct(ps interface{}, property string) reflect.Type {
370 v := reflect.ValueOf(ps)
420 if ps, err := c.PropertiesToApply(config, props.Field(i)); err != nil {
422 } else if ps != nil {
423 ret = append(ret, ps)
/build/soong/android/
Dpath_properties.go44 for _, ps := range props {
45 pathProperties = append(pathProperties, pathPropertiesForPropertyStruct(ps)...)
62 func pathPropertiesForPropertyStruct(ps interface{}) []string {
63 v := reflect.ValueOf(ps)
77 pathPropertyIndexes := pathPropertyIndexesForPropertyStruct(ps)
163 func pathPropertyIndexesForPropertyStruct(ps interface{}) [][]int {
164 key := NewCustomOnceKey(reflect.TypeOf(ps))
166 return proptools.PropertyIndexesWithTag(ps, "android", "path")
Dpackaging.go208 for _, ps := range child.TransitivePackagingSpecs() {
209 if _, ok := m[ps.relPathInPackage]; !ok {
210 m[ps.relPathInPackage] = ps
228 ps := m[k]
229 destPath := dir.Join(ctx, ps.relPathInPackage).String()
231 entries = append(entries, ps.relPathInPackage)
236 if ps.symlinkTarget == "" {
237 builder.Command().Text("cp").Input(ps.srcPath).Text(destPath)
239 builder.Command().Text("ln").Flag("-sf").Text(ps.symlinkTarget).Text(destPath)
241 if ps.executable {
Dsoong_config_modules.go433 for _, ps := range newProps {
434 ctx.AppendProperties(ps)
/build/blueprint/
Dninja_strings.go71 func (ps *parseState) pushVariable(v Variable) {
72 if len(ps.result.variables) == len(ps.result.strings) {
74 ps.result.strings = append(ps.result.strings, "")
76 if ps.pendingStr != "" {
79 ps.result.variables = append(ps.result.variables, v)
82 func (ps *parseState) pushString(s string) {
83 if len(ps.result.strings) != len(ps.result.variables) {
86 ps.result.strings = append(ps.result.strings, ps.pendingStr+s)
87 ps.pendingStr = ""
/build/soong/kernel/
Dprebuilt_kernel_modules_test.go52 for _, ps := range ctx.ModuleForTests("foo", "android_arm64_armv8-a").Module().PackagingSpecs() {
53 actual = append(actual, ps.RelPathInPackage())
/build/soong/cc/
Dstub_library.go39 for _, ps := range m.PackagingSpecs() {
40 if name := ps.FileName(); name != "" {
/build/blueprint/proptools/
Dtag.go44 func PropertyIndexesWithTag(ps interface{}, key, value string) [][]int {
45 t := reflect.TypeOf(ps)
/build/soong/filesystem/
Dsystem_image.go58 for _, ps := range child.PackagingSpecs() {
59 if _, ok := deps[ps.RelPathInPackage()]; ok {
/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/soong/linkerconfig/
Dlinkerconfig.go118 for _, ps := range c.PackagingSpecs() {
119 provideLibs = append(provideLibs, ps.FileName())
/build/make/
Denvsetup.sh939 adb shell ps \