Home
last modified time | relevance | path

Searched refs:once (Results 1 – 25 of 28) sorted by relevance

12

/build/soong/android/
Donceper.go28 func (once *OncePer) maybeWaitFor(key OnceKey, value interface{}) interface{} {
33 value, _ = once.values.Load(key)
45 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} {
47 if v, ok := once.values.Load(key); ok {
48 return once.maybeWaitFor(key, v)
53 if v, loaded := once.values.LoadOrStore(key, waiter); loaded {
55 return once.maybeWaitFor(key, v)
62 once.values.Store(key, v)
73 func (once *OncePer) Get(key OnceKey) interface{} {
74 v, ok := once.values.Load(key)
[all …]
Donceper_test.go23 once := OncePer{}
26 a := once.Once(key, func() interface{} { return "a" }).(string)
27 b := once.Once(key, func() interface{} { return "b" }).(string)
39 once := OncePer{}
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)
54 once := OncePer{}
57 a := once.Once(key, func() interface{} { return "a" }).(string)
58 b := once.Get(key).(string)
70 once := OncePer{}
[all …]
Dsoong_config_modules.go541 once := &sync.Once{}
544 once.Do(func() {
Dtesting.go393 once sync.Once member
406 s.once.Do(func() {
/build/bazel/examples/android_app/java/com/app/
Djni_dep.h17 #pragma once
/build/make/tools/aconfig/aconfig_storage_write_api/include/aconfig_storage/
Daconfig_storage_write_api.hpp1 #pragma once
/build/make/tools/aconfig/aconfig_storage_file/include/aconfig_storage/
Daconfig_storage_file.hpp1 #pragma once
/build/soong/cc/config/
Ddarwin_host.go108 once sync.Once member
121 macTools.once.Do(func() {
/build/soong/ui/build/
Dsandbox_linux.go54 once sync.Once
73 sandboxConfig.once.Do(func() {
/build/make/
DUsage.txt55 (after running the build once), split among these two files:
69 -j <N> Run <N> processes at once
70 -j Autodetect the number of processes to run at once,
/build/make/tools/aconfig/aconfig_storage_read_api/include/aconfig_storage/
Daconfig_storage_read_api.hpp1 #pragma once
/build/bazel/rules/sysprop/
Dsysprop_library.bzl21 # TODO(b/240466571): Add Java to the documentation once the rules/macros are created
/build/make/tools/aconfig/aconfig/templates/
Dcpp_exported_header.template1 #pragma once
/build/bazel/rules/cc/
Dcc_prebuilt_library_shared.bzl54 # TODO(b/279433767): remove once cc_library_shared is stable
Drscript_to_cpp.bzl18 # TODO handle target api flags once there is support for sdk versions b/245584567
Dndk_headers_test.bzl33 "Expected versioner to run once",
/build/bazel/examples/apex/minimal/
DREADME.md35 and then restarting the emulator. After you've done this once you can use the regular install comma…
/build/bazel/utils/
Dconfig_setting_boolean_algebra.bzl82 # to prior stack frames once we start executing a new one)
132 # we can queue them all up at once without returning to the current stack frame.
/build/soong/docs/
Dclion.md42 ### Edit multiple projects at once
Dperf.md185 spent of 13.137 secounds. While Android-aosp_arm.mk was only included once, and
/build/soong/java/
Dlint_defaults.txt127 # once existing violations are cleaned up
/build/bazel/rules/abi/
Dabi_dump.bzl169 # TODO(b/186116353): enable sandbox once the bug is fixed.
212 # TODO(b/186116353): enable sandbox once the bug is fixed.
/build/bazel/rules/android/
Dframework_resources.bzl351 # TODO: b/301986521 - use starlark version of this logic once implemented.
/build/make/tools/releasetools/
Dpylintrc59 # file where it should appear only once).You can also use "--disable=all" to
/build/bazel/docs/
Dinternal_concepts.md54 many targets at once. The default goal for Android's build system is `droid`.
226 are 1:1. That is every rule is only used once by a single build statement.

12