/external/guava/guava-tests/test/com/google/common/collect/ |
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"));
|
SubMapMultimapAsMapImplementsMapTest.java | 67 return Collections.singleton(-2);
|
/build/soong/android/ |
register.go | 28 type singleton struct { type 33 var singletons []singleton 60 singletons = append(singletons, singleton{name, factory})
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
ICUTaglet.java | 233 private static ICUTaglet singleton; field in class:ICUTaglet.ICUIgnoreTaglet 236 if (singleton == null) { 237 singleton = new ICUIgnoreTaglet(); 239 taglets.put("bug", singleton); 240 taglets.put("test", singleton); 241 taglets.put("summary", singleton);
|
/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/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 | 88 Collections.singleton(classCoverage), 89 Collections.singleton(sourceFileCoverage)); 91 Collections.singleton(packageCoverage));
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
ProtobufArrayListTest.java | 190 list.addAll(0, Collections.singleton(1)); 239 list.removeAll(Collections.singleton(1)); 260 list.retainAll(Collections.singleton(1));
|
BooleanArrayListTest.java | 255 assertTrue(list.addAll(Collections.singleton(false))); 342 list.addAll(0, Collections.singleton(true)); 398 list.removeAll(Collections.singleton(Boolean.TRUE)); 419 list.retainAll(Collections.singleton(Boolean.TRUE));
|
IntArrayListTest.java | 255 assertTrue(list.addAll(Collections.singleton(1))); 346 list.addAll(0, Collections.singleton(1)); 402 list.removeAll(Collections.singleton(1)); 423 list.retainAll(Collections.singleton(1));
|
/external/skia/src/core/ |
SkDataTable.cpp | 81 static SkDataTable* singleton; local 83 once([]{ singleton = new SkDataTable(); }); 84 return sk_ref_sp(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 | 47 private static final ResourceBasedPeriodFormatterDataService singleton = new ResourceBasedPeriodFormatterDataService(); field in class:ResourceBasedPeriodFormatterDataService 50 * Returns the singleton instance of this class. 53 return singleton;
|
/external/mockito/src/test/java/org/mockito/internal/configuration/ |
MockInjectionTest.java | 82 return Collections.singleton(mock(Set.class)); 86 return Collections.singleton(mock(Observer.class));
|
/external/guava/guava/src/com/google/common/base/ |
Present.java | 67 return Collections.singleton(reference);
|
/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;
|
/libcore/ojluni/src/test/java/security/cert/ |
AKISerialNumberTest.java | 126 (Collections.singleton(anchor), sel);
|
/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/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...] |