Home
last modified time | relevance | path

Searched refs:Once (Results 1 – 25 of 34) sorted by relevance

12

/build/soong/android/
Donceper_test.go26 a := once.Once(key, func() interface{} { return "a" }).(string)
27 b := once.Once(key, func() interface{} { return "b" }).(string)
30 t.Errorf(`first call to Once should return "a": %q`, a)
34 t.Errorf(`second call to Once with the same key should return "a": %q`, b)
44 …go once.Once(key, func() interface{} { close(ch); time.Sleep(100 * time.Millisecond); return "foo"…
46 a := once.Once(key, func() interface{} { return "bar" }).(string)
57 a := once.Once(key, func() interface{} { return "a" }).(string)
61 t.Errorf(`first call to Once should return "a": %q`, a)
90 …go once.Once(key, func() interface{} { close(ch); time.Sleep(100 * time.Millisecond); return "foo"…
136 a := once.Once(key1, func() interface{} { return "a" }).(string)
[all …]
Donceper.go45 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} { func
84 return once.Once(key, func() interface{} { return value() }).([]string)
90 s := once.Once(key, func() interface{} {
100 return once.Once(key, func() interface{} { return value() }).(Path)
105 return once.Once(key, func() interface{} { return value() }).(SourcePath)
Dapi_levels.go274 return config.Once(finalCodenamesMapKey, func() interface{} {
317 return config.Once(apiLevelsMapKey, func() interface{} {
Dphony.go30 return config.Once(phonyMapOnceKey, func() interface{} {
Dmetrics.go53 ctx.Config().Once(soongMetricsOnceKey, func() interface{} {
Dpath_properties.go165 return pathPropertyIndexesCache.Once(key, func() interface{} {
Dneverallow.go672 return config.Once(neverallowRulesKey, func() interface{} {
682 config.Once(neverallowRulesKey, func() interface{} { return testRules })
Dsoong_config_modules.go375 return ctx.Config().Once(key, func() interface{} {
Dlicenses.go100 return config.Once(packageDefaultLicensesMap, func() interface{} {
Dvisibility.go191 return config.Once(visibilityRuleMap, func() interface{} {
Dmakevars.go149 singletonMakeVarsProviders := config.Once(singletonMakeVarsProvidersKey, func() interface{} {
/build/soong/cc/
Dsysprop.go53 return config.Once(syspropImplLibrariesKey, func() interface{} {
Dvndk.go287 return cfg.Once(vndkMustUseVendorVariantListKey, func() interface{} {
295 config.Once(vndkMustUseVendorVariantListKey, func() interface{} {
Dndk_library.go157 return config.Once(ndkKnownLibsKey, func() interface{} {
Dmakevars.go38 return config.Once(key, func() interface{} {
/build/soong/dexpreopt/
Dconfig.go234 return ctx.Config().Once(globalConfigOnceKey, func() interface{} {
246 return ctx.Config().Once(testGlobalConfigOnceKey, func() interface{} {
261 …config.Once(testGlobalConfigOnceKey, func() interface{} { return globalConfigAndRaw{globalConfig, …
474 globalSoong := ctx.Config().Once(globalSoongConfigOnceKey, func() interface{} {
495 return ctx.Config().Once(globalSoongConfigOnceKey, func() interface{} {
Ddexpreopt.go531 return ctx.Config().Once(nonUpdatableSystemServerJarsKey, func() interface{} {
/build/soong/java/
Dsdk.go227 ctx.Config().Once(sdkVersionsKey, func() interface{} { return sdkVersions })
344 return ctx.Config().Once(sdkFrameworkAidlPathKey, func() interface{} {
350 return ctx.Config().Once(nonUpdatableFrameworkAidlPathKey, func() interface{} {
402 return ctx.Config().Once(apiFingerprintPathKey, func() interface{} {
Ddexpreopt_config.go50 return ctx.Config().Once(bootImageConfigKey, func() interface{} {
168 return ctx.Config().Once(updatableBootConfigKey, func() interface{} {
Dandroid_resources.go150 ctx.Config().Once(overlayDataKey, func() interface{} {
Dhiddenapi_singleton.go101 return ctx.Config().Once(hiddenAPISingletonPathsKey, func() interface{} {
/build/soong/cc/config/
Dx86_darwin_host.go126 once sync.Once
/build/soong/ui/build/
Dsandbox_linux.go54 once sync.Once
/build/soong/sdk/
Dsdk.go150 return dynamicSdkMemberTypesMap.Once(key, func() interface{} {
/build/soong/sysprop/
Dsysprop_library.go186 return config.Once(syspropLibrariesKey, func() interface{} {

12