Home
last modified time | relevance | path

Searched refs:fallback (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatSymbolsTest.java194 final char fallback = 'F'; in testMaybeStripMarkers() local
195 assertEquals(fallback, DecimalFormatSymbols.maybeStripMarkers("", fallback)); in testMaybeStripMarkers()
196 assertEquals(fallback, DecimalFormatSymbols.maybeStripMarkers("XY", fallback)); in testMaybeStripMarkers()
197 assertEquals(fallback, DecimalFormatSymbols.maybeStripMarkers("" + ltr, fallback)); in testMaybeStripMarkers()
198 assertEquals(fallback, DecimalFormatSymbols.maybeStripMarkers("" + rtl, fallback)); in testMaybeStripMarkers()
199 assertEquals(fallback, DecimalFormatSymbols.maybeStripMarkers("" + alm, fallback)); in testMaybeStripMarkers()
200 assertEquals(fallback, in testMaybeStripMarkers()
201 DecimalFormatSymbols.maybeStripMarkers("X" + ltr + rtl + alm + "Y", fallback)); in testMaybeStripMarkers()
202 assertEquals(fallback, in testMaybeStripMarkers()
203 DecimalFormatSymbols.maybeStripMarkers("" + ltr + rtl + alm, fallback)); in testMaybeStripMarkers()
[all …]
/libcore/json/src/test/java/libcore/org/json/
DSelfUseTest.java95 @Override public boolean optBoolean(int index, boolean fallback) {
97 return super.optBoolean(index, fallback);
99 @Override public double optDouble(int index, double fallback) {
101 return super.optDouble(index, fallback);
103 @Override public long optLong(int index, long fallback) {
105 return super.optLong(index, fallback);
107 @Override public String optString(int index, String fallback) {
109 return super.optString(index, fallback);
111 @Override public int optInt(int index, int fallback) {
113 return super.optInt(index, fallback);
/libcore/json/src/main/java/org/json/
DJSONArray.java349 public boolean optBoolean(int index, boolean fallback) { in optBoolean() argument
352 return result != null ? result : fallback; in optBoolean()
383 public double optDouble(int index, double fallback) { in optDouble() argument
386 return result != null ? result : fallback; in optDouble()
417 public int optInt(int index, int fallback) { in optInt() argument
420 return result != null ? result : fallback; in optInt()
451 public long optLong(int index, long fallback) { in optLong() argument
454 return result != null ? result : fallback; in optLong()
484 public String optString(int index, String fallback) { in optString() argument
487 return result != null ? result : fallback; in optString()
DJSONObject.java441 public boolean optBoolean(@Nullable String name, boolean fallback) { in optBoolean() argument
444 return result != null ? result : fallback; in optBoolean()
475 public double optDouble(@Nullable String name, double fallback) { in optDouble() argument
478 return result != null ? result : fallback; in optDouble()
509 public int optInt(@Nullable String name, int fallback) { in optInt() argument
512 return result != null ? result : fallback; in optInt()
548 public long optLong(@Nullable String name, long fallback) { in optLong() argument
551 return result != null ? result : fallback; in optLong()
581 @NonNull public String optString(@Nullable String name, @NonNull String fallback) { in optString() argument
584 return result != null ? result : fallback; in optString()
/libcore/ojluni/src/main/java/java/text/
DDecimalFormatSymbols.java741 public static char maybeStripMarkers(String symbol, char fallback) { in maybeStripMarkers() argument
753 return fallback; in maybeStripMarkers()
762 return fallback; in maybeStripMarkers()
/libcore/ojluni/annotations/hiddenapi/java/text/
DDecimalFormatSymbols.java220 public static char maybeStripMarkers(java.lang.String symbol, char fallback) { in maybeStripMarkers() argument
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java178 EmulatedStackFrame fallback = EmulatedStackFrame.create(handler.type()); in transform()
181 fallback.setReference(0, th); in transform()
186 emulatedStackFrame.copyRangeTo(fallback, handlerArgsRange, in transform()
190 handler.invoke(fallback); in transform()
191 fallback.copyReturnValueTo(emulatedStackFrame); in transform()
206 private final MethodHandle fallback; field in Transformers.GuardWithTest
210 public GuardWithTest(MethodHandle test, MethodHandle target, MethodHandle fallback) { in GuardWithTest() argument
215 this.fallback = fallback; in GuardWithTest()
232 fallback.invoke(emulatedStackFrame); in transform()
DMethodHandles.java3411 MethodHandle fallback) { in guardWithTest() argument
3414 MethodType ftype = fallback.type(); in guardWithTest()
3429 return new Transformers.GuardWithTest(test, target, fallback); in guardWithTest()
/libcore/ojluni/src/lambda/java/java/lang/invoke/
DMethodHandles.java144 MethodHandle fallback) { return null; } in guardWithTest() argument
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java266 … final MethodHandle fallback = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, in testGuardWithTest() local
269 MethodHandle adapter = MethodHandles.guardWithTest(test, target, fallback); in testGuardWithTest()
1762 final MethodHandle fallback = in testGuardWithTestMultiThreaded() local
1765 MethodHandle adapter = MethodHandles.guardWithTest(test, target, fallback); in testGuardWithTestMultiThreaded()
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/
DMethodHandles.java341 java.lang.invoke.MethodHandle fallback) { in guardWithTest() argument
/libcore/expectations/
Dknownfailures.txt1345 …description: "java.util.logging: Android introduced config fallback behavior in LogManager.readCon…
1413 …malFormatSymbolsTest#test_getInstance_unknown_or_invalid_locale assumes fallback to locale other t…