Home
last modified time | relevance | path

Searched refs:singleton (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowMimeTypeMap.java15 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/catch2/include/internal/
Dcatch_singletons.cpp25 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/icu/android_icu4j/src/main/java/android/icu/impl/
DNorm2AllModes.java316 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/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DNorm2AllModes.java297 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/jacoco/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/
DAgent.java37 private static Agent singleton; field in Agent
66 if (singleton == null) { in getInstance()
75 singleton = agent; in getInstance()
77 return singleton; in getInstance()
94 if (singleton == null) { in getInstance()
97 singleton = Offline.createAgent(); in getInstance()
100 return singleton; in getInstance()
/external/skqp/src/ports/
DSkFontConfigInterface_direct_factory.cpp12 static SkFontConfigInterface* singleton; in GetSingletonDirectInterface() local
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); }); in GetSingletonDirectInterface()
15 return singleton; in GetSingletonDirectInterface()
/external/skia/src/ports/
DSkFontConfigInterface_direct_factory.cpp12 static SkFontConfigInterface* singleton; in GetSingletonDirectInterface() local
14 once([]{ singleton = new SkFontConfigInterfaceDirect(); }); in GetSingletonDirectInterface()
15 return singleton; in GetSingletonDirectInterface()
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/analysis/
DPackageCoverageTest.java32 .singleton((IClassCoverage) new ClassCoverageImpl( in testProperties()
35 .singleton((ISourceFileCoverage) new SourceFileCoverageImpl( in testProperties()
69 Collections.singleton((IClassCoverage) classnode), in testCountersWithSources()
70 Collections.singleton(sourceFile)); in testCountersWithSources()
93 Collections.singleton((IClassCoverage) classnode), sourceFiles); in testCountersWithoutSources()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_id_manager.cc32 static TfToPlatformGpuIdMap* singleton() { in singleton() function in tensorflow::__anonb9a921140111::TfToPlatformGpuIdMap
90 return TfToPlatformGpuIdMap::singleton()->Insert(tf_gpu_id, platform_gpu_id); in InsertTfPlatformGpuIdPair()
95 if (TfToPlatformGpuIdMap::singleton()->Find(tf_gpu_id, platform_gpu_id)) { in TfToPlatformGpuId()
103 TfToPlatformGpuIdMap::singleton()->TestOnlyReset(); in TestOnlyReset()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_mutex.cc167 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/v8/src/zone/
Dzone-handle-set.h36 return Handle<T>(singleton()); in at()
49 if (singleton() == value) return; in insert()
51 if (singleton() < value) { in insert()
52 list->push_back(singleton()); in insert()
56 list->push_back(singleton()); in insert()
93 other.singleton()) != cached_list->end(); in contains()
110 return singleton() == other_address; in contains()
167 Address* singleton() const { in singleton() function
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/
DImageFactory.java12 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/
Dvtable-instantiation.cpp58 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/
DSpringIntegrationTest.java38 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/
DICUTaglet.java233 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/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/statics/
DDOUBLE_Upper.java31 private static final DOUBLE_Upper singleton = new DOUBLE_Upper(); field in DOUBLE_Upper
40 return singleton; in theInstance()
DLONG_Upper.java31 private static final LONG_Upper singleton = new LONG_Upper(); field in LONG_Upper
40 return singleton; in theInstance()
/external/cldr/tools/java/org/unicode/cldr/util/data/
DlangtagRegex.txt14 $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/cldr/tools/java/org/unicode/cldr/util/
DSpecialLocales.java79 private static SpecialLocales singleton = null; field in SpecialLocales
86 if (singleton == null) { in getInstance()
87 singleton = new SpecialLocales(); in getInstance()
89 return singleton; in getInstance()
/external/grpc-grpc-java/testing-proto/src/test/java/io/grpc/testing/protobuf/
DSimpleServiceTest.java84 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/
DlangtagRegex.txt17 $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/
DlangtagRegex.txt17 $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/
Dallocator_registry.cc24 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/
DSpringIntegration.java81 boolean singleton; field in SpringIntegration.SpringProvider
100 singleton = beanFactory.isSingleton(name); in initialize()
105 return singleton ? getSingleton() : type.cast(beanFactory.getBean(name)); in get()
/external/skia/src/core/
DSkDataTable.cpp81 static SkDataTable* singleton; in MakeEmpty() local
83 once([]{ singleton = new SkDataTable(); }); in MakeEmpty()
84 return sk_ref_sp(singleton); in MakeEmpty()

12345678910>>...16