Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 247) sorted by relevance

12345678910

/build/soong/android/
Dconfig.go117 func (c Config) SoongOutDir() string {
118 return c.soongOutDir
122 func (c Config) tempDir() string {
123 return shared.TempDirForOutDir(c.soongOutDir)
126 func (c Config) OutDir() string {
127 return c.outDir
130 func (c Config) RunGoTests() bool {
131 return c.runGoTests
134 func (c Config) DebugCompilation() bool {
138 func (c Config) Subninjas() []string {
[all …]
Drule_builder.go242 for _, c := range r.commands {
243 for _, input := range append(c.inputs, c.implicits...) {
269 for _, c := range r.commands {
270 for _, orderOnly := range c.orderOnlys {
291 for _, c := range r.commands {
292 for _, validation := range c.validations {
311 for _, c := range r.commands {
312 for _, output := range c.outputs {
341 for _, c := range r.commands {
342 for _, depFile := range c.depFiles {
[all …]
/build/soong/ui/build/
Dexec.go56 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 …]
Dconfig.go451 c := Config{ret}
452 storeConfigMetrics(ctx, c)
453 return c
530 c := &smpb.BuildConfig{
536 c.Targets = append(c.Targets, config.arguments...)
538 return c
754 func (c *configImpl) parseArgs(ctx Context, args []string) {
758 c.verbose = true
760 c.emptyNinjaFile = true
762 c.skipNinja = true
[all …]
Dcontext.go48 func (c ContextImpl) BeginTrace(name, desc string) {
49 if c.Tracer != nil {
50 c.Tracer.Begin(desc, c.Thread)
52 if c.Metrics != nil {
53 c.Metrics.EventTracer.Begin(name, desc)
58 func (c ContextImpl) EndTrace() {
59 if c.Tracer != nil {
60 c.Tracer.End(c.Thread)
62 if c.Metrics != nil {
63 c.Metrics.SetTimeMetrics(c.Metrics.EventTracer.End())
[all …]
Dsandbox_darwin.go40 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 …]
Dsandbox_linux.go63 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)
104 c.config.sandboxConfig.SrcDirMountFlag(), sandboxConfig.srcDir,
[all …]
Dsandbox_linux_test.go43 c := testCmd()
44 c.config.sandboxConfig.SetSrcDirIsRO(testCase.srcDirIsRO)
45 c.wrapSandbox()
46 if !isExpectedMountFlag(c.Args, sandboxConfig.srcDir, testCase.expectedSrcDirFlag) {
67 c := testCmd()
68 c.config.sandboxConfig.SetSrcDirIsRO(true)
69 c.config.sandboxConfig.SetSrcDirRWAllowlist(testCase.srcDirRWAllowlist)
70 c.wrapSandbox()
72 if !isExpectedMountFlag(c.Args, allowlistPath, "-B") {
Dproc_sync_test.go61 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/
Dninja_rsp.py35 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/cc/
Dcc.go920 func (c *Module) AddJSONData(d *map[string]interface{}) {
922 if b, ok := c.compiler.(*baseCompiler); ok {
931 c.AndroidModuleBase().AddJSONData(d)
933 "SdkVersion": c.SdkVersion(),
934 "MinSdkVersion": c.MinSdkVersion(),
935 "VndkVersion": c.VndkVersion(),
936 "ProductSpecific": c.ProductSpecific(),
937 "SocSpecific": c.SocSpecific(),
938 "DeviceSpecific": c.DeviceSpecific(),
939 "InProduct": c.InProduct(),
[all …]
Dimage.go79 func (c *Module) InstallInProduct() bool {
82 return c.InProduct()
85 func (c *Module) InstallInVendor() bool {
89 return c.HasVendorVariant() && c.InVendor() && !c.VendorVariantToOdm()
92 func (c *Module) InstallInOdm() bool {
94 return c.InVendor() && c.VendorVariantToOdm()
98 func (c *Module) HasVendorVariant() bool {
99 return Bool(c.VendorProperties.Vendor_available) || Bool(c.VendorProperties.Odm_available)
104 func (c *Module) VendorVariantToOdm() bool {
105 return Bool(c.VendorProperties.Odm_available)
[all …]
/build/blueprint/proptools/
Dconfigurable.go87 func (c ConfigurableCondition) FunctionName() string {
88 return c.functionName
91 func (c ConfigurableCondition) NumArgs() int {
92 return len(c.args)
95 func (c ConfigurableCondition) Arg(i int) string {
96 return c.args[i]
99 func (c *ConfigurableCondition) String() string {
101 sb.WriteString(c.functionName)
103 for i, arg := range c.args {
105 if i < len(c.args)-1 {
[all …]
/build/soong/java/
Ddexpreopt_config.go122 for _, c := range configs {
123 c.dir = deviceDir.Join(ctx, "dex_"+c.name+"jars")
124 c.symbolsDir = deviceDir.Join(ctx, "dex_"+c.name+"jars_unstripped")
127 imageName := c.firstModuleNameOrStem(ctx) + ".art"
133 inputDir := deviceDir.Join(ctx, "dex_"+c.name+"jars_input")
134 c.dexPaths = c.modules.BuildPaths(ctx, inputDir)
135 c.dexPathsByModule = c.modules.BuildPathsByModule(ctx, inputDir)
136 c.dexPathsDeps = c.dexPaths
141 imageDir := c.dir.Join(ctx, target.Os.String(), c.installDir, arch.String())
143 bootImageConfig: c,
[all …]
Dclasspath_fragment.go44 func (c classpathType) String() string {
45 …BOOTCLASSPATH", "DEX2OATBOOTCLASSPATH", "SYSTEMSERVERCLASSPATH", "STANDALONE_SYSTEMSERVER_JARS"}[c]
75 func (c *ClasspathFragmentBase) classpathFragmentBase() *ClasspathFragmentBase {
76 return c
80 func initClasspathFragment(c classpathFragment, classpathType classpathType) {
81 base := c.classpathFragmentBase()
83 c.AddProperties(&base.properties)
156 func (c *ClasspathFragmentBase) outputFilename() string {
157 return strings.ToLower(c.classpathType.String()) + ".pb"
160 func (c *ClasspathFragmentBase) generateClasspathProtoBuildActions(ctx android.ModuleContext, confi…
[all …]
/build/make/tools/droiddoc/templates-pdk/assets/
Djquery-1.6.2.min.js16c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.c… argument
17c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.names… argument
/build/blueprint/bootstrap/
Dconfig.go29 c, ok := config.(BootstrapConfig)
34 return value(c), nil
41 srcDirVariable = bootstrapVariable("srcDir", func(c BootstrapConfig) string {
44 soongOutDirVariable = bootstrapVariable("soongOutDir", func(c BootstrapConfig) string {
45 return c.SoongOutDir()
47 outDirVariable = bootstrapVariable("outDir", func(c BootstrapConfig) string {
48 return c.OutDir()
50 goRootVariable = bootstrapVariable("goRoot", func(c BootstrapConfig) string {
62 compileCmdVariable = bootstrapVariable("compileCmd", func(c BootstrapConfig) string {
65 linkCmdVariable = bootstrapVariable("linkCmd", func(c BootstrapConfig) string {
[all …]
/build/soong/response/
Dresponse.go38 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/make/tools/product_config/src/com/android/build/config/
DCsvParser.java122 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/blueprint/
Dglob.go41 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
50 c.globLock.Lock()
51 g, exists := c.globs[key]
52 c.globLock.Unlock()
62 result, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
68 c.globLock.Lock()
69 if g, exists = c.globs[key]; !exists {
70 c.globs[key] = result
72 c.globLock.Unlock()
85 func (c *Context) Globs() pathtools.MultipleGlobResults {
[all …]
Dcontext.go195 func (c *Context) AddSourceRootDirs(dirs ...string) {
196 c.sourceRootDirs.Add(dirs...)
213 func (c *Context) AddIncludeTags(names ...string) {
214 c.includeTags.Add(names...)
217 func (c *Context) ContainsIncludeTag(name string) bool {
218 return c.includeTags.Contains(name)
569 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
570 if _, present := c.moduleFactories[name]; present {
573 c.moduleFactories[name] = factory
591 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory, parallel bool) {
[all …]
Dlevenshtein.go52 if c := levenshtein(a, b, ai+1, bi+1, max-1, buf); c < res {
53 res = c // replace
55 if c := levenshtein(a, b, ai+1, bi, max-1, buf); c < res {
56 res = c // delete from a
58 if c := levenshtein(a, b, ai, bi+1, max-1, buf); c < res {
59 res = c // delete from b
/build/soong/ui/status/
Dstatus_test.go21 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/snapshot/
Dhost_fake_snapshot.go86 func (c *hostFakeSingleton) init() {
87 c.snapshotDir = "host-fake-snapshot"
96 func (c *hostFakeSingleton) GenerateBuildActions(ctx android.SingletonContext) {
128 outFile := filepath.Join(c.snapshotDir, path.String())
148 …outputs = append(outputs, WriteStringToFileRule(ctx, string(marsh), filepath.Join(c.snapshotDir, "…
149 c.zipFile = zipSnapshot(ctx, c.snapshotDir, c.snapshotDir, outputs)
152 func (c *hostFakeSingleton) MakeVars(ctx android.MakeVarsContext) {
153 if !c.zipFile.Valid() {
158 c.zipFile.Path())
162 c.zipFile.Path())
/build/soong/android/soongconfig/
Dconfig.go51 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]

12345678910