/build/soong/ui/terminal/ |
D | smart_status.go | 62 s := &smartStatusOutput{ 76 s.tableMode = h > 0 77 s.requestedTableHeight = h 80 if w, h, ok := termSize(s.writer); ok { 81 s.termWidth, s.termHeight = w, h 82 s.computeTableHeight() 84 s.tableMode = false 87 if s.tableMode { 91 for i := 0; i < s.tableHeight; i++ { 96 fmt.Fprintf(s.writer, ansi.hideCursor()) [all …]
|
D | simple_status.go | 47 func (s *simpleStatusOutput) Message(level status.MsgLevel, message string) { 48 if level >= s.outputLevel { 49 fmt.Fprintln(s.writer, s.formatter.message(level, message)) 53 func (s *simpleStatusOutput) StartAction(_ *status.Action, _ status.Counts) { 56 func (s *simpleStatusOutput) FinishAction(result status.ActionResult, counts status.Counts) { 57 if s.outputLevel > status.StatusLvl { 65 progress := s.formatter.progress(counts) + str 67 output := s.formatter.result(result) 68 if !s.keepANSI { 73 fmt.Fprint(s.writer, progress, "\n", output) [all …]
|
/build/blueprint/ |
D | singleton_ctx.go | 177 func (s *singletonContext) Config() interface{} { 178 return s.config 181 func (s *singletonContext) Name() string { 182 return s.name 185 func (s *singletonContext) ModuleName(logicModule Module) string { 186 return s.context.ModuleName(logicModule) 189 func (s *singletonContext) ModuleDir(logicModule Module) string { 190 return s.context.ModuleDir(logicModule) 193 func (s *singletonContext) ModuleSubDir(logicModule Module) string { 194 return s.context.ModuleSubDir(logicModule) [all …]
|
D | scope.go | 106 func (s *basicScope) LookupVariable(name string) (Variable, error) { 126 importedScope, err := s.lookupImportedScope(pkgName) 140 for ; s != nil; s = s.parent { 141 v, ok := s.variables[name] 150 func (s *basicScope) IsRuleVisible(rule Rule) bool { 158 for s != nil { 159 if s.rules[name] == rule { 163 for _, import_ := range s.imports { 169 s = s.parent 175 func (s *basicScope) IsPoolVisible(pool Pool) bool { [all …]
|
/build/soong/android/ |
D | sdk_version.go | 85 func (s SdkSpec) String() string { 86 return fmt.Sprintf("%s_%s", s.Kind, s.ApiLevel) 91 func (s SdkSpec) Valid() bool { 92 return s.Kind != SdkInvalid 96 func (s SdkSpec) Specified() bool { 97 return s.Valid() && s.Kind != SdkPrivate 102 func (s SdkSpec) Stable() bool { 103 if !s.Specified() { 106 switch s.Kind { 115 panic(fmt.Errorf("unknown SdkKind=%v", s.Kind)) [all …]
|
D | expand.go | 30 func ExpandNinjaEscaped(s string, mapping func(string) (string, bool, error)) (string, error) { 31 return expand(s, true, mapping) 37 func Expand(s string, mapping func(string) (string, error)) (string, error) { 38 return expand(s, false, func(s string) (string, bool, error) { 39 s, err := mapping(s) 40 return s, false, err 44 func expand(s string, ninjaEscape bool, mapping func(string) (string, bool, error)) (string, error)… 46 buf := make([]byte, 0, 2*len(s)) 48 for j := 0; j < len(s); j++ { 49 if s[j] == '$' { [all …]
|
D | singleton.go | 103 func (s *singletonAdaptor) GenerateBuildActions(ctx blueprint.SingletonContext) { 109 s.Singleton.GenerateBuildActions(sctx) 111 s.buildParams = sctx.buildParams 112 s.ruleParams = sctx.ruleParams 115 func (s *singletonAdaptor) BuildParamsForTests() []BuildParams { 116 return s.buildParams 119 func (s *singletonAdaptor) RuleParamsForTests() map[blueprint.Rule]blueprint.RuleParams { 120 return s.ruleParams 134 func (s *singletonContextAdaptor) Config() Config { 135 return s.SingletonContext.Config().(Config) [all …]
|
D | util.go | 28 func CopyOf(s []string) []string { 29 return append([]string(nil), s...) 78 s := make([]string, 0, v.Len()) 80 s = append(s, iter.Key().String()) 82 sort.Strings(s) 83 return s 96 s := make([]string, 0, v.Len()) 98 s = append(s, iter.Value().String()) 100 return s 105 s := stringValues(m) [all …]
|
D | sdk.go | 84 func (s SdkRef) Unversioned() bool { 85 return s.Version == "" 89 func (s SdkRef) String() string { 90 if s.Name == "" { 93 if s.Unversioned() { 94 return s.Name 96 return s.Name + string(SdkVersionSeparator) + s.Version 123 func (refs SdkRefs) Contains(s SdkRef) bool { 125 if r == s { 147 func (s *SdkBase) sdkBase() *SdkBase { [all …]
|
/build/soong/sh/ |
D | sh_binary.go | 185 func (s *ShBinary) HostToolPath() android.OptionalPath { 186 return android.OptionalPathForPath(s.installedFile) 189 func (s *ShBinary) DepsMutator(ctx android.BottomUpMutatorContext) { 192 func (s *ShBinary) OutputFile() android.OutputPath { 193 return s.outputFilePath 196 func (s *ShBinary) SubDir() string { 197 return proptools.String(s.properties.Sub_dir) 200 func (s *ShBinary) RelativeInstallPath() string { 201 return s.SubDir() 203 func (s *ShBinary) Installable() bool { [all …]
|
/build/soong/ui/logger/ |
D | logger.go | 160 func (s *stdLogger) SetVerbose(v bool) *stdLogger { 161 s.verbose = v 162 return s 167 func (s *stdLogger) SetOutput(path string) *stdLogger { 169 s.mutex.Lock() 170 defer s.mutex.Unlock() 172 if s.file != nil { 173 s.file.Close() 175 s.file = f 176 s.fileLogger.SetOutput(f) [all …]
|
/build/soong/sdk/ |
D | sdk.go | 110 s := &sdk{} 111 s.properties.Module_exports = moduleExports 114 s.dynamicSdkMemberTypes = getDynamicSdkMemberTypes(sdkMemberTypeKey, sdkMemberTypes) 117 s.dynamicMemberTypeListProperties = s.dynamicSdkMemberTypes.createMemberTypeListProperties() 120 s.dynamicSdkMemberTraits = getDynamicSdkMemberTraits(sdkMemberTraitsKey, sdkMemberTraits) 123 s.dynamicMemberTraitListProperties = s.dynamicSdkMemberTraits.createMemberTraitListProperties() 129 }{s.dynamicMemberTraitListProperties} 131 s.AddProperties(&s.properties, s.dynamicMemberTypeListProperties, &traitsWrapper) 134 android.AddVisibilityProperty(s, "prebuilt_visibility", &s.properties.Prebuilt_visibility) 135 …android.InitCommonOSAndroidMultiTargetsArchModule(s, android.HostAndDeviceSupported, android.Multi… [all …]
|
D | bp.go | 34 func (s *bpPropertySet) init() { 35 s.properties = make(map[string]interface{}) 36 s.tags = make(map[string]android.BpPropertyTag) 91 func (s *bpPropertySet) mergePropertySet(propSet *bpPropertySet) { 94 s.AddPropertyWithTag(name, propSet.properties[name], tag) 96 s.AddProperty(name, propSet.properties[name]) 101 func (s *bpPropertySet) AddProperty(name string, value interface{}) { 105 if curValue, ok := s.properties[name]; ok { 115 if s.properties[name] != nil { 119 s.properties[name] = value [all …]
|
/build/soong/ui/metrics/proc/ |
D | status.go | 67 func fillProcStatus(s *ProcStatus, key, value string) { 71 s.VmPeak = v 73 s.VmSize = v 75 s.VmLck = v 77 s.VmPin = v 79 s.VmHWM = v 81 s.VmRss = v 83 s.RssAnon = v 85 s.RssShmem = v 87 s.VmData = v [all …]
|
/build/blueprint/proptools/ |
D | escape.go | 26 for i, s := range slice { 27 slice[i] = NinjaEscape(s) 37 func NinjaEscape(s string) string { 38 return ninjaEscaper.Replace(s) 52 for i, s := range slice { 53 slice[i] = ShellEscape(s) 61 for i, s := range slice { 62 slice[i] = ShellEscapeIncludingSpaces(s) 89 func ShellEscape(s string) string { 94 if strings.IndexFunc(s, shellUnsafeCharNotSpace) == -1 { [all …]
|
/build/soong/ui/status/ |
D | status.go | 231 func (s *Status) AddOutput(output StatusOutput) { 236 s.lock.Lock() 237 defer s.lock.Unlock() 239 s.outputs = append(s.outputs, output) 243 func (s *Status) StartTool() ToolStatus { 245 status: s, 252 func (s *Status) Finish() { 253 s.lock.Lock() 254 defer s.lock.Unlock() 256 for _, o := range s.outputs { [all …]
|
D | status_test.go | 59 s := status.StartTool() 61 s.SetTotalActions(2) 64 s.StartAction(a) 73 s.FinishAction(ActionResult{Action: a}) 83 s.StartAction(a) 92 s.FinishAction(ActionResult{Action: a}) 107 s := status.StartTool() 109 s.SetTotalActions(2) 112 s.StartAction(a) 113 s.FinishAction(ActionResult{Action: a}) [all …]
|
/build/soong/etc/ |
D | snapshot_etc.go | 46 s, ok := prebuilt.(*SnapshotEtc) 47 if !ok || s.properties.Src == nil { 51 return []string{*s.properties.Src} 74 func (s *SnapshotEtc) Prebuilt() *android.Prebuilt { 75 return &s.prebuilt 78 func (s *SnapshotEtc) Name() string { 79 return s.prebuilt.Name(s.BaseModuleName()) 82 func (s *SnapshotEtc) GenerateAndroidBuildActions(ctx android.ModuleContext) { 83 if s.properties.Src == nil { 88 sourceFilePath := s.prebuilt.SingleSourcePath(ctx) [all …]
|
/build/make/tools/rbcrun/testdata/ |
D | file_ops.star | 8 assert.true(rblf_file_exists(myname), "the file %s does exist" % myname) 11 assert.true(myname in files, "expected %s in %s" % (myname, files)) 13 assert.true(myname in files, "expected %s in %s" % (myname, files)) 15 assert.true(len(files) == 0, "expansion should be empty but contains %s" % files) 17 myrelname = "%s/%s" % (mydir, myname) 19 …assert.true(mydir in files and myrelname in files, "expected %s and %s in %s" % (mydir, myrelname,… 21 assert.true(mydir not in files, "did not expect %s in %s" % (mydir, files)) 22 assert.true(myrelname in files, "expected %s in %s" % (myrelname, files)) 24 assert.true(myrelname in files, "expected %s in %s" % (myrelname, files))
|
/build/make/tools/atree/ |
D | fs.cpp | 161 const char *s = strip_cmd; in strip_file() local 162 while (*s) { in strip_file() 163 while (*s == ' ') ++s; in strip_file() 164 if (*s && *s != ' ') { in strip_file() 166 while (*s && *s != ' ') ++s; in strip_file() 183 char* s = cmd; in strip_file() local 184 while (*s) { in strip_file() 185 while (*s == ' ') ++s; in strip_file() 186 if (*s && *s != ' ') { in strip_file() 187 *curr = s; in strip_file() [all …]
|
/build/bazel/mk2rbc/ |
D | replace_is_platform_sdk_version_at_least.sh | 8 s/^([^#]*ifn?eq) +\(\$\(call is-platform-sdk-version-at-least, *(16|17|18|19|20|21|22|23|24|25)\), … 9 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *26\), *true\)/\1if\2def IS_AT_LEA… 10 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *27\), *true\)/\1if\2def IS_AT_LEA… 11 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *28\), *true\)/\1if\2def IS_AT_LEA… 12 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *29\), *true\)/\1if\2def IS_AT_LEA… 13 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *30\), *true\)/\1if\2def IS_AT_LEA… 14 s/^([^#]*)if(n?)eq +\(\$\(call is-platform-sdk-version-at-least, *31\), *true\)/\1if\2def IS_AT_LEA…
|
/build/soong/java/ |
D | systemserver_classpath_fragment.go | 93 func (s *SystemServerClasspathModule) ShouldSupportSdkVersion(ctx android.BaseModuleContext, sdkVer… 119 func (s *SystemServerClasspathModule) GenerateAndroidBuildActions(ctx android.ModuleContext) { 120 if len(s.properties.Contents) == 0 && len(s.properties.Standalone_contents) == 0 { 124 configuredJars := s.configuredJars(ctx) 125 classpathJars := configuredJarListToClasspathJars(ctx, configuredJars, s.classpathType) 126 standaloneConfiguredJars := s.standaloneConfiguredJars(ctx) 130 s.classpathFragmentBase().generateClasspathProtoBuildActions(ctx, configuredJars, classpathJars) 133 s.modulePaths = append(s.modulePaths, ctx.ModuleDir()) 136 func (s *SystemServerClasspathModule) configuredJars(ctx android.ModuleContext) android.ConfiguredJ… 139 …possibleUpdatableModules := gatherPossibleApexModuleNamesAndStems(ctx, s.properties.Contents, syst… [all …]
|
/build/soong/androidmk/parser/ |
D | make_strings.go | 51 func SimpleMakeString(s string, pos Pos) *MakeString { 54 Strings: []string{s}, 75 func (ms *MakeString) appendString(s string) { 77 ms.Strings = []string{s} 80 ms.Strings[len(ms.Strings)-1] += s 140 return ms.splitNFunc(n, func(s string, n int) []string { 141 return splitAnyN(s, sep, n) 226 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString { 232 var s string 233 for i, s = range ms.Strings { [all …]
|
/build/soong/ui/tracer/ |
D | status.go | 42 func (s *statusOutput) StartAction(action *status.Action, counts status.Counts) { 44 for i, busy := range s.cpus { 47 s.cpus[i] = true 53 cpu = len(s.cpus) 54 s.cpus = append(s.cpus, true) 57 s.running[action] = actionStatus{ 63 func (s *statusOutput) FinishAction(result status.ActionResult, counts status.Counts) { 64 start, ok := s.running[result.Action] 68 delete(s.running, result.Action) 69 s.cpus[start.cpu] = false [all …]
|
/build/soong/cc/ |
D | cflag_artifacts.go | 47 func (s *cflagArtifactsText) genFlagFilename(flag string) string { 54 func (s *cflagArtifactsText) incrementFile(ctx android.SingletonContext, 57 filename := fmt.Sprintf("%s.%d", s.genFlagFilename(flag), part) 59 s.interOutputs[flag] = append(s.interOutputs[flag], filepath) 66 func (s *cflagArtifactsText) GenCFlagArtifactParts(ctx android.SingletonContext, 70 filename, filepath := s.incrementFile(ctx, cleanedName, part) 104 filename, filepath = s.incrementFile(ctx, cleanedName, part+index+1) 117 func (s *cflagArtifactsText) GenCFlagArtifacts(ctx android.SingletonContext) { 125 filename := s.genFlagFilename(flag) 129 Inputs(s.interOutputs[flag].Paths()). [all …]
|