/external/rust/crates/byteorder/src/ |
D | io.rs | 4 use ByteOrder; 110 fn read_u16<T: ByteOrder>(&mut self) -> Result<u16> { in read_u16() 137 fn read_i16<T: ByteOrder>(&mut self) -> Result<i16> { in read_i16() 163 fn read_u24<T: ByteOrder>(&mut self) -> Result<u32> { in read_u24() 189 fn read_i24<T: ByteOrder>(&mut self) -> Result<i32> { in read_i24() 215 fn read_u32<T: ByteOrder>(&mut self) -> Result<u32> { in read_u32() 241 fn read_i32<T: ByteOrder>(&mut self) -> Result<i32> { in read_i32() 267 fn read_u48<T: ByteOrder>(&mut self) -> Result<u64> { in read_u48() 293 fn read_i48<T: ByteOrder>(&mut self) -> Result<i64> { in read_i48() 319 fn read_u64<T: ByteOrder>(&mut self) -> Result<u64> { in read_u64() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | BitInputStreamTest.java | 25 import java.nio.ByteOrder; 33 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in shouldNotAllowReadingOfANegativeAmountOfBits() 40 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in shouldNotAllowReadingOfMoreThan63BitsAtATime() 47 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading24BitsInLittleEndian() 54 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading24BitsInBigEndian() 61 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading17BitsInLittleEndian() 68 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading17BitsInBigEndian() 76 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading30BitsInLittleEndian() 83 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.BIG_ENDIAN)) { in testReading30BitsInBigEndian() 91 try (final BitInputStream bis = new BitInputStream(getStream(), ByteOrder.LITTLE_ENDIAN)) { in testReading31BitsInLittleEndian() [all …]
|
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/ |
D | ValidationTestUtilTest.java | 18 import java.nio.ByteOrder; 54 expected.order(ByteOrder.LITTLE_ENDIAN); in testCorrectMessageParsing() 62 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 70 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 84 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 96 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 107 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 117 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 129 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing() 145 expected.order(ByteOrder.nativeOrder()); in testCorrectMessageParsing()
|
/external/webrtc/webrtc/base/ |
D | bytebuffer.h | 25 enum ByteOrder { enum 32 explicit ByteBuffer(ByteOrder byte_order); 34 ByteBuffer(const char* bytes, size_t len, ByteOrder byte_order); 46 ByteOrder Order() const { return byte_order_; } in Order() 106 void Construct(const char* bytes, size_t size, ByteOrder byte_order); 113 ByteOrder byte_order_;
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | BitInputStream.java | 24 import java.nio.ByteOrder; 42 private final ByteOrder byteOrder; 52 public BitInputStream(final InputStream in, final ByteOrder byteOrder) { in BitInputStream() 152 if (byteOrder == ByteOrder.LITTLE_ENDIAN) { in processBitsGreater57() 170 if (byteOrder == ByteOrder.LITTLE_ENDIAN) { in readCachedBits() 192 if (byteOrder == ByteOrder.LITTLE_ENDIAN) { in ensureCache()
|
/external/opencensus-java/api/src/test/java/io/opencensus/common/ |
D | ServerStatsEncodingTest.java | 22 import java.nio.ByteOrder; 70 bb.order(ByteOrder.LITTLE_ENDIAN); in skipUnknownFieldTest() 91 bb.order(ByteOrder.LITTLE_ENDIAN); in negativeLbLatencyValueTest() 112 bb.order(ByteOrder.LITTLE_ENDIAN); in negativeServerLatencyValueTest() 125 bb.order(ByteOrder.LITTLE_ENDIAN); in emptySerializedBuffer() 136 bb.order(ByteOrder.LITTLE_ENDIAN); in invalidNegativeVersion() 147 bb.order(ByteOrder.LITTLE_ENDIAN); in invalidCompatibleVersion()
|
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/ |
D | AltsFramingTest.java | 23 import java.nio.ByteOrder; 38 buffer.order(ByteOrder.LITTLE_ENDIAN); in parserFrameLengthNegativeFails() 56 buffer.order(ByteOrder.LITTLE_ENDIAN); in parserFrameLengthSmallerMessageTypeFails() 74 buffer.order(ByteOrder.LITTLE_ENDIAN); in parserFrameLengthTooLargeFails() 95 buffer.order(ByteOrder.LITTLE_ENDIAN); in parserFrameLengthMaxOk() 115 buffer.order(ByteOrder.LITTLE_ENDIAN); in parserFrameLengthZeroOk()
|
/external/pdfium/core/fxcrt/ |
D | byteorder_unittest.cpp | 35 TEST(ByteOrder, ByteSwapToLE16) { in TEST() argument 45 TEST(ByteOrder, ByteSwapToLE32) { in TEST() argument 53 TEST(ByteOrder, ByteSwapToBE16) { in TEST() argument 63 TEST(ByteOrder, ByteSwapToBE32) { in TEST() argument
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHasher.java | 21 import java.nio.ByteOrder; 68 this.buffer = ByteBuffer.allocate(bufferSize + 7).order(ByteOrder.LITTLE_ENDIAN); in AbstractStreamingHasher() 95 return putBytesInternal(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)); in putBytes() 100 ByteOrder order = readBuffer.order(); in putBytes() 102 readBuffer.order(ByteOrder.LITTLE_ENDIAN); in putBytes()
|
D | AbstractNonStreamingHashFunction.java | 21 import java.nio.ByteOrder; 47 return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array()); in hashInt() 52 return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array()); in hashLong() 58 ByteBuffer buffer = ByteBuffer.allocate(len * 2).order(ByteOrder.LITTLE_ENDIAN); in hashUnencodedChars()
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | AbstractStreamingHasher.java | 21 import java.nio.ByteOrder; 68 this.buffer = ByteBuffer.allocate(bufferSize + 7).order(ByteOrder.LITTLE_ENDIAN); in AbstractStreamingHasher() 95 return putBytesInternal(ByteBuffer.wrap(bytes, off, len).order(ByteOrder.LITTLE_ENDIAN)); in putBytes() 100 ByteOrder order = readBuffer.order(); in putBytes() 102 readBuffer.order(ByteOrder.LITTLE_ENDIAN); in putBytes()
|
D | AbstractNonStreamingHashFunction.java | 21 import java.nio.ByteOrder; 47 return hashBytes(ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(input).array()); in hashInt() 52 return hashBytes(ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN).putLong(input).array()); in hashLong() 58 ByteBuffer buffer = ByteBuffer.allocate(len * 2).order(ByteOrder.LITTLE_ENDIAN); in hashUnencodedChars()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowMemoryMappedFile.java | 10 import java.nio.ByteOrder; 71 return getHeapBufferIterator(ByteOrder.BIG_ENDIAN); in bigEndianIterator() 76 return getHeapBufferIterator(ByteOrder.LITTLE_ENDIAN); in littleEndianIterator() 79 private BufferIterator getHeapBufferIterator(ByteOrder endianness) { in getHeapBufferIterator() 92 public RoboBufferIterator(byte[] buffer, ByteOrder order) { in RoboBufferIterator()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | ImageHeaderParser.java | 15 import java.nio.ByteOrder; 200 final ByteOrder byteOrder; in parseExifSegment() 202 byteOrder = ByteOrder.BIG_ENDIAN; in parseExifSegment() 204 byteOrder = ByteOrder.LITTLE_ENDIAN; in parseExifSegment() 209 byteOrder = ByteOrder.BIG_ENDIAN; in parseExifSegment() 299 this.data.order(ByteOrder.BIG_ENDIAN); in RandomAccessReader() 302 public void order(ByteOrder byteOrder) { in order()
|
/external/turbine/java/com/google/turbine/zip/ |
D | Zip.java | 28 import java.nio.ByteOrder; 167 eocd.order(ByteOrder.LITTLE_ENDIAN); in ZipIterable() 174 eocd.order(ByteOrder.LITTLE_ENDIAN); in ZipIterable() 200 zip64eocd.order(ByteOrder.LITTLE_ENDIAN); in ZipIterable() 210 cd.order(ByteOrder.LITTLE_ENDIAN); in ZipIterable() 294 fc.order(ByteOrder.LITTLE_ENDIAN); in getBytes() 301 fc.order(ByteOrder.LITTLE_ENDIAN); in getBytes()
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/ |
D | TensorTest.java | 23 import java.nio.ByteOrder; 105 ByteBuffer.allocateDirect(2 * 8 * 8 * 3 * 4).order(ByteOrder.nativeOrder()); in testCopyToByteBuffer() 118 ByteBuffer.allocateDirect(2 * 8 * 8 * 3 * 4).order(ByteOrder.nativeOrder()).asFloatBuffer(); in testCopyToByteBufferAsFloatBuffer() 156 ByteBuffer parsedOutput = ByteBuffer.allocateDirect(3 * 4).order(ByteOrder.nativeOrder()); in testCopyToInvalidByteBuffer() 219 ByteBuffer.allocateDirect(2 * 8 * 8 * 3 * 4).order(ByteOrder.nativeOrder()); in testSetTo() 258 ByteBuffer.allocateDirect(1 * 4 * 4 * 12 * 4).order(ByteOrder.nativeOrder()); in testSetToInt() 296 ByteBuffer.allocateDirect(1 * 4 * 4 * 12 * 8).order(ByteOrder.nativeOrder()); in testSetToLong() 346 ByteBuffer.allocateDirect(3 * 4).order(ByteOrder.nativeOrder()), in testSetToInvalidBuffer() 363 ByteBuffer bytBufferInput = ByteBuffer.allocateDirect(3 * 4).order(ByteOrder.nativeOrder()); in testGetInputShapeIfDifferent()
|
D | InterpreterMobileNetTest.java | 21 import java.nio.ByteOrder; 66 img.order(ByteOrder.nativeOrder()); in runMobileNetFloatTest() 86 img.order(ByteOrder.nativeOrder()); in runMobileNetQuantizedTest()
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/ |
D | TensorTest.java | 27 import java.nio.ByteOrder; 78 ByteBuffer buf = ByteBuffer.allocateDirect(8 * doubles.length).order(ByteOrder.nativeOrder()); in createWithByteBuffer() 101 ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN in createFromBufferWithNonNativeByteOrder() 102 ? ByteOrder.BIG_ENDIAN in createFromBufferWithNonNativeByteOrder() 103 : ByteOrder.LITTLE_ENDIAN) in createFromBufferWithNonNativeByteOrder() 183 ByteBuffer bbuf = ByteBuffer.allocate(1024).order(ByteOrder.nativeOrder()); in writeTo() 216 .order(ByteOrder.nativeOrder()) in writeTo() 255 ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN in writeTo() 256 ? ByteOrder.BIG_ENDIAN in writeTo() 257 : ByteOrder.LITTLE_ENDIAN) in writeTo()
|
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/ |
D | Tensor.java | 21 import java.nio.ByteOrder; 136 if (srcBuffer.isDirect() && srcBuffer.order() == ByteOrder.nativeOrder()) { in setTo() 143 if (srcBuffer.isDirect() && srcBuffer.order() == ByteOrder.nativeOrder()) { in setTo() 150 if (srcBuffer.isDirect() && srcBuffer.order() == ByteOrder.nativeOrder()) { in setTo() 157 if (srcBuffer.isDirect() && srcBuffer.order() == ByteOrder.nativeOrder()) { in setTo() 368 return buffer(nativeHandle).order(ByteOrder.nativeOrder()); in buffer()
|
/external/opencensus-java/api/src/main/java/io/opencensus/common/ |
D | ServerStatsEncoding.java | 20 import java.nio.ByteOrder; 57 bb.order(ByteOrder.LITTLE_ENDIAN); in toBytes() 84 bb.order(ByteOrder.LITTLE_ENDIAN); in parseBytes()
|
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/ |
D | BackgroundRenderer.java | 29 import java.nio.ByteOrder; 89 bbVertices.order(ByteOrder.nativeOrder()); in createOnGlThread() 96 bbTexCoords.order(ByteOrder.nativeOrder()); in createOnGlThread() 103 bbTexCoordsTransformed.order(ByteOrder.nativeOrder()); in createOnGlThread()
|
/external/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/rendering/ |
D | BackgroundRenderer.java | 29 import java.nio.ByteOrder; 89 bbVertices.order(ByteOrder.nativeOrder()); in createOnGlThread() 96 bbTexCoords.order(ByteOrder.nativeOrder()); in createOnGlThread() 103 bbTexCoordsTransformed.order(ByteOrder.nativeOrder()); in createOnGlThread()
|
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/ |
D | AltsFraming.java | 21 import java.nio.ByteOrder; 176 buffer.order(ByteOrder.LITTLE_ENDIAN); in flush() 283 bufferAlias.order(ByteOrder.LITTLE_ENDIAN); in readBytes() 292 buffer.order(ByteOrder.LITTLE_ENDIAN); in readBytes()
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/ |
D | Util.java | 3 import java.nio.ByteOrder; 13 private static boolean littleEndian = ByteOrder.nativeOrder() == ByteOrder.LITTLE_ENDIAN;
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | BitStream.java | 25 import java.nio.ByteOrder; 36 super(in, ByteOrder.LITTLE_ENDIAN); in BitStream()
|