/external/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHasher.java | 99 public final Hasher putBytes(ByteBuffer readBuffer) { in putBytes() argument 100 ByteOrder order = readBuffer.order(); in putBytes() 102 readBuffer.order(ByteOrder.LITTLE_ENDIAN); in putBytes() 103 return putBytesInternal(readBuffer); in putBytes() 105 readBuffer.order(order); in putBytes() 109 private Hasher putBytesInternal(ByteBuffer readBuffer) { in putBytesInternal() argument 111 if (readBuffer.remaining() <= buffer.remaining()) { in putBytesInternal() 112 buffer.put(readBuffer); in putBytesInternal() 120 buffer.put(readBuffer.get()); in putBytesInternal() 125 while (readBuffer.remaining() >= chunkSize) { in putBytesInternal() [all …]
|
/external/guava/android/guava/src/com/google/common/hash/ |
D | AbstractStreamingHasher.java | 99 public final Hasher putBytes(ByteBuffer readBuffer) { in putBytes() argument 100 ByteOrder order = readBuffer.order(); in putBytes() 102 readBuffer.order(ByteOrder.LITTLE_ENDIAN); in putBytes() 103 return putBytesInternal(readBuffer); in putBytes() 105 readBuffer.order(order); in putBytes() 109 private Hasher putBytesInternal(ByteBuffer readBuffer) { in putBytesInternal() argument 111 if (readBuffer.remaining() <= buffer.remaining()) { in putBytesInternal() 112 buffer.put(readBuffer); in putBytesInternal() 120 buffer.put(readBuffer.get()); in putBytesInternal() 125 while (readBuffer.remaining() >= chunkSize) { in putBytesInternal() [all …]
|
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/ |
D | CronetDataSource.java | 145 @Nullable private ByteBuffer readBuffer; field in CronetDataSource 506 ByteBuffer readBuffer = this.readBuffer; in read() local 507 if (readBuffer == null) { in read() 508 readBuffer = ByteBuffer.allocateDirect(READ_BUFFER_SIZE_BYTES); in read() 509 readBuffer.limit(0); in read() 510 this.readBuffer = readBuffer; in read() 512 while (!readBuffer.hasRemaining()) { in read() 515 readBuffer.clear(); in read() 516 readInternal(castNonNull(readBuffer)); in read() 523 readBuffer.flip(); in read() [all …]
|
/external/okio/okio/src/jvmTest/java/okio/ |
D | PipeTest.java | 45 Buffer readBuffer = new Buffer(); in test() local 46 assertEquals(3L, source.read(readBuffer, 6L)); in test() 47 assertEquals("abc", readBuffer.readUtf8()); in test() 50 assertEquals(-1L, source.read(readBuffer, 6L)); in test() 119 Buffer readBuffer = new Buffer(); in sinkTimeout() local 120 assertEquals(3L, pipe.source().read(readBuffer, 6L)); in sinkTimeout() 121 assertEquals("abc", readBuffer.readUtf8()); in sinkTimeout() 130 Buffer readBuffer = new Buffer(); in sourceTimeout() local 132 pipe.source().read(readBuffer, 6L); in sourceTimeout() 138 assertEquals(0, readBuffer.size()); in sourceTimeout() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | SeekableInMemoryByteChannelTest.java | 41 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldReadContentsProperly() local 43 int readCount = c.read(readBuffer); in shouldReadContentsProperly() 46 assertArrayEquals(testData, readBuffer.array()); in shouldReadContentsProperly() 55 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length + 1); in shouldReadContentsWhenBiggerBufferSupplied() local 57 int readCount = c.read(readBuffer); in shouldReadContentsWhenBiggerBufferSupplied() 60 assertArrayEquals(testData, Arrays.copyOf(readBuffer.array(), testData.length)); in shouldReadContentsWhenBiggerBufferSupplied() 69 ByteBuffer readBuffer = ByteBuffer.allocate(4); in shouldReadDataFromSetPosition() local 72 int readCount = c.read(readBuffer); in shouldReadDataFromSetPosition() 75 assertEquals("data", new String(readBuffer.array(), Charset.forName(UTF_8))); in shouldReadDataFromSetPosition() 84 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldSignalEOFWhenPositionAtTheEnd() local [all …]
|
/external/skqp/tests/ |
D | PackedConfigsTextureTest.cpp | 44 const SkTDArray<uint32_t>& readBuffer) { in check_4444() argument 48 uint32_t test = readBuffer[i + j * DEV_H]; in check_4444() 75 const SkTDArray<GrColor>& readBuffer) { in check_565() argument 79 GrColor test = readBuffer[i + j * DEV_H]; in check_565() 102 SkTDArray<GrColor> readBuffer; in run_test() local 104 readBuffer.setCount(arraySize); in run_test() 123 if (!sContext->readPixels(dstInfo, readBuffer.begin(), 0, 0, 0)) { in run_test() 130 check_4444(reporter, controlPixelData, readBuffer); in run_test() 133 check_565(reporter, controlPixelData, readBuffer); in run_test()
|
D | FloatingPointTextureTest.cpp | 37 SkTDArray<T> controlPixelData, readBuffer; in runFPTest() local 39 readBuffer.setCount(arraySize); in runFPTest() 61 sContext.get(), 0, 0, DEV_W, DEV_H, colorType, nullptr, readBuffer.begin(), 0); in runFPTest() 64 … 0 == memcmp(readBuffer.begin(), controlPixelData.begin(), readBuffer.bytes())); in runFPTest()
|
/external/drrickorang/LoopbackApp/app/src/main/cpp/lb2/ |
D | loopback_test.cpp | 50 AudioBuffer<sample_t> readBuffer(mTestCtx->createAudioBuffer()); in collectRecording() local 55 readBuffer.clear(); in collectRecording() 64 &mRecordingFifo, readBuffer.getData(), readBuffer.getFrameCount()); in collectRecording() 67 convertAudioBufferViewType(readBuffer.getView(0, dst.getFrameCount()), dst); in collectRecording() 115 AudioBufferView<sample_t> readBuffer = mReadBuffer.getView(0, expectedFrames); in writeCallback() local 116 ssize_t framesRead = mSoundSys->readAudio(readBuffer); in writeCallback() 146 return readBuffer.getView(0, framesRead); in writeCallback()
|
/external/skia/src/core/ |
D | SkTextBlobTrace.cpp | 31 SkReadBuffer readBuffer{data->data(), data->size()}; in CreateBlobTrace() local 32 readBuffer.setTypefaceArray(typefaceArray.data(), typefaceArray.size()); in CreateBlobTrace() 34 while (!readBuffer.eof()) { in CreateBlobTrace() 36 record.origUniqueID = readBuffer.readUInt(); in CreateBlobTrace() 37 readBuffer.readPaint(&record.paint, nullptr); in CreateBlobTrace() 38 readBuffer.readPoint(&record.offset); in CreateBlobTrace() 39 record.blob = SkTextBlobPriv::MakeFromBuffer(readBuffer); in CreateBlobTrace()
|
/external/skia/tests/ |
D | FloatingPointTextureTest.cpp | 40 SkTDArray<T> controlPixelData, readBuffer; in runFPTest() local 42 readBuffer.setCount(arraySize); in runFPTest() 66 GrPixmap readPixmap(info, readBuffer.begin(), info.minRowBytes()); in runFPTest() 70 !memcmp(readBuffer.begin(), controlPixelData.begin(), readBuffer.bytes())); in runFPTest()
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ |
D | DummyTrackOutput.java | 34 private final byte[] readBuffer; field in DummyTrackOutput 37 readBuffer = new byte[4096]; in DummyTrackOutput() 49 int bytesToSkipByReading = Math.min(readBuffer.length, length); in sampleData() 50 int bytesSkipped = input.read(readBuffer, /* offset= */ 0, bytesToSkipByReading); in sampleData()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | FramedStream.java | 319 private final Buffer readBuffer = new Buffer(); field in FramedStream.FramedDataSource 345 if (readBuffer.size() == 0) return -1; // This source is exhausted. in read() 348 read = readBuffer.read(sink, Math.min(byteCount, readBuffer.size())); in read() 376 while (readBuffer.size() == 0 && !finished && !closed && errorCode == null) { in waitUntilReadable() 392 flowControlError = byteCount + readBuffer.size() > maxByteCount; in receive() 415 boolean wasEmpty = readBuffer.size() == 0; in receive() 416 readBuffer.writeAll(receiveBuffer); in receive() 431 readBuffer.clear(); in close()
|
/external/flatbuffers/tests/FlatBuffers.Test.Swift/Tests/FlatBuffers.Test.SwiftTests/ |
D | monster_test_generated.swift | 91 public var a: Int16 { return _accessor.readBuffer(of: Int16.self, at: 0) } 93 public var b: Int8 { return _accessor.readBuffer(of: Int8.self, at: 2) } 107 public var x: Float32 { return _accessor.readBuffer(of: Float32.self, at: 0) } 109 public var y: Float32 { return _accessor.readBuffer(of: Float32.self, at: 4) } 111 public var z: Float32 { return _accessor.readBuffer(of: Float32.self, at: 8) } 113 public var test1: Double { return _accessor.readBuffer(of: Double.self, at: 16) } 115 …MyGame.Example.Color { return MyGame.Example.Color(rawValue: _accessor.readBuffer(of: UInt8.self, … 129 public var id: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 0) } 131 public var distance: UInt32 { return _accessor.readBuffer(of: UInt32.self, at: 4) } 231 …(4); return o == 0 ? .green : MyGame.Example.Color(rawValue: _accessor.readBuffer(of: UInt8.self, … [all …]
|
D | FlatBuffersStructsTests.swift | 85 var x: Float32 { return __p.readBuffer(of: Float32.self, at: 0)} 86 var y: Float32 { return __p.readBuffer(of: Float32.self, at: 4)} 87 var z: Float32 { return __p.readBuffer(of: Float32.self, at: 8)} 156 var c: Color2 { return Color2(rawValue: __p.readBuffer(of: Int32.self, at: 12)) ?? .red } 157 var x: Float32 { return __p.readBuffer(of: Float32.self, at: 0)} 158 var y: Float32 { return __p.readBuffer(of: Float32.self, at: 4)} 159 var z: Float32 { return __p.readBuffer(of: Float32.self, at: 8)} 171 … let o = __t.offset(6); return o == 0 ? Test.none : Test(rawValue: __t.readBuffer(of: Byte.self, a…
|
D | union_vector_generated.swift | 32 public var hairLength: Int32 { return _accessor.readBuffer(of: Int32.self, at: 0) } 46 public var booksRead: Int32 { return _accessor.readBuffer(of: Int32.self, at: 0) } 76 …ge: Int32 { let o = _accessor.offset(4); return o == 0 ? 0 : _accessor.readBuffer(of: Int32.self, … 101 …essor.offset(4); return o == 0 ? .none : Character(rawValue: _accessor.readBuffer(of: UInt8.self, …
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
D | FramedStream.java | 321 private final Buffer readBuffer = new Buffer(); field in FramedStream.FramedDataSource 347 if (readBuffer.size() == 0) return -1; // This source is exhausted. in read() 350 read = readBuffer.read(sink, Math.min(byteCount, readBuffer.size())); in read() 378 while (readBuffer.size() == 0 && !finished && !closed && errorCode == null) { in waitUntilReadable() 394 flowControlError = byteCount + readBuffer.size() > maxByteCount; in receive() 417 boolean wasEmpty = readBuffer.size() == 0; in receive() 418 readBuffer.writeAll(receiveBuffer); in receive() 433 readBuffer.clear(); in close()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowContextTest.java | 182 byte[] readBuffer = new byte[fileContents.length()]; in openFileOutput_shouldReturnAFileOutputStream() 183 fileInputStream.read(readBuffer); in openFileOutput_shouldReturnAFileOutputStream() 184 assertThat(new String(readBuffer, UTF_8)).isEqualTo(fileContents); in openFileOutput_shouldReturnAFileOutputStream() 206 byte[] readBuffer = new byte[finalFileContents.length()]; in openFileOutput_shouldAppendData() 207 fileInputStream.read(readBuffer); in openFileOutput_shouldAppendData() 208 assertThat(new String(readBuffer, UTF_8)).isEqualTo(finalFileContents); in openFileOutput_shouldAppendData() 224 byte[] readBuffer = new byte[newFileContents.length()]; in openFileOutput_shouldOverwriteData() 225 fileInputStream.read(readBuffer); in openFileOutput_shouldOverwriteData() 226 assertThat(new String(readBuffer, UTF_8)).isEqualTo(newFileContents); in openFileOutput_shouldOverwriteData()
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Framebuffer11.cpp | 288 const gl::FramebufferAttachment *readBuffer = sourceFramebuffer->getReadColorAttachment(); in blitImpl() local 289 ASSERT(readBuffer); in blitImpl() 292 ANGLE_TRY(readBuffer->getRenderTarget(context, 0, &readRenderTarget)); in blitImpl() 310 const bool invertColorSource = UsePresentPathFast(mRenderer, readBuffer); in blitImpl() 342 const gl::FramebufferAttachment *readBuffer = in blitImpl() local 344 ASSERT(readBuffer); in blitImpl() 346 ANGLE_TRY(readBuffer->getRenderTarget(context, 0, &readRenderTarget)); in blitImpl() 349 const bool invertSource = UsePresentPathFast(mRenderer, readBuffer); in blitImpl()
|
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/json/ |
D | WriterBasedJsonGenerator.java | 1601 InputStream data, byte[] readBuffer, int bytesLeft) in _writeBinary() argument 1614 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, bytesLeft); in _writeBinary() 1624 int b24 = ((int) readBuffer[inputPtr++]) << 8; in _writeBinary() 1625 b24 |= ((int) readBuffer[inputPtr++]) & 0xFF; in _writeBinary() 1626 b24 = (b24 << 8) | (((int) readBuffer[inputPtr++]) & 0xFF); in _writeBinary() 1638 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, bytesLeft); in _writeBinary() 1644 int b24 = ((int) readBuffer[inputPtr++]) << 16; in _writeBinary() 1647 b24 |= (((int) readBuffer[inputPtr]) & 0xFF) << 8; in _writeBinary() 1661 InputStream data, byte[] readBuffer) in _writeBinary() argument 1676 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, readBuffer.length); in _writeBinary() [all …]
|
D | UTF8JsonGenerator.java | 1914 InputStream data, byte[] readBuffer, int bytesLeft) in _writeBinary() argument 1927 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, bytesLeft); in _writeBinary() 1937 int b24 = ((int) readBuffer[inputPtr++]) << 8; in _writeBinary() 1938 b24 |= ((int) readBuffer[inputPtr++]) & 0xFF; in _writeBinary() 1939 b24 = (b24 << 8) | (((int) readBuffer[inputPtr++]) & 0xFF); in _writeBinary() 1951 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, bytesLeft); in _writeBinary() 1957 int b24 = ((int) readBuffer[inputPtr++]) << 16; in _writeBinary() 1960 b24 |= (((int) readBuffer[inputPtr]) & 0xFF) << 8; in _writeBinary() 1974 InputStream data, byte[] readBuffer) in _writeBinary() argument 1989 inputEnd = _readMore(data, readBuffer, inputPtr, inputEnd, readBuffer.length); in _writeBinary() [all …]
|
/external/protobuf/conformance/ |
D | conformance_nodejs.js | 119 function readBuffer(bytes) { function 152 var lengthBuf = readBuffer(4); 158 var serializedRequest = readBuffer(length);
|
/external/swiftshader/src/OpenGL/libGLESv2/ |
D | Framebuffer.cpp | 37 readBuffer = GL_COLOR_ATTACHMENT0; in Framebuffer() 111 readBuffer = buf; in setReadBuffer() 121 return readBuffer; in getReadBuffer() 249 if(readBuffer == GL_NONE) in getReadBufferType() 683 switch(readBuffer) in getReadBufferIndex() 690 return readBuffer - GL_COLOR_ATTACHMENT0; in getReadBufferIndex() 696 readBuffer = GL_BACK; in DefaultFramebuffer() 706 readBuffer = GL_BACK; in DefaultFramebuffer()
|
/external/oboe/src/opensles/ |
D | AudioStreamBuffered.cpp | 114 void *readBuffer, in transfer() argument 119 if (readBuffer != nullptr && writeBuffer != nullptr) { in transfer() 123 if (getDirection() == Direction::Input && readBuffer == nullptr) { in transfer() 143 uint8_t *readData = reinterpret_cast<uint8_t *>(readBuffer); in transfer()
|
/external/angle/src/libANGLE/renderer/d3d/d3d9/ |
D | Framebuffer9.cpp | 237 const gl::FramebufferAttachment *readBuffer = sourceFramebuffer->getColorAttachment(0); in blitImpl() local 238 ASSERT(readBuffer); in blitImpl() 241 ANGLE_TRY(readBuffer->getRenderTarget(context, 0, &readRenderTarget)); in blitImpl() 354 const gl::FramebufferAttachment *readBuffer = in blitImpl() local 356 ASSERT(readBuffer); in blitImpl() 359 ANGLE_TRY(readBuffer->getRenderTarget(context, 0, &readDepthStencil)); in blitImpl()
|
/external/okio/samples/src/jvmMain/kotlin/okio/samples/ |
D | Hashing.kt | 42 val buffer = readBuffer(file) in <lambda>() 82 fun readBuffer(file: File): Buffer { in <lambda>() method in okio.samples.KotlinHashing
|