/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | AnnotationsTest.java | 54 assertEquals((byte) 5, defaultValue("a")); in testAnnotationDefaults() 55 assertEquals((short) 6, defaultValue("b")); in testAnnotationDefaults() 56 assertEquals(7, defaultValue("c")); in testAnnotationDefaults() 57 assertEquals(8L, defaultValue("d")); in testAnnotationDefaults() 58 assertEquals(9.0f, defaultValue("e")); in testAnnotationDefaults() 59 assertEquals(10.0, defaultValue("f")); in testAnnotationDefaults() 60 assertEquals('k', defaultValue("g")); in testAnnotationDefaults() 61 assertEquals(true, defaultValue("h")); in testAnnotationDefaults() 62 assertEquals(Breakfast.WAFFLES, defaultValue("i")); in testAnnotationDefaults() 63 assertEquals("@" + AnnotationA.class.getName() + "()", defaultValue("j").toString()); in testAnnotationDefaults() [all …]
|
/libcore/json/src/test/java/libcore/org/json/ |
D | SelfUseTest.java | 60 @Override public boolean optBoolean(String key, boolean defaultValue) { 62 return super.optBoolean(key, defaultValue); 64 @Override public double optDouble(String key, double defaultValue) { 66 return super.optDouble(key, defaultValue); 68 @Override public int optInt(String key, int defaultValue) { 70 return super.optInt(key, defaultValue); 72 @Override public long optLong(String key, long defaultValue) { 74 return super.optLong(key, defaultValue); 76 @Override public String optString(String key, String defaultValue) { 78 return super.optString(key, defaultValue);
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | MapDefaultMethodTester.java | 100 V expected, Map<K, V> map, K key, V defaultValue) { in checkGetOrDefault() argument 101 V actual = map.getOrDefault(key, defaultValue); in checkGetOrDefault() 104 assertSame(expected, getOrDefault_hashMap(map, key, defaultValue)); in checkGetOrDefault() 105 assertSame(expected, getOrDefault_optimizeForPresent(map, key, defaultValue)); in checkGetOrDefault() 106 assertSame(expected, getOrDefault_optimizeForAbsent(map, key, defaultValue)); in checkGetOrDefault() 110 private static<K, V> V getOrDefault_hashMap(Map<K, V> map, K key, V defaultValue) { in getOrDefault_hashMap() argument 111 return new HashMap<>(map).getOrDefault(key, defaultValue); in getOrDefault_hashMap() 118 private static<K, V> V getOrDefault_optimizeForAbsent(Map<K, V> map, K key, V defaultValue) { in getOrDefault_optimizeForAbsent() argument 119 return map.containsKey(key) ? map.get(key) : defaultValue; in getOrDefault_optimizeForAbsent() 126 private static<K, V> V getOrDefault_optimizeForPresent(Map<K, V> map, K key, V defaultValue) { in getOrDefault_optimizeForPresent() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | LogManager.java | 1470 String getStringProperty(String name, String defaultValue) { in getStringProperty() argument 1473 return defaultValue; in getStringProperty() 1481 int getIntProperty(String name, int defaultValue) { in getIntProperty() argument 1484 return defaultValue; in getIntProperty() 1489 return defaultValue; in getIntProperty() 1496 boolean getBooleanProperty(String name, boolean defaultValue) { in getBooleanProperty() argument 1499 return defaultValue; in getBooleanProperty() 1507 return defaultValue; in getBooleanProperty() 1513 Level getLevelProperty(String name, Level defaultValue) { in getLevelProperty() argument 1516 return defaultValue; in getLevelProperty() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | LogManager.java | 154 java.lang.String getStringProperty(java.lang.String name, java.lang.String defaultValue) { in getStringProperty() argument 158 int getIntProperty(java.lang.String name, int defaultValue) { in getIntProperty() argument 162 boolean getBooleanProperty(java.lang.String name, boolean defaultValue) { in getBooleanProperty() argument 167 java.lang.String name, java.util.logging.Level defaultValue) { in getLevelProperty() argument 172 java.lang.String name, java.util.logging.Filter defaultValue) { in getFilterProperty() argument 178 java.lang.String name, java.util.logging.Formatter defaultValue) { in getFormatterProperty() argument
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentMap.java | 88 default V getOrDefault(Object key, V defaultValue) { in getOrDefault() argument 90 return ((v = get(key)) != null) ? v : defaultValue; in getOrDefault()
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | LinkedHashMap.annotated.java | 47 public V getOrDefault(java.lang.Object key, V defaultValue) { throw new RuntimeException("Stub!"); } in getOrDefault() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Properties.java | 112 public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue) { in getProperty() argument
|
D | LinkedHashMap.java | 110 public V getOrDefault(java.lang.Object key, V defaultValue) { in getOrDefault() argument
|
D | HashMap.java | 143 public V getOrDefault(java.lang.Object key, V defaultValue) { in getOrDefault() argument
|
D | Collections.java | 1683 public V getOrDefault(java.lang.Object k, V defaultValue) { in getOrDefault() argument 2063 public V getOrDefault(java.lang.Object key, V defaultValue) { in getOrDefault() argument 2445 public V getOrDefault(java.lang.Object k, V defaultValue) { in getOrDefault() argument 3104 public V getOrDefault(java.lang.Object k, V defaultValue) { in getOrDefault() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | Properties.java | 1002 public String getProperty(String key, String defaultValue) { in getProperty() argument 1004 return (val == null) ? defaultValue : val; in getProperty()
|
D | Map.java | 614 default V getOrDefault(Object key, V defaultValue) { in getOrDefault() argument 618 : defaultValue; in getOrDefault()
|
D | LinkedHashMap.java | 474 public V getOrDefault(Object key, V defaultValue) { in getOrDefault() argument 477 return defaultValue; in getOrDefault()
|
D | Collections.java | 1545 public V getOrDefault(Object k, V defaultValue) { 1547 return ((Map<K, V>)m).getOrDefault(k, defaultValue); 2693 public V getOrDefault(Object k, V defaultValue) { 2694 synchronized (mutex) {return m.getOrDefault(k, defaultValue);} 4649 public V getOrDefault(Object k, V defaultValue) { 4650 return defaultValue; 4961 public V getOrDefault(Object key, V defaultValue) { 4962 return eq(key, k) ? v : defaultValue;
|
D | Hashtable.java | 865 public synchronized V getOrDefault(Object key, V defaultValue) { in getOrDefault() argument 867 return (null == result) ? defaultValue : result; in getOrDefault()
|
D | HashMap.java | 1057 public V getOrDefault(Object key, V defaultValue) { in getOrDefault() argument 1059 return (e = getNode(hash(key), key)) == null ? defaultValue : e.value; in getOrDefault()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | HashMap.annotated.java | 65 …@libcore.util.Nullable java.lang.Object key, @libcore.util.Nullable V defaultValue) { throw new Ru… in getOrDefault() argument
|
D | Map.annotated.java | 62 …@libcore.util.Nullable java.lang.Object key, @libcore.util.Nullable V defaultValue) { throw new Ru… in getOrDefault() argument
|
/libcore/ojluni/annotations/mmodule/java/security/ |
D | Provider.annotated.java | 85 … java.lang.Object getOrDefault(java.lang.Object key, java.lang.Object defaultValue) { throw new Ru… in getOrDefault() argument
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Class.java | 336 private native int getInnerClassFlags(int defaultValue); in getInnerClassFlags() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | JSR166TestCase.java | 177 private static float systemPropertyValue(String name, float defaultValue) { in systemPropertyValue() argument 180 return defaultValue; in systemPropertyValue()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Provider.java | 625 public synchronized Object getOrDefault(Object key, Object defaultValue) { in getOrDefault() argument 627 return super.getOrDefault(key, defaultValue); in getOrDefault()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 2385 private native int getInnerClassFlags(int defaultValue); in getInnerClassFlags() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/concurrent/ |
D | ConcurrentHashMap.annotated.java | 102 …(@libcore.util.NonNull java.lang.Object key, @libcore.util.Nullable V defaultValue) { throw new Ru… in getOrDefault() argument
|