/libcore/luni/src/main/java/libcore/io/ |
D | Memory.java | 47 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument 55 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument 249 public static int peekInt(long address, boolean swap) { in peekInt() argument 251 if (swap) { in peekInt() 263 public static long peekLong(long address, boolean swap) { in peekLong() argument 265 if (swap) { in peekLong() 276 public static short peekShort(long address, boolean swap) { in peekShort() argument 278 if (swap) { in peekShort() 297 …ic native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); in peekCharArray() argument 303 …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(MemoryMappedFile file, long address, int length, boolean swap) { in NioBufferIterator() argument 50 this.swap = swap; in NioBufferIterator() 90 int result = Memory.peekInt(address + position, swap); in readInt() 101 Memory.peekIntArray(address + position, ints, arrayOffset, intCount, swap); in readIntArray() 111 Memory.peekLongArray(address + position, longs, arrayOffset, longCount, swap); in readLongArray() 119 short result = Memory.peekShort(address + position, swap); in readShort()
|
/libcore/luni/src/main/native/ |
D | libcore_io_Memory.cpp | 124 if (swap) { \ 136 …JNIEnv* env, jclass, jlong dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeCharArray() argument 140 …IEnv* env, jclass, jlong dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeDoubleArray() argument 144 …NIEnv* env, jclass, jlong dstAddress, jfloatArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeFloatArray() argument 148 …(JNIEnv* env, jclass, jlong dstAddress, jintArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeIntArray() argument 152 …JNIEnv* env, jclass, jlong dstAddress, jlongArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeLongArray() argument 156 …NIEnv* env, jclass, jlong dstAddress, jshortArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeShortArray() argument 185 jint sizeofElement, jboolean swap) { in unsafeBulkCopy() argument 186 if (!swap) { in unsafeBulkCopy() 207 jint byteCount, jbyteArray srcArray, jint srcOffset, jint sizeofElement, jboolean swap) { in Memory_unsafeBulkGet() argument [all …]
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | MemoryTest.java | 62 private void assertIntsEqual(int[] expectedValues, long ptr, boolean swap) { in assertIntsEqual() argument 64 assertEquals(expectedValues[i], Memory.peekInt(ptr + Integer.BYTES * i, swap)); in assertIntsEqual() 103 private void assertLongsEqual(long[] expectedValues, long ptr, boolean swap) { in assertLongsEqual() argument 105 assertEquals(expectedValues[i], Memory.peekLong(ptr + Long.BYTES * i, swap)); in assertLongsEqual() 141 private void assertShortsEqual(short[] expectedValues, long ptr, boolean swap) { in assertShortsEqual() argument 143 assertEquals(expectedValues[i], Memory.peekShort(ptr + Short.BYTES * i, swap)); in assertShortsEqual()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Correct.java | 96 swap(a1, x, lowestIndex); in stupidSort() 115 swap(a1, x, lowestIndex); in stupidSort() 120 static <T> void swap(T[] x, int a, int b) { in swap() method in Correct
|
D | Sorting.java | 581 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 587 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 593 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 599 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 605 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 611 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 617 swap(a, random.nextInt(a.length), random.nextInt(a.length)); in scramble() 621 private void swap(int[] a, int i, int j) { in swap() method in Sorting.InnerState 627 private void swap(long[] a, int i, int j) { in swap() method in Sorting.InnerState 633 private void swap(byte[] a, int i, int j) { in swap() method in Sorting.InnerState [all …]
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | Swap.java | 44 Collections.swap(l, i, i+1); in main()
|
/libcore/ojluni/src/main/java/java/nio/ |
D | Direct-X-Buffer.java.template | 324 … return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(scope(), null, ix(nextGetIndex())))); 332 … return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(scope(), null, ix(checkIndex(i))))); 341 return $fromBits$($swap$(SCOPED_MEMORY_ACCESS.get$Swaptype$(null, null, ix(i)))); 352 … SCOPED_MEMORY_ACCESS.put$Swaptype$(scope(), null, ix(nextPutIndex()), $swap$($toBits$(x))); 365 … SCOPED_MEMORY_ACCESS.put$Swaptype$(scope(), null, ix(checkIndex(i)), $swap$($toBits$(x)));
|
D | Bits.java | 48 static short swap(short x) { in swap() method in Bits 52 static char swap(char x) { in swap() method in Bits 56 static int swap(int x) { in swap() method in Bits 60 static long swap(long x) { in swap() method in Bits
|
/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 | 783 Collections.swap(smallList, -1, 6); in test_swapLjava_util_ListII() 790 Collections.swap(smallList, 6, -1); in test_swapLjava_util_ListII() 797 Collections.swap(smallList, 6, 11); in test_swapLjava_util_ListII() 804 Collections.swap(smallList, 11, 6); in test_swapLjava_util_ListII() 812 Collections.swap(null, 1, 1); in test_swapLjava_util_ListII() 819 Collections.swap(smallList, 4, 7); in test_swapLjava_util_ListII()
|
/libcore/ojluni/src/tools/make/gensrc/ |
D | GensrcBuffer.gmk | 150 $1_swap := Bits.swap
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | Collections.annotated.java | 52 public static void swap(java.util.List<?> list, int i, int j) { throw new RuntimeException("Stub!")… in swap() method in Collections
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 185 private static void swap(java.lang.Object[] x, int a, int b) { in swap() method in Arrays
|
D | Collections.java | 92 public static void swap(java.util.List<?> list, int i, int j) { in swap() method in Collections 96 private static void swap(java.lang.Object[] arr, int i, int j) { in swap() method in Collections
|
/libcore/ojluni/src/main/java/java/util/ |
D | Collections.java | 432 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 | 1178 swap(dest, j, j-1); in mergeSort() 1210 private static void swap(Object[] x, int a, int b) { in swap() method in Arrays
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Collections.annotated.java | 54 public static void swap(@libcore.util.NonNull java.util.List<?> list, int i, int j) { throw new Run… in swap() method in Collections
|
/libcore/api/ |
D | current.txt | 13664 method public static void swap(@NonNull java.util.List<?>, int, int);
|