/libcore/luni/src/test/java/libcore/java/io/ |
OldRandomAccessFileTest.java | 299 int bytesRead = raf.read(rbuf); 301 testLength, bytesRead); 305 bytesRead = raf.read(rbuf); 306 assertTrue("Test 3: EOF (-1) expected. ", bytesRead == -1); 310 bytesRead = raf.read(rbuf); 321 int bytesRead; 330 bytesRead = raf.read(rbuf, 10, testLength / 2); 332 testLength / 2, bytesRead); 338 bytesRead = raf.read(rbuf, 0, testLength); 340 testLength - (testLength / 2), bytesRead); [all...] |
OldObjectOutputStreamPutFieldTest.java | 121 int bytesRead; 128 bytesRead = refStream.read(streamContent); 132 refContent = new byte[bytesRead]; 133 System.arraycopy(streamContent, 0, refContent, 0, bytesRead);
|
OldInputStreamReaderTest.java | 151 int bytesRead = isr.read(buf, 0, buf.length); 152 if (bytesRead == -1) { 155 bytesRead = isr.read(buf, 0, buf.length); 156 if (bytesRead == -1) {
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
HttpUtils.java | 231 int bytesRead = 0; 236 bytesRead = dis.read(tempBody, offset, bytesTobeRead); 243 if (bytesRead > 0) { 244 bytesTobeRead -= bytesRead; 245 offset += bytesRead; 247 } while (bytesRead >= 0 && bytesTobeRead > 0); 248 if (bytesRead == -1 && offset > 0 && !readError) { 250 // bytesRead will be -1 if the data was read till the eof
|
/external/quake/src/com/android/quake/ |
DownloaderActivity.java | 745 int bytesRead = is.read(mFileIOBuffer, 0, chunkSize); 746 if (bytesRead < 0) { 749 updateDigest(digest, bytesRead); 750 bytesToRead -= bytesRead; 764 private void updateDigest(MessageDigest digest, int bytesRead) { 765 if (bytesRead == mFileIOBuffer.length) { 770 byte[] temp = new byte[bytesRead]; 772 temp, 0, bytesRead); [all...] |
/external/webkit/Source/WebCore/fileapi/ |
FileStreamProxy.cpp | 168 static void didRead(ScriptExecutionContext*, FileStreamProxy* proxy, int bytesRead) 171 proxy->client()->didRead(bytesRead); 181 int bytesRead = m_stream->read(buffer, length); 182 m_context->postTask(createCallbackTask(&didRead, this, bytesRead));
|
/libcore/luni/src/main/java/java/security/ |
DigestInputStream.java | 120 int bytesRead = in.read(b, off, len); 124 if (isOn && (bytesRead != -1)) { 125 digest.update(b, off, bytesRead); 128 return bytesRead;
|
/libcore/luni/src/main/java/libcore/io/ |
Streams.java | 81 int bytesRead = in.read(dst, offset, byteCount); 82 if (bytesRead < 0) { 85 offset += bytesRead; 86 byteCount -= bytesRead;
|
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
Serializer.java | 185 int bytesRead = is.read(buffer, 0, (int)Math.min(BUFFER_SIZE, length)); 186 if (bytesRead == -1) { 189 mOutput.write(buffer, 0, bytesRead); 190 length -= bytesRead;
|
/packages/apps/Gallery2/src/com/android/photos/data/ |
MediaCacheUtils.java | 155 int bytesRead; 156 while ((bytesRead = in.read(buffer)) >= 0) { 157 out.write(buffer, 0, bytesRead); 158 totalWritten += bytesRead;
|
/development/ndk/platforms/android-14/samples/native-media/jni/ |
native-media-jni.c | 165 size_t bytesRead; 166 bytesRead = fread(pBufferData, 1, BUFFER_SIZE, file); 167 if (bytesRead > 0) { 168 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) { 171 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE; 281 size_t bytesRead; 282 bytesRead = fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file); 283 if (bytesRead <= 0) { 287 if ((bytesRead % MPEG2_TS_PACKET_SIZE) != 0) { 290 size_t packetsRead = bytesRead / MPEG2_TS_PACKET_SIZE [all...] |
/libcore/luni/src/main/java/java/nio/ |
FileChannelImpl.java | 293 int bytesRead = 0; 299 bytesRead = Libcore.os.read(fd, buffer); 301 bytesRead = Libcore.os.pread(fd, buffer, position); 303 if (bytesRead == 0) { 304 bytesRead = -1; 309 bytesRead = 0; 316 end(completed && bytesRead >= 0); 318 if (bytesRead > 0) { 319 buffer.position(buffer.position() + bytesRead); 321 return bytesRead; [all...] |
/external/webkit/Source/WebCore/platform/network/soup/ |
SocketStreamHandleSoup.cpp | 125 void SocketStreamHandle::readBytes(signed long bytesRead, GError* error) 132 if (!bytesRead) { 139 m_client->didReceiveData(this, m_readBuffer, bytesRead); 258 gssize bytesRead = g_input_stream_read_finish(stream, result, &error.outPtr()); 264 handle->readBytes(bytesRead, error.get());
|
/dalvik/hit/src/com/android/hit/ |
HprofParser.java | 434 int bytesRead = 0; 447 bytesRead = (7 * mIdSize) + 4 + 4; 451 bytesRead += 2; 455 bytesRead += 2 + skipValue(); 460 bytesRead += 2; 477 bytesRead += mIdSize + 1 + fieldSize; 482 bytesRead += 2; 494 bytesRead += mIdSize + 1; 512 return bytesRead;
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/ |
BlenderInputStream.java | 173 int bytesRead = this.readBytes(identifier);
174 if (bytesRead != 7) {
175 throw new BlenderFileException("Error reading header identifier. Only " + bytesRead + " bytes read and there should be 7!");
194 bytesRead = this.readBytes(versionNumber);
195 if (bytesRead != 3) {
196 throw new BlenderFileException("Error reading version numberr. Only " + bytesRead + " bytes read and there should be 3!");
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 280 int bytesRead = is.read(input, 0, 256); 281 while (bytesRead > 0) { 282 byte[] output = c.update(input, 0, bytesRead); 286 bytesRead = is.read(input, 0, 256); 329 int bytesRead = is.read(input, 0, 256); 330 while (bytesRead > 0) { 331 byte[] output = c.update(input, 0, bytesRead); 335 bytesRead = is.read(input, 0, 256);
|
/external/webkit/Source/WebCore/platform/graphics/android/layers/ |
PictureLayerContent.cpp | 123 int bytesRead = m_createPictureProc(pictureStream->getAtPos(), streamLength, 125 pictureStream->skip(bytesRead);
|
/external/webkit/Source/WebCore/platform/text/gtk/ |
TextCodecGtk.cpp | 447 gsize bytesRead = 0; 477 &bytesRead, &bytesWritten, 479 input += bytesRead; 480 inputLength -= bytesRead; 528 gsize bytesRead = 0; 542 &bytesRead, &bytesWritten, 544 input += bytesRead; 545 inputLength -= bytesRead;
|
/external/webkit/Source/WebKit/android/WebCoreSupport/ |
WebRequest.h | 77 virtual void OnReadCompleted(net::URLRequest*, int bytesRead); 97 bool read(int* bytesRead);
|
/hardware/invensense/mlsdk/platform/linux/ |
mlsl_linux_mpu.c | 99 int bytesRead; 106 bytesRead = fread(cfg, 1, len, fp); 107 if (bytesRead != len) { 109 bytesRead, len); 159 int bytesRead; 167 bytesRead = fread(cal, 1, len, fp); 168 if (bytesRead != len) { 170 bytesRead, len);
|
/bootable/recovery/minui/ |
resources.c | 64 size_t bytesRead = fread(header, 1, sizeof(header), fp); 65 if (bytesRead != sizeof(header)) { 217 size_t bytesRead = fread(header, 1, sizeof(header), fp); 218 if (bytesRead != sizeof(header)) {
|
/cts/tests/tests/media/src/android/media/cts/ |
Vp8EncoderTest.java | 233 int bytesRead = rawStream.read(frame); 235 if (bytesRead == -1) { 237 bytesRead = 0; 249 bytesRead, // size
|
/external/skia/legacy/include/pipe/ |
SkGPipe.h | 38 Status playback(const void* data, size_t length, size_t* bytesRead = NULL,
|
/libcore/luni/src/main/java/java/io/ |
CharArrayReader.java | 214 int bytesRead = pos + len > this.count ? this.count - pos : len; 215 System.arraycopy(this.buf, pos, buffer, offset, bytesRead); 216 pos += bytesRead; 217 return bytesRead;
|
/cts/tests/src/android/os/cts/ |
FileUtils.java | 117 int bytesRead; 118 while ((bytesRead = inputStream.read(buffer)) >= 0) { 119 out.write(buffer, 0, bytesRead);
|