Home
last modified time | relevance | path

Searched refs:swap (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/main/java/libcore/io/
DMemory.java41 byte[] src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkGet() argument
48 Object src, int srcOffset, int sizeofElements, boolean swap); in unsafeBulkPut() argument
169 public static int peekInt(long address, boolean swap) { in peekInt() argument
171 if (swap) { in peekInt()
180 public static long peekLong(long address, boolean swap) { in peekLong() argument
182 if (swap) { in peekLong()
190 public static short peekShort(long address, boolean swap) { in peekShort() argument
192 if (swap) { in peekShort()
202 …ic native void peekCharArray(long address, char[] dst, int dstOffset, int charCount, boolean swap); in peekCharArray() argument
203 …ive void peekDoubleArray(long address, double[] dst, int dstOffset, int doubleCount, boolean swap); in peekDoubleArray() argument
[all …]
DNioBufferIterator.java30 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()
85 int result = Memory.peekInt(address + position, swap); in readInt()
95 Memory.peekIntArray(address + position, dst, dstOffset, intCount, swap); in readIntArray()
102 short result = Memory.peekShort(address + position, swap); in readShort()
/libcore/luni/src/main/native/
Dlibcore_io_Memory.cpp123 if (swap) { \
136 …JNIEnv* env, jclass, jlong srcAddress, jcharArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekCharArray() argument
140 …IEnv* env, jclass, jlong srcAddress, jdoubleArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekDoubleArray() argument
144 …NIEnv* env, jclass, jlong srcAddress, jfloatArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekFloatArray() argument
148 …(JNIEnv* env, jclass, jlong srcAddress, jintArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekIntArray() argument
152 …JNIEnv* env, jclass, jlong srcAddress, jlongArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekLongArray() argument
156 …NIEnv* env, jclass, jlong srcAddress, jshortArray dst, jint dstOffset, jint count, jboolean swap) { in Memory_peekShortArray() argument
176 if (swap) { \
188 …JNIEnv* env, jclass, jlong dstAddress, jcharArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeCharArray() argument
192 …IEnv* env, jclass, jlong dstAddress, jdoubleArray src, jint srcOffset, jint count, jboolean swap) { in Memory_pokeDoubleArray() argument
[all …]
/libcore/luni/src/test/java/libcore/libcore/io/
DMemoryTest.java62 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCollections2Test.java472 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()
DCollectionsTest.java778 Collections.swap(smallList, -1, 6); in test_swapLjava_util_ListII()
785 Collections.swap(smallList, 6, -1); in test_swapLjava_util_ListII()
792 Collections.swap(smallList, 6, 11); in test_swapLjava_util_ListII()
799 Collections.swap(smallList, 11, 6); in test_swapLjava_util_ListII()
807 Collections.swap(null, 1, 1); in test_swapLjava_util_ListII()
814 Collections.swap(smallList, 4, 7); in test_swapLjava_util_ListII()
/libcore/ojluni/src/main/java/java/nio/
DBits.java45 static short swap(short x) { in swap() method in Bits
49 static char swap(char x) { in swap() method in Bits
53 static int swap(int x) { in swap() method in Bits
57 static long swap(long x) { in swap() method in Bits
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrays.java185 private static void swap(java.lang.Object[] x, int a, int b) { in swap() method in Arrays
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java52 public static void swap(@libcore.util.NonNull java.util.List<?> list, int i, int j) { throw new Run… in swap() method in Collections
/libcore/ojluni/src/main/java/java/util/
DArrays.java1335 swap(dest, j, j-1); in mergeSort()
1367 private static void swap(Object[] x, int a, int b) { in swap() method in Arrays