/build/soong/ui/build/ |
D | exec.go | 56 func (c *Cmd) prepare() { 57 if c.Env == nil { 58 c.Env = c.Environment.Environ() 60 if c.sandboxSupported() { 61 c.wrapSandbox() 64 c.ctx.Verbosef("%q executing %q %v\n", c.name, c.Path, c.Args) 65 c.started = time.Now() 68 func (c *Cmd) report() { 69 if state := c.Cmd.ProcessState; state != nil { 70 if c.ctx.Metrics != nil { [all …]
|
D | config.go | 321 c := Config{ret} 322 storeConfigMetrics(ctx, c) 323 return c 566 func (c *configImpl) parseArgs(ctx Context, args []string) { 570 c.verbose = true 572 c.skipNinja = true 574 c.skipConfig = true 575 c.skipKati = true 578 c.skipKati = true 580 c.skipKati = true [all …]
|
D | context.go | 46 func (c ContextImpl) BeginTrace(name, desc string) { 47 if c.Tracer != nil { 48 c.Tracer.Begin(desc, c.Thread) 50 if c.Metrics != nil { 51 c.Metrics.EventTracer.Begin(name, desc, c.Thread) 56 func (c ContextImpl) EndTrace() { 57 if c.Tracer != nil { 58 c.Tracer.End(c.Thread) 60 if c.Metrics != nil { 61 c.Metrics.SetTimeMetrics(c.Metrics.EventTracer.End(c.Thread)) [all …]
|
D | sandbox_linux.go | 63 func (c *Cmd) sandboxSupported() bool { 64 if !c.Sandbox.Enabled { 69 if c.Sandbox.DisableWhenUsingGoma && c.config.UseGoma() { 81 sandboxConfig.srcDir = absPath(c.ctx, ".") 83 sandboxConfig.srcDir = absPath(c.ctx, derefPath) 85 sandboxConfig.outDir = absPath(c.ctx, c.config.OutDir()) 87 sandboxConfig.outDir = absPath(c.ctx, derefPath) 89 sandboxConfig.distDir = absPath(c.ctx, c.config.DistDir()) 91 sandboxConfig.distDir = absPath(c.ctx, derefPath) 116 cmd := exec.CommandContext(c.ctx.Context, nsjailPath, sandboxArgs...) [all …]
|
D | sandbox_darwin.go | 40 func (c *Cmd) sandboxSupported() bool { 41 if c.Sandbox == "" { 44 c.ctx.Verboseln("sandbox-exec not found, disabling sandboxing") 50 func (c *Cmd) wrapSandbox() { 51 homeDir, _ := c.Environment.Get("HOME") 52 outDir := absPath(c.ctx, c.config.OutDir()) 53 distDir := absPath(c.ctx, c.config.DistDir()) 55 c.Args[0] = c.Path 56 c.Path = sandboxExecPath 57 c.Args = append([]string{ [all …]
|
D | proc_sync_test.go | 61 func (c *countWaiter) wait() { 62 c.numWaitsElapsed++ 64 func (c *countWaiter) checkDeadline() (done bool, remainder string) { 65 numWaitsRemaining := c.maxNumWaits - c.numWaitsElapsed 71 func (c countWaiter) summarize() (summary string) { 72 return fmt.Sprintf("waiting %v times", c.maxNumWaits) 87 func (c *countLock) description() (message string) { 88 return fmt.Sprintf("counter that counts from %v to %v", c.nextIndex, c.successIndex) 90 func (c *countLock) tryLock() (err error) { 91 currentIndex := c.nextIndex [all …]
|
/build/soong/scripts/ |
D | ninja_rsp.py | 35 c = f.read(1) 36 if c: 37 yield c 49 c = next(self.r, "") 50 if not c: 52 elif c == "'": 55 entry = c 56 for c in self.r: 57 if c == " " or c == "\n": 59 entry += c [all …]
|
/build/soong/android/ |
D | rule_builder.go | 241 for _, c := range r.commands { 242 for _, input := range append(c.inputs, c.implicits...) { 268 for _, c := range r.commands { 269 for _, orderOnly := range c.orderOnlys { 290 for _, c := range r.commands { 291 for _, validation := range c.validations { 310 for _, c := range r.commands { 311 for _, output := range c.outputs { 340 for _, c := range r.commands { 341 for _, symlinkOutput := range c.symlinkOutputs { [all …]
|
D | makevars.go | 408 func (c *makeVarsContext) DeviceConfig() DeviceConfig { 409 return DeviceConfig{c.Config().deviceConfig} 414 func (c *makeVarsContext) Eval(ninjaStr string) (string, error) { 415 s, err := c.SingletonContext.Eval(c.pctx, ninjaStr) 424 func (c *makeVarsContext) addVariableRaw(name, value string, strict, sort bool) { 425 c.vars = append(c.vars, makeVarsVariable{ 433 func (c *makeVarsContext) addVariable(name, ninjaStr string, strict, sort bool) { 434 value, err := c.Eval(ninjaStr) 436 c.SingletonContext.Errorf(err.Error()) 438 c.addVariableRaw(name, value, strict, sort) [all …]
|
/build/blueprint/ |
D | context.go | 476 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) { 477 if _, present := c.moduleFactories[name]; present { 480 c.moduleFactories[name] = factory 496 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) { 497 for _, s := range c.singletonInfo { 503 c.singletonInfo = append(c.singletonInfo, &singletonInfo{ 518 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) { 519 for _, s := range c.preSingletonInfo { 525 c.preSingletonInfo = append(c.preSingletonInfo, &singletonInfo{ 532 func (c *Context) SetNameInterface(i NameInterface) { [all …]
|
D | provider.go | 99 func (c *Context) initProviders() { 100 c.providerMutators = make([]*mutatorInfo, len(providerRegistry)) 102 for _, mutator := range c.mutatorInfo { 104 c.providerMutators[provider.id] = mutator 116 func (c *Context) setProvider(m *moduleInfo, provider ProviderKey, value interface{}) { 126 expectedMutator := c.providerMutators[provider.id] 130 } else if c.mutatorFinishedForModule(expectedMutator, m) { 133 } else if !c.mutatorStartedForModule(expectedMutator, m) { 163 func (c *Context) provider(m *moduleInfo, provider ProviderKey) (interface{}, bool) { 170 expectedMutator := c.providerMutators[provider.id] [all …]
|
D | glob.go | 40 func (c *Context) glob(pattern string, excludes []string) ([]string, error) { 49 c.globLock.Lock() 50 g, exists := c.globs[key] 51 c.globLock.Unlock() 61 result, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks) 67 c.globLock.Lock() 68 if g, exists = c.globs[key]; !exists { 69 c.globs[key] = result 71 c.globLock.Unlock() 84 func (c *Context) Globs() pathtools.MultipleGlobResults { [all …]
|
/build/blueprint/bootstrap/ |
D | config.go | 29 c, ok := config.(BootstrapConfig) 34 return value(c), nil 41 srcDirVariable = bootstrapVariable("srcDir", func(c BootstrapConfig) string { 42 return c.SrcDir() 44 buildDirVariable = bootstrapVariable("buildDir", func(c BootstrapConfig) string { 45 return c.BuildDir() 47 ninjaBuildDirVariable = bootstrapVariable("ninjaBuildDir", func(c BootstrapConfig) string { 48 return c.NinjaBuildDir() 50 goRootVariable = bootstrapVariable("goRoot", func(c BootstrapConfig) string { 62 compileCmdVariable = bootstrapVariable("compileCmd", func(c BootstrapConfig) string { [all …]
|
/build/soong/cc/ |
D | androidmk.go | 56 func (c *Module) subAndroidMk(entries *android.AndroidMkEntries, obj interface{}) { 57 if c.subAndroidMkOnce == nil { 58 c.subAndroidMkOnce = make(map[subAndroidMkProvider]bool) 61 if !c.subAndroidMkOnce[androidmk] { 62 c.subAndroidMkOnce[androidmk] = true 63 androidmk.AndroidMkEntries(c, entries) 68 func (c *Module) AndroidMkEntries() []android.AndroidMkEntries { 69 if c.hideApexVariantFromMake || c.Properties.HideFromMake { 76 OutputFile: c.outputFile, 82 Required: c.Properties.AndroidMkRuntimeLibs, [all …]
|
D | image.go | 83 func (c *Module) productSpecificModuleContext() bool { 86 return c.InProduct() 89 func (c *Module) socSpecificModuleContext() bool { 93 return c.HasVendorVariant() && c.InVendor() && !c.VendorVariantToOdm() 96 func (c *Module) deviceSpecificModuleContext() bool { 98 return c.InVendor() && c.VendorVariantToOdm() 102 func (c *Module) HasVendorVariant() bool { 103 return Bool(c.VendorProperties.Vendor_available) || Bool(c.VendorProperties.Odm_available) 108 func (c *Module) VendorVariantToOdm() bool { 109 return Bool(c.VendorProperties.Odm_available) [all …]
|
D | sanitize.go | 866 c := mctx.Module().(PlatformSanitizeable) 868 if !c.InVendor() { 872 if !c.StaticallyLinked() { 876 if c.IsPrebuilt() { 880 if !c.SanitizerSupported(cfi) { 884 return c.SanitizePropDefined() && 885 !c.SanitizeNever() && 886 !c.IsSanitizerExplicitlyDisabled(cfi) 892 if c, ok := mctx.Module().(PlatformSanitizeable); ok { 893 enabled := c.IsSanitizerEnabled(t) [all …]
|
/build/make/tools/product_config/src/com/android/build/config/ |
D | CsvParser.java | 122 int c = reader.read(); in parse() local 126 if (c <= 0) { in parse() 129 } else if (c == '"') { in parse() 131 } else if (c == ',') { in parse() 134 } else if (c == '\n') { in parse() 141 if (c <= 0) { in parse() 145 } else if (c == '"') { in parse() 147 } else if (c == ',') { in parse() 150 } else if (c == '\n') { in parse() 158 if (c <= 0) { in parse() [all …]
|
/build/soong/response/ |
D | response.go | 38 for _, c := range buf { 42 if !(c == '"' || c == '\\') { 47 file = append(file, c) 49 case c == '\\' && quotingStart != '\'': 51 case quotingStart == noQuote && (c == '\'' || c == '"'): 52 quotingStart = c 53 case quotingStart != noQuote && c == quotingStart: 55 case quotingStart == noQuote && unicode.IsSpace(rune(c)): 62 file = append(file, c)
|
/build/soong/java/ |
D | dexpreopt_config.go | 90 for _, c := range configs { 91 c.dir = deviceDir.Join(ctx, "dex_"+c.name+"jars") 92 c.symbolsDir = deviceDir.Join(ctx, "dex_"+c.name+"jars_unstripped") 95 imageName := c.firstModuleNameOrStem(ctx) + ".art" 101 inputDir := deviceDir.Join(ctx, "dex_"+c.name+"jars_input") 102 c.dexPaths = c.modules.BuildPaths(ctx, inputDir) 103 c.dexPathsByModule = c.modules.BuildPathsByModule(ctx, inputDir) 104 c.dexPathsDeps = c.dexPaths 109 imageDir := c.dir.Join(ctx, target.Os.String(), c.installDirOnHost, arch.String()) 111 bootImageConfig: c, [all …]
|
D | classpath_fragment.go | 42 func (c classpathType) String() string { 43 return [...]string{"BOOTCLASSPATH", "DEX2OATBOOTCLASSPATH", "SYSTEMSERVERCLASSPATH"}[c] 72 func (c *ClasspathFragmentBase) classpathFragmentBase() *ClasspathFragmentBase { 73 return c 77 func initClasspathFragment(c classpathFragment, classpathType classpathType) { 78 base := c.classpathFragmentBase() 80 c.AddProperties(&base.properties) 130 func (c *ClasspathFragmentBase) generateClasspathProtoBuildActions(ctx android.ModuleContext, jars … 131 outputFilename := strings.ToLower(c.classpathType.String()) + ".pb" 132 c.outputFilepath = android.PathForModuleOut(ctx, outputFilename).OutputPath [all …]
|
/build/soong/ui/status/ |
D | status_test.go | 21 func (c *counterOutput) StartAction(action *Action, counts Counts) { 22 *c = counterOutput(counts) 24 func (c *counterOutput) FinishAction(result ActionResult, counts Counts) { 25 *c = counterOutput(counts) 27 func (c counterOutput) Message(level MsgLevel, msg string) {} 28 func (c counterOutput) Flush() {} 30 func (c counterOutput) Write(p []byte) (int, error) { 35 func (c counterOutput) Expect(t *testing.T, counts Counts) { 36 if Counts(c) == counts { 41 if c.TotalActions != counts.TotalActions { [all …]
|
/build/soong/android/soongconfig/ |
D | config.go | 51 func (c soongConfig) Bool(name string) bool { 52 v := strings.ToLower(c[name]) 56 func (c soongConfig) String(name string) string { 57 return c[name] 60 func (c soongConfig) IsSet(name string) bool { 61 _, ok := c[name]
|
/build/soong/ui/terminal/ |
D | stdio.go | 51 func (c customStdio) Stdin() io.Reader { return c.stdin } 52 func (c customStdio) Stdout() io.Writer { return c.stdout } 53 func (c customStdio) Stderr() io.Writer { return c.stderr }
|
/build/soong/third_party/zip/ |
D | reader_test.go | 422 var c []byte 424 c = ft.Content 425 } else if c, err = ioutil.ReadFile("testdata/" + ft.File); err != nil { 430 if b.Len() != len(c) { 431 t.Errorf("%s: len=%d, want %d", f.Name, b.Len(), len(c)) 436 if b != c[i] { 437 t.Errorf("%s: content[%d]=%q want %q", f.Name, i, b, c[i]) 510 0000000 50 4b 03 04 14 00 00 00 08 00 08 03 64 3c f9 f4 513 0000030 00 00 08 00 08 03 64 3c f9 f4 89 64 48 01 00 00 516 0000060 00 08 00 08 03 64 3c f9 f4 89 64 48 01 00 00 b8 [all …]
|
/build/soong/cmd/run_with_timeout/ |
D | run_with_timeout.go | 73 func (c *concurrentWriter) Write(data []byte) (n int, err error) { 74 c.Lock() 75 defer c.Unlock() 76 if c.w == nil { 79 return c.w.Write(data) 84 func (c *concurrentWriter) Close() { 85 c.Lock() 86 defer c.Unlock() 87 c.w = nil
|