Home
last modified time | relevance | path

Searched refs:bytesWritten (Results 1 – 17 of 17) sorted by relevance

/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DIoStatsEntry.java195 && record.foreground_wchar == foreground.bytesWritten in representsSameMetrics()
200 && record.background_wchar == background.bytesWritten in representsSameMetrics()
232 public final long bytesWritten; field in IoStatsEntry.Metrics
251 public Metrics(long bytesRead, long bytesWritten, long bytesReadFromStorage, in Metrics() argument
254 this.bytesWritten = bytesWritten; in Metrics()
268 dest.writeLong(bytesWritten); in writeToParcel()
280 jsonWriter.name("bytesWritten").value(bytesWritten); in writeToJson()
289 bytesWritten = in.readLong(); in Metrics()
300 bytesWritten = in.getLong("bytesWritten"); in Metrics()
317 bytesWritten - other.bytesWritten, in delta()
[all …]
DIoStats.java137 long bytesWritten = 0; in getForegroundTotals() local
144 bytesWritten += stats.foreground.bytesWritten; in getForegroundTotals()
151 bytesWritten, in getForegroundTotals()
163 long bytesWritten = 0; in getBackgroundTotals() local
170 bytesWritten += stats.background.bytesWritten; in getBackgroundTotals()
177 bytesWritten, in getBackgroundTotals()
192 foreground.bytesWritten + background.bytesWritten, in getTotals()
DUidIoRecord.java76 foreground_wchar - other.foreground.bytesWritten, in delta()
81 background_wchar - other.background.bytesWritten, in delta()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java1142 int maxChunkSize, bytesToWrite, bytesWritten = 0, listSize; in sendMessageListingRsp() local
1267 while (bytesWritten < outBytes.length && !mIsAborted) { in sendMessageListingRsp()
1268 bytesToWrite = Math.min(maxChunkSize, outBytes.length - bytesWritten); in sendMessageListingRsp()
1269 outStream.write(outBytes, bytesWritten, bytesToWrite); in sendMessageListingRsp()
1270 bytesWritten += bytesToWrite; in sendMessageListingRsp()
1285 if (bytesWritten != outBytes.length && !mIsAborted) { in sendMessageListingRsp()
1357 int maxChunkSize, bytesToWrite, bytesWritten = 0; in sendConvoListingRsp() local
1453 while (bytesWritten < outBytes.length && !mIsAborted) { in sendConvoListingRsp()
1454 bytesToWrite = Math.min(maxChunkSize, outBytes.length - bytesWritten); in sendConvoListingRsp()
1455 outStream.write(outBytes, bytesWritten, bytesToWrite); in sendConvoListingRsp()
[all …]
DBluetoothMnsObexClient.java440 int maxChunkSize, bytesToWrite, bytesWritten = 0; in sendEventHandler() local
500 while (bytesWritten < eventBytes.length) { in sendEventHandler()
501 bytesToWrite = Math.min(maxChunkSize, eventBytes.length - bytesWritten); in sendEventHandler()
502 outputStream.write(eventBytes, bytesWritten, bytesToWrite); in sendEventHandler()
503 bytesWritten += bytesToWrite; in sendEventHandler()
506 if (bytesWritten == eventBytes.length) { in sendEventHandler()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamer.java367 int bytesWritten = mTunerHal.readTsStream(dataBuffer, dataBuffer.length); in run() local
368 if (bytesWritten <= 0) { in run()
380 mTsStreamWriter.writeToFile(dataBuffer, bytesWritten); in run()
384 mEventDetector.feedTSStream(dataBuffer, 0, bytesWritten); in run()
388 int bytesToCopyInFirstPass = bytesWritten; in run()
394 if (bytesToCopyInFirstPass < bytesWritten) { in run()
400 bytesWritten - bytesToCopyInFirstPass); in run()
402 mBytesFetched += bytesWritten; in run()
DFileTsStreamer.java464 int bytesWritten = mSource.read(dataBuffer); in run() local
465 if (bytesWritten <= 0) { in run()
476 mEventDetector.feedTSStream(dataBuffer, 0, bytesWritten); in run()
480 int bytesToCopyInFirstPass = bytesWritten; in run()
486 if (bytesToCopyInFirstPass < bytesWritten) { in run()
492 bytesWritten - bytesToCopyInFirstPass); in run()
494 mBytesFetched += bytesWritten; in run()
DTsStreamWriter.java126 public void writeToFile(byte[] buffer, int bytesWritten) { in writeToFile() argument
135 mFileOutputStream.write(buffer, 0, bytesWritten); in writeToFile()
/packages/modules/adb/fastdeploy/deployagent/src/com/android/fastdeploy/
DDeployAgent.java244 long bytesWritten = writePatchedDataToStream(newSize, patchData, outputStream); in writePatchToStream() local
246 if (bytesWritten != newSize) { in writePatchToStream()
248 "output size mismatch (expected %ld but wrote %ld)", newSize, bytesWritten)); in writePatchToStream()
250 return bytesWritten; in writePatchToStream()
322 long bytesWritten = writePatchedDataToStream(newSize, patchData, sessionOutputStream); in writePatchedDataToSession() local
325 if (bytesWritten != newSize) { in writePatchedDataToSession()
328 bytesWritten)); in writePatchedDataToSession()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpBipObexServer.java325 int bytesWritten = 0; in sendResponse() local
330 while (bytesWritten < bytes.length) { in sendResponse()
331 bytesToWrite = Math.min(maxChunkSize, bytes.length - bytesWritten); in sendResponse()
332 outStream.write(bytes, bytesWritten, bytesToWrite); in sendResponse()
333 bytesWritten += bytesToWrite; in sendResponse()
346 if (bytesWritten != bytes.length) { in sendResponse()
/packages/modules/StatsD/statsd/src/external/
DPerfetto.cpp116 size_t bytesWritten = fwrite(cfgProto.data(), 1, cfgProto.size(), writePipeStream); in CollectPerfettoTraceAndUploadToDropbox() local
118 if (bytesWritten != cfgProto.size() || cfgProto.size() == 0) { in CollectPerfettoTraceAndUploadToDropbox()
119 ALOGE("fwrite() failed (ret: %zd) while calling the Perfetto client: %s", bytesWritten, in CollectPerfettoTraceAndUploadToDropbox()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java373 assertThat(entry.foreground.bytesWritten).isEqualTo(181736102); in testUidIoStatEntry()
378 assertThat(entry.background.bytesWritten).isEqualTo(0); in testUidIoStatEntry()
388 assertThat(entry.foreground.bytesWritten).isEqualTo(196802); in testUidIoStatEntry()
393 assertThat(entry.background.bytesWritten).isEqualTo(2048); in testUidIoStatEntry()
506 assertThat(delta21.foreground.bytesWritten).isEqualTo(100); in testUidIoStatEntryDelta()
512 assertThat(delta21.background.bytesWritten).isEqualTo(300); in testUidIoStatEntryDelta()
622 assertThat(foregroundTotals.bytesWritten).isEqualTo(200); in testUidIoStatsTotals()
629 assertThat(backgroundTotals.bytesWritten).isEqualTo(80); in testUidIoStatsTotals()
635 assertThat(overallTotals.bytesWritten).isEqualTo(280); in testUidIoStatsTotals()
DIoStatsTrackerTest.java104 assertEquals(10, sample0.foreground.bytesWritten); in testUserMetricsChange()
105 assertEquals(0, sample0.background.bytesWritten); in testUserMetricsChange()
134 assertEquals(0, sample0.background.bytesWritten); in testUpdateNoIoProcessActive()
187 assertEquals(0, sample0.background.bytesWritten); in testUpdateIoHappens()
/packages/apps/DevCamera/src/com/android/devcamera/
DMediaSaver.java74 int bytesWritten = 0; in saveDepth() local
81 bytesWritten += byteCount; in saveDepth()
90 bytesWritten, file, (t1 - t0) * 0.001)); in saveDepth()
/packages/modules/StatsD/statsd/src/metrics/
DEventMetricProducer.cpp209 return mProto->bytesWritten(); in byteSizeLocked()
/packages/modules/adb/
Dtest_device.py1509 bytesWritten = sock.send(b"a" * size)
1510 self.assertEqual(size, bytesWritten)
/packages/services/Car/car-lib/api/
Dsystem-current.txt1202 field public final long bytesWritten;