/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMimeTypeMap.java | 15 private static volatile MimeTypeMap singleton = null; field in ShadowMimeTypeMap 20 if (singleton == null) { in getSingleton() 22 if (singleton == null) { in getSingleton() 23 singleton = Shadow.newInstanceOf(MimeTypeMap.class); in getSingleton() 28 return singleton; in getSingleton() 33 if (singleton != null) { in reset()
|
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMimeTypeMap.java | 15 private static volatile MimeTypeMap singleton = null; field in ShadowMimeTypeMap 20 if (singleton == null) { in getSingleton() 22 if (singleton == null) { in getSingleton() 23 singleton = Shadow.newInstanceOf(MimeTypeMap.class); in getSingleton() 28 return singleton; in getSingleton() 33 if (singleton != null) { in reset()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Norm2AllModes.java | 297 private static Norm2AllModes getInstanceFromSingleton(Norm2AllModesSingleton singleton) { in getInstanceFromSingleton() argument 298 if(singleton.exception!=null) { in getInstanceFromSingleton() 299 throw singleton.exception; in getInstanceFromSingleton() 301 return singleton.allModes; in getInstanceFromSingleton() 324 Norm2AllModesSingleton singleton; in getInstance() local 326 singleton=NFCSingleton.INSTANCE; in getInstance() 328 singleton=NFKCSingleton.INSTANCE; in getInstance() 330 singleton=NFKC_CFSingleton.INSTANCE; in getInstance() 332 singleton=null; in getInstance() 334 if(singleton!=null) { in getInstance() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Norm2AllModes.java | 316 private static Norm2AllModes getInstanceFromSingleton(Norm2AllModesSingleton singleton) { in getInstanceFromSingleton() argument 317 if(singleton.exception!=null) { in getInstanceFromSingleton() 318 throw singleton.exception; in getInstanceFromSingleton() 320 return singleton.allModes; in getInstanceFromSingleton() 343 Norm2AllModesSingleton singleton; in getInstance() local 345 singleton=NFCSingleton.INSTANCE; in getInstance() 347 singleton=NFKCSingleton.INSTANCE; in getInstance() 349 singleton=NFKC_CFSingleton.INSTANCE; in getInstance() 351 singleton=null; in getInstance() 353 if(singleton!=null) { in getInstance() [all …]
|
/external/catch2/include/internal/ |
D | catch_singletons.cpp | 25 void addSingleton(ISingleton* singleton ) { in addSingleton() argument 26 getSingletons()->push_back( singleton ); in addSingleton() 30 for( auto singleton : *singletons ) in cleanupSingletons() 31 delete singleton; in cleanupSingletons()
|
/external/webrtc/rtc_base/ |
D | time_utils.cc | 62 auto& singleton = Singleton(); in SyncWithNtp() local 67 singleton.app_start_time_ns_ = in SyncWithNtp() 70 singleton.UpdateReferenceTime(); in SyncWithNtp() 75 auto& singleton = Singleton(); in TicksNs() local 81 rtc::dchecked_cast<uint64_t>(singleton.os_ticks_per_second_)) * in TicksNs() 83 result = singleton.app_start_time_ns_ + result - in TicksNs() 84 singleton.time_since_os_start_ns_; in TicksNs() 108 static TimeHelper singleton; in Singleton() local 109 return singleton; in Singleton()
|
/external/icu/icu4c/source/common/ |
D | emojiprops.cpp | 24 EmojiProps *singleton = nullptr; variable 28 delete singleton; in emojiprops_cleanup() 29 singleton = nullptr; in emojiprops_cleanup() 36 singleton = new EmojiProps(errorCode); in initSingleton() 37 if (singleton == nullptr) { in initSingleton() 40 delete singleton; in initSingleton() 41 singleton = nullptr; in initSingleton() 73 return singleton; in getSingleton()
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/ |
D | PackageCoverageTest.java | 32 Collection<IClassCoverage> classes = Collections.singleton( in testProperties() 35 Collection<ISourceFileCoverage> sourceFiles = Collections.singleton( in testProperties() 70 Collections.singleton((IClassCoverage) classnode), in testCountersWithSources() 71 Collections.singleton(sourceFile)); in testCountersWithSources() 94 Collections.singleton((IClassCoverage) classnode), sourceFiles); in testCountersWithoutSources()
|
/external/skia/src/ports/ |
D | SkFontConfigInterface_direct_factory.cpp | 12 static SkFontConfigInterface* singleton; in GetSingletonDirectInterface() local 14 once([]{ singleton = new SkFontConfigInterfaceDirect(nullptr); }); in GetSingletonDirectInterface() 15 return singleton; in GetSingletonDirectInterface()
|
/external/compiler-rt/lib/tsan/tests/rtl/ |
D | tsan_mutex.cc | 167 atomic_uintptr_t *singleton = (atomic_uintptr_t *)param; in singleton_thread() local 169 int *val = (int *)atomic_load(singleton, memory_order_acquire); in singleton_thread() 170 __tsan_acquire(singleton); in singleton_thread() 189 atomic_uintptr_t singleton; in TEST() local 190 __tsan_release(&singleton); in TEST() 191 atomic_store(&singleton, (uintptr_t)&val, memory_order_release); in TEST() 195 pthread_create(&threads[t], 0, singleton_thread, &singleton); in TEST()
|
/external/tensorflow/tensorflow/core/common_runtime/device/ |
D | device_id_manager.cc | 32 static TfToPlatformDeviceIdMap* singleton() { in singleton() function in tensorflow::__anon9f1805dd0111::TfToPlatformDeviceIdMap 100 return TfToPlatformDeviceIdMap::singleton()->Insert(type, tf_device_id, in InsertTfPlatformDeviceIdPair() 107 if (TfToPlatformDeviceIdMap::singleton()->Find(type, tf_device_id, in TfToPlatformDeviceId() 116 TfToPlatformDeviceIdMap::singleton()->TestOnlyReset(); in TestOnlyReset()
|
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/ |
D | ImageFactory.java | 12 private static ImageFactory singleton ; field in ImageFactory 15 if(singleton == null) singleton = new ImageFactory(); in getSingleton() 16 return singleton; in getSingleton()
|
/external/clang/test/SemaCXX/ |
D | vtable-instantiation.cpp | 58 static GMG* Method() { return &singleton; } // expected-note{{in instantiation of}} in Method() 59 static GMG singleton; member 63 GMG<Type> GMG<Type>::singleton; // expected-note{{requested here}} member in PR10020::GMG<Type>
|
/external/guice/extensions/spring/test/com/google/inject/spring/ |
D | SpringIntegrationTest.java | 38 RootBeanDefinition singleton = new RootBeanDefinition(Singleton.class); in testBindFromSpring() local 39 beanFactory.registerBeanDefinition("singleton", singleton); in testBindFromSpring() 65 RootBeanDefinition singleton = new RootBeanDefinition(Singleton.class); in testBindAll() local 66 beanFactory.registerBeanDefinition("singleton", singleton); in testBindAll()
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | ICUTaglet.java | 233 private static ICUTaglet singleton; field in ICUTaglet.ICUIgnoreTaglet 236 if (singleton == null) { in register() 237 singleton = new ICUIgnoreTaglet(); in register() 239 taglets.put("bug", singleton); in register() 240 taglets.put("test", singleton); in register() 241 taglets.put("summary", singleton); in register()
|
/external/tensorflow/tensorflow/python/profiler/internal/ |
D | python_hooks.cc | 100 static PythonHooks* singleton = new PythonHooks; in GetSingleton() local 101 return singleton; in GetSingleton() 135 PythonHooks* singleton = PythonHooks::GetSingleton(); in Start() local 136 auto e2e_context = singleton->Stop(); in Start() 318 PythonHooks* singleton = PythonHooks::GetSingleton(); in SetProfilerInAllThreads() local 320 py::cpp_function([singleton](const py::object& frame, const string& event, in SetProfilerInAllThreads() 322 singleton->ProfileSlow(frame, event, arg); in SetProfilerInAllThreads()
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_driver.h | 132 static auto singleton = in Live() local 134 return singleton; in Live() 137 static auto singleton = in LiveOrdinal() local 139 return singleton; in LiveOrdinal()
|
/external/cldr/tools/cldr-code/src/main/resources/org/unicode/cldr/util/data/ |
D | langtagRegex.txt | 14 $x = x ; # private use singleton 15 $singleton = [a-w y-z] ; # other singleton 34 $extension = $singleton (?: $s $alphanum{2,8} )+ ; # singleton 1*("-" (2*8alphanum))
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/statics/ |
D | LONG_Upper.java | 31 private static final LONG_Upper singleton = new LONG_Upper(); field in LONG_Upper 40 return singleton; in theInstance()
|
D | DOUBLE_Upper.java | 31 private static final DOUBLE_Upper singleton = new DOUBLE_Upper(); field in DOUBLE_Upper 40 return singleton; in theInstance()
|
/external/grpc-grpc-java/testing-proto/src/test/java/io/grpc/testing/protobuf/ |
D | SimpleServiceTest.java | 84 return Collections.singleton(RpcMethod.class.getCanonicalName()); in getSupportedAnnotationTypes() 156 Collections.singleton("-proc:only"), in testRpcMethodAnnotations() 157 Collections.singleton(SimpleServiceGrpc.class.getCanonicalName()), in testRpcMethodAnnotations() 159 task.setProcessors(Collections.singleton(processor)); in testRpcMethodAnnotations()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | langtagRegex.txt | 17 $x = x ; # private use singleton 18 $singleton = [a-w y-z] ; # other singleton 37 $extension = $singleton (?: $s $alphanum{2,8} )+ ; # singleton 1*("-" (2*8alphanum))
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | langtagRegex.txt | 17 $x = x ; # private use singleton 18 $singleton = [a-w y-z] ; # other singleton 37 $extension = $singleton (?: $s $alphanum{2,8} )+ ; # singleton 1*("-" (2*8alphanum))
|
/external/tensorflow/tensorflow/core/framework/ |
D | allocator_registry.cc | 24 AllocatorFactoryRegistry* AllocatorFactoryRegistry::singleton() { in singleton() function in tensorflow::AllocatorFactoryRegistry 25 static AllocatorFactoryRegistry* singleton = new AllocatorFactoryRegistry; in singleton() local 26 return singleton; in singleton()
|
/external/guice/extensions/spring/src/com/google/inject/spring/ |
D | SpringIntegration.java | 81 boolean singleton; field in SpringIntegration.SpringProvider 100 singleton = beanFactory.isSingleton(name); in initialize() 105 return singleton ? getSingleton() : type.cast(beanFactory.getBean(name)); in get()
|