Home
last modified time | relevance | path

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

12

/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/
DRawBackupWriter.java25 private long bytesWritten; field in RawBackupWriter
35 bytesWritten += bytes.length; in writeBytes()
45 return bytesWritten; in getBytesWritten()
/frameworks/av/media/libaaudio/src/utility/
DFixedBlockWriter.cpp44 int32_t bytesWritten = writeToStorage(buffer, bytesLeft); in processVariableBlock() local
45 buffer += bytesWritten; in processVariableBlock()
46 bytesLeft -= bytesWritten; in processVariableBlock()
/frameworks/base/media/jni/
Dandroid_media_MediaDescrambler.cpp62 uint32_t *bytesWritten,
211 uint32_t *bytesWritten, in descramble() argument
237 [&status, &bytesWritten, &detailedError] ( in descramble()
241 *bytesWritten = _bytesWritten; in descramble()
250 if (*bytesWritten > 0 && (ssize_t) *bytesWritten <= totalLength) { in descramble()
251 memcpy((void*)((uint8_t*)dstPtr + dstOffset), mMem->pointer(), *bytesWritten); in descramble()
425 uint32_t bytesWritten; in android_media_MediaDescrambler_native_descramble() local
431 &status, &bytesWritten, &detailedError); in android_media_MediaDescrambler_native_descramble()
451 return bytesWritten; in android_media_MediaDescrambler_native_descramble()
Dandroid_media_Streams.cpp64 if (offset + length > mStreamBuffer.bytesWritten()) { in GetData()
65 size_t sizeToRead = offset + length - mStreamBuffer.bytesWritten(); in GetData()
/frameworks/av/services/audioflinger/
DAudioStreamOut.cpp208 size_t bytesWritten; in write() local
209 status_t result = stream->write(buffer, numBytes, &bytesWritten); in write()
210 if (result == OK && bytesWritten > 0 && mHalFrameSize > 0) { in write()
211 mFramesWritten += bytesWritten / mHalFrameSize; in write()
213 return result == OK ? bytesWritten : result; in write()
/frameworks/base/cmds/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()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp401 ssize_t bytesWritten = mAudioTrack->write(buffer, numBytes, blocking); in write() local
402 if (bytesWritten == WOULD_BLOCK) { in write()
404 } else if (bytesWritten < 0) { in write()
405 ALOGE("invalid write, returned %d", (int)bytesWritten); in write()
408 if (bytesWritten == DEAD_OBJECT) { in write()
412 return AAudioConvert_androidToAAudioResult(bytesWritten); in write()
414 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write()
/frameworks/native/cmds/dumpsys/tests/
Ddumpsys_test.cpp194 size_t& bytesWritten) { in CallSingleService() argument
201 elapsedDuration, bytesWritten); in CallSingleService()
584 size_t bytesWritten; in TEST_F() local
587 /* as_proto = */ false, elapsedDuration, bytesWritten); in TEST_F()
590 EXPECT_THAT(bytesWritten, Eq(strlen(dumpContents))); in TEST_F()
595 size_t bytesWritten; in TEST_F() local
598 /* as_proto = */ false, elapsedDuration, bytesWritten); in TEST_F()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunking/
DRawBackupWriterTest.java70 long bytesWritten = mWriter.getBytesWritten(); in getBytesWritten_returnsTotalSum() local
72 assertThat(bytesWritten).isEqualTo(2 * TEST_BYTES.length); in getBytesWritten_returnsTotalSum()
DDiffScriptBackupWriterTest.java79 long bytesWritten = mBackupWriter.getBytesWritten(); in getBytesWritten_returnsTotalSum() local
81 assertThat(bytesWritten).isEqualTo(2 * TEST_BYTES.length + 10); in getBytesWritten_returnsTotalSum()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DCryptoPlugin.cpp59 uint32_t bytesWritten = 0; in decrypt() local
65 bytesWritten = hBytesWritten; in decrypt()
71 _hidl_cb(status, bytesWritten, detailedError); in decrypt()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java125 final int bytesWritten = writeToAudioTrack(track, data); in write() local
127 mBytesWritten += bytesWritten; in write()
128 return bytesWritten; in write()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java143 int bytesWritten = getPlatformLowPowerStats(mUtf8BufferStat); in getPlatformLowPowerStats() local
144 if (bytesWritten < 0) { in getPlatformLowPowerStats()
146 } else if (bytesWritten == 0) { in getPlatformLowPowerStats()
149 mUtf8BufferStat.limit(bytesWritten); in getPlatformLowPowerStats()
165 int bytesWritten = getSubsystemLowPowerStats(mUtf8BufferStat); in getSubsystemLowPowerStats() local
166 if (bytesWritten < 0) { in getSubsystemLowPowerStats()
168 } else if (bytesWritten == 0) { in getSubsystemLowPowerStats()
171 mUtf8BufferStat.limit(bytesWritten); in getSubsystemLowPowerStats()
1226 int bytesWritten = nativeWaitWakeup(mUtf8Buffer); in waitWakeup() local
1227 if (bytesWritten < 0) { in waitWakeup()
[all …]
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp261 size_t bytesWritten = 0; in main() local
264 asProto, elapsedDuration, bytesWritten); in main()
403 size_t& bytesWritten) const { in writeDump()
463 bytesWritten = totalBytes; in writeDump()
Ddumpsys.h98 size_t& bytesWritten) const;
/frameworks/av/drm/libmediadrm/
DCryptoHal.cpp407 uint32_t bytesWritten = 0; in decrypt() local
416 bytesWritten = hBytesWritten; in decrypt()
427 bytesWritten = hBytesWritten; in decrypt()
437 return bytesWritten; in decrypt()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp266 EXPECT_EQ(proto.bytesWritten(), 4); in TEST()
278 EXPECT_EQ(proto.bytesWritten(), 0); in TEST()
332 EXPECT_NE(proto.bytesWritten(), 0); in TEST()
344 EXPECT_NE(proto.bytesWritten(), 0); in TEST()
355 EXPECT_NE(proto.bytesWritten(), 0); in TEST()
/frameworks/base/libs/protoutil/include/android/util/
DProtoOutputStream.h119 size_t bytesWritten();
/frameworks/base/cmds/statsd/src/metrics/
DEventMetricProducer.cpp160 return mProto->bytesWritten(); in byteSizeLocked()
/frameworks/base/cmds/screencap/
Dscreencap.cpp243 size_t bytesWritten() const override { return fBytesWritten; } in main() function
/frameworks/av/media/libstagefright/include/media/stagefright/
DMPEG4Writer.h258 uint32_t tiffHdrOffset, size_t *bytesWritten);
/frameworks/base/core/jni/android/graphics/
DCreateJavaOutputStreamAdaptor.cpp222 virtual size_t bytesWritten() const { in bytesWritten() function in SkJavaOutputStream
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp146 int bytesWritten = sizeof(SnapshotHeader); in write_snapshot_file() local
153 bytesWritten += sizeof(FileState) + round_up(name.length()); in write_snapshot_file()
161 SnapshotHeader header = { MAGIC0, fileCount, MAGIC1, bytesWritten }; in write_snapshot_file()
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp1594 uint32_t bytesWritten = 0; in flushScrambled() local
1608 [&status, &bytesWritten, &detailedError] ( in flushScrambled()
1612 bytesWritten = _bytesWritten; in flushScrambled()
1623 mElementaryPID, bytesWritten); in flushScrambled()
1629 descrambleBytes = bytesWritten; in flushScrambled()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp1372 uint32_t tiffHdrOffset, size_t *bytesWritten) { in addSample_l() argument
1391 *bytesWritten = mOffset - old_offset; in addSample_l()
2318 size_t bytesWritten; in writeChunkToFile() local
2319 off64_t offset = addSample_l(*it, usePrefix, tiffHdrOffset, &bytesWritten); in writeChunkToFile()
2322 chunk->mTrack->addItemOffsetAndSize(offset, bytesWritten, isExif); in writeChunkToFile()
3347 size_t bytesWritten; in threadEntry() local
3349 copy, usePrefix, tiffHdrOffset, &bytesWritten); in threadEntry()
3352 addItemOffsetAndSize(offset, bytesWritten, isExif); in threadEntry()

12