/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
ICUTaglet.java | 209 private static ICUTaglet singleton; field in class:ICUTaglet.ICUIgnoreTaglet 212 if (singleton == null) { 213 singleton = new ICUIgnoreTaglet(); 215 taglets.put("bug", singleton); 216 taglets.put("test", singleton); 217 taglets.put("summary", singleton);
|
/external/guice/core/test/com/google/inject/ |
ProviderInjectionTest.java | 37 bind(SampleSingleton.class).in(Scopes.SINGLETON); 47 SampleSingleton singleton = foo.singletonProvider.get(); local 48 assertNotNull(singleton); 49 assertSame(singleton, foo.singletonProvider.get());
|
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/ |
ReportStructureTestDriver.java | 89 Collections.singleton(classCoverage), 90 Collections.singleton(sourceFileCoverage)); 92 Collections.singleton(packageCoverage));
|
/frameworks/base/services/core/java/com/android/server/am/ |
ContentProviderRecord.java | 41 final boolean singleton; field in class:ContentProviderRecord 64 singleton = _singleton; 74 singleton = cpr.singleton; 160 if (singleton) { 161 pw.print(prefix); pw.print("singleton="); pw.println(singleton);
|
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/ |
ListListIteratorTester.java | 25 import static java.util.Collections.singleton; 68 listListIteratorTesterNumIterations(), singleton(samples.e4), features, method
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/ |
ListListIteratorTester.java | 25 import static java.util.Collections.singleton; 71 listListIteratorTesterNumIterations(), singleton(samples.e4), features, method
|
/external/guice/core/src/com/google/inject/ |
Scopes.java | 37 * One instance per {@link Injector}. Also see {@code @}{@link Singleton}. 39 public static final Scope SINGLETON = new SingletonScope(); 48 * annotation such as {@link Singleton @Singleton}, and you need to override 69 return scopeAnnotation == Singleton.class 70 || scopeAnnotation == javax.inject.Singleton.class; 74 return scope == Scopes.SINGLETON; 83 * Returns true if {@code binding} is singleton-scoped. If the binding is a {@link 86 * also true if the target binding is singleton-scoped. 92 boolean singleton = binding.acceptScopingVisitor(IS_SINGLETON_VISITOR) [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/impl/ |
ResourceBasedPeriodFormatterDataService.java | 45 private static final ResourceBasedPeriodFormatterDataService singleton = new ResourceBasedPeriodFormatterDataService(); field in class:ResourceBasedPeriodFormatterDataService 48 * Returns the singleton instance of this class. 51 return singleton;
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/impl/ |
ResourceBasedPeriodFormatterDataService.java | 43 private static final ResourceBasedPeriodFormatterDataService singleton = new ResourceBasedPeriodFormatterDataService(); field in class:ResourceBasedPeriodFormatterDataService 46 * Returns the singleton instance of this class. 49 return singleton;
|
/external/guava/guava/src/com/google/common/base/ |
Present.java | 67 return Collections.singleton(reference);
|
/external/guava/guava-tests/test/com/google/common/collect/ |
SubMapMultimapAsMapImplementsMapTest.java | 67 return Collections.singleton(-2);
|
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"),
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CheckHandshake.java | 31 Set<String> blacklist = Collections.singleton("sha1/DmxUShsZuNiqPQsX2Oi9uv2sCnw=");
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
CssSchemaTest.java | 82 CssSchema.withProperties(Collections.singleton("float"))
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAccountManager.java | 35 private static AccountManager singleton; field in class:ShadowAccountManager 43 if (singleton == null) { 44 singleton = Robolectric.newInstanceOf(AccountManager.class); 46 return singleton;
|
/frameworks/base/keystore/java/android/security/ |
Credentials.java | 171 private static Credentials singleton; field in class:Credentials 174 if (singleton == null) { 175 singleton = new Credentials(); 177 return singleton;
|
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/ |
results_collector.hpp | 79 class BOOST_TEST_DECL results_collector_t : public test_observer, public singleton<results_collector_t> {
|
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
AbstractImmutableSetTest.java | 65 assertEquals(Collections.singleton("a"), set); 113 assertEquals(Collections.singleton("a"), set); 144 assertEquals(Collections.singleton("a"), set); 150 assertEquals(Collections.singleton("a"), set); 180 assertEquals(Collections.singleton("a"), set); 186 assertEquals(Collections.singleton("a"), set); 237 assertEquals(Collections.singleton("a"), copyOf(c));
|
TreeBasedTableTest.java | 201 assertEquals(Collections.singleton("bar"), set); 204 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); 210 assertEquals(Collections.singleton("foo"), set); 213 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet()); 220 assertEquals(Collections.singleton("dog"), set); 253 assertEquals(Collections.singleton("foo"), sortedTable.rowKeySet()); 264 assertEquals(Collections.singleton("bar"), sortedTable.rowKeySet());
|
/external/protobuf/src/google/protobuf/ |
message.cc | 237 static GeneratedMessageFactory* singleton(); 271 GeneratedMessageFactory* GeneratedMessageFactory::singleton() { function in class:google::protobuf::__anon22478::GeneratedMessageFactory 342 return GeneratedMessageFactory::singleton(); 347 GeneratedMessageFactory::singleton()->RegisterFile(filename, 353 GeneratedMessageFactory::singleton()->RegisterType(descriptor, prototype);
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
MiniGuice.java | 67 * <li>{@code @Provides} methods annotated {@code @Singleton}. 68 * <li>Constructor-injected classes annotated {@code @Singleton}. 164 boolean singleton = method.isAnnotationPresent(javax.inject.Singleton.class); 165 putBinding(key, unscoped, singleton); 258 boolean singleton = type.isAnnotationPresent(javax.inject.Singleton.class); 259 putBinding(new Key(type, null), unscoped, singleton); 262 private void putBinding(Key key, Provider<Object> provider, boolean singleton) { 263 if (singleton) { [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/testing/google/super/com/google/common/collect/testing/google/ |
MultisetRemoveTester.java | 152 assertTrue(getMultiset().removeAll(Collections.singleton(samples.e0))); 161 assertFalse(getMultiset().retainAll(Collections.singleton(samples.e0)));
|
/external/icu/android_icu4j/cts-coverage/src/main/tests/android/icu/cts/coverage/text/ |
TimeZoneNamesTest.java | 77 assertEquals(Collections.singleton("America_Pacific"), 81 assertEquals(Collections.singleton("Taipei"),
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/ |
InternalLocaleBuilder.java | 144 public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException { 146 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); 147 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { 148 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); 152 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); 220 String singleton = s; local 221 StringBuilder sb = new StringBuilder(singleton); 236 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", start); 292 // each extension string contains singleton, e.g. "a-abc-def" 558 * The input must be a valid extension subtags (excluding singleton) [all...] |
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/ |
InternalLocaleBuilder.java | 140 public InternalLocaleBuilder setExtension(char singleton, String value) throws LocaleSyntaxException { 142 boolean isBcpPrivateuse = LanguageTag.isPrivateusePrefixChar(singleton); 143 if (!isBcpPrivateuse && !LanguageTag.isExtensionSingletonChar(singleton)) { 144 throw new LocaleSyntaxException("Ill-formed extension key: " + singleton); 148 CaseInsensitiveChar key = new CaseInsensitiveChar(singleton); 216 String singleton = s; local 217 StringBuilder sb = new StringBuilder(singleton); 232 throw new LocaleSyntaxException("Incomplete extension '" + singleton + "'", start); 288 // each extension string contains singleton, e.g. "a-abc-def" 554 * The input must be a valid extension subtags (excluding singleton) [all...] |