Searched refs:constant (Results 1 – 9 of 9) sorted by relevance
/libcore/benchmarks/src/benchmarks/ |
D | AdditionBenchmark.java | 32 int constant = 123; in timeAddTwoLocalInts() local 34 result += constant; in timeAddTwoLocalInts() 47 long constant = 123L; in timeAddTwoLocalLongs() local 49 result += constant; in timeAddTwoLocalLongs() 62 float constant = 123.0f; in timeAddTwoLocalFloats() local 64 result += constant; in timeAddTwoLocalFloats() 77 double constant = 123.0; in timeAddTwoLocalDoubles() local 79 result += constant; in timeAddTwoLocalDoubles()
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleCombinersTest.java | 529 MethodHandle constant = MethodHandles.constant(int.class, 56); in testConstant() local 530 assertEquals(56, (int) constant.invoke()); in testConstant() 533 constant = MethodHandles.constant(int.class, (short) 52); in testConstant() 534 assertEquals(52, (int) constant.invoke()); in testConstant() 537 constant = MethodHandles.constant(int.class, (char) 'b'); in testConstant() 538 assertEquals('b', (int) constant.invoke()); in testConstant() 541 constant = MethodHandles.constant(int.class, (byte) 0x1); in testConstant() 542 assertEquals(0x1, (int) constant.invoke()); in testConstant() 547 MethodHandles.constant(int.class, false); in testConstant() 553 MethodHandles.constant(int.class, 0.1f); in testConstant() [all …]
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandles.java | 115 MethodHandle constant(Class<?> type, Object value) { return null; } in constant() method in MethodHandles
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Long.java | 931 String constant = negative ? ("-" + nm.substring(index)) in decode() 933 result = Long.valueOf(constant, radix); in decode()
|
D | Integer.java | 1230 String constant = negative ? ("-" + nm.substring(index)) 1232 result = Integer.valueOf(constant, radix);
|
/libcore/ |
D | NativeCode.bp | 123 "-Wno-constant-logical-operand",
|
D | JavaLibrary.bp | 146 "-Xep:ConstantOverflow:WARN", // Known constant overflow in SplittableRandom
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 208 public static java.lang.invoke.MethodHandle constant( in constant() method in MethodHandles
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | MethodHandles.java | 2731 MethodHandle constant(Class<?> type, Object value) { in constant() method in MethodHandles
|