Home
last modified time | relevance | path

Searched refs:Once (Results 1 – 25 of 36) 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.go58 return config.Once(apiLevelsMapKey, func() interface{} {
Dphony.go30 return config.Once(phonyMapOnceKey, func() interface{} {
Dmetrics.go53 ctx.Config().Once(soongMetricsOnceKey, func() interface{} {
Dpath_properties.go119 return pathPropertyIndexesCache.Once(key, func() interface{} {
Dneverallow.go656 return config.Once(neverallowRulesKey, func() interface{} {
666 config.Once(neverallowRulesKey, func() interface{} { return testRules })
Dsoong_config_modules.go312 return ctx.Config().Once(key, func() interface{} {
Dvisibility.go190 return config.Once(visibilityRuleMap, func() interface{} {
Dapex.go318 return apexData.Once(apexNamesKey, func() interface{} {
/build/soong/dexpreopt/
Dconfig.go233 return ctx.Config().Once(globalConfigOnceKey, func() interface{} {
245 return ctx.Config().Once(testGlobalConfigOnceKey, func() interface{} {
259 …config.Once(testGlobalConfigOnceKey, func() interface{} { return globalConfigAndRaw{globalConfig, …
405 globalSoong := ctx.Config().Once(globalSoongConfigOnceKey, func() interface{} {
426 return ctx.Config().Once(globalSoongConfigOnceKey, func() interface{} {
569 return config.Once(globalSoongConfigOnceKey, func() interface{} {
/build/soong/cc/
Dsysprop.go34 return config.Once(syspropImplLibrariesKey, func() interface{} {
Dvndk.go236 return config.Once(vndkCoreLibrariesKey, func() interface{} {
242 return config.Once(vndkSpLibrariesKey, func() interface{} {
253 return config.Once(llndkLibrariesKey, func() interface{} {
264 return config.Once(vndkPrivateLibrariesKey, func() interface{} {
270 return config.Once(vndkUsingCoreVariantLibrariesKey, func() interface{} {
276 return cfg.Once(vndkMustUseVendorVariantListKey, func() interface{} {
284 config.Once(vndkMustUseVendorVariantListKey, func() interface{} {
Dvendor_snapshot.go48 return config.Once(vendorSuffixModulesKey, func() interface{} {
54 return config.Once(vendorSnapshotHeaderLibsKey, func() interface{} {
60 return config.Once(vendorSnapshotSharedLibsKey, func() interface{} {
66 return config.Once(vendorSnapshotStaticLibsKey, func() interface{} {
72 return config.Once(vendorSnapshotBinariesKey, func() interface{} {
78 return config.Once(vendorSnapshotObjectsKey, func() interface{} {
Dvendor_public_library.go32 return config.Once(vendorPublicLibrariesKey, func() interface{} {
Dsanitize.go1086 return config.Once(cfiStaticLibsKey, func() interface{} {
1094 return config.Once(hwasanStaticLibsKey, func() interface{} {
1102 return config.Once(hwasanVendorStaticLibsKey, func() interface{} {
/build/soong/java/
Dsysprop.go42 return config.Once(syspropPublicStubsKey, func() interface{} {
Dsdk.go495 ctx.Config().Once(sdkVersionsKey, func() interface{} { return sdkVersions })
611 return ctx.Config().Once(sdkFrameworkAidlPathKey, func() interface{} {
617 return ctx.Config().Once(nonUpdatableFrameworkAidlPathKey, func() interface{} {
660 return ctx.Config().Once(apiFingerprintPathKey, func() interface{} {
Dandroid_resources.go135 ctx.Config().Once(overlayDataKey, func() interface{} {
Ddexpreopt_bootjars.go511 profile := ctx.Config().Once(bootImageProfileRuleKey, func() interface{} {
566 return ctx.Config().Once(bootFrameworkProfileRuleKey, func() interface{} {
609 return ctx.Config().Once(updatableBcpPackagesRuleKey, func() interface{} {
Ddexpreopt_config.go113 return ctx.Config().Once(bootImageConfigKey, func() interface{} {
/build/soong/cc/config/
Dx86_darwin_host.go125 once sync.Once
/build/soong/apex/
Dvndk.go70 return config.Once(vndkApexListKey, func() interface{} {
/build/soong/ui/build/
Dsandbox_linux.go54 once sync.Once
/build/soong/sdk/
Dsdk.go127 return dynamicSdkMemberTypesMap.Once(key, func() interface{} {

12