Home
last modified time | relevance | path

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

123456

/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 c.Cmd.ProcessState != nil {
70 rusage := c.Cmd.ProcessState.SysUsage().(*syscall.Rusage)
[all …]
Dconfig.go490 func (c *configImpl) parseArgs(ctx Context, args []string) {
495 c.verbose = true
497 c.skipMake = true
517 c.parallel = parseArgNum(c.parallel)
519 c.keepGoing = parseArgNum(0)
527 c.environ.Set(k, v)
529 c.dist = true
532 c.checkbuild = true
534 c.arguments = append(c.arguments, arg)
539 func (c *configImpl) configureLocale(ctx Context) {
[all …]
Dcontext.go46 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.TimeTracer.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.TimeTracer.End(c.Thread))
[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)
116 cmd := exec.CommandContext(c.ctx.Context, nsjailPath, sandboxArgs...)
[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 …]
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/android/
Dconfig.go61 func (c Config) BuildDir() string {
62 return c.buildDir
426 func (c *config) mockFileSystem(bp string, fs map[string][]byte) {
450 c.fs = pathtools.MockFs(mockFS)
451 c.mockBpList = blueprint.MockModuleListFile
454 func (c *config) fromEnv() error {
455 switch c.Getenv("EXPERIMENTAL_JAVA_LANGUAGE_LEVEL_9") {
465 func (c *config) StopBefore() bootstrap.StopBefore {
466 return c.stopBefore
469 func (c *config) SetStopBefore(stopBefore bootstrap.StopBefore) {
[all …]
Drule_builder.go174 for _, c := range r.commands {
175 for _, input := range append(c.inputs, c.implicits...) {
201 for _, c := range r.commands {
202 for _, orderOnly := range c.orderOnlys {
221 for _, c := range r.commands {
222 for _, output := range c.outputs {
251 for _, c := range r.commands {
252 for _, depFile := range c.depFiles {
264 for _, c := range r.commands {
265 for _, depFile := range c.depFiles {
[all …]
Dmakevars.go336 func (c *makeVarsContext) DeviceConfig() DeviceConfig {
337 return DeviceConfig{c.Config().deviceConfig}
342 func (c *makeVarsContext) Eval(ninjaStr string) (string, error) {
343 s, err := c.SingletonContext.Eval(c.pctx, ninjaStr)
352 func (c *makeVarsContext) addVariableRaw(name, value string, strict, sort bool) {
353 c.vars = append(c.vars, makeVarsVariable{
361 func (c *makeVarsContext) addVariable(name, ninjaStr string, strict, sort bool) {
362 value, err := c.Eval(ninjaStr)
364 c.SingletonContext.Errorf(err.Error())
366 c.addVariableRaw(name, value, strict, sort)
[all …]
Ddepset_test.go27 c := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("c")).Transitive(a).Build()
28 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
37 c := NewDepSetBuilder(PREORDER).Direct(PathForTesting("c")).Transitive(a).Build()
38 d := NewDepSetBuilder(PREORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
47 c := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("c")).Transitive(a).Build()
48 d := NewDepSetBuilder(TOPOLOGICAL).Direct(PathForTesting("d")).Transitive(b, c).Build()
57 c := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("c")).Transitive(a).Build()
58 d := NewDepSetBuilder(POSTORDER).Direct(PathForTesting("d")).Transitive(b, c).Build()
69 c := PathForTesting("c")
82 return NewDepSet(order, Paths{c, a, b}, nil)
[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.go526 func (c *Module) Toc() android.OptionalPath {
527 if c.linker != nil {
528 if library, ok := c.linker.(libraryInterface); ok {
532 panic(fmt.Errorf("Toc() called on non-library module: %q", c.BaseModuleName()))
535 func (c *Module) ApiLevel() string {
536 if c.linker != nil {
537 if stub, ok := c.linker.(*stubDecorator); ok {
541 panic(fmt.Errorf("ApiLevel() called on non-stub library module: %q", c.BaseModuleName()))
544 func (c *Module) Static() bool {
545 if c.linker != nil {
[all …]
Dandroidmk.go53 func (c *Module) subAndroidMk(entries *android.AndroidMkEntries, obj interface{}) {
54 if c.subAndroidMkOnce == nil {
55 c.subAndroidMkOnce = make(map[subAndroidMkProvider]bool)
58 if !c.subAndroidMkOnce[androidmk] {
59 c.subAndroidMkOnce[androidmk] = true
60 androidmk.AndroidMkEntries(c, entries)
65 func (c *Module) AndroidMkEntries() []android.AndroidMkEntries {
66 if c.Properties.HideFromMake || !c.IsForPlatform() {
73 OutputFile: c.outputFile,
78 Required: c.Properties.AndroidMkRuntimeLibs,
[all …]
Dsanitize.go724 if c, ok := mctx.Module().(*Module); ok && c.sanitize.isSanitizerEnabled(t) {
746 if c, ok := child.(*Module); ok && c.sanitize.isSanitizerEnabled(t) {
756 if c, ok := mctx.Module().(*Module); ok && c.sanitize != nil {
770 c.sanitize.Properties.MinimalRuntimeDep = true
774 c.sanitize.Properties.UbsanRuntimeDep = true
777 if c.sanitize.Properties.MinimalRuntimeDep &&
778 c.sanitize.Properties.UbsanRuntimeDep {
783 if c.Os() == android.Linux {
784 c.sanitize.Properties.BuiltinsDep = true
792 c.sanitize.Properties.MinimalRuntimeDep = true
[all …]
/build/blueprint/
Dglob.go49 func (c *Context) glob(pattern string, excludes []string) ([]string, error) {
53 c.globLock.Lock()
54 g, exists := c.globs[fileName]
55 c.globLock.Unlock()
64 files, deps, err := c.fs.Glob(pattern, excludes, pathtools.FollowSymlinks)
70 c.globLock.Lock()
71 if g, exists = c.globs[fileName]; !exists {
72 c.globs[fileName] = GlobPath{pattern, excludes, files, deps, fileName}
74 c.globLock.Unlock()
85 func (c *Context) Globs() []GlobPath {
[all …]
Dcontext.go401 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {
402 if _, present := c.moduleFactories[name]; present {
405 c.moduleFactories[name] = factory
421 func (c *Context) RegisterSingletonType(name string, factory SingletonFactory) {
422 for _, s := range c.singletonInfo {
428 c.singletonInfo = append(c.singletonInfo, &singletonInfo{
443 func (c *Context) RegisterPreSingletonType(name string, factory SingletonFactory) {
444 for _, s := range c.preSingletonInfo {
450 c.preSingletonInfo = append(c.preSingletonInfo, &singletonInfo{
457 func (c *Context) SetNameInterface(i NameInterface) {
[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/make/tools/droiddoc/templates-ndk/assets/js/
Dprettify.js3c=o?1:0,i=f.length;c<i;++c){var j=f[c];if(/\\[bdsw]/i.test(j))a.push(j);else{var j=m(j),d;c+2<i&&"…
4c)i=f[c],b.push(e(i[0])),i[1]>i[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return …
5c]="\\"+d[i]);for(i=c=0;c<b;++c)"^"===f[c]&&"^"!==f[c+1]&&(f[c]="");if(a.ignoreCase&&s)for(c=0;c<b…
7c:t}}function B(a,m,e,h){m&&(a={a:m,d:a},e(a),h.push.apply(h,a.e))}function x(a,m){function e(a){f…
8c=!1;else{var i=h[f.charAt(0)];if(i)o=f.match(i[1]),b=i[0];else{for(c=0;c<t;++c)if(i=m[c],o=f.matc…
23 …),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","c…
Dandroid_3p-bundle.js825 for (var c = shortcutChars.length; --c >= 0;) {
826 shortcuts[shortcutChars.charAt(c)] = patternParts;
2478c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f… argument
2614c){b.fn.jScrollPane=function(e){function d(D,O){var ay,Q=this,Y,aj,v,al,T,Z,y,q,az,aE,au,i,I,h,j,a… argument
2615c||aN.originalTarget==aN.currentTarget){var aL=b(this),aO=aL.offset(),aM=aN.pageY-aO.top-I,aJ,aI=t…
2616 }else{h.css("left",aI);ae(aI)}}function ae(aI){if(aI===c){aI=h.position().left}al.scrollTop(0);aa=a…
2617 …ht:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:c,animateScroll:false,…
2633c=b||window.event,d=[].slice.call(arguments,1),e=0,f=!0,g=0,h=0;return b=a.event.fix(c),b.type="mo…
2646c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;return!b.href||… argument
2650c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("re… argument
[all …]
/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/java/
Ddexpreopt_config.go154 for _, c := range configs {
155 c.dir = deviceDir.Join(ctx, "dex_"+c.name+"jars")
156 c.symbolsDir = deviceDir.Join(ctx, "dex_"+c.name+"jars_unstripped")
159 imageName := c.firstModuleNameOrStem(ctx) + ".art"
165 inputDir := deviceDir.Join(ctx, "dex_"+c.name+"jars_input")
166 for _, m := range c.modules {
168 c.dexPaths = append(c.dexPaths, inputDir.Join(ctx, stemOf(jar)+".jar"))
170 c.dexPathsDeps = c.dexPaths
175 imageDir := c.dir.Join(ctx, target.Os.String(), c.installSubdir, arch.String())
177 bootImageConfig: c,
[all …]
/build/soong/android/soongconfig/
Dconfig.go39 func (c soongConfig) Bool(name string) bool {
40 v := strings.ToLower(c[name])
44 func (c soongConfig) String(name string) string {
45 return c[name]
48 func (c soongConfig) IsSet(name string) bool {
49 _, ok := c[name]
/build/soong/third_party/zip/
Dreader_test.go422 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/ui/terminal/
Dstdio.go51 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/rust/
Dclippy.go30 func (c *clippy) props() []interface{} {
31 return []interface{}{&c.Properties}
34 func (c *clippy) flags(ctx ModuleContext, flags Flags, deps PathDeps) (Flags, PathDeps) {
35 if c.Properties.Clippy != nil && !*c.Properties.Clippy {

123456