Searched refs:c (Results 1 – 25 of 167) sorted by relevance
1234567
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 …]
321 c := Config{ret}322 storeConfigMetrics(ctx, c)323 return c566 func (c *configImpl) parseArgs(ctx Context, args []string) {570 c.verbose = true572 c.skipNinja = true574 c.skipConfig = true575 c.skipKati = true578 c.skipKati = true580 c.skipKati = true[all …]
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 …]
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 …]
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.Path56 c.Path = sandboxExecPath57 c.Args = append([]string{[all …]
61 func (c *countWaiter) wait() {62 c.numWaitsElapsed++64 func (c *countWaiter) checkDeadline() (done bool, remainder string) {65 numWaitsRemaining := c.maxNumWaits - c.numWaitsElapsed71 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 …]
69 func (c Config) BuildDir() string {70 return c.buildDir73 func (c Config) NinjaBuildDir() string {74 return c.buildDir77 func (c Config) DebugCompilation() bool {81 func (c Config) SrcDir() string {82 return c.srcDir347 func ConfigForAdditionalRun(c Config) (Config, error) {348 newConfig, err := NewConfig(c.srcDir, c.buildDir, c.moduleListFile, c.env)352 newConfig.BazelContext = c.BazelContext[all …]
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 …]
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 …]
35 c = f.read(1)36 if c:37 yield c49 c = next(self.r, "")50 if not c:52 elif c == "'":55 entry = c56 for c in self.r:57 if c == " " or c == "\n":59 entry += c[all …]
830 func (c *Module) SetPreventInstall() {831 c.Properties.PreventInstall = true834 func (c *Module) SetHideFromMake() {835 c.Properties.HideFromMake = true838 func (c *Module) HiddenFromMake() bool {839 return c.Properties.HideFromMake842 func (c *Module) Toc() android.OptionalPath {843 if c.linker != nil {844 if library, ok := c.linker.(libraryInterface); ok {848 panic(fmt.Errorf("Toc() called on non-library module: %q", c.BaseModuleName()))[all …]
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] = true63 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 …]
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 …]
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 …]
16 …c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.c… argument17 …c=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
476 func (c *Context) RegisterModuleType(name string, factory ModuleFactory) {477 if _, present := c.moduleFactories[name]; present {480 c.moduleFactories[name] = factory496 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 …]
99 func (c *Context) initProviders() {100 c.providerMutators = make([]*mutatorInfo, len(providerRegistry))102 for _, mutator := range c.mutatorInfo {104 c.providerMutators[provider.id] = mutator116 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 …]
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] = result71 c.globLock.Unlock()84 func (c *Context) Globs() pathtools.MultipleGlobResults {[all …]
29 c, ok := config.(BootstrapConfig)34 return value(c), nil41 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 …]
122 int c = reader.read(); in parse() local126 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 …]
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 = c53 case quotingStart != noQuote && c == quotingStart:55 case quotingStart == noQuote && unicode.IsSpace(rune(c)):62 file = append(file, c)
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.dexPaths109 imageDir := c.dir.Join(ctx, target.Os.String(), c.installDirOnHost, arch.String())111 bootImageConfig: c,[all …]
42 func (c classpathType) String() string {43 return [...]string{"BOOTCLASSPATH", "DEX2OATBOOTCLASSPATH", "SYSTEMSERVERCLASSPATH"}[c]72 func (c *ClasspathFragmentBase) classpathFragmentBase() *ClasspathFragmentBase {73 return c77 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 …]
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 …]
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]