/build/soong/ui/terminal/ |
D | smart_status.go | 62 s := &smartStatusOutput{ 76 s.tableMode = h > 0 77 s.requestedTableHeight = h 80 s.updateTermSize() 82 if s.tableMode { 86 for i := 0; i < s.tableHeight; i++ { 91 fmt.Fprintf(s.writer, ansi.hideCursor()) 94 s.actionTable() 97 s.startActionTableTick() 100 s.startSigwinch() [all …]
|
D | simple_status.go | 39 func (s *simpleStatusOutput) Message(level status.MsgLevel, message string) { 41 fmt.Fprintln(s.writer, s.formatter.message(level, message)) 45 func (s *simpleStatusOutput) StartAction(action *status.Action, counts status.Counts) { 48 func (s *simpleStatusOutput) FinishAction(result status.ActionResult, counts status.Counts) { 54 progress := s.formatter.progress(counts) + str 56 output := s.formatter.result(result) 60 fmt.Fprint(s.writer, progress, "\n", output) 62 fmt.Fprintln(s.writer, progress) 66 func (s *simpleStatusOutput) Flush() {} 68 func (s *simpleStatusOutput) Write(p []byte) (int, error) { [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 …]
|
D | name_interface.go | 106 func (s *SimpleNameInterface) NewModule(ctx NamespaceContext, group ModuleGroup, module Module) (na… 108 if group, present := s.modules[name]; present { 116 s.modules[name] = group 121 func (s *SimpleNameInterface) ModuleFromName(moduleName string, namespace Namespace) (group ModuleG… 122 group, found = s.modules[moduleName] 126 func (s *SimpleNameInterface) Rename(oldName string, newName string, namespace Namespace) (errs []e… 127 existingGroup, exists := s.modules[newName] 137 group, exists := s.modules[oldName] 141 s.modules[newName] = group 142 delete(s.modules, group.name) [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 | util.go | 28 func CopyOf(s []string) []string { 29 return append([]string(nil), s...) 76 s := make([]int, 0, len(keys)) 78 s = append(s, int(key.Int())) 80 sort.Ints(s) 81 return s 91 s := make([]string, 0, len(keys)) 93 s = append(s, key.String()) 95 sort.Strings(s) 96 return s [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 | sdk.go | 98 func (s SdkRef) Unversioned() bool { 99 return s.Version == "" 103 func (s SdkRef) String() string { 104 if s.Name == "" { 107 if s.Unversioned() { 108 return s.Name 110 return s.Name + string(SdkVersionSeparator) + s.Version 137 func (refs SdkRefs) Contains(s SdkRef) bool { 139 if r == s { 164 func (s *SdkBase) sdkBase() *SdkBase { [all …]
|
/build/soong/sh/ |
D | sh_binary.go | 174 func (s *ShBinary) HostToolPath() android.OptionalPath { 175 return android.OptionalPathForPath(s.installedFile) 178 func (s *ShBinary) DepsMutator(ctx android.BottomUpMutatorContext) { 181 func (s *ShBinary) OutputFile() android.OutputPath { 182 return s.outputFilePath 185 func (s *ShBinary) SubDir() string { 186 return proptools.String(s.properties.Sub_dir) 189 func (s *ShBinary) Installable() bool { 190 return s.properties.Installable == nil || proptools.Bool(s.properties.Installable) 193 func (s *ShBinary) Symlinks() []string { [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/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/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/sdk/ |
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 …]
|
D | sdk.go | 247 s := &sdk{} 248 s.properties.Module_exports = moduleExports 256 s.dynamicSdkMemberTypes = getDynamicSdkMemberTypes(registry) 259 s.dynamicMemberTypeListProperties = s.dynamicSdkMemberTypes.createMemberListProperties() 260 s.AddProperties(&s.properties, s.dynamicMemberTypeListProperties) 263 android.AddVisibilityProperty(s, "prebuilt_visibility", &s.properties.Prebuilt_visibility) 264 …android.InitCommonOSAndroidMultiTargetsArchModule(s, android.HostAndDeviceSupported, android.Multi… 265 android.InitDefaultableModule(s) 266 android.AddLoadHook(s, func(ctx android.LoadHookContext) { 273 return s [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) 81 func ShellEscape(s string) string { 86 if strings.IndexFunc(s, shellUnsafeCharNotSpace) == -1 { 88 return s 96 func ShellEscapeIncludingSpaces(s string) string { [all …]
|
/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/soong/androidmk/parser/ |
D | make_strings.go | 41 func SimpleMakeString(s string, pos Pos) *MakeString { 44 Strings: []string{s}, 65 func (ms *MakeString) appendString(s string) { 67 ms.Strings = []string{s} 70 ms.Strings[len(ms.Strings)-1] += s 130 return ms.splitNFunc(n, func(s string, n int) []string { 131 return splitAnyN(s, sep, n) 216 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString { 222 var s string 223 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 …]
|
D | sanitize.go | 253 s := &sanitize.Properties.Sanitize 257 s.Never = BoolPtr(true) 262 s.Never = BoolPtr(true) 266 if Bool(s.Never) { 271 if ctx.testBinary() && s.Memtag_heap == nil { 272 s.Memtag_heap = boolPtr(true) 273 s.Diag.Memtag_heap = boolPtr(true) 293 …if found, globalSanitizers = removeFromList("undefined", globalSanitizers); found && s.All_undefin… 294 s.All_undefined = boolPtr(true) 297 …if found, globalSanitizers = removeFromList("default-ub", globalSanitizers); found && s.Undefined … [all …]
|
/build/make/core/ |
D | checktree | 22 def split_perforce_parts(s): argument 23 spaces = ((s.count(" ") + 1) / 3) * 2 26 pos = s.find(" ", pos) + 1 28 return s[pos:] 30 def quotate(s): argument 31 return '"' + s + '"' 41 def matchit(s): argument 42 m = regex_compiled.match(s) 47 def filterit(s): argument 48 if filt_compiled.match(s): [all …]
|
/build/soong/zip/cmd/ |
D | main.go | 44 func (u *uniqueSet) Set(s string) error { 45 if _, found := (*u)[s]; found { 46 return fmt.Errorf("File %q was specified twice as a file to not deflate", s) 48 (*u)[s] = true 58 func (file) Set(s string) error { 59 fileArgsBuilder.File(s) 67 func (listFiles) Set(s string) error { 68 fileArgsBuilder.List(s) 76 func (rspFiles) Set(s string) error { 77 fileArgsBuilder.RspFile(s) [all …]
|