Home
last modified time | relevance | path

Searched refs:bytesWritten (Results 1 – 12 of 12) 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.java128 long bytesWritten = 0; in getForegroundTotals() local
135 bytesWritten += stats.foreground.bytesWritten; in getForegroundTotals()
142 bytesWritten, in getForegroundTotals()
150 long bytesWritten = 0; in getBackgroundTotals() local
157 bytesWritten += stats.background.bytesWritten; in getBackgroundTotals()
164 bytesWritten, in getBackgroundTotals()
175 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/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java347 assertEquals(181736102, entry.foreground.bytesWritten); in testUidIoStatEntry()
352 assertEquals(0, entry.background.bytesWritten); in testUidIoStatEntry()
362 assertEquals(196802, entry.foreground.bytesWritten); in testUidIoStatEntry()
367 assertEquals(2048, entry.background.bytesWritten); in testUidIoStatEntry()
473 assertEquals(100, delta21.foreground.bytesWritten); in testUidIoStatEntryDelta()
479 assertEquals(300, delta21.background.bytesWritten); in testUidIoStatEntryDelta()
585 assertEquals(200, foregroundTotals.bytesWritten); in testUidIoStatsTotals()
592 assertEquals(80, backgroundTotals.bytesWritten); in testUidIoStatsTotals()
598 assertEquals(280, overallTotals.bytesWritten); 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/services/Car/car-lib/api/
Dsystem-current.txt927 field public final long bytesWritten;