/packages/apps/Camera2/src_pd/com/android/camera/debug/ |
LogHelper.java | 20 private static final LogHelper INSTANCE = new LogHelper(); 23 public static LogHelper instance() { method in class:LogHelper 24 return Singleton.INSTANCE;
|
/external/guava/guava-tests/test/com/google/common/collect/ |
EmptyImmutableTableTest.java | 30 private static final ImmutableTable<Character, Integer, String> INSTANCE = ImmutableTable.of(); 33 return ImmutableSet.of(INSTANCE); 37 assertEquals(0, INSTANCE.hashCode()); 45 .addEqualityGroup(INSTANCE, HashBasedTable.create(), TreeBasedTable.create()) 53 .addEqualityGroup(INSTANCE) 59 assertEquals("{}", INSTANCE.toString()); 63 assertEquals(0, INSTANCE.size()); 67 assertNull(INSTANCE.get('a', 1)); 71 assertTrue(INSTANCE.isEmpty()); 75 assertEquals(ImmutableSet.of(), INSTANCE.cellSet()) [all...] |
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/ |
EmptyImmutableTableTest.java | 29 private static final ImmutableTable<Character, Integer, String> INSTANCE = ImmutableTable.of(); 32 return ImmutableSet.of(INSTANCE); 36 assertEquals(0, INSTANCE.hashCode()); 44 .addEqualityGroup(INSTANCE, HashBasedTable.create(), TreeBasedTable.create()) 50 assertEquals("{}", INSTANCE.toString()); 54 assertEquals(0, INSTANCE.size()); 58 assertNull(INSTANCE.get('a', 1)); 62 assertTrue(INSTANCE.isEmpty()); 66 assertEquals(ImmutableSet.of(), INSTANCE.cellSet()); 70 assertEquals(ImmutableMap.of(), INSTANCE.column(1)) [all...] |
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/ |
DirectObjectMarker.java | 4 public static final DirectObjectMarker INSTANCE = new DirectObjectMarker() {
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/sampling/ |
DummyStepHandler.java | 28 * the Singleton design pattern. This means that only one instance is 46 /** Get the only instance. 47 * @return the only instance 50 return LazyHolder.INSTANCE; 73 * object on each call, so if the instance wants to keep it across 84 /** Holder for the instance. 88 /** Cached field instance. */ 89 private static final DummyStepHandler INSTANCE = new DummyStepHandler(); 94 * @return the singleton instance 97 // return the singleton instance [all...] |
/frameworks/base/core/java/android/net/ |
ConnectivityThread.java | 31 // A class implementing the lazy holder idiom: the unique static instance 36 private static final ConnectivityThread INSTANCE = createInstance(); 50 return Singleton.INSTANCE; 54 return Singleton.INSTANCE.getLooper();
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
Clock.java | 20 private static final Clock INSTANCE = new Clock(); 22 private static Clock sInstance = INSTANCE; 35 sInstance = INSTANCE;
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TestIsoChronology.java | 100 Chronology c = IsoChronology.INSTANCE; 113 assertNotNull(IsoChronology.INSTANCE); 121 assertEquals(IsoChronology.INSTANCE.eraOf(0), BCE); 122 assertEquals(IsoChronology.INSTANCE.eraOf(1), CE); 131 {IsoChronology.INSTANCE.date(1, 7, 8), LocalDate.of(1, 7, 8)}, 132 {IsoChronology.INSTANCE.date(1, 7, 20), LocalDate.of(1, 7, 20)}, 133 {IsoChronology.INSTANCE.date(1, 7, 21), LocalDate.of(1, 7, 21)}, 135 {IsoChronology.INSTANCE.date(2, 7, 8), LocalDate.of(2, 7, 8)}, 136 {IsoChronology.INSTANCE.date(3, 6, 27), LocalDate.of(3, 6, 27)}, 137 {IsoChronology.INSTANCE.date(3, 5, 23), LocalDate.of(3, 5, 23)} [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
ComplexField.java | 43 /** Get the unique instance. 44 * @return the unique instance 47 return LazyHolder.INSTANCE; 61 /** Holder for the instance. 65 /** Cached field instance. */ 66 private static final ComplexField INSTANCE = new ComplexField(); 71 * @return the singleton instance 74 // return the singleton instance 75 return LazyHolder.INSTANCE;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
BigFractionField.java | 43 /** Get the unique instance. 44 * @return the unique instance 47 return LazyHolder.INSTANCE; 61 /** Holder for the instance. 65 /** Cached field instance. */ 66 private static final BigFractionField INSTANCE = new BigFractionField(); 71 * @return the singleton instance 74 // return the singleton instance 75 return LazyHolder.INSTANCE;
|
FractionField.java | 43 /** Get the unique instance. 44 * @return the unique instance 47 return LazyHolder.INSTANCE; 61 /** Holder for the instance. 65 /** Cached field instance. */ 66 private static final FractionField INSTANCE = new FractionField(); 71 * @return the singleton instance 74 // return the singleton instance 75 return LazyHolder.INSTANCE;
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
BigRealField.java | 43 /** Get the unique instance. 44 * @return the unique instance 47 return LazyHolder.INSTANCE; 61 /** Holder for the instance. 65 /** Cached field instance. */ 66 private static final BigRealField INSTANCE = new BigRealField(); 71 * @return the singleton instance 74 // return the singleton instance 75 return LazyHolder.INSTANCE;
|
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
SmaliFileTypeTest.java | 44 Assert.assertEquals(SmaliFileType.INSTANCE, file.getVirtualFile().getFileType()); 45 Assert.assertEquals(SmaliFileType.INSTANCE, file.getFileType()); 46 Assert.assertEquals(SmaliLanguage.INSTANCE, file.getLanguage());
|
/libcore/ojluni/src/main/java/javax/crypto/ |
CryptoAllPermission.java | 37 static final CryptoAllPermission INSTANCE = null;
|
JceSecurityManager.java | 36 // singleton instance 37 static final JceSecurityManager INSTANCE = null;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
Clock.java | 24 public static final Clock INSTANCE = new Clock();
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
DexClassLoaderHelper.java | 23 * to obtain appropriate {@code DexClassLoader} instance, which can be then used for 29 private static final DexClassLoaderHelper INSTANCE = new DexClassLoaderHelper(); 37 * Returns the sole instance of {@code DexClassLoaderHelper}. 39 * @return dex {@code DexClassLoaderHelper} sole instance 42 return DexClassLoaderHelperHolder.INSTANCE; 46 * Creates and returns DexClassLoader instance with its classpath 50 * classes canned into a working PathHolder instance. 51 * @return dex class loader instance with its classpath set to location
|
/external/guava/guava/src/com/google/common/collect/ |
EmptyImmutableListMultimap.java | 28 static final EmptyImmutableListMultimap INSTANCE 36 return INSTANCE; // preserve singleton property
|
EmptyImmutableSetMultimap.java | 28 static final EmptyImmutableSetMultimap INSTANCE 36 return INSTANCE; // preserve singleton property
|
/external/jarjar/src/main/com/tonicsystems/jarjar/ |
ManifestProcessor.java | 26 private static final ManifestProcessor INSTANCE = new ManifestProcessor(); 29 return INSTANCE;
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/model/typesystem/ |
NullTypeTest.java | 58 assertEquals(false, NullType.INSTANCE.isArray()); 63 assertEquals(false, NullType.INSTANCE.isPrimitive()); 68 assertEquals(true, NullType.INSTANCE.isNull()); 73 assertEquals(true, NullType.INSTANCE.isReference()); 78 assertEquals(false, NullType.INSTANCE.isReferenceType()); 83 assertEquals(false, NullType.INSTANCE.isVoid()); 88 assertEquals(false, NullType.INSTANCE.isTypeVariable()); 93 NullType.INSTANCE.asReferenceType(); 98 NullType.INSTANCE.asTypeParameter(); 103 NullType.INSTANCE.asArrayType() [all...] |
VoidTypeTest.java | 58 assertEquals(false, ResolvedVoidType.INSTANCE.isArray()); 63 assertEquals(false, ResolvedVoidType.INSTANCE.isPrimitive()); 68 assertEquals(false, ResolvedVoidType.INSTANCE.isNull()); 73 assertEquals(false, ResolvedVoidType.INSTANCE.isReference()); 78 assertEquals(false, ResolvedVoidType.INSTANCE.isReferenceType()); 83 assertEquals(true, ResolvedVoidType.INSTANCE.isVoid()); 88 assertEquals(false, ResolvedVoidType.INSTANCE.isTypeVariable()); 93 ResolvedVoidType.INSTANCE.asReferenceType(); 98 ResolvedVoidType.INSTANCE.asTypeParameter(); 103 ResolvedVoidType.INSTANCE.asArrayType() [all...] |
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EmptyImmutableSet.java | 31 static final EmptyImmutableSet INSTANCE = new EmptyImmutableSet();
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
DontCareFieldPosition.java | 18 * DontCareFieldPosition is a singleton, and its instance is immutable. 20 * A <code>format</code> method use <code>fpos == DontCareFieldPosition.INSTANCE</code> 27 public static final DontCareFieldPosition INSTANCE = new DontCareFieldPosition();
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
DontCareFieldPosition.java | 17 * DontCareFieldPosition is a singleton, and its instance is immutable. 19 * A <code>format</code> method use <code>fpos == DontCareFieldPosition.INSTANCE</code> 25 public static final DontCareFieldPosition INSTANCE = new DontCareFieldPosition();
|