/libcore/ojluni/src/main/native/ |
D | zip_util.h | 65 #define CH(b, n) (((unsigned char *)(b))[n]) argument 66 #define SH(b, n) (CH(b, n) | (CH(b, n+1) << 8)) argument 67 #define LG(b, n) ((SH(b, n) | (SH(b, n+2) << 16)) &0xffffffffUL) argument 68 #define LL(b, n) (((jlong)LG(b, n)) | (((jlong)LG(b, n+4)) << 32)) argument 69 #define GETSIG(b) LG(b, 0) argument 74 #define LOCVER(b) SH(b, 4) /* version needed to extract */ argument 75 #define LOCFLG(b) SH(b, 6) /* general purpose bit flags */ argument 76 #define LOCHOW(b) SH(b, 8) /* compression method */ argument 77 #define LOCTIM(b) LG(b, 10) /* modification time */ argument 78 #define LOCCRC(b) LG(b, 14) /* crc of uncompressed data */ argument [all …]
|
D | jlong_md.h | 35 #define jlong_add(a, b) ((a) + (b)) argument 36 #define jlong_and(a, b) ((a) & (b)) argument 37 #define jlong_div(a, b) ((a) / (b)) argument 38 #define jlong_mul(a, b) ((a) * (b)) argument 41 #define jlong_or(a, b) ((a) | (b)) argument 44 #define jlong_sub(a, b) ((a) - (b)) argument 45 #define jlong_xor(a, b) ((a) ^ (b)) argument 46 #define jlong_rem(a,b) ((a) % (b)) argument 53 #define jlong_eq(a, b) ((a) == (b)) argument 54 #define jlong_ne(a,b) ((a) != (b)) argument [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | Bits.java | 39 static boolean getBoolean(byte[] b, int off) { in getBoolean() 43 static char getChar(byte[] b, int off) { in getChar() 48 static short getShort(byte[] b, int off) { in getShort() 53 static int getInt(byte[] b, int off) { in getInt() 60 static float getFloat(byte[] b, int off) { in getFloat() 64 static long getLong(byte[] b, int off) { in getLong() 75 static double getDouble(byte[] b, int off) { in getDouble() 84 static void putBoolean(byte[] b, int off, boolean val) { in putBoolean() 88 static void putChar(byte[] b, int off, char val) { in putChar() 93 static void putShort(byte[] b, int off, short val) { in putShort() [all …]
|
D | OutputStream.java | 62 public abstract void write(int b) throws IOException; in write() 74 public void write(byte b[]) throws IOException { in write() 106 public void write(byte b[], int off, int len) throws IOException { in write()
|
D | ObjectOutput.java | 57 public void write(int b) throws IOException; in write() 65 public void write(byte b[]) throws IOException; in write() 74 public void write(byte b[], int off, int len) throws IOException; in write()
|
D | FilterOutputStream.java | 76 public void write(int b) throws IOException { in write() 96 public void write(byte b[]) throws IOException { in write() 120 public void write(byte b[], int off, int len) throws IOException { in write()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | StrictMathTest.java | 37 private void testIntExact(int a, int b) { in testIntExact() 43 private void testAddExactI(int a, int b) { in testAddExactI() 54 private void testSubtractExactI(int a, int b) { in testSubtractExactI() 66 private void testMultiplyExactI(int a, int b) { in testMultiplyExactI() 89 private void testLongExact(long a, long b) { in testLongExact() 96 private void testAddExactL(long a, long b) { in testAddExactL() 107 private void testSubtractExactL(long a, long b) { in testSubtractExactL() 118 private void testMultiplyExactL(long a, long b) { in testMultiplyExactL() 151 private void testFloorDivModI(int a, int b) { in testFloorDivModI() 156 private void testFloorDivI(int a, int b) { in testFloorDivI() [all …]
|
D | MathTest.java | 37 private void testIntExact(int a, int b) { in testIntExact() 46 private void testAddExactI(int a, int b) { in testAddExactI() 57 private void testSubtractExactI(int a, int b) { in testSubtractExactI() 69 private void testMultiplyExactI(int a, int b) { in testMultiplyExactI() 125 private void testLongExact(long a, long b) { in testLongExact() 135 private void testAddExactL(long a, long b) { in testAddExactL() 146 private void testSubtractExactL(long a, long b) { in testSubtractExactL() 157 private void testMultiplyExactL(long a, long b) { in testMultiplyExactL() 223 private void testFloorDivModI(int a, int b) { in testFloorDivModI() 228 private void testFloorDivI(int a, int b) { in testFloorDivI() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestMonthDay.java | 126 MonthDay b = localDates[j]; in doTest_comparisons_MonthDay() local 133 assertTrue(a.compareTo(b) > 0, a + " <=> " + b); in doTest_comparisons_MonthDay() local 134 assertEquals(a.isBefore(b), false, a + " <=> " + b); in doTest_comparisons_MonthDay() local 135 assertEquals(a.isAfter(b), true, a + " <=> " + b); in doTest_comparisons_MonthDay() local 136 assertEquals(a.equals(b), false, a + " <=> " + b); in doTest_comparisons_MonthDay() local 138 assertEquals(a.compareTo(b), 0, a + " <=> " + b); in doTest_comparisons_MonthDay() local 139 assertEquals(a.isBefore(b), false, a + " <=> " + b); in doTest_comparisons_MonthDay() local 140 assertEquals(a.isAfter(b), false, a + " <=> " + b); in doTest_comparisons_MonthDay() local 141 assertEquals(a.equals(b), true, a + " <=> " + b); in doTest_comparisons_MonthDay() local
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 46 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray01() local 80 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray02() local 127 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray03() local 188 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray04() local 232 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigIntegerbyteArray05() local 254 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigInteger01() local 286 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigInteger02() local 330 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigInteger03() local 387 BigInteger b = BigInteger.valueOf(19L); in testEllipticCurveECFieldBigIntegerBigInteger04() local 429 BigInteger b = BigInteger.valueOf(19L); in testGetA() local [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldURITest.java | 111 URI b = new URI("http://www.google.com/dir1/dir2"); in test_relativizeLjava_net_URI() local 120 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_net_URI() local 129 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_lang_String() local 136 URI b = new URI("http://www.test.com/dir"); in test_resolveLjava_lang_String() local
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigDecimalArithmeticTest.java | 30 BigDecimal a, b, res; in testAddMathContextNonTrivial() local 55 BigDecimal a, b, res; in testSubtractMathContextNonTrivial() local 78 BigDecimal a, b, res; in testMultiplyMathContextNonTrivial() local 94 BigDecimal a, b, res; in testPowNonTrivial() local 126 BigDecimal a, b, res; in testPowMathContextNonTrivial() local 191 BigDecimal a, b, res; in testDivideINonTrivial() local 218 BigDecimal a, b, res; in testDivideIINonTrivial() local 246 BigDecimal a, b, res; in testDivideScaleRoundingModeNonTrivial() local 276 BigDecimal a, b, res; in testDivideMathContextNonTrivial() local 324 String b = "0"; in testDivideToIntegralValueByZero() local [all …]
|
/libcore/luni/src/main/java/java/nio/ |
D | NIOAccess.java | 33 public static long getBasePointer(Buffer b) { in getBasePointer() 45 static Object getBaseArray(Buffer b) { in getBaseArray() 56 static int getBaseArrayOffset(Buffer b) { in getBaseArrayOffset()
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketOutputStream.java | 86 private native void socketWrite0(FileDescriptor fd, byte[] b, int off, in socketWrite0() 97 private void socketWrite(byte b[], int off, int len) throws IOException { in socketWrite() 130 public void write(int b) throws IOException { in write() 140 public void write(byte b[]) throws IOException { in write() 152 public void write(byte b[], int off, int len) throws IOException { in write()
|
/libcore/ojluni/src/main/java/java/util/zip/ |
D | Inflater.java | 125 public void setInput(byte[] b, int off, int len) { in setInput() 146 public void setInput(byte[] b) { in setInput() 161 public void setDictionary(byte[] b, int off, int len) { in setDictionary() 170 setDictionary(zsRef.address(), b, off, len); in setDictionary() local 184 public void setDictionary(byte[] b) { in setDictionary() 250 public int inflate(byte[] b, int off, int len) in inflate() 282 public int inflate(byte[] b) throws DataFormatException { in inflate() 412 private native static void setDictionary(long addr, byte[] b, int off, in setDictionary() 414 private native int inflateBytes(long addr, byte[] b, int off, int len) in inflateBytes()
|
D | CRC32.java | 57 public void update(int b) { in update() 69 public void update(byte[] b, int off, int len) { in update() 84 public void update(byte[] b) { in update() 134 private native static int update(int crc, int b); in update() 135 private native static int updateBytes(int crc, byte[] b, int off, int len); in updateBytes()
|
D | Adler32.java | 59 public void update(int b) { in update() 71 public void update(byte[] b, int off, int len) { in update() 86 public void update(byte[] b) { in update() 137 private native static int update(int adler, int b); in update() 138 private native static int updateBytes(int adler, byte[] b, int off, in updateBytes()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Boolean.java | 149 public static Boolean valueOf(boolean b) { in valueOf() 176 public static String toString(boolean b) { in toString() 272 public int compareTo(Boolean b) { in compareTo() 304 public static boolean logicalAnd(boolean a, boolean b) { in logicalAnd() 318 public static boolean logicalOr(boolean a, boolean b) { in logicalOr() 332 public static boolean logicalXor(boolean a, boolean b) { in logicalXor()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ |
D | NativeTestTarget.java | 51 public static native void emptyJniStaticMethod6(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6() 56 public static native void emptyJniStaticMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Fast() 61 …public static native void emptyJniStaticMethod6_Critical(int a, int b, int c, int d, int e, int f); in emptyJniStaticMethod6_Critical() 67 public native void emptyJniMethod6(int a, int b, int c, int d, int e, int f); in emptyJniMethod6() 76 public static native void emptyJniStaticMethod6L(String a, String[] b, in emptyJniStaticMethod6L() 80 public native void emptyJniMethod6L(String a, String[] b, in emptyJniMethod6L() 86 public native void emptyJniMethod6_Fast(int a, int b, int c, int d, int e, int f); in emptyJniMethod6_Fast() 95 public static native void emptyJniStaticMethod6L_Fast(String a, String[] b, in emptyJniStaticMethod6L_Fast() 99 public native void emptyJniMethod6L_Fast(String a, String[] b, in emptyJniMethod6L_Fast()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | BufferTest.java | 128 private void testByteSwappedBulkGet(ByteBuffer b) throws Exception { in testByteSwappedBulkGet() 201 private static String toString(ByteBuffer b) { in toString() 221 private void testByteSwappedBulkPut(ByteBuffer b) throws Exception { in testByteSwappedBulkPut() 286 private void testByteBufferByteOrder(ByteBuffer b, boolean readOnly) throws Exception { in testByteBufferByteOrder() 333 private void testCharBufferByteOrder(CharBuffer b, ByteOrder bo) throws Exception { in testCharBufferByteOrder() 364 private void testDoubleBufferByteOrder(DoubleBuffer b, ByteOrder bo) throws Exception { in testDoubleBufferByteOrder() 395 private void testFloatBufferByteOrder(FloatBuffer b, ByteOrder bo) throws Exception { in testFloatBufferByteOrder() 426 private void testIntBufferByteOrder(IntBuffer b, ByteOrder bo) throws Exception { in testIntBufferByteOrder() 457 private void testLongBufferByteOrder(LongBuffer b, ByteOrder bo) throws Exception { in testLongBufferByteOrder() 488 private void testShortBufferByteOrder(ShortBuffer b, ByteOrder bo) throws Exception { in testShortBufferByteOrder() [all …]
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | StreamTestScenario.java | 50 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() 63 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() 73 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() 83 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() 92 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() 100 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 108 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_FOREACH() 116 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH() 124 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_FOR_EACH_ORDERED() 133 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SPLITERATOR() [all …]
|
D | LongStreamTestScenario.java | 51 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() 63 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() 72 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() 81 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() 90 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 98 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_FOREACH() 105 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH() 113 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_FOR_EACH_ORDERED() 122 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR() 131 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR_FOREACH() [all …]
|
D | IntStreamTestScenario.java | 51 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() 63 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_TO_ARRAY() 72 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_ITERATOR() 81 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR() 90 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 98 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in STREAM_SPLITERATOR_FOREACH() 105 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH() 113 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_FOR_EACH_ORDERED() 122 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SPLITERATOR() 131 void _run(TestData<T, S_IN> data, IntConsumer b, Function<S_IN, IntStream> m) { in PAR_STREAM_SPLITERATOR_FOREACH() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | StreamTestScenario.java | 47 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_FOR_EACH_WITH_CLOSE() 60 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_COLLECT() 70 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_TO_ARRAY() 80 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_ITERATOR() 89 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR() 97 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 105 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in STREAM_SPLITERATOR_FOREACH() 113 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH() 121 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_FOR_EACH_ORDERED() 130 void _run(TestData<T, S_IN> data, Consumer<U> b, Function<S_IN, Stream<U>> m) { in PAR_STREAM_SPLITERATOR() [all …]
|
D | LongStreamTestScenario.java | 48 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_FOR_EACH_WITH_CLOSE() 60 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_TO_ARRAY() 69 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_ITERATOR() 78 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR() 87 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_WITH_MIXED_TRAVERSE_AND_SPLIT() 95 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in STREAM_SPLITERATOR_FOREACH() 102 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SEQUENTIAL_FOR_EACH() 110 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_FOR_EACH_ORDERED() 119 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR() 128 void _run(TestData<T, S_IN> data, LongConsumer b, Function<S_IN, LongStream> m) { in PAR_STREAM_SPLITERATOR_FOREACH() [all …]
|