/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
H A D | SampleBundleClass.java | 27 private static SampleBundleClass singleton; field in class:SampleBundleClass 32 if (singleton != null) { 35 singleton = this;
|
/external/icu4c/common/ |
H A D | mutex.h | 96 * 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...] |
H A D | utrie2.h | 662 UTrie2Singleton(SimpleSingleton &s) : singleton(s) {} 664 utrie2_close((UTrie2 *)singleton.fInstance); 665 singleton.reset(); 670 SimpleSingleton &singleton; member in class:UTrie2Singleton
|
/external/bluetooth/glib/tests/gobject/ |
H A D | singleton.c | 73 MySingleton *singleton, *obj; local 75 /* create the singleton */ 76 singleton = g_object_new (MY_TYPE_SINGLETON, NULL); 77 g_assert (singleton != NULL); 80 g_assert (singleton == obj); 83 g_object_unref (singleton);
|
/external/clang/test/SemaCXX/ |
H A D | vtable-instantiation.cc | 58 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 D | SingletonImmutableSet.java | 38 super(Collections.singleton(checkNotNull(element)));
|
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/ |
H A D | ImageFactory.java | 12 private static ImageFactory singleton ; field in class:ImageFactory 15 if(singleton == null) singleton = new ImageFactory(); 16 return singleton;
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
H A D | IteratorTester.java | 74 super(steps, Collections.<E>singleton(null), features, expectedElements,
|
H A D | MapInterfaceTest.java | 19 import static java.util.Collections.singleton; 195 assertTrue(valueCollection.containsAll(Collections.singleton(value))); 649 Set<Entry<K, V>> entriesToRemove = singleton(entryToRemove); 715 singleton(entrySet.iterator().next()); 803 entrySet.addAll(singleton(entryToAdd)); 1304 assertTrue(keys.removeAll(Collections.singleton(key))); 1309 keys.removeAll(Collections.singleton(key)); 1329 keys.retainAll(Collections.singleton(key)); 1334 keys.retainAll(Collections.singleton(key)); 1544 Set<V> valuesToRemove = singleton(valueCollectio [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | ForwardingQueueTest.java | 151 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 D | RangesTest.java | 37 assertEquals(Ranges.closed(0, 0), Ranges.singleton(0)); 38 assertEquals(Ranges.closed(9, 9), Ranges.singleton(9));
|
H A D | AbstractImmutableSetTest.java | 69 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 D | SubMapMultimapAsMapImplementsMapTest.java | 67 return Collections.singleton(-2);
|
H A D | TreeBasedTableTest.java | 239 assertEquals(Collections.singleton("bar"), set); 242 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); 248 assertEquals(Collections.singleton("foo"), set); 251 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet()); 258 assertEquals(Collections.singleton("dog"), set); 291 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); 302 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet());
|
H A D | AbstractSetMultimapTest.java | 93 assertTrue(Collections.singleton(expected).equals(set)); 94 assertTrue(set.equals(Collections.singleton(expected)));
|
H A D | MapConstraintsTest.java | 480 assertFalse(entries.containsAll(Collections.singleton(nefariousEntry))); 529 assertFalse(entries.containsAll(Collections.singleton(nefariousEntry))); 543 assertFalse(entries.removeAll(Collections.singleton(nefariousEntry))); 553 = nefariousMapEntry(TEST_KEY, Collections.singleton(TEST_VALUE)); 558 assertFalse(entries.containsAll(Collections.singleton(nefariousEntry))); 568 = nefariousMapEntry(TEST_KEY, Collections.singleton(TEST_VALUE)); 573 assertFalse(entries.removeAll(Collections.singleton(nefariousEntry))); 639 return Collections.singleton(entry);
|
H A D | MultimapsTest.java | 408 assertEquals(Collections.singleton(1), multimapView.get("foo")); 409 assertEquals(Collections.singleton(2), multimapView.get("bar")); 415 multimapView.putAll("baz", Collections.singleton(3)); 437 "foo", (Collection<Integer>) Collections.singleton(1))); 469 assertEquals(Collections.singleton(2), multimap.removeAll("bar")); 479 assertEquals(Collections.singleton(1), asMap.get("foo")); 496 Collections.singleton(2)))); 498 Collections.singleton(2)))); 501 Collections.singleton(1)))); 503 Collections.singleton( [all...] |
/external/webkit/Tools/android/flex-2.5.4a/ |
H A D | parse.y | 522 series : series singleton 530 | singleton 534 singleton : singleton '*' label 541 | singleton '+' 547 | singleton '?' 553 | singleton '{' NUMBER ',' NUMBER '}' 581 | singleton '{' NUMBER ',' '}' 595 | singleton '{' NUMBER '}' 597 /* The singleton coul [all...] |
/external/protobuf/src/google/protobuf/ |
H A D | message.cc | 198 static GeneratedMessageFactory* singleton(); 232 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { function in class:google::protobuf::__anon8763::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 D | ListListIteratorTester.java | 25 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 D | MultisetWritesTester.java | 188 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/jsilver/src/com/google/clearsilver/jsilver/compiler/ |
H A D | CompilingClassLoader.java | 24 import static java.util.Collections.singleton; 154 fileManager, diagnosticListener, options, null, singleton(javaFile));
|
/external/v8/test/mjsunit/ |
H A D | json.js | 265 var singleton = []; variable 266 var multiOccurrence = [singleton, singleton, singleton];
|
/external/guava/guava-tests/test/com/google/common/io/ |
H A D | MultiInputStreamTest.java | 100 Collections.singleton(new InputSupplier<InputStream>() {
|
/external/guava/guava/src/com/google/common/base/ |
H A D | Optional.java | 141 * Returns an immutable singleton {@link Set} whose only element is the 233 return Collections.singleton(reference);
|