/libcore/luni/src/main/java/java/nio/ |
ByteOrder.java | 22 public final class ByteOrder { 23 private static final ByteOrder NATIVE_ORDER; 28 public static final ByteOrder BIG_ENDIAN; 33 public static final ByteOrder LITTLE_ENDIAN; 39 BIG_ENDIAN = new ByteOrder("BIG_ENDIAN", isLittleEndian); 40 LITTLE_ENDIAN = new ByteOrder("LITTLE_ENDIAN", !isLittleEndian); 47 * This is the only thing that ByteOrder is really used for: to know whether we need to swap 54 private ByteOrder(String name, boolean needsSwap) { 65 public static ByteOrder nativeOrder() { 72 * @return "BIG_ENDIAN" for {@link #BIG_ENDIAN ByteOrder.BIG_ENDIAN [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
ByteOrderTest.java | 20 import java.nio.ByteOrder; 25 * Test java.nio.ByteOrder 31 assertEquals(ByteOrder.BIG_ENDIAN.toString(), "BIG_ENDIAN"); 32 assertEquals(ByteOrder.LITTLE_ENDIAN.toString(), "LITTLE_ENDIAN"); 36 ByteOrder o = ByteOrder.nativeOrder(); 37 assertTrue(o == ByteOrder.BIG_ENDIAN || o == ByteOrder.LITTLE_ENDIAN);
|
DirectCharBufferTest.java | 19 import java.nio.ByteOrder; 59 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
DirectDoubleBufferTest.java | 19 import java.nio.ByteOrder; 58 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
DirectFloatBufferTest.java | 19 import java.nio.ByteOrder; 59 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
DirectIntBufferTest.java | 19 import java.nio.ByteOrder; 59 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
DirectLongBufferTest.java | 19 import java.nio.ByteOrder; 60 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
DirectShortBufferTest.java | 19 import java.nio.ByteOrder; 59 assertEquals(ByteOrder.BIG_ENDIAN, buf.order());
|
ByteBufferTest.java | 23 import java.nio.ByteOrder; 486 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); 488 buf.order(ByteOrder.LITTLE_ENDIAN); 489 assertEquals(ByteOrder.LITTLE_ENDIAN, buf.order()); 491 buf.order(ByteOrder.BIG_ENDIAN); 492 assertEquals(ByteOrder.BIG_ENDIAN, buf.order()); 495 buf.order((ByteOrder)null); 496 assertEquals(ByteOrder.LITTLE_ENDIAN, buf.order()); 498 buf.order(ByteOrder.BIG_ENDIAN); 776 buf.order(ByteOrder.BIG_ENDIAN) [all...] |
/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 113 b.order(ByteOrder.BIG_ENDIAN).asCharBuffer().get(chars, 1, 4); 115 b.order(ByteOrder.LITTLE_ENDIAN).asCharBuffer().get(chars, 1, 4); 119 b.order(ByteOrder.BIG_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); 123 b.order(ByteOrder.LITTLE_ENDIAN).asDoubleBuffer().get(doubles, 1, 1); 129 b.order(ByteOrder.BIG_ENDIAN).asFloatBuffer().get(floats, 1, 2); 134 b.order(ByteOrder.LITTLE_ENDIAN).asFloatBuffer().get(floats, 1, 2); 141 b.order(ByteOrder.BIG_ENDIAN).asIntBuffer().get(ints, 1, 2); 146 b.order(ByteOrder.LITTLE_ENDIAN).asIntBuffer().get(ints, 1, 2); 153 b.order(ByteOrder.BIG_ENDIAN).asLongBuffer().get(longs, 1, 1); 157 b.order(ByteOrder.LITTLE_ENDIAN).asLongBuffer().get(longs, 1, 1) [all...] |
OldDirectIntBufferTest.java | 19 import java.nio.ByteOrder; 30 byteBuffer.order(ByteOrder.nativeOrder());
|
OldDirectShortBufferTest.java | 19 import java.nio.ByteOrder; 30 byteBuffer.order(ByteOrder.nativeOrder());
|
/libcore/luni/src/main/java/libcore/io/ |
MemoryMappedFile.java | 22 import java.nio.ByteOrder; 77 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.BIG_ENDIAN); 84 return new NioBufferIterator(address, (int) size, ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN);
|
HeapBufferIterator.java | 19 import java.nio.ByteOrder; 31 private final ByteOrder order; 35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { 83 public static BufferIterator iterator(byte[] buffer, int offset, int byteCount, ByteOrder order) {
|
Memory.java | 23 import java.nio.ByteOrder; 45 public static int peekInt(byte[] src, int offset, ByteOrder order) { 46 if (order == ByteOrder.BIG_ENDIAN) { 59 public static long peekLong(byte[] src, int offset, ByteOrder order) { 60 if (order == ByteOrder.BIG_ENDIAN) { 83 public static short peekShort(byte[] src, int offset, ByteOrder order) { 84 if (order == ByteOrder.BIG_ENDIAN) { 91 public static void pokeInt(byte[] dst, int offset, int value, ByteOrder order) { 92 if (order == ByteOrder.BIG_ENDIAN) { 105 public static void pokeLong(byte[] dst, int offset, long value, ByteOrder order) [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/jpegstream/ |
StreamUtils.java | 19 import java.nio.ByteOrder; 31 public static boolean byteToIntArray(int[] output, byte[] input, ByteOrder endianness) { 36 if (endianness == ByteOrder.BIG_ENDIAN) { 50 public static int[] byteToIntArray(byte[] input, ByteOrder endianness) { 60 return byteToIntArray(input, ByteOrder.nativeOrder());
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
bytebuffer.h | 41 enum ByteOrder { 48 explicit ByteBuffer(ByteOrder byte_order); 50 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order); 60 ByteOrder Order() const { return byte_order_; } 120 void Construct(const char* bytes, size_t size, ByteOrder byte_order); 127 ByteOrder byte_order_;
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/util/ |
UUIDConverter.java | 19 import java.nio.ByteOrder; 45 b.order(ByteOrder.BIG_ENDIAN);
|
/libcore/luni/src/main/native/ |
java_nio_ByteOrder.cpp | 17 #define LOG_TAG "ByteOrder" 28 NATIVE_METHOD(ByteOrder, isLittleEndian, "!()Z"), 31 jniRegisterNativeMethods(env, "java/nio/ByteOrder", gMethods, NELEM(gMethods));
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
OrderedDataOutputStream.java | 23 import java.nio.ByteOrder; 32 public OrderedDataOutputStream setByteOrder(ByteOrder order) {
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
OrderedDataOutputStream.java | 23 import java.nio.ByteOrder; 32 public OrderedDataOutputStream setByteOrder(ByteOrder order) {
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
OrderedDataOutputStream.java | 23 import java.nio.ByteOrder; 32 public OrderedDataOutputStream setByteOrder(ByteOrder order) {
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
OrderedDataOutputStream.java | 23 import java.nio.ByteOrder; 32 public OrderedDataOutputStream setByteOrder(ByteOrder order) {
|
/packages/apps/Mms/src/com/android/mms/exif/ |
OrderedDataOutputStream.java | 23 import java.nio.ByteOrder; 32 public OrderedDataOutputStream setByteOrder(ByteOrder order) {
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipInputStream.java | 23 import java.nio.ByteOrder; 194 int sig = Memory.peekInt(hdrBuf, 0, ByteOrder.LITTLE_ENDIAN); 198 currentEntry.crc = ((long) Memory.peekInt(hdrBuf, EXTCRC, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 199 currentEntry.compressedSize = ((long) Memory.peekInt(hdrBuf, EXTSIZ, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 200 currentEntry.size = ((long) Memory.peekInt(hdrBuf, EXTLEN, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 224 int hdr = Memory.peekInt(hdrBuf, 0, ByteOrder.LITTLE_ENDIAN); 250 ceCrc = ((long) Memory.peekInt(hdrBuf, LOCCRC - LOCVER, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 251 ceCompressedSize = ((long) Memory.peekInt(hdrBuf, LOCSIZ - LOCVER, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 252 ceSize = ((long) Memory.peekInt(hdrBuf, LOCLEN - LOCVER, ByteOrder.LITTLE_ENDIAN)) & 0xffffffffL; 285 return Memory.peekShort(hdrBuf, offset, ByteOrder.LITTLE_ENDIAN) & 0xffff [all...] |