/external/icu/icu4c/source/tools/genrb/ |
genrb.cpp | 355 int32_t bytesRead = T_FileStream_read(poolFile, poolBundle.fBytes, poolFileSize); 356 if (bytesRead != poolFileSize) { 365 ds = udata_openSwapperForInputData(poolBundle.fBytes, bytesRead, 372 ures_swap(ds, poolBundle.fBytes, bytesRead, poolBundle.fBytes, &status);
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/ |
DetectingViewer.java | 224 int bytesRead = in.read(buffer, bufLen, bytesRemaining); 226 if (bytesRead <= 0) { 230 bufLen += bytesRead; 231 bytesRemaining -= bytesRead; 295 int bytesRead = 0; 314 while ((bytesRead = inputStream.read(bytes, offset, 1024)) >= 0) { 315 offset = bytesRead % 4; 316 chBytes = bytesRead - offset; 329 while ((bytesRead = isr.read(buffer, 0, 1024)) >= 0) { 330 sb.append(buffer, 0, bytesRead); [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/compression/ |
ExhaustiveTest.java | 59 int[] bytesRead = new int[1]; 65 bytesRead, myDecompressed, 0, myDecompressedSize); 109 int[] bytesRead = new int[1]; 155 bytesRead, unicharBuffer, 0, unicharBufferSize); 162 totalBytesDecompressed += bytesRead[0]; 168 + bytesRead[0] + " bytes into "
|
/external/skia/src/codec/ |
SkRawCodec.cpp | 267 const size_t bytesRead = fStream->read(data->writable_data(), size); 268 if (bytesRead < size) { 269 data = SkData::MakeSubset(data.get(), 0, bytesRead); 281 const size_t bytesRead = fStream->read(dst, remaining); 283 if (bytesRead < remaining) { 284 if (!safe_add_to_size_t(alreadyBuffered, bytesRead, &newSize)) { 318 const size_t bytesRead = fStream->read(tempBuffer.get(), sizeToRead); 319 if (bytesRead < sizeRequested) { 322 return fStreamBuffer.write(tempBuffer.get(), bytesRead); 391 const size_t bytesRead = fStream->read(data->writable_data(), bytesToRead) [all...] |
SkPngCodec.cpp | 135 const size_t bytesRead = stream->read(buffer, bytesToProcess); 136 png_process_data(png_ptr, info_ptr, (png_bytep) buffer, bytesRead); 137 if (bytesRead < bytesToProcess) { 319 bool SkPngCodec::IsPng(const char* buf, size_t bytesRead) { 320 return !png_sig_cmp((png_bytep) buf, (png_size_t)0, bytesRead); [all...] |
/external/volley/src/main/java/com/android/volley/toolbox/ |
DiskBasedCache.java | 119 byte[] data = streamToBytes(cis, (int) (file.length() - cis.bytesRead)); 453 private int bytesRead = 0; 463 bytesRead++; 472 bytesRead += result;
|
/frameworks/av/media/libaudioclient/ |
AudioRecord.cpp | 954 size_t bytesRead = audioBuffer.size; 955 memcpy(buffer, audioBuffer.i8, bytesRead); 956 buffer = ((char *) buffer) + bytesRead; 957 userSize -= bytesRead; 958 read += bytesRead; [all...] |
/frameworks/base/libs/androidfw/ |
BackupHelpers.cpp | 88 int bytesRead = 0; 96 bytesRead += amt; 109 ALOGW("read_snapshot_file FileState truncated/error with read at %d bytes\n", bytesRead); 112 bytesRead += amt; 123 bytesRead += amt; 128 ALOGW("read_snapshot_file filename truncated/error with read at %d bytes\n", bytesRead); 133 if (header.totalSize != bytesRead) { 134 ALOGW("read_snapshot_file length mismatch: header.totalSize=%d bytesRead=%d\n", 135 header.totalSize, bytesRead); [all...] |
/frameworks/base/media/jni/ |
android_media_Utils.cpp | 78 size_t bytesRead = mStream->read(tempBuffer, sizeToRead); 79 if (bytesRead != sizeToRead) { 83 mStreamBuffer.write(tempBuffer, bytesRead);
|
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
UsbDescriptor.java | 177 int bytesRead = stream.getReadCount(); 178 if (bytesRead < mLength) { 180 stream.advance(mLength - bytesRead); 182 mOverUnderRunCount = mLength - bytesRead; 184 + " r: " + bytesRead + " < l: " + mLength); 185 } else if (bytesRead > mLength) { 187 stream.reverse(bytesRead - mLength); 189 mOverUnderRunCount = bytesRead - mLength; 191 + " r: " + bytesRead + " > l: " + mLength);
|
/hardware/qcom/display/msm8909/libhdmi/ |
hdmi.cpp | 674 ssize_t bytesRead = read(connectedNode, opStr, sizeof(opStr) - 1); 675 if(bytesRead > 0) { 676 opStr[bytesRead] = '\0'; 679 } else if(bytesRead == 0) {
|
/hardware/qcom/display/msm8994/libhdmi/ |
hdmi.cpp | 696 ssize_t bytesRead = read(connectedNode, opStr, sizeof(opStr) - 1); 697 if(bytesRead > 0) { 698 opStr[bytesRead] = '\0'; 701 } else if(bytesRead == 0) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
InputStreamReaderTest.java | 450 int bytesRead = isr.read(buf, 0, buf.length); 451 assertFalse(-1 == bytesRead); 452 bytesRead = isr.read(buf, 0, buf.length); 453 assertFalse(-1 == bytesRead);
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
LinuxWatchService.java | 338 int nReady, bytesRead; 345 bytesRead = read(ifd, address, BUFFER_SIZE); 349 bytesRead = 0; 353 if ((nReady > 1) || (nReady == 1 && bytesRead == 0)) { 367 while (offset < bytesRead) {
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
VpnTest.java | 347 int bytesRead = 0, totalRead = 0; 349 bytesRead = in.read(read, totalRead, read.length - totalRead); 350 totalRead += bytesRead; 351 } while (bytesRead >= 0 && totalRead < data.length);
|
/cts/tests/tests/net/src/android/net/cts/ |
LocalSocketTest.java | 372 private int bytesRead; 385 bytesRead += readCount; 386 if (bytesRead >= expectedByteCount) { 407 assertEquals(expected, bytesRead);
|
/device/google/marlin/camera/usbcamcore/src/ |
QualcommUsbCamera.cpp | [all...] |
/external/curl/lib/vtls/ |
darwinssl.c | 131 size_t bytesRead; 138 bytesRead = 0; 167 bytesRead = rrtn; 169 bytesToGo -= bytesRead; 170 currData += bytesRead; [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/ |
TestCharsetDetector.java | 68 int bytesRead = 0; 71 while ((bytesRead = reader.read(buffer, 0, 1024)) >= 0) { 72 sb.append(buffer, 0, bytesRead); [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/ |
TestCharsetDetector.java | 67 int bytesRead = 0; 70 while ((bytesRead = reader.read(buffer, 0, 1024)) >= 0) { 71 sb.append(buffer, 0, bytesRead); [all...] |
/external/mesa3d/src/mesa/drivers/dri/common/ |
xmlconfig.c | 916 int bytesRead; 922 bytesRead = read (fd, buffer, BUF_SIZE); 923 if (bytesRead == -1) { 928 status = XML_ParseBuffer (p, bytesRead, bytesRead == 0); 933 if (bytesRead == 0) [all...] |
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
ByteString.java | 481 int bytesRead = 0; 482 while (bytesRead < chunkSize) { 483 final int count = in.read(buf, bytesRead, chunkSize - bytesRead); 487 bytesRead += count; 490 if (bytesRead == 0) { 495 return ByteString.copyFrom(buf, 0, bytesRead); [all...] |
CodedInputStream.java | [all...] |
RopeByteString.java | 844 int bytesRead = currentPieceOffsetInRope + currentPieceIndex; 845 return RopeByteString.this.size() - bytesRead;
|
/external/skia/src/core/ |
SkStream.cpp | 196 size_t bytesRead = size; 198 bytesRead = sk_qread(fFILE.get(), buffer, size, fOffset); 200 if (bytesRead == SIZE_MAX) { 203 fOffset += bytesRead; 204 return bytesRead; 320 const size_t bytesRead = nonConstThis->read(buffer, size); 322 return bytesRead; 829 size_t bytesRead = stream->read(buffer, bufferSize); 830 tempStream.write(buffer, bytesRead);
|