Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 214) sorted by relevance

123456789

/build/soong/ui/terminal/
Dsmart_status.go62 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 …]
Dsimple_status.go39 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/
Dsingleton_ctx.go167 func (s *singletonContext) Config() interface{} {
168 return s.config
171 func (s *singletonContext) Name() string {
172 return s.name
175 func (s *singletonContext) ModuleName(logicModule Module) string {
176 return s.context.ModuleName(logicModule)
179 func (s *singletonContext) ModuleDir(logicModule Module) string {
180 return s.context.ModuleDir(logicModule)
183 func (s *singletonContext) ModuleSubDir(logicModule Module) string {
184 return s.context.ModuleSubDir(logicModule)
[all …]
Dscope.go103 func (s *basicScope) LookupVariable(name string) (Variable, error) {
123 importedScope, err := s.lookupImportedScope(pkgName)
137 for ; s != nil; s = s.parent {
138 v, ok := s.variables[name]
147 func (s *basicScope) IsRuleVisible(rule Rule) bool {
155 for s != nil {
156 if s.rules[name] == rule {
160 for _, import_ := range s.imports {
166 s = s.parent
172 func (s *basicScope) IsPoolVisible(pool Pool) bool {
[all …]
Dname_interface.go106 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/
Dexpand.go30 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 …]
Dsingleton.go93 func (s *singletonAdaptor) GenerateBuildActions(ctx blueprint.SingletonContext) {
99 s.Singleton.GenerateBuildActions(sctx)
101 s.buildParams = sctx.buildParams
102 s.ruleParams = sctx.ruleParams
105 func (s *singletonAdaptor) BuildParamsForTests() []BuildParams {
106 return s.buildParams
109 func (s *singletonAdaptor) RuleParamsForTests() map[blueprint.Rule]blueprint.RuleParams {
110 return s.ruleParams
124 func (s *singletonContextAdaptor) Config() Config {
125 return s.SingletonContext.Config().(Config)
[all …]
Dutil.go28 func CopyOf(s []string) []string {
29 return append([]string(nil), s...)
42 for _, s := range strs {
43 n += len(prefix) + len(s)
47 for i, s := range strs {
52 ret = append(ret, s...)
67 for _, s := range strs {
68 n += len(suffix) + len(s)
72 for i, s := range strs {
76 ret = append(ret, s...)
[all …]
Dsdk.go63 func (s SdkRef) Unversioned() bool {
64 return s.Version == ""
68 func (s SdkRef) String() string {
69 if s.Name == "" {
72 if s.Unversioned() {
73 return s.Name
75 return s.Name + string(SdkVersionSeparator) + s.Version
102 func (refs SdkRefs) Contains(s SdkRef) bool {
104 if r == s {
129 func (s *SdkBase) sdkBase() *SdkBase {
[all …]
Dmodule_test.go23 s string
33 s: "foo",
40 s: ":foo",
47 s: ":foo{.bar}",
54 s: ":foo:bar",
61 if gotModule := SrcIsModule(tt.args.s); gotModule != tt.wantModule {
70 s string
81 s: "foo",
89 s: ":foo",
97 s: ":foo{.bar}",
[all …]
/build/soong/sh/
Dsh_binary.go116 func (s *ShBinary) HostToolPath() android.OptionalPath {
117 return android.OptionalPathForPath(s.installedFile)
120 func (s *ShBinary) DepsMutator(ctx android.BottomUpMutatorContext) {
121 if s.properties.Src == nil {
126 func (s *ShBinary) OutputFile() android.OutputPath {
127 return s.outputFilePath
130 func (s *ShBinary) SubDir() string {
131 return proptools.String(s.properties.Sub_dir)
134 func (s *ShBinary) Installable() bool {
135 return s.properties.Installable == nil || proptools.Bool(s.properties.Installable)
[all …]
/build/soong/ui/logger/
Dlogger.go160 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/androidmk/parser/
Dmake_strings.go39 func SimpleMakeString(s string, pos Pos) *MakeString {
42 Strings: []string{s},
63 func (ms *MakeString) appendString(s string) {
65 ms.Strings = []string{s}
68 ms.Strings[len(ms.Strings)-1] += s
128 return ms.splitNFunc(n, func(s string, n int) []string {
129 return splitAnyN(s, sep, n)
137 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString {
143 var s string
144 for i, s = range ms.Strings {
[all …]
/build/soong/ui/status/
Dstatus.go200 func (s *Status) AddOutput(output StatusOutput) {
205 s.lock.Lock()
206 defer s.lock.Unlock()
208 s.outputs = append(s.outputs, output)
212 func (s *Status) StartTool() ToolStatus {
214 status: s,
221 func (s *Status) Finish() {
222 s.lock.Lock()
223 defer s.lock.Unlock()
225 for _, o := range s.outputs {
[all …]
Dstatus_test.go59 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/
Dbp.go31 func (s *bpPropertySet) init() {
32 s.properties = make(map[string]interface{})
33 s.tags = make(map[string]android.BpPropertyTag)
36 func (s *bpPropertySet) AddProperty(name string, value interface{}) {
37 if s.properties[name] != nil {
41 s.properties[name] = value
42 s.order = append(s.order, name)
45 func (s *bpPropertySet) AddPropertyWithTag(name string, value interface{}, tag android.BpPropertyTa…
46 s.AddProperty(name, value)
47 s.tags[name] = tag
[all …]
Dsdk.go200 s := &sdk{}
201 s.properties.Module_exports = moduleExports
209 s.dynamicSdkMemberTypes = getDynamicSdkMemberTypes(registry)
212 s.dynamicMemberTypeListProperties = s.dynamicSdkMemberTypes.createMemberListProperties()
213 s.AddProperties(&s.properties, s.dynamicMemberTypeListProperties)
214 …android.InitCommonOSAndroidMultiTargetsArchModule(s, android.HostAndDeviceSupported, android.Multi…
215 android.InitDefaultableModule(s)
216 android.AddLoadHook(s, func(ctx android.LoadHookContext) {
223 return s
228 s := newSdkModule(false)
[all …]
/build/soong/ui/tracer/
Dstatus.go42 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/make/tools/warn/
Dhtml_writer.py146 warnings = {p: {s.value: 0 for s in Severity.levels} for p in project_names}
148 s = i['severity'].value
150 warnings[p][s] += i['projects'][p]
158 p: sum(warnings[p][s.value] for s in Severity.levels)
167 s.value: sum(warnings[p][s.value] for p in project_names)
168 for s in Severity.levels
176 for s in Severity.levels:
177 if total_by_severity[s.value]:
180 s.color, s.column_header))
206 for s in Severity.levels:
[all …]
/build/blueprint/proptools/
Descape.go26 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)
63 func ShellEscape(s string) string {
83 if strings.IndexFunc(s, shellUnsafeChar) == -1 {
85 return s
95 func NinjaAndShellEscape(s string) string {
[all …]
/build/make/tools/atree/
Dfs.cpp161 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/cc/
Dcflag_artifacts.go47 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 …]
/build/make/core/
Dchecktree22 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/java/
Dsdk.go151 func (s sdkSpec) String() string {
152 return fmt.Sprintf("%s_%s", s.kind, s.version)
157 func (s sdkSpec) valid() bool {
158 return s.kind != sdkInvalid
162 func (s sdkSpec) specified() bool {
163 return s.valid() && s.kind != sdkPrivate
168 func (s sdkSpec) stable() bool {
169 if !s.specified() {
172 switch s.kind {
181 panic(fmt.Errorf("unknown sdkKind=%v", s.kind))
[all …]
/build/soong/androidmk/androidmk/
Dvalues.go26 func stringToStringValue(s string) bpparser.Expression {
28 Value: s,
71 for i, s := range ms.Strings[1:] {
88 if s[0] == '/' {
89 s = s[1:]
91 s = "." + s
101 if s != "" {
102 tmp := stringToStringValue(s)
113 func stringToListValue(s string) bpparser.Expression {
114 list := strings.Fields(s)
[all …]

123456789