/external/webkit/Source/WebKit2/Platform/CoreIPC/win/ |
D | ConnectionWin.cpp | 129 DWORD bytesToRead = 0; in readEventHandler() local 130 if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) { in readEventHandler() 142 ASSERT(bytesToRead); in readEventHandler() 143 if (!bytesToRead) in readEventHandler() 146 m_readBuffer.grow(m_readBuffer.size() + bytesToRead); in readEventHandler() 147 …!::ReadFile(m_connectionPipe, m_readBuffer.data() + numberOfBytesRead, bytesToRead, 0, &m_readStat… in readEventHandler() 184 DWORD bytesToRead = 0; in readEventHandler() local 185 if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) { in readEventHandler() 193 if (!bytesToRead) { in readEventHandler() 199 bytesToRead = 1; in readEventHandler() [all …]
|
/external/webkit/Source/WebCore/platform/network/ |
D | BlobResourceHandle.cpp | 374 int bytesToRead = (length > remaining) ? static_cast<int>(remaining) : length; in readDataSync() local 375 if (bytesToRead > m_totalRemainingSize) in readDataSync() 376 bytesToRead = static_cast<int>(m_totalRemainingSize); in readDataSync() 377 memcpy(buf, item.data->data() + item.offset + m_currentItemReadSize, bytesToRead); in readDataSync() 378 m_totalRemainingSize -= bytesToRead; in readDataSync() 380 m_currentItemReadSize += bytesToRead; in readDataSync() 386 return bytesToRead; in readDataSync() 394 long long bytesToRead = m_itemLengthList[m_readItemCount] - m_currentItemReadSize; in readFileSync() local 395 if (bytesToRead > m_totalRemainingSize) in readFileSync() 396 bytesToRead = m_totalRemainingSize; in readFileSync() [all …]
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); in test_read$BII() local 112 byte buf1[] = new byte[bytesToRead + 5]; in test_read$BII() 113 byte buf2[] = new byte[bytesToRead + 5]; in test_read$BII() 115 assertTrue("No data to read for this test", bytesToRead>0); in test_read$BII() 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); in test_read$BII() 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); in test_read$BII() 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); in test_read$BII() 125 for (int i = 0; i < bytesToRead + 5; i++) { in test_read$BII()
|
/external/webkit/Source/WebCore/platform/posix/ |
D | SharedBufferPOSIX.cpp | 54 size_t bytesToRead = fileStat.st_size; in createWithContentsOfFile() local 55 if (bytesToRead != fileStat.st_size) { in createWithContentsOfFile() 61 result->m_buffer.grow(bytesToRead); in createWithContentsOfFile() 65 …while ((bytesRead = read(fd, result->m_buffer.data() + totalBytesRead, bytesToRead - totalBytesRea… in createWithContentsOfFile() 70 return totalBytesRead == bytesToRead ? result.release() : 0; in createWithContentsOfFile()
|
/external/webkit/Source/WebCore/platform/win/ |
D | SharedBufferWin.cpp | 54 DWORD bytesToRead = GetFileSize(fileHandle, 0); in createWithContentsOfFile() local 57 if (bytesToRead != INVALID_FILE_SIZE || lastError == NO_ERROR) { in createWithContentsOfFile() 58 Vector<char> buffer(bytesToRead); in createWithContentsOfFile() 60 … if (ReadFile(fileHandle, buffer.data(), bytesToRead, &bytesRead, 0) && bytesToRead == bytesRead) in createWithContentsOfFile()
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
D | FontCustomPlatformData.cpp | 122 size_t bytesToRead = count; in read() local 127 bytesToRead -= bytesFromHeader; in read() 133 if (bytesToRead && !m_inHeader) { in read() 134 size_t bytesFromData = min(m_fontData->size() - m_offset, bytesToRead); in read() 143 bytesToRead -= bytesFromData; in read() 145 return count - bytesToRead; in read()
|
/external/webkit/Source/WebCore/platform/ |
D | FileStream.cpp | 124 int bytesToRead = (remaining < bufferSize) ? static_cast<int>(remaining) : bufferSize; in read() local 126 if (bytesToRead > 0) in read() 127 bytesRead = readFromFile(m_handle, buffer, bytesToRead); in read()
|
/external/webkit/Source/WebCore/platform/audio/mac/ |
D | AudioFileReaderMac.cpp | 117 size_t bytesToRead = 0; in readProc() local 121 bytesToRead = requestCount <= bytesAvailable ? requestCount : bytesAvailable; in readProc() 122 memcpy(buffer, static_cast<const char*>(data) + position, bytesToRead); in readProc() 124 bytesToRead = 0; in readProc() 127 *actualCount = bytesToRead; in readProc()
|
/external/webkit/Tools/DumpRenderTree/qt/ |
D | ImageDiff.cpp | 64 size_t bytesToRead = qMin(imageSize, 2048); in main() local 65 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); in main()
|
/external/webkit/Tools/DumpRenderTree/gtk/ |
D | ImageDiff.cpp | 52 size_t bytesToRead = min<int>(imageSize, 2048); in readPixbufFromStdin() local 53 size_t bytesRead = fread(imageBuffer, 1, bytesToRead, stdin); in readPixbufFromStdin()
|
/external/webkit/Tools/DumpRenderTree/win/ |
D | ImageDiffCairo.cpp | 79 size_t bytesToRead = min(bytesRemaining, s_bufferSize); in createImageFromStdin() local 80 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); in createImageFromStdin()
|
/external/webkit/Tools/DumpRenderTree/cg/ |
D | ImageDiffCG.cpp | 78 size_t bytesToRead = min(bytesRemaining, 2048); in createImageFromStdin() local 79 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin); in createImageFromStdin()
|
/external/webkit/Source/WebCore/platform/network/mac/ |
D | FormDataStreamMac.mm | 281 CFIndex bytesToRead = bufferLength; 283 …rentStreamRangeLength != BlobDataItem::toEndOfFile && form->currentStreamRangeLength < bytesToRead) 284 bytesToRead = static_cast<CFIndex>(form->currentStreamRangeLength); 286 CFIndex bytesRead = CFReadStreamRead(form->currentStream, buffer, bytesToRead);
|
/external/quake/src/com/android/quake/ |
D | DownloaderActivity.java | 740 private void readIntoDigest(FileInputStream is, long bytesToRead, in readIntoDigest() argument 742 while(bytesToRead > 0) { in readIntoDigest() 744 bytesToRead); in readIntoDigest() 750 bytesToRead -= bytesRead; in readIntoDigest()
|