Home
last modified time | relevance | path

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

12345678910

/external/valgrind/drd/tests/
Dlocal_static.cpp19 static Singleton singleton; in thread_func() local
21 fprintf(stderr, "%d\n", singleton.value); in thread_func()
22 fprintf(stderr, "%d\n", singleton.value); in thread_func()
23 fprintf(stderr, "%d\n", singleton.value); in thread_func()
24 fprintf(stderr, "%d\n", singleton.value); in thread_func()
25 fprintf(stderr, "%d\n", singleton.value); in thread_func()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DNorm2AllModes.java301 private static Norm2AllModes getInstanceFromSingleton(Norm2AllModesSingleton singleton) { in getInstanceFromSingleton() argument
302 if(singleton.exception!=null) { in getInstanceFromSingleton()
303 throw singleton.exception; in getInstanceFromSingleton()
305 return singleton.allModes; in getInstanceFromSingleton()
328 Norm2AllModesSingleton singleton; in getInstance() local
330 singleton=NFCSingleton.INSTANCE; in getInstance()
332 singleton=NFKCSingleton.INSTANCE; in getInstance()
334 singleton=NFKC_CFSingleton.INSTANCE; in getInstance()
336 singleton=null; in getInstance()
338 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/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.agent.rt/src/org/jacoco/agent/rt/internal/
DAgent.java37 private static Agent singleton; field in Agent
48 if (singleton == null) { in getInstance()
57 singleton = agent; in getInstance()
59 return singleton; in getInstance()
71 if (singleton == null) { in getInstance()
74 return singleton; in getInstance()
/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/v8/src/zone/
Dzone-handle-set.h35 return Handle<T>(singleton()); in at()
48 if (singleton() == value) return; in insert()
50 if (singleton() < value) { in insert()
51 list->Add(singleton(), zone); in insert()
55 list->Add(singleton(), zone); in insert()
89 return list()->Contains(other.singleton()); in contains()
145 T** singleton() const { in singleton() function
/external/v8/src/
Dglobal-handles.h418 inline Handle<Object> GetSingleton(SingletonHandle singleton) { in GetSingleton() argument
419 DCHECK(Exists(singleton)); in GetSingleton()
420 return Get(singleton_handles_[singleton]); in GetSingleton()
424 inline bool Exists(SingletonHandle singleton) { in Exists() argument
425 return singleton_handles_[singleton] != kInvalidIndex; in Exists()
431 SingletonHandle singleton) { in CreateSingleton() argument
432 Create(isolate, object, &singleton_handles_[singleton]); in CreateSingleton()
433 return Get(singleton_handles_[singleton]); in CreateSingleton()
/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/antlr/antlr-3.4/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.java43 RootBeanDefinition singleton in testBindFromSpring() local
45 beanFactory.registerBeanDefinition("singleton", singleton); in testBindFromSpring()
74 RootBeanDefinition singleton in testBindAll() local
76 beanFactory.registerBeanDefinition("singleton", singleton); in testBindAll()
/external/r8/src/test/java/com/android/tools/r8/utils/
DOutputModeTest.java22 Resource.fromBytes(Resource.Kind.CLASSFILE, new byte[]{}, Collections.singleton("LTest;")); in testFilePerClass()
26 Resource.Kind.CLASSFILE, new byte[]{}, Collections.singleton("Lcom/Test;")); in testFilePerClass()
30 Resource.Kind.CLASSFILE, new byte[]{}, Collections.singleton("Lcom/example/Test;")); in testFilePerClass()
/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/guava/guava-tests/test/com/google/common/collect/
DForwardingDequeTest.java62 forward.addAll(Collections.singleton("asdf")); in testAddAll_Collection()
77 forward.containsAll(Collections.singleton("asdf")); in testContainsAll_Collection()
197 forward.removeAll(Collections.singleton("asdf")); in testRemoveAll_Collection()
202 forward.retainAll(Collections.singleton("asdf")); in testRetainAll_Collection()
DForwardingQueueTest.java151 forward.addAll(Collections.singleton("asdf")); in testAddAll_Collection()
166 forward.containsAll(Collections.singleton("asdf")); in testContainsAll_Collection()
211 forward.removeAll(Collections.singleton("asdf")); in testRemoveAll_Collection()
216 forward.retainAll(Collections.singleton("asdf")); in testRetainAll_Collection()
DAbstractImmutableSetTest.java69 assertEquals(Collections.singleton("a"), set); in testCreation_oneElement()
117 assertEquals(Collections.singleton("a"), set); in testCopyOf_arrayOfOneElement()
148 assertEquals(Collections.singleton("a"), set); in testCopyOf_collection_oneElement()
154 assertEquals(Collections.singleton("a"), set); in testCopyOf_collection_oneElementRepeated()
184 assertEquals(Collections.singleton("a"), set); in testCopyOf_iterator_oneElement()
190 assertEquals(Collections.singleton("a"), set); in testCopyOf_iterator_oneElementRepeated()
241 assertEquals(Collections.singleton("a"), copyOf(c)); in testCopyOf_shortcut_singleton()
257 new IteratorTester<String>(5, UNMODIFIABLE, Collections.singleton("a"), in testIterator_oneElement()
/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/guice/extensions/spring/src/com/google/inject/spring/
DSpringIntegration.java88 boolean singleton; field in SpringIntegration.SpringProvider
107 singleton = beanFactory.isSingleton(name); in initialize()
111 return singleton ? getSingleton() : type.cast(beanFactory.getBean(name)); in get()
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DTreeBasedTableTest.java201 assertEquals(Collections.singleton("bar"), set); in testRowKeySetHeadSet()
204 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); in testRowKeySetHeadSet()
210 assertEquals(Collections.singleton("foo"), set); in testRowKeySetTailSet()
213 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet()); in testRowKeySetTailSet()
220 assertEquals(Collections.singleton("dog"), set); in testRowKeySetSubSet()
253 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); in testRowKeyMapHeadMap()
264 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet()); in testRowKeyMapTailMap()
DAbstractImmutableSetTest.java65 assertEquals(Collections.singleton("a"), set); in testCreation_oneElement()
113 assertEquals(Collections.singleton("a"), set); in testCopyOf_arrayOfOneElement()
144 assertEquals(Collections.singleton("a"), set); in testCopyOf_collection_oneElement()
150 assertEquals(Collections.singleton("a"), set); in testCopyOf_collection_oneElementRepeated()
180 assertEquals(Collections.singleton("a"), set); in testCopyOf_iterator_oneElement()
186 assertEquals(Collections.singleton("a"), set); in testCopyOf_iterator_oneElementRepeated()
237 assertEquals(Collections.singleton("a"), copyOf(c)); in testCopyOf_shortcut_singleton()
/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()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAccountManager.java35 private static AccountManager singleton; field in ShadowAccountManager
43 if (singleton == null) { in get()
44 singleton = Robolectric.newInstanceOf(AccountManager.class); in get()
46 return singleton; in get()
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/
DReportStructureTestDriver.java88 Collections.singleton(classCoverage), in ReportStructureTestDriver()
89 Collections.singleton(sourceFileCoverage)); in ReportStructureTestDriver()
91 Collections.singleton(packageCoverage)); in ReportStructureTestDriver()

12345678910