/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 36 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument 43 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument 155 public static int peekInt(long address, boolean swap) { in peekInt() argument 157 if (swap) { in peekInt() 164 public static long peekLong(long address, boolean swap) { in peekLong() argument 166 if (swap) { in peekLong() 173 public static short peekShort(long address, boolean swap) { in peekShort() argument 175 if (swap) { in peekShort() 183 …ic native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); in peekCharArray() argument 184 …ive void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap); in peekDoubleArray() argument [all …]
|
D | NioBufferIterator.java | 30 private final boolean swap; field in NioBufferIterator 34 NioBufferIterator(long address, int size, boolean swap) { in NioBufferIterator() argument 37 this.swap = swap; in NioBufferIterator() 60 int result = Memory.peekInt(address + position, swap); in readInt() 66 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray() 71 short result = Memory.peekShort(address + position, swap); in readShort()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 121 if (swap) { \ 134 …JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekCharArray() argument 138 …IEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekDoubleArray() argument 142 …NIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekFloatArray() argument 146 …(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekIntArray() argument 150 …JNIEnv* env, jclass, jlong srcAddress, jlongArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekLongArray() argument 154 …NIEnv* env, jclass, jlong srcAddress, jshortArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekShortArray() argument 174 if (swap) { \ 186 …JNIEnv* env, jclass, jlong dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeCharArray() argument 190 …IEnv* env, jclass, jlong dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeDoubleArray() argument [all …]
|
/libcore/luni/src/test/java/libcore/io/ |
D | MemoryTest.java | 60 private void assertIntsEqual(int[] expectedValues, long ptr, boolean swap) { in assertIntsEqual() argument 62 assertEquals(expectedValues[i], Memory.peekInt(ptr + SizeOf.INT * i, swap)); in assertIntsEqual() 101 private void assertLongsEqual(long[] expectedValues, long ptr, boolean swap) { in assertLongsEqual() argument 103 assertEquals(expectedValues[i], Memory.peekLong(ptr + SizeOf.LONG * i, swap)); in assertLongsEqual() 139 private void assertShortsEqual(short[] expectedValues, long ptr, boolean swap) { in assertShortsEqual() argument 141 assertEquals(expectedValues[i], Memory.peekShort(ptr + SizeOf.SHORT * i, swap)); in assertShortsEqual()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 472 Collections.swap(new ArrayList<Object>(), -1, 3); in test_Collections_swap_IndexOutOfBoundsException() 480 Collections.swap(list, 0, -1); in test_Collections_swap_IndexOutOfBoundsException() 486 Collections.swap(list, 0, 3); in test_Collections_swap_IndexOutOfBoundsException() 492 Collections.swap(new ArrayList<Object>(), 3, 3); in test_Collections_swap_IndexOutOfBoundsException()
|
D | CollectionsTest.java | 776 Collections.swap(smallList, -1, 6); in test_swapLjava_util_ListII() 783 Collections.swap(smallList, 6, -1); in test_swapLjava_util_ListII() 790 Collections.swap(smallList, 6, 11); in test_swapLjava_util_ListII() 797 Collections.swap(smallList, 11, 6); in test_swapLjava_util_ListII() 805 Collections.swap(null, 1, 1); in test_swapLjava_util_ListII() 812 Collections.swap(smallList, 4, 7); in test_swapLjava_util_ListII()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | Bits.java | 46 static short swap(short x) { in swap() method in Bits 50 static char swap(char x) { in swap() method in Bits 54 static int swap(int x) { in swap() method in Bits 58 static long swap(long x) { in swap() method in Bits
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 451 swap(list, i, j); in reverse() 531 swap(list, i-1, rnd.nextInt(i)); in shuffle() 537 swap(arr, i-1, rnd.nextInt(i)); in shuffle() 565 public static void swap(List<?> list, int i, int j) { in swap() method in Collections 576 private static void swap(Object[] arr, int i, int j) { in swap() method in Collections
|
D | Arrays.java | 1363 swap(dest, j, j-1); in mergeSort() 1395 private static void swap(Object[] x, int a, int b) { in swap() method in Arrays 1556 swap(dest, j, j-1); in mergeSort()
|