/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStatsEntry.java | 194 record.foreground_rchar == foreground.bytesRead && in representsSameMetrics() 199 record.background_rchar == background.bytesRead && in representsSameMetrics() 226 public final long bytesRead; field in IoStatsEntry.Metrics 251 public Metrics(long bytesRead, long bytesWritten, long bytesReadFromStorage, in Metrics() argument 253 this.bytesRead = bytesRead; in Metrics() 267 dest.writeLong(bytesRead); in writeToParcel() 279 jsonWriter.name("bytesRead").value(bytesRead); in writeToJson() 288 bytesRead = in.readLong(); in Metrics() 299 bytesRead = in.getLong("bytesRead"); in Metrics() 316 return new Metrics(bytesRead-other.bytesRead, in delta() [all …]
|
D | IoStats.java | 127 long bytesRead = 0; in getForegroundTotals() local 134 bytesRead += stats.foreground.bytesRead; in getForegroundTotals() 141 return new Metrics(bytesRead, in getForegroundTotals() 149 long bytesRead = 0; in getBackgroundTotals() local 156 bytesRead += stats.background.bytesRead; in getBackgroundTotals() 163 return new Metrics(bytesRead, in getBackgroundTotals() 174 return new IoStatsEntry.Metrics(foreground.bytesRead + background.bytesRead, in getTotals()
|
D | UidIoRecord.java | 75 foreground_rchar - other.foreground.bytesRead, in delta() 80 background_rchar - other.background.bytesRead, in delta()
|
/packages/apps/Gallery2/jni_jpegstream/src/ |
D | jpeg_hook.cpp | 91 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()
|
D | inputstream_wrapper.cpp | 27 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/ |
D | WifiDownloadReceiver.java | 118 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/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/ |
D | AssetDataSource.java | 92 int bytesRead = 0; in read() local 98 bytesRead = mInputStream.read(buffer, offset, bytesToRead); in read() 103 if (bytesRead > 0 && mBytesRemaining != C.LENGTH_UNBOUNDED) { in read() 104 mBytesRemaining -= bytesRead; in read() 107 return bytesRead; in read()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | SendRequest.java | 112 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/ |
D | DumpDatabaseAction.java | 71 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/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/utils/ |
D | FdEventsReader.java | 223 final int bytesRead; in handleInput() local 226 bytesRead = readPacket(mFd, mBuffer); in handleInput() 227 if (bytesRead < 1) { in handleInput() 248 handlePacket(mBuffer, bytesRead); in handleInput()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocket.java | 150 int bytesRead = in.read(inBytes); in receiveFromFd() local 152 if (bytesRead < 0) { in receiveFromFd() 154 } else if (bytesRead >= 4096) { in receiveFromFd() 157 return Arrays.copyOf(inBytes, bytesRead); in receiveFromFd()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/ |
D | IkeSocketTestBase.java | 133 AtomicInteger bytesRead = new AtomicInteger(-1); in receive() local 137 while (bytesRead.get() < 0) { in receive() 139 bytesRead.set( in receive() 159 return Arrays.copyOfRange(receiveBuffer, 0, bytesRead.get()); in receive()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/ |
D | CarStorageMonitoringTest.java | 346 assertEquals(256797495, entry.foreground.bytesRead); in testUidIoStatEntry() 351 assertEquals(0, entry.background.bytesRead); in testUidIoStatEntry() 361 assertEquals(489007, entry.foreground.bytesRead); in testUidIoStatEntry() 366 assertEquals(51474, entry.background.bytesRead); in testUidIoStatEntry() 472 assertEquals(100, delta21.foreground.bytesRead); in testUidIoStatEntryDelta() 478 assertEquals(200, delta21.background.bytesRead); in testUidIoStatEntryDelta() 584 assertEquals(120, foregroundTotals.bytesRead); in testUidIoStatsTotals() 591 assertEquals(10, backgroundTotals.bytesRead); in testUidIoStatsTotals() 597 assertEquals(130, overallTotals.bytesRead); in testUidIoStatsTotals()
|
D | IoStatsTrackerTest.java | 103 assertEquals(10, sample0.foreground.bytesRead); in testUserMetricsChange() 133 assertEquals(0, sample0.foreground.bytesRead); in testUpdateNoIoProcessActive() 186 assertEquals(10, sample0.foreground.bytesRead); in testUpdateIoHappens()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsService.java | 428 int bytesRead = readPduBytesFromContentUri(contentUri, pduData); 431 if (bytesRead == 2 876 int bytesRead = readPduBytesFromContentUri(contentUri, pduData); in readPduFromContentUri() local 877 if (bytesRead <= 0) { in readPduFromContentUri() 880 if (bytesRead > maxSize) { in readPduFromContentUri() 884 return Arrays.copyOf(pduData, bytesRead); in readPduFromContentUri() 906 int bytesRead = inStream.read(pduData, 0, pduData.length); in readPduBytesFromContentUri() 907 if (bytesRead <= 0) { in readPduBytesFromContentUri() 910 return bytesRead; in readPduBytesFromContentUri()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 247 int bytesRead = is.read(unused, 0, 4096); in getStreamSize() local 248 while (bytesRead != -1) { in getStreamSize() 249 length += bytesRead; in getStreamSize() 250 bytesRead = is.read(unused, 0, 4096); in getStreamSize()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | HttpFetcher.java | 85 int bytesRead; in sendRequestAsByteArray() local 87 while ((bytesRead = is.read(buffer)) != -1) { in sendRequestAsByteArray() 88 baos.write(buffer, 0, bytesRead); in sendRequestAsByteArray()
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 172 int bytesRead = 0; in readWithLimit() local 176 bytesRead += count; in readWithLimit() 177 if (bytesRead > READ_LIMIT) { in readWithLimit()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/ |
D | DialogFragmentTest.java | 311 int bytesRead; in runShellCommand() local 314 while ((bytesRead = fis.read(buf)) != -1) { in runShellCommand() 315 stdout.append(new String(buf, 0, bytesRead)); in runShellCommand()
|
D | StubProvider.java | 453 int bytesRead = 0; in startWrite() local 454 while (bytesRead != -1) { in startWrite() 463 bytesRead = inputStream.read(buffer, 0, bytesToRead); in startWrite() 464 if (bytesRead == -1) { in startWrite() 467 outputStream.write(buffer, 0, bytesRead); in startWrite() 468 document.rootInfo.size += bytesRead; in startWrite()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
D | SapMessage.java | 448 int bytesRead = 0; in read() local 450 while (bytesRead < bytesToRead) { in read() 451 tmpBytesRead = is.read(buffer, bytesRead, bytesToRead - bytesRead); in read() 455 bytesRead += tmpBytesRead; in read()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 451 int bytesRead; in getDataBytes() local 453 while ((bytesRead = mInStream.read(data, offset, length - offset)) != (length in getDataBytes() 455 if (bytesRead == -1) { in getDataBytes() 458 offset += bytesRead; in getDataBytes()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 251 int bytesRead = 0; in copyStream() local 252 while ((bytesRead = is.read(buffer)) >= 0) { in copyStream() 253 os.write(buffer, 0, bytesRead); in copyStream()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 561 int bytesRead = 0; in readHashFile() local 566 while ((bytesRead = fileStream.read(dataBuffer)) != -1) { in readHashFile() 567 messageDigest.update(dataBuffer, 0, bytesRead); in readHashFile()
|
/packages/services/BuiltInPrintService/jni/plugins/genPCLm/src/ |
D | genPCLm.cpp | 401 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()
|