/external/webkit/Source/WebCore/platform/posix/ |
SharedBufferPOSIX.cpp | 54 size_t bytesToRead = fileStat.st_size; 55 if (bytesToRead != fileStat.st_size) { 61 result->m_buffer.grow(bytesToRead); 65 while ((bytesRead = read(fd, result->m_buffer.data() + totalBytesRead, bytesToRead - totalBytesRead)) > 0) 70 return totalBytesRead == bytesToRead ? result.release() : 0;
|
/external/webkit/Source/WebCore/platform/win/ |
SharedBufferWin.cpp | 54 DWORD bytesToRead = GetFileSize(fileHandle, 0); 57 if (bytesToRead != INVALID_FILE_SIZE || lastError == NO_ERROR) { 58 Vector<char> buffer(bytesToRead); 60 if (ReadFile(fileHandle, buffer.data(), bytesToRead, &bytesRead, 0) && bytesToRead == bytesRead)
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); 112 byte buf1[] = new byte[bytesToRead + 5]; 113 byte buf2[] = new byte[bytesToRead + 5]; 115 assertTrue("No data to read for this test", bytesToRead>0); 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); 125 for (int i = 0; i < bytesToRead + 5; i++) {
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/win/ |
ConnectionWin.cpp | 129 DWORD bytesToRead = 0; 130 if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) { 142 ASSERT(bytesToRead); 143 if (!bytesToRead) 146 m_readBuffer.grow(m_readBuffer.size() + bytesToRead); 147 if (!::ReadFile(m_connectionPipe, m_readBuffer.data() + numberOfBytesRead, bytesToRead, 0, &m_readState)) { 184 DWORD bytesToRead = 0; 185 if (!::PeekNamedPipe(m_connectionPipe, 0, 0, 0, 0, &bytesToRead)) { 193 if (!bytesToRead) { 199 bytesToRead = 1 [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStream2Test.java | 111 int bytesToRead = inStream.available(); 112 byte buf1[] = new byte[bytesToRead + 5]; 113 byte buf2[] = new byte[bytesToRead + 5]; 115 assertTrue("No data to read for this test", bytesToRead>0); 118 int bytesRead1 = dis.read(buf1, 5, bytesToRead); 119 int bytesRead2 = inStream1.read(buf2, 5, bytesToRead); 122 assertEquals("Didn't read the entire", bytesRead1, bytesToRead); 125 for (int i = 0; i < bytesToRead + 5; i++) {
|
/external/webkit/Source/WebCore/platform/ |
FileStream.cpp | 124 int bytesToRead = (remaining < bufferSize) ? static_cast<int>(remaining) : bufferSize; 126 if (bytesToRead > 0) 127 bytesRead = readFromFile(m_handle, buffer, bytesToRead);
|
/external/webkit/Source/WebCore/platform/network/ |
BlobResourceHandle.cpp | 374 int bytesToRead = (length > remaining) ? static_cast<int>(remaining) : length; 375 if (bytesToRead > m_totalRemainingSize) 376 bytesToRead = static_cast<int>(m_totalRemainingSize); 377 memcpy(buf, item.data->data() + item.offset + m_currentItemReadSize, bytesToRead); 378 m_totalRemainingSize -= bytesToRead; 380 m_currentItemReadSize += bytesToRead; 386 return bytesToRead; 394 long long bytesToRead = m_itemLengthList[m_readItemCount] - m_currentItemReadSize; 395 if (bytesToRead > m_totalRemainingSize) 396 bytesToRead = m_totalRemainingSize [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontCustomPlatformData.cpp | 122 size_t bytesToRead = count; 127 bytesToRead -= bytesFromHeader; 133 if (bytesToRead && !m_inHeader) { 134 size_t bytesFromData = min(m_fontData->size() - m_offset, bytesToRead); 143 bytesToRead -= bytesFromData; 145 return count - bytesToRead;
|
/external/webkit/Source/WebCore/platform/audio/mac/ |
AudioFileReaderMac.cpp | 117 size_t bytesToRead = 0; 121 bytesToRead = requestCount <= bytesAvailable ? requestCount : bytesAvailable; 122 memcpy(buffer, static_cast<const char*>(data) + position, bytesToRead); 124 bytesToRead = 0; 127 *actualCount = bytesToRead;
|
/external/webkit/Tools/DumpRenderTree/qt/ |
ImageDiff.cpp | 64 size_t bytesToRead = qMin(imageSize, 2048); 65 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin);
|
/external/webkit/Source/WebCore/platform/network/mac/ |
FormDataStreamMac.mm | 281 CFIndex bytesToRead = bufferLength; 283 if (form->currentStreamRangeLength != BlobDataItem::toEndOfFile && form->currentStreamRangeLength < bytesToRead) 284 bytesToRead = static_cast<CFIndex>(form->currentStreamRangeLength); 286 CFIndex bytesRead = CFReadStreamRead(form->currentStream, buffer, bytesToRead);
|
/external/webkit/Tools/DumpRenderTree/cg/ |
ImageDiffCG.cpp | 78 size_t bytesToRead = min(bytesRemaining, 2048); 79 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin);
|
/external/webkit/Tools/DumpRenderTree/gtk/ |
ImageDiff.cpp | 52 size_t bytesToRead = min<int>(imageSize, 2048); 53 size_t bytesRead = fread(imageBuffer, 1, bytesToRead, stdin);
|
/external/webkit/Tools/DumpRenderTree/win/ |
ImageDiffCairo.cpp | 79 size_t bytesToRead = min(bytesRemaining, s_bufferSize); 80 size_t bytesRead = fread(buffer, 1, bytesToRead, stdin);
|
/frameworks/av/media/libstagefright/ |
MP3Extractor.cpp | 99 ssize_t bytesToRead = kMaxReadBytes; 117 bytesToRead = kMaxReadBytes - remainingBytes; 126 bytesToRead); 130 reachEOS = (totalBytesRead != bytesToRead);
|
/external/quake/src/com/android/quake/ |
DownloaderActivity.java | 740 private void readIntoDigest(FileInputStream is, long bytesToRead, 742 while(bytesToRead > 0) { 744 bytesToRead); 750 bytesToRead -= bytesRead; [all...] |
/dalvik/tools/dmtracedump/ |
TraceDump.c | 1071 int bytesToRead; 1077 bytesToRead = pHeader->offsetToData - 16; 1084 bytesToRead -= 2; 1090 if (fseek(fp, bytesToRead, SEEK_CUR) != 0) { 1135 int bytesToRead; 1137 bytesToRead = dataHeader->recordSize; 1140 bytesToRead -= 1; 1143 bytesToRead -= 2; 1151 bytesToRead -= 8; 1153 while (bytesToRead-- > 0) [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.core.contenttype_3.4.100.v20100505-1235.jar | |
org.eclipse.core.resources.compatibility_3.4.0.v20090505.jar | |