Searched refs:literal (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | JniTest.java | 97 for(Object literal : literals) { in testPassingObjectReferences() 99 a[i] = literal; in testPassingObjectReferences() 125 for(boolean literal : literals) { in testPassingBooleans() 127 a[i] = literal; in testPassingBooleans() 156 for(char literal : literals) { in testPassingChars() 158 a[i] = literal; in testPassingChars() 184 for(byte literal : literals) { in testPassingBytes() 186 a[i] = literal; in testPassingBytes() 212 for(short literal : literals) { in testPassingShorts() 214 a[i] = literal; in testPassingShorts() [all …]
|
/libcore/json/src/main/java/org/json/ |
D | JSONTokener.java | 294 String literal = nextToInternal("{}[]/\\:,=;# \t\f"); in readLiteral() local 296 if (literal.length() == 0) { in readLiteral() 298 } else if ("null".equalsIgnoreCase(literal)) { in readLiteral() 300 } else if ("true".equalsIgnoreCase(literal)) { in readLiteral() 302 } else if ("false".equalsIgnoreCase(literal)) { in readLiteral() 307 if (literal.indexOf('.') == -1) { in readLiteral() 309 String number = literal; in readLiteral() 335 return Double.valueOf(literal); in readLiteral() 340 return literal; in readLiteral()
|
/libcore/ojluni/src/main/java/java/util/ |
D | HexFormat.java | 618 private static void checkLiteral(CharSequence string, int index, String literal) { in checkLiteral() argument 619 assert index <= string.length() - literal.length() : "pre-checked invariant error"; in checkLiteral() 620 if (literal.isEmpty() || in checkLiteral() 621 (literal.length() == 1 && literal.charAt(0) == string.charAt(index))) { in checkLiteral() 624 for (int i = 0; i < literal.length(); i++) { in checkLiteral() 625 if (string.charAt(index + i) != literal.charAt(i)) { in checkLiteral() 627 string.subSequence(index, index + literal.length()) + in checkLiteral() 628 "\", expected: \"" + literal + "\", index: " + index + in checkLiteral()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimeFormatterBuilder.java | 1442 public DateTimeFormatterBuilder appendLiteral(char literal) { in appendLiteral() argument 1443 appendInternal(new CharLiteralPrinterParser(literal)); in appendLiteral() 1457 public DateTimeFormatterBuilder appendLiteral(String literal) { in appendLiteral() argument 1458 Objects.requireNonNull(literal, "literal"); in appendLiteral() 1459 if (!literal.isEmpty()) { in appendLiteral() 1460 if (literal.length() == 1) { in appendLiteral() 1461 appendInternal(new CharLiteralPrinterParser(literal.charAt(0))); in appendLiteral() 1463 appendInternal(new StringLiteralPrinterParser(literal)); in appendLiteral() 2635 private final char literal; field in DateTimeFormatterBuilder.CharLiteralPrinterParser 2637 CharLiteralPrinterParser(char literal) { in CharLiteralPrinterParser() argument [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StringTest.java | 191 String literal = (String) Class.forName("libcore.java.lang.StringTest$HasLiteral") in testInternBeforeLiteralIsLoaded() local 193 assertEquals(System.identityHashCode(programmatic), System.identityHashCode(literal)); in testInternBeforeLiteralIsLoaded() 194 assertSame(programmatic, literal); in testInternBeforeLiteralIsLoaded() 198 static String literal = "[5058, 9962, 1563, 5744]"; field in StringTest.HasLiteral
|
/libcore/ojluni/src/test/java/util/regex/ |
D | TestCases.txt | 231 // Making sure a ^ not in first position matches literal ^
|
D | BMPTestCases.txt | 142 // Making sure a ^ not in first position matches literal ^
|
D | SupplementaryTestCases.txt | 263 // Making sure a ^ not in first position matches literal ^
|