Searched refs:singleton (Results 1 - 25 of 109) sorted by relevance

12345

/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
H A DSampleBundleClass.java27 private static SampleBundleClass singleton; field in class:SampleBundleClass
32 if (singleton != null) {
35 singleton = this;
/external/chromium_org/third_party/icu/source/common/
H A Dmutex.h96 * Returns the singleton instance, or NULL if it could not be created.
106 * Resets the fields. The caller must have deleted the singleton instance.
123 SimpleSingletonWrapper(SimpleSingleton &s) : singleton(s) {}
125 delete (T *)singleton.fInstance;
126 singleton.reset();
131 T *instance=(T *)singleton.getInstance(instantiator, context, duplicate, errorCode);
136 SimpleSingleton &singleton; member in class:SimpleSingletonWrapper
151 * Returns the singleton instance, or NULL if it could not be created.
156 * The singleton creation is only attempted once. If it fails,
157 * the singleton wil
193 TriStateSingleton &singleton; member in class:TriStateSingletonWrapper
[all...]
/external/icu4c/common/
H A Dmutex.h96 * Returns the singleton instance, or NULL if it could not be created.
106 * Resets the fields. The caller must have deleted the singleton instance.
123 SimpleSingletonWrapper(SimpleSingleton &s) : singleton(s) {}
125 delete (T *)singleton.fInstance;
126 singleton.reset();
131 T *instance=(T *)singleton.getInstance(instantiator, context, duplicate, errorCode);
136 SimpleSingleton &singleton; member in class:SimpleSingletonWrapper
150 * Returns the singleton instance, or NULL if it could not be created.
155 * The singleton creation is only attempted once. If it fails,
156 * the singleton wil
192 TriStateSingleton &singleton; member in class:TriStateSingletonWrapper
[all...]
/external/chromium_org/chrome/browser/resources/apps_debugger/
H A Dbackground.js13 singleton: true
/external/chromium_org/ppapi/api/
H A Dppb_network_proxy.idl25 [singleton]
H A Dppb_gamepad.idl88 [version=1.0, macro="PPB_GAMEPAD_INTERFACE", singleton]
/external/chromium_org/ppapi/api/private/
H A Dppb_ext_crx_file_system_private.idl30 [singleton,api=PPB_Ext_CrxFileSystem_Private_API]
/external/clang/test/SemaCXX/
H A Dvtable-instantiation.cc58 static GMG* Method() { return &singleton; } // expected-note{{in instantiation of}}
59 static GMG singleton; member in struct:PR10020::GMG
63 GMG<Type> GMG<Type>::singleton; member in class:PR10020::GMG
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DSingletonImmutableSet.java38 super(Collections.singleton(checkNotNull(element)));
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/
H A DImageFactory.java12 private static ImageFactory singleton ; field in class:ImageFactory
15 if(singleton == null) singleton = new ImageFactory();
16 return singleton;
/external/chromium_org/v8/src/extensions/i18n/
H A Dlocale.js171 var singleton = '(' + digit + '|[A-WY-Za-wy-z])'; variable
172 LANGUAGE_SINGLETON_RE = new RegExp('^' + singleton + '$', 'i');
174 var extension = '(' + singleton + '(-' + alphanum + '{2,8})+)';
/external/chromium_org/v8/src/
H A Dglobal-handles.h358 inline Handle<Object> GetSingleton(SingletonHandle singleton) { argument
359 ASSERT(Exists(singleton));
360 return Get(singleton_handles_[singleton]);
364 inline bool Exists(SingletonHandle singleton) { argument
365 return singleton_handles_[singleton] != kInvalidIndex;
371 SingletonHandle singleton) {
372 ASSERT(singleton_handles_[singleton] == kInvalidIndex);
373 singleton_handles_[singleton] = Create(isolate, object);
374 return Get(singleton_handles_[singleton]);
369 CreateSingleton(Isolate* isolate, Object* object, SingletonHandle singleton) argument
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DIteratorTester.java74 super(steps, Collections.<E>singleton(null), features, expectedElements,
/external/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_mutex.cc167 atomic_uintptr_t *singleton = (atomic_uintptr_t *)param; local
169 int *val = (int *)atomic_load(singleton, memory_order_acquire);
170 __tsan_acquire(singleton);
186 // Create the singleton.
189 atomic_uintptr_t singleton; local
190 __tsan_release(&singleton);
191 atomic_store(&singleton, (uintptr_t)&val, memory_order_release);
195 pthread_create(&threads[t], 0, singleton_thread, &singleton);
/external/chromium_org/ppapi/api/dev/
H A Dppb_truetype_font_dev.idl157 [singleton,api=PPB_TrueTypeFont_Singleton_API]
180 [singleton,api=PPB_TrueTypeFont_Singleton_API]
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingQueueTest.java151 forward.addAll(Collections.singleton("asdf"));
166 forward.containsAll(Collections.singleton("asdf"));
211 forward.removeAll(Collections.singleton("asdf"));
216 forward.retainAll(Collections.singleton("asdf"));
H A DRangesTest.java37 assertEquals(Ranges.closed(0, 0), Ranges.singleton(0));
38 assertEquals(Ranges.closed(9, 9), Ranges.singleton(9));
H A DAbstractImmutableSetTest.java69 assertEquals(Collections.singleton("a"), set);
117 assertEquals(Collections.singleton("a"), set);
148 assertEquals(Collections.singleton("a"), set);
154 assertEquals(Collections.singleton("a"), set);
184 assertEquals(Collections.singleton("a"), set);
190 assertEquals(Collections.singleton("a"), set);
241 assertEquals(Collections.singleton("a"), copyOf(c));
257 new IteratorTester<String>(5, UNMODIFIABLE, Collections.singleton("a"),
H A DSubMapMultimapAsMapImplementsMapTest.java67 return Collections.singleton(-2);
/external/protobuf/src/google/protobuf/
H A Dmessage.cc198 static GeneratedMessageFactory* singleton();
232 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { function in class:google::protobuf::__anon23965::GeneratedMessageFactory
302 return GeneratedMessageFactory::singleton();
307 GeneratedMessageFactory::singleton()->RegisterFile(filename,
313 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype);
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DListListIteratorTester.java25 import static java.util.Collections.singleton;
70 listListIteratorTesterNumIterations(), singleton(samples.e4), features,
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DMultisetWritesTester.java188 Collections.singleton(Multisets.immutableEntry(samples.e0, 1))));
200 Collections.singleton(Multisets.immutableEntry(samples.e0, 2))));
220 Collections.singleton(Multisets.immutableEntry(samples.e0, 1))));
232 Collections.singleton(Multisets.immutableEntry(samples.e0, 2))));
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowAccountManager.java35 private static AccountManager singleton; field in class:ShadowAccountManager
43 if (singleton == null) {
44 singleton = Robolectric.newInstanceOf(AccountManager.class);
46 return singleton;
/external/chromium_org/third_party/protobuf/src/google/protobuf/
H A Dmessage.cc237 static GeneratedMessageFactory* singleton();
271 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { function in class:google::protobuf::__anon13414::GeneratedMessageFactory
342 return GeneratedMessageFactory::singleton();
347 GeneratedMessageFactory::singleton()->RegisterFile(filename,
353 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype);
/external/jsilver/src/com/google/clearsilver/jsilver/compiler/
H A DCompilingClassLoader.java24 import static java.util.Collections.singleton;
154 fileManager, diagnosticListener, options, null, singleton(javaFile));

Completed in 901 milliseconds

12345