Home
last modified time | relevance | path

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

/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.java201 assertEquals(val, Integer.parseUnsignedInt(Integer.toBinaryString(val), 2));
249 assertTrue(Integer.toUnsignedString(val, 2).equals(Integer.toBinaryString(val)));
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/
DInteger.java60 public static java.lang.String toBinaryString(int i) { in toBinaryString() method in Integer
DLong.java63 public static java.lang.String toBinaryString(long i) { in toBinaryString() method in Long
/libcore/ojluni/src/main/java/java/lang/
DLong.java179 return toBinaryString(i); in toUnsignedString()
344 public static String toBinaryString(long i) { in toBinaryString() method in Long
DInteger.java303 public static String toBinaryString(int i) { in toBinaryString() method in Integer
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DLong.annotated.java47 @libcore.util.NonNull public static java.lang.String toBinaryString(long i) { throw new RuntimeExce… in toBinaryString() method in Long
DInteger.annotated.java46 @libcore.util.NonNull public static java.lang.String toBinaryString(int i) { throw new RuntimeExcep… in toBinaryString() method in Integer