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

/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;
H A DAbstractMapTest.java396 Set<Object> setOfNull = Collections.singleton(null);
H A DCollectionsTest.java670 * @tests java.util.Collections#singleton(java.lang.Object)
674 // java.util.Collections.singleton(java.lang.Object)
676 Set single = Collections.singleton(o);
680 assertFalse("null nCopies contains", Collections.singleton(null)
682 assertTrue("null nCopies contains null", Collections.singleton(null)
686 fail("Allowed modification of singleton");
1874 mySet = Collections.unmodifiableSet(Collections.singleton(null));
/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
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...]
H A Dutrie2.h662 UTrie2Singleton(SimpleSingleton &s) : singleton(s) {}
664 utrie2_close((UTrie2 *)singleton.fInstance);
665 singleton.reset();
670 SimpleSingleton &singleton; member in class:UTrie2Singleton
H A Dnormalizer2impl.cpp1739 singleton(s), impl(ni), errorCode(ec) {}
1743 (CanonIterData *)singleton.getInstance(createInstance, this, duplicate, errorCode);
1756 SimpleSingleton &singleton; member in class:CanonIterDataSingleton
H A Dutrie2.cpp733 UTrie2 *instance=(UTrie2 *)singleton.getInstance(instantiator, context, duplicate, errorCode);
/external/bluetooth/glib/tests/gobject/
H A Dsingleton.c73 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 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/webkit/Tools/android/flex-2.5.4a/
H A Dparse.y522 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 Dmessage.cc198 static GeneratedMessageFactory* singleton();
232 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { function in class:google::protobuf::__anon7815::GeneratedMessageFactory
302 return GeneratedMessageFactory::singleton();
307 GeneratedMessageFactory::singleton()->RegisterFile(filename,
313 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));
/external/v8/test/mjsunit/
H A Djson.js267 var singleton = []; variable
268 var multiOccurrence = [singleton, singleton, singleton];
/external/libpcap/
H A Dpcap.c120 struct singleton { struct
129 struct singleton *sp = (struct singleton *)userData;
137 struct singleton s;
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/
H A DPKIXNameConstraintValidator.java396 return Collections.singleton(ipWithSubnetMask(ip, subnetmask));
/external/protobuf/gtest/test/
H A Dgtest_unittest.cc588 // Calls PushFront() on a singleton Vector.
637 // Inserts at the beginning of a singleton Vector.
654 // Prepares a singleton Vector.
658 // Inserts at the end of a singleton Vector.
724 // Clones a singleton.
726 scoped_ptr<Vector<int> > singleton(a.Clone());
727 ASSERT_EQ(1, singleton->size());
728 EXPECT_EQ(42, singleton->GetElement(0));
749 // Tests erasing from a singleton vector.
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
H A DSerializationStressTest4.java1087 objToSave = java.util.Collections.singleton(new Byte((byte) 107));
/external/jdiff/
H A Dxerces.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/services/ org/ org/apache/ org/apache/html/ ...
/external/valgrind/tsan/
H A Dthread_sanitizer.cc918 // first is singleton, second is not
924 // second is singleton, first is not
4914 VTS *singleton = VTS::CreateSingleton(child_tid);
4915 *vts = VTS::Join(singleton, info.vts);
4916 VTS::Unref(singleton);
6870 // *** CASE 01 ***: rd_ssid == 0, wr_ssid == singleton
6906 // *** CASE 10 ***: rd_ssid == singleton, wr_ssid == 0
6933 // *** CASE 11 ***: rd_ssid == singleton, wr_ssid == singleton
7047 // singleton segmen
[all...]

Completed in 1262 milliseconds