Home
last modified time | relevance | path

Searched refs:defaultValue (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/main/java/java/io/
DEmulatedFieldsForLoading.java98 public byte get(String name, byte defaultValue) throws IOException, in get() argument
100 return emulatedFields.get(name, defaultValue); in get()
121 public char get(String name, char defaultValue) throws IOException, in get() argument
123 return emulatedFields.get(name, defaultValue); in get()
144 public double get(String name, double defaultValue) throws IOException, in get() argument
146 return emulatedFields.get(name, defaultValue); in get()
167 public float get(String name, float defaultValue) throws IOException, in get() argument
169 return emulatedFields.get(name, defaultValue); in get()
190 public int get(String name, int defaultValue) throws IOException, in get() argument
192 return emulatedFields.get(name, defaultValue); in get()
[all …]
DEmulatedFields.java208 public byte get(String name, byte defaultValue) throws IllegalArgumentException { in get() argument
210 return slot.defaulted ? defaultValue : ((Byte) slot.fieldValue).byteValue(); in get()
228 public char get(String name, char defaultValue) throws IllegalArgumentException { in get() argument
230 return slot.defaulted ? defaultValue : ((Character) slot.fieldValue).charValue(); in get()
248 public double get(String name, double defaultValue) throws IllegalArgumentException { in get() argument
250 return slot.defaulted ? defaultValue : ((Double) slot.fieldValue).doubleValue(); in get()
268 public float get(String name, float defaultValue) throws IllegalArgumentException { in get() argument
270 return slot.defaulted ? defaultValue : ((Float) slot.fieldValue).floatValue(); in get()
288 public int get(String name, int defaultValue) throws IllegalArgumentException { in get() argument
290 return slot.defaulted ? defaultValue : ((Integer) slot.fieldValue).intValue(); in get()
[all …]
DObjectInputStream.java169 public abstract boolean get(String name, boolean defaultValue) in get() argument
189 public abstract char get(String name, char defaultValue) in get() argument
209 public abstract byte get(String name, byte defaultValue) in get() argument
229 public abstract short get(String name, short defaultValue) in get() argument
249 public abstract int get(String name, int defaultValue) in get() argument
269 public abstract long get(String name, long defaultValue) in get() argument
289 public abstract float get(String name, float defaultValue) in get() argument
309 public abstract double get(String name, double defaultValue) in get() argument
329 public abstract Object get(String name, Object defaultValue) in get() argument
/libcore/json/src/test/java/org/json/
DSelfUseTest.java55 @Override public boolean optBoolean(String key, boolean defaultValue) {
57 return super.optBoolean(key, defaultValue);
59 @Override public double optDouble(String key, double defaultValue) {
61 return super.optDouble(key, defaultValue);
63 @Override public int optInt(String key, int defaultValue) {
65 return super.optInt(key, defaultValue);
67 @Override public long optLong(String key, long defaultValue) {
69 return super.optLong(key, defaultValue);
71 @Override public String optString(String key, String defaultValue) {
73 return super.optString(key, defaultValue);
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DAnnotationsTest.java79 assertEquals((byte) 5, defaultValue("a")); in testAnnotationDefaults()
80 assertEquals((short) 6, defaultValue("b")); in testAnnotationDefaults()
81 assertEquals(7, defaultValue("c")); in testAnnotationDefaults()
82 assertEquals(8L, defaultValue("d")); in testAnnotationDefaults()
83 assertEquals(9.0f, defaultValue("e")); in testAnnotationDefaults()
84 assertEquals(10.0, defaultValue("f")); in testAnnotationDefaults()
85 assertEquals('k', defaultValue("g")); in testAnnotationDefaults()
86 assertEquals(true, defaultValue("h")); in testAnnotationDefaults()
87 assertEquals(Breakfast.WAFFLES, defaultValue("i")); in testAnnotationDefaults()
88 assertEquals("@" + AnnotationA.class.getName() + "()", defaultValue("j").toString()); in testAnnotationDefaults()
[all …]
/libcore/luni/src/main/java/java/lang/
DInteger.java259 public static Integer getInteger(String string, int defaultValue) { in getInteger() argument
261 return valueOf(defaultValue); in getInteger()
265 return valueOf(defaultValue); in getInteger()
270 return valueOf(defaultValue); in getInteger()
288 public static Integer getInteger(String string, Integer defaultValue) { in getInteger() argument
290 return defaultValue; in getInteger()
294 return defaultValue; in getInteger()
299 return defaultValue; in getInteger()
DLong.java245 public static Long getLong(String string, long defaultValue) { in getLong() argument
247 return valueOf(defaultValue); in getLong()
251 return valueOf(defaultValue); in getLong()
256 return valueOf(defaultValue); in getLong()
274 public static Long getLong(String string, Long defaultValue) { in getLong() argument
276 return defaultValue; in getLong()
280 return defaultValue; in getLong()
285 return defaultValue; in getLong()
DSystem.java890 public static String getProperty(String name, String defaultValue) { in getProperty() argument
892 return systemProperties.getProperty(name, defaultValue); in getProperty()
/libcore/luni/src/main/java/java/util/logging/
DFileHandler.java332 private boolean getBooleanProperty(String key, boolean defaultValue) { in getBooleanProperty() argument
335 return defaultValue; in getBooleanProperty()
337 boolean result = defaultValue; in getBooleanProperty()
347 private String getStringProperty(String key, String defaultValue) { in getStringProperty() argument
349 return property == null ? defaultValue : property; in getStringProperty()
353 private int getIntProperty(String key, int defaultValue) { in getIntProperty() argument
355 int result = defaultValue; in getIntProperty()
/libcore/luni/src/main/java/java/net/
DURLConnection.java518 public long getHeaderFieldDate(String field, long defaultValue) { in getHeaderFieldDate() argument
521 return defaultValue; in getHeaderFieldDate()
526 return defaultValue; in getHeaderFieldDate()
541 public int getHeaderFieldInt(String field, int defaultValue) { in getHeaderFieldInt() argument
545 return defaultValue; in getHeaderFieldInt()
DHttpURLConnection.java743 public long getHeaderFieldDate(String field, long defaultValue) { in getHeaderFieldDate() argument
744 return super.getHeaderFieldDate(field, defaultValue); in getHeaderFieldDate()
DProxySelectorImpl.java104 private int getSystemPropertyInt(String key, int defaultValue) { in getSystemPropertyInt() argument
112 return defaultValue; in getSystemPropertyInt()
/libcore/luni/src/main/java/java/util/
DProperties.java176 public String getProperty(String name, String defaultValue) { in getProperty() argument
183 return defaultValue; in getProperty()
/libcore/luni/src/main/java/libcore/reflect/
DAnnotationAccess.java466 public static int getInnerClassFlags(Class<?> c, int defaultValue) { in getInnerClassFlags() argument
475 return defaultValue; in getInnerClassFlags()
/libcore/benchmarks/src/benchmarks/regression/
DR.java1513 public static final int defaultValue = 0; field in R
/libcore/benchmarks/libs/
Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...