Home
last modified time | relevance | path

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

12

/frameworks/av/services/audioflinger/datapath/
DAudioStreamOut.cpp175 size_t bytesWritten; in write() local
176 const status_t result = stream->write(buffer, numBytes, &bytesWritten); in write()
177 if (result == OK && bytesWritten > 0 && mHalFrameSize > 0) { in write()
178 mFramesWritten += bytesWritten / mHalFrameSize; in write()
180 return result == OK ? bytesWritten : result; in write()
/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()
252 *bytesWritten); in descramble()
426 uint32_t bytesWritten; in android_media_MediaDescrambler_native_descramble() local
432 &status, &bytesWritten, &detailedError); in android_media_MediaDescrambler_native_descramble()
452 return bytesWritten; in android_media_MediaDescrambler_native_descramble()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java275 int bytesWritten = 0; in writeToFakeAudioStreamPipe() local
276 while (bytesWritten + bytesToRepeat.length <= totalBytesToWrite) { in writeToFakeAudioStreamPipe()
277 System.arraycopy(bytesToRepeat, 0, fakeAudioData, bytesWritten, bytesToRepeat.length); in writeToFakeAudioStreamPipe()
278 bytesWritten += bytesToRepeat.length; in writeToFakeAudioStreamPipe()
280 if (bytesWritten < totalBytesToWrite) { in writeToFakeAudioStreamPipe()
281 int bytesLeft = totalBytesToWrite - bytesWritten; in writeToFakeAudioStreamPipe()
282 System.arraycopy(bytesToRepeat, 0, fakeAudioData, bytesWritten, bytesLeft); in writeToFakeAudioStreamPipe()
/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DUtils.java177 long bytesWritten = 0; in writeRandomData() local
179 while (bytesWritten < fileSizeBytes) { in writeRandomData()
181 final int toWrite = (bytesWritten + buffer.length <= fileSizeBytes) in writeRandomData()
182 ? buffer.length : (int) (fileSizeBytes - bytesWritten); in writeRandomData()
183 file.seek(bytesWritten); in writeRandomData()
185 bytesWritten += toWrite; in writeRandomData()
/frameworks/native/libs/renderengine/benchmark/
DCodec.cpp118 const ssize_t bytesWritten = in encodeToJpeg() local
122 return bytesWritten > 0 && in encodeToJpeg()
123 static_cast<size_t>(bytesWritten) == size; in encodeToJpeg()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamTrack.cpp460 ssize_t bytesWritten = mAudioTrack->write(buffer, numBytes, blocking); in write() local
461 if (bytesWritten == WOULD_BLOCK) { in write()
463 } else if (bytesWritten < 0) { in write()
464 ALOGE("invalid write, returned %d", (int)bytesWritten); in write()
467 if (bytesWritten == DEAD_OBJECT) { in write()
471 return AAudioConvert_androidToAAudioResult(bytesWritten); in write()
473 int32_t framesWritten = (int32_t)(bytesWritten / bytesPerFrame); in write()
/frameworks/base/apct-tests/perftests/blobstore/src/com/android/perftests/blob/
DBlobStorePerfTests.java213 long bytesWritten = 0; in writeData() local
215 while (bytesWritten < sizeBytes) { in writeData()
217 final int toWrite = (bytesWritten + buffer.length <= sizeBytes) in writeData()
218 ? buffer.length : (int) (sizeBytes - bytesWritten); in writeData()
220 bytesWritten += toWrite; in writeData()
/frameworks/native/cmds/dumpsys/tests/
Ddumpsys_test.cpp206 size_t& bytesWritten) { in CallSingleService() argument
213 elapsedDuration, bytesWritten); in CallSingleService()
690 size_t bytesWritten; in TEST_F() local
693 /* as_proto = */ false, elapsedDuration, bytesWritten); in TEST_F()
696 EXPECT_THAT(bytesWritten, Eq(strlen(dumpContents))); in TEST_F()
701 size_t bytesWritten; in TEST_F() local
704 /* as_proto = */ false, elapsedDuration, bytesWritten); in TEST_F()
/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/av/drm/libmediadrm/
DCryptoHalHidl.cpp338 uint32_t bytesWritten = 0; in decrypt() local
349 bytesWritten = hBytesWritten; in decrypt()
362 bytesWritten = hBytesWritten; in decrypt()
373 return bytesWritten; in decrypt()
/frameworks/native/cmds/dumpsys/
Ddumpsys.h102 size_t& bytesWritten) const;
Ddumpsys.cpp284 size_t bytesWritten = 0; in main() local
287 asProto, elapsedDuration, bytesWritten); in main()
491 size_t& bytesWritten) const { in writeDump()
551 bytesWritten = totalBytes; in writeDump()
/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/cmds/screencap/
Dscreencap.cpp215 int bytesWritten = write(*static_cast<int*>(fdPtr), in saveImage() local
217 return bytesWritten == size; in saveImage()
/frameworks/base/libs/protoutil/include/android/util/
DProtoOutputStream.h120 size_t bytesWritten();
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp1637 uint32_t tiffHdrOffset, size_t *bytesWritten) { in addSample_l() argument
1645 *bytesWritten = buffer->range_length(); in addSample_l()
1655 *bytesWritten = buffer->range_length(); in addSample_l()
1657 (long long)mMaxOffsetAppend, (long long)*bytesWritten); in addSample_l()
1679 *bytesWritten = mOffset - old_offset; in addSample_l()
1682 (long long)old_offset, (long long)*bytesWritten); in addSample_l()
1792 ssize_t bytesWritten = ::write(fd, buf, count); in writeOrPostError() local
1804 if (bytesWritten == count) in writeOrPostError()
1808 ALOGE("writeOrPostError bytesWritten:%zd, count:%zu, error:%s(%d)", bytesWritten, count, in writeOrPostError()
2808 size_t bytesWritten; in writeChunkToFile() local
[all …]
/frameworks/base/libs/hwui/apex/
Dandroid_bitmap.cpp205 size_t bytesWritten() const override { return mBytesWritten; } in bytesWritten() function in __anon24de077d0111::CompressWriter
/frameworks/base/libs/hwui/jni/
DCreateJavaOutputStreamAdaptor.cpp232 virtual size_t bytesWritten() const { in bytesWritten() function in SkJavaOutputStream
/frameworks/av/media/libstagefright/include/media/stagefright/
DMPEG4Writer.h299 uint32_t tiffHdrOffset, size_t *bytesWritten);
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp150 int bytesWritten = sizeof(SnapshotHeader); in write_snapshot_file() local
157 bytesWritten += sizeof(FileState) + round_up(name.length()); in write_snapshot_file()
165 SnapshotHeader header = { MAGIC0, fileCount, MAGIC1, bytesWritten }; in write_snapshot_file()
/frameworks/av/media/libaudioclient/
DToneGenerator.cpp1387 size_t bytesWritten = lNumSmp * sizeof(int16_t); in onMoreData() local
1588 bytesWritten = 0; in onMoreData()
1601 bytesWritten = 0; in onMoreData()
1609 return bytesWritten; in onMoreData()
/frameworks/av/media/module/mpeg2ts/
DATSParser.cpp1708 uint32_t bytesWritten = 0; in flushScrambled() local
1722 [&status, &bytesWritten, &detailedError] ( in flushScrambled()
1726 bytesWritten = _bytesWritten; in flushScrambled()
1737 mElementaryPID, bytesWritten); in flushScrambled()
1743 descrambleBytes = bytesWritten; in flushScrambled()
/frameworks/wilhelm/src/android/
DAudioPlayer_to_android.cpp1234 size_t bytesWritten = 0; in audioTrack_handleMoreData_lockPlay() local
1267 bytesWritten = bytesToCopy; in audioTrack_handleMoreData_lockPlay()
1322 return bytesWritten; in audioTrack_handleMoreData_lockPlay()
/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp310 ProtoOutputStream::bytesWritten() in bytesWritten() function in android::util::ProtoOutputStream

12