Home
last modified time | relevance | path

Searched refs:toBinaryString (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/test/java/lang/String/CompactString/
DNumbers.java49 { Integer.toBinaryString(Integer.MAX_VALUE), in numbers()
51 { Integer.toBinaryString(Integer.MIN_VALUE), in numbers()
53 { Integer.toBinaryString(7), "111" }, in numbers()
54 { Integer.toBinaryString(0), "0" }, in numbers()
75 { Long.toBinaryString(Long.MAX_VALUE), in numbers()
77 { Long.toBinaryString(Long.MIN_VALUE), in numbers()
/libcore/benchmarks/src/benchmarks/regression/
DIntegralToStringBenchmark.java99 Integer.toBinaryString(SMALL); in time_IntegerToBinaryString_small()
105 Integer.toBinaryString(MEDIUM); in time_IntegerToBinaryString_medium()
111 Integer.toBinaryString(LARGE); in time_IntegerToBinaryString_large()
/libcore/luni/src/test/java/libcore/java/lang/
DIntegerTest.java197 assertEquals(value, Integer.parseUnsignedInt(Integer.toBinaryString(value), 2)); in testParseUnsignedInt()
213 () -> Integer.parseUnsignedInt(Long.toBinaryString(longValue), 2)); in testParseUnsignedInt()
254 String binary = leftPad + Integer.toBinaryString(value) + rightPad; in testParseUnsignedIntSubstring()
277 final String input = leftPad + Long.toBinaryString(large_value) + rightPad; in testParseUnsignedIntSubstring()
345 assertTrue(Integer.toUnsignedString(val, 2).equals(Integer.toBinaryString(val))); in testToUnsignedString()
DLongTest.java217 assertEquals(val, Long.parseUnsignedLong(Long.toBinaryString(val), 2));
256 assertTrue(Long.toUnsignedString(val, 2).equals(Long.toBinaryString(val)));
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DLongTest.java319 … assertEquals("Incorrect binary string returned", "11011001010010010000", Long.toBinaryString( in test_toBinaryStringJ()
324 .toBinaryString(Long.MIN_VALUE) in test_toBinaryStringJ()
329 .toBinaryString(Long.MAX_VALUE) in test_toBinaryStringJ()
DIntegerTest.java447 …ssertEquals("Incorrect string returned", "1111111111111111111111111111111", Integer.toBinaryString( in test_toBinaryStringI()
449 …sertEquals("Incorrect string returned", "10000000000000000000000000000000", Integer.toBinaryString( in test_toBinaryStringI()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DLong.java63 public static java.lang.String toBinaryString(long i) { in toBinaryString() method in Long
DInteger.java60 public static java.lang.String toBinaryString(int i) { in toBinaryString() method in Integer
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DInteger.annotated.java46 @libcore.util.NonNull public static java.lang.String toBinaryString(int i) { throw new RuntimeExcep… in toBinaryString() method in Integer
DLong.annotated.java47 @libcore.util.NonNull public static java.lang.String toBinaryString(long i) { throw new RuntimeExce… in toBinaryString() method in Long
/libcore/ojluni/src/test/java/lang/Integer/
DUnsigned.java42 Integer.parseUnsignedInt(Integer.toBinaryString(datum), 2), in testRoundtrip()
/libcore/ojluni/src/main/java/java/lang/
DLong.java231 case 2 -> toBinaryString(i); in toUnsignedString()
387 public static String toBinaryString(long i) { in toBinaryString() method
DInteger.java362 public static String toBinaryString(int i) { in toBinaryString() method in Integer
/libcore/ojluni/src/test/java/lang/Long/
DUnsigned.java51 Long.parseUnsignedLong(Long.toBinaryString(datum), 2), in testRoundtrip()
/libcore/api/
Dcurrent.txt3460 method @NonNull public static String toBinaryString(int);
3538 method @NonNull public static String toBinaryString(long);