/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()
|
D | FlattenDrawableTest.cpp | 222 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST() local 225 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST() 281 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST() local 284 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
|
/external/skia/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()
|
D | FlattenDrawableTest.cpp | 222 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST() local 225 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST() 281 SkReadBuffer readBuffer(data->data(), data->size()); in DEF_TEST() local 284 sk_sp<SkDrawable> out((SkDrawable*)readBuffer.readFlattenable(SkFlattenable::kSkDrawable_Type)); in DEF_TEST()
|
/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/deqp/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawTestCaseUtil.hpp | 52 std::vector<deUint8> readBuffer(resource->getSize() + 1); in getSource() local 53 resource->read(&readBuffer[0], resource->getSize()); in getSource() 54 readBuffer[readBuffer.size() - 1] = 0; in getSource() 56 return std::string(reinterpret_cast<const char*>(&readBuffer[0])); in getSource()
|
/external/guava/guava/src/com/google/common/hash/ |
D | AbstractStreamingHashFunction.java | 153 private Hasher putBytes(ByteBuffer readBuffer) { in putBytes() argument 155 if (readBuffer.remaining() <= buffer.remaining()) { in putBytes() 156 buffer.put(readBuffer); in putBytes() 164 buffer.put(readBuffer.get()); in putBytes() 169 while (readBuffer.remaining() >= chunkSize) { in putBytes() 170 process(readBuffer); in putBytes() 174 buffer.put(readBuffer); in putBytes()
|
/external/deqp/external/vulkancts/modules/vulkan/dynamic_state/ |
D | vktDynamicStateTestCaseUtil.hpp | 61 std::vector<deUint8> readBuffer(resource->getSize() + 1); in getSource() local 62 resource->read(&readBuffer[0], resource->getSize()); in getSource() 63 readBuffer[readBuffer.size() - 1] = 0; in getSource() 65 return std::string(reinterpret_cast<const char*>(&readBuffer[0])); in getSource()
|
/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/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/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/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/mesa3d/src/mesa/main/ |
D | context.c | 1658 struct gl_framebuffer *readBuffer ) in _mesa_make_current() argument 1674 if (newCtx && readBuffer && newCtx->WinSysReadBuffer != readBuffer) { in _mesa_make_current() 1675 if (!check_compatible(newCtx, readBuffer)) { in _mesa_make_current() 1711 if (drawBuffer && readBuffer) { in _mesa_make_current() 1713 assert(_mesa_is_winsys_fbo(readBuffer)); in _mesa_make_current() 1715 _mesa_reference_framebuffer(&newCtx->WinSysReadBuffer, readBuffer); in _mesa_make_current() 1730 _mesa_reference_framebuffer(&newCtx->ReadBuffer, readBuffer); in _mesa_make_current()
|
/external/mesa3d/src/gallium/state_trackers/glx/xlib/ |
D | xm_api.c | 1289 XMesaBuffer readBuffer ) in XMesaMakeCurrent2() argument 1300 if (!drawBuffer || !readBuffer) in XMesaMakeCurrent2() 1305 c->xm_read_buffer == readBuffer) in XMesaMakeCurrent2() 1309 if (readBuffer != drawBuffer) in XMesaMakeCurrent2() 1310 xmesa_check_buffer_size(readBuffer); in XMesaMakeCurrent2() 1313 c->xm_read_buffer = readBuffer; in XMesaMakeCurrent2() 1315 stapi->make_current(stapi, c->st, drawBuffer->stfb, readBuffer->stfb); in XMesaMakeCurrent2()
|
D | glx_api.c | 1194 XMesaBuffer drawBuffer, readBuffer; in glXMakeContextCurrent() local 1217 readBuffer = MakeCurrent_PrevReadBuffer; in glXMakeContextCurrent() 1220 readBuffer = XMesaFindBuffer( dpy, read ); in glXMakeContextCurrent() 1222 if (!readBuffer) { in glXMakeContextCurrent() 1224 readBuffer = XMesaCreateWindowBuffer( xmctx->xm_visual, read ); in glXMakeContextCurrent() 1225 if (!readBuffer) { in glXMakeContextCurrent() 1236 MakeCurrent_PrevReadBuffer == readBuffer) in glXMakeContextCurrent() 1243 MakeCurrent_PrevReadBuffer = readBuffer; in glXMakeContextCurrent() 1246 if (XMesaMakeCurrent2(xmctx, drawBuffer, readBuffer)) { in glXMakeContextCurrent()
|
/external/archive-patcher/explainer/src/test/java/com/google/archivepatcher/explainer/ |
D | PatchExplainerTest.java | 83 byte[] readBuffer = new byte[32768]; in compress() 86 while ((numRead = uncompressedIn.read(readBuffer)) >= 0) { in compress() 87 actualInput.write(readBuffer, 0, numRead); in compress()
|
/external/parameter-framework/upstream/parameter/ |
D | ParameterBlackboard.h | 53 void readBuffer(void *pvDstData, size_t size, size_t offset) const;
|
D | SubsystemObject.cpp | 176 _blackboard->readBuffer(pvData, size, getOffset() + _accessedIndex); in blackboardRead()
|
/external/libcups/cups/ |
D | tls-sspi.c | 730 memcpy(buf, sspi->readBuffer, bytesToCopy); in _httpTLSRead() 734 memmove(sspi->readBuffer, sspi->readBuffer + bytesToCopy, sspi->readBufferUsed); in _httpTLSRead() 865 if ((temp = realloc(sspi->readBuffer, sspi->readBufferUsed + bytesToSave)) == NULL) in _httpTLSRead() 873 sspi->readBuffer = temp; in _httpTLSRead() 876 …memcpy(((BYTE *)sspi->readBuffer) + sspi->readBufferUsed, ((BYTE *)pDataBuffer->pvBuffer) + bytesT… in _httpTLSRead() 1851 if (sspi->readBuffer) in http_sspi_free() 1852 free(sspi->readBuffer); in http_sspi_free()
|
/external/mesa3d/src/mesa/drivers/x11/ |
D | xm_api.c | 1207 XMesaBuffer readBuffer ) in XMesaMakeCurrent2() argument 1210 if (!drawBuffer || !readBuffer) in XMesaMakeCurrent2() 1215 && c->mesa.ReadBuffer == &readBuffer->mesa_buffer in XMesaMakeCurrent2() 1229 if (readBuffer != drawBuffer) in XMesaMakeCurrent2() 1230 xmesa_check_and_update_buffer_size(c, readBuffer); in XMesaMakeCurrent2() 1234 &readBuffer->mesa_buffer); in XMesaMakeCurrent2()
|
D | fakeglx.c | 1291 XMesaBuffer drawBuffer, readBuffer; in Fake_glXMakeContextCurrent() local 1314 readBuffer = MakeCurrent_PrevReadBuffer; in Fake_glXMakeContextCurrent() 1317 readBuffer = XMesaFindBuffer( dpy, read ); in Fake_glXMakeContextCurrent() 1319 if (!readBuffer) { in Fake_glXMakeContextCurrent() 1321 readBuffer = XMesaCreateWindowBuffer( xmctx->xm_visual, read ); in Fake_glXMakeContextCurrent() 1322 if (!readBuffer) { in Fake_glXMakeContextCurrent() 1332 MakeCurrent_PrevReadBuffer = readBuffer; in Fake_glXMakeContextCurrent() 1335 return XMesaMakeCurrent2(xmctx, drawBuffer, readBuffer); in Fake_glXMakeContextCurrent()
|
/external/deqp/framework/opengl/ |
D | gluStateReset.cpp | 398 const deUint32 readBuffer = defaultFbo != 0 ? GL_COLOR_ATTACHMENT0 : GL_BACK; in resetStateES() local 405 gl.readBuffer (readBuffer); in resetStateES() 1018 gl.readBuffer(GL_BACK); in resetStateGLCore() 1027 gl.readBuffer(GL_FRONT); in resetStateGLCore() 1033 gl.readBuffer(GL_COLOR_ATTACHMENT0); in resetStateGLCore()
|