Home
last modified time | relevance | path

Searched refs:bytesRead (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp91 int32_t bytesRead = src->inStream->read(src->inStream->getBufferSize(), 0); in Mgr_fill_input_buffer_fcn() local
92 if (bytesRead == J_DONE) { in Mgr_fill_input_buffer_fcn()
97 bytesRead = src->inStream->forceReadEOI(); in Mgr_fill_input_buffer_fcn()
98 } else if (bytesRead < 0) { in Mgr_fill_input_buffer_fcn()
100 } else if (bytesRead == 0) { in Mgr_fill_input_buffer_fcn()
104 src->mgr.bytes_in_buffer = bytesRead; in Mgr_fill_input_buffer_fcn()
105 if (bytesRead != 0) { in Mgr_fill_input_buffer_fcn()
Dinputstream_wrapper.cpp27 int32_t bytesRead = 0; in read() local
33 bytesRead = static_cast<int32_t>(mEnv->CallIntMethod(mStream, sReadID, in read()
42 if (bytesRead == END_OF_STREAM) { in read()
45 return bytesRead; in read()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DWifiDownloadReceiver.java118 int bytesRead = downloadFile(connection); in doInBackground() local
119 if (fileLength != bytesRead) { in doInBackground()
121 + bytesRead; in doInBackground()
168 int bytesRead = -1; in downloadFile() local
170 while ((bytesRead = inputStream.read(buffer)) != -1) { in downloadFile()
171 totalBytesRead += bytesRead; in downloadFile()
/packages/apps/Messaging/src/android/support/v7/mms/
DSendRequest.java112 final int bytesRead = inStream.read(readBuf, 0, maxSize+1); in readPduFromContentUri()
113 if (bytesRead <= 0) { in readPduFromContentUri()
117 if (bytesRead > maxSize) { in readPduFromContentUri()
122 final byte[] result = new byte[bytesRead]; in readPduFromContentUri()
123 System.arraycopy(readBuf, 0, result, 0, bytesRead); in readPduFromContentUri()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java71 int bytesRead; in executeAction() local
72 while ((bytesRead = bis.read(buffer)) > 0) { in executeAction()
73 bos.write(buffer, 0, bytesRead); in executeAction()
74 totalBytes += bytesRead; in executeAction()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DInstallTask.java139 int bytesRead; in writeToOutputStreamFromAsset() local
142 while ((bytesRead = inputStream.read(inputBuf)) > -1) { in writeToOutputStreamFromAsset()
143 if (bytesRead > 0) { in writeToOutputStreamFromAsset()
144 outputStream.write(inputBuf, 0, bytesRead); in writeToOutputStreamFromAsset()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java237 int bytesRead = is.read(unused, 0, 4096); in getStreamSize() local
238 while (bytesRead != -1) { in getStreamSize()
239 length += bytesRead; in getStreamSize()
240 bytesRead = is.read(unused, 0, 4096); in getStreamSize()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DLoggingInputStream.java68 int bytesRead = super.read(b, offset, length); in read() local
69 int copyBytes = bytesRead; in read()
76 return bytesRead; in read()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallStaging.java189 int bytesRead; in doInBackground() local
190 while ((bytesRead = in.read(buffer)) >= 0) { in doInBackground()
195 out.write(buffer, 0, bytesRead); in doInBackground()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java441 int bytesRead = 0; in startWrite() local
442 while (bytesRead != -1) { in startWrite()
451 bytesRead = inputStream.read(buffer, 0, bytesToRead); in startWrite()
452 if (bytesRead == -1) { in startWrite()
455 outputStream.write(buffer, 0, bytesRead); in startWrite()
456 document.rootInfo.size += bytesRead; in startWrite()
/packages/apps/TV/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DUnicodeDecompressor.java168 int [] bytesRead, in decompress() argument
529 if(bytesRead != null) in decompress()
530 bytesRead [0] = (bytePos - byteBufferStart); in decompress()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapMessage.java422 int bytesRead = 0; in read() local
424 while (bytesRead < bytesToRead) { in read()
425 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead-bytesRead); in read()
429 bytesRead += tmpBytesRead; in read()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DHttpFetcher.java86 int bytesRead; in sendRequestAsByteArray() local
88 while ((bytesRead = is.read(buffer)) != -1) { in sendRequestAsByteArray()
89 baos.write(buffer, 0, bytesRead); in sendRequestAsByteArray()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java190 int bytesRead = 0; in copyStream() local
191 while ((bytesRead = is.read(buffer)) >= 0) { in copyStream()
192 os.write(buffer, 0, bytesRead); in copyStream()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapbMessage.java445 int bytesRead; in getDataBytes() local
447 while ((bytesRead = mInStream.read(data, offset, length-offset)) in getDataBytes()
449 if(bytesRead == -1) in getDataBytes()
451 offset += bytesRead; in getDataBytes()
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java799 int bytesRead = inStream.read(tempBody, 0, maxSize+1); in readPduFromContentUri()
800 if (bytesRead == 0) { in readPduFromContentUri()
804 if (bytesRead <= maxSize) { in readPduFromContentUri()
805 return Arrays.copyOf(tempBody, bytesRead); in readPduFromContentUri()
/packages/apps/Email/provider_src/com/android/email/service/
DPop3Service.java216 public void report(int bytesRead) { in report() argument
217 mContentValues.put(AttachmentColumns.UI_DOWNLOADED_SIZE, bytesRead); in report()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DEOLConvertingInputStream.java52 public void report(int bytesRead); in report() argument
/packages/apps/TV/libs/
Dexoplayer.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/
DgenPCLm.cpp401 sint32 bytesRead = fread(buffIn, 1, ADOBE_RGB_SIZE, inFile); in injectAdobeRGBCS() local
402 assert(bytesRead == ADOBE_RGB_SIZE); in injectAdobeRGBCS()
404 write2Buff(buffIn, bytesRead); in injectAdobeRGBCS()