Home
last modified time | relevance | path

Searched refs:written (Results 1 – 25 of 227) sorted by relevance

12345678910

/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamLegacy.cpp87 size_t written = buffer.size(); in onMoreData() local
92 written = SIZE_STOP_CALLBACKS; in onMoreData()
98 written = 0; in onMoreData()
102 return written; in onMoreData()
116 written = buffer.getFrameCount() * getBytesPerDeviceFrame(); in onMoreData()
124 written = 0; in onMoreData()
135 return written; in onMoreData()
152 size_t written = buffer.size(); in onMoreData() local
157 written = SIZE_STOP_CALLBACKS; in onMoreData()
163 written = 0; in onMoreData()
[all …]
/frameworks/av/media/libnbaio/
DMonoPipe.cpp81 size_t written = (size_t) actual; in write() local
82 totalFramesWritten += written; in write()
86 count -= written; in write()
87 buffer = (char *) buffer + (written * mFrameSize); in write()
92 if (written > 0) { in write()
103 ns = written * ( 500000000 / Format_sampleRate(mFormat)); in write()
106 ns = written * ( 750000000 / Format_sampleRate(mFormat)); in write()
109 ns = written * (1000000000 / Format_sampleRate(mFormat)); in write()
112 ns = written * (1150000000 / Format_sampleRate(mFormat)); in write()
115 ns = written * (1350000000 / Format_sampleRate(mFormat)); in write()
[all …]
DAudioStreamOutSink.cpp71 size_t written; in write() local
72 status_t ret = mStream->write(buffer, count * mFrameSize, &written); in write()
73 if (ret == OK && written > 0) { in write()
77 processor->process(buffer, written); in write()
80 written /= mFrameSize; in write()
81 mFramesWritten += written; in write()
83 return written; in write()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dfd.h59 auto written = RawSyscall(__NR_write, fd, bit_cast<long>(curr), end - curr); in WriteFullyOrDie() local
61 if (written >= 0) { in WriteFullyOrDie()
62 curr += written; in WriteFullyOrDie()
64 CHECK(written == -EINTR); in WriteFullyOrDie()
/frameworks/av/services/audioflinger/datapath/
DSpdifStreamOut.cpp109 const ssize_t written = AudioStreamOut::write(buffer, bytes); in writeDataBurst() local
112 if (written > 0) { in writeDataBurst()
114 written / AudioStreamOut::getFrameSize()); in writeDataBurst()
117 return written; in writeDataBurst()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DBufferedZipFilePerfTest.java57 int written = 0; in setUp() local
58 while (written < mCompressedSize[i]) { in setUp()
60 int toWrite = Math.min(mCompressedSize[i] - written, data.length); in setUp()
62 written += toWrite; in setUp()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp142 bool written = writeAllBytes(fd, (void*) &info, sizeof(AndroidBitmapInfo)); in writeBitmapPixels() local
143 if (!written) { in writeBitmapPixels()
158 written = writeAllBytes(fd, (void*) pixels, byteCount); in writeBitmapPixels()
159 if (!written) { in writeBitmapPixels()
/frameworks/base/services/tests/servicestests/src/com/android/server/graphics/fonts/
DPersistentSystemFontConfigTest.java60 byte[] written = baos.toByteArray(); in testWriteRead()
61 assertThat(written).isNotEmpty(); in testWriteRead()
63 try (ByteArrayInputStream bais = new ByteArrayInputStream(written)) { in testWriteRead()
/frameworks/base/core/java/android/speech/tts/
DBlockingAudioTrack.java203 int written = audioTrack.write(bytes, offset, sizeToWrite); in writeToAudioTrack() local
204 if (written <= 0) { in writeToAudioTrack()
205 if (written < 0) { in writeToAudioTrack()
206 Log.e(TAG, "An error occurred while writing to audio track: " + written); in writeToAudioTrack()
210 offset += written; in writeToAudioTrack()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Delement.rscript123 uint32_t written = rsElementGetSubElementName(complexElem, i, buffer, 64);
124 _RS_ASSERT(written == subElemNamesSizes[i]);
125 _RS_ASSERT(equals(buffer, subElemNames[i], written));
140 uint32_t written = rsElementGetSubElementName(complexElem, 0, buffer, 5);
141 _RS_ASSERT(written == 4);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Delement.rscript121 uint32_t written = rsElementGetSubElementName(complexElem, i, buffer, 64);
122 _RS_ASSERT(written == subElemNamesSizes[i]);
123 _RS_ASSERT(equals(buffer, subElemNames[i], written));
138 uint32_t written = rsElementGetSubElementName(complexElem, 0, buffer, 5);
139 _RS_ASSERT(written == 4);
/frameworks/native/services/surfaceflinger/Tracing/tools/
Dreadme.md5 front end logic. Transaction traces are written when the transaction
8 result is then written as a layer trace.
/frameworks/base/cmds/incidentd/tests/
Dtest_proto.proto22 // The id of the section, written by TestSection.
25 // The id of the section, times 10, written by TestSection.
/frameworks/libs/binary_translation/runtime_primitives/
Dmemory_region_reservation.cc157 bool written = std::atomic_compare_exchange_strong_explicit( in ReservationExchange() local
166 return written; in ReservationExchange()
/frameworks/compile/slang/
Dslang_rs_reflect_utils.cpp143 for (int written = 0; written < blen; written++) { in GenerateSegmentMethod() local
151 out << std::setw(4) << static_cast<int>(buff[written]) << ","; in GenerateSegmentMethod()
/frameworks/base/services/core/java/com/android/server/am/
DProviderMap.java253 boolean written = false; in dumpProvidersByClassLocked()
268 written = true; in dumpProvidersByClassLocked()
273 return written; in dumpProvidersByClassLocked()
279 boolean written = false; in dumpProvidersByNameLocked()
294 written = true; in dumpProvidersByNameLocked()
300 return written; in dumpProvidersByNameLocked()
/frameworks/av/media/libaaudio/examples/write_sine/src/
Dwrite_sine_callback.cpp185 int64_t written = AAudioStream_getFramesWritten(player.getStream()); in testOpenPlayClose() local
188 (long long) written, in testOpenPlayClose()
190 (int) (written - read)); in testOpenPlayClose()
/frameworks/av/media/mtp/
DMtpFfsCompatHandle.cpp200 int written = aio_return(&aio); in receiveFile() local
201 if (written == -1) { in receiveFile()
205 if (static_cast<size_t>(written) < aio.aio_nbytes) { in receiveFile()
/frameworks/base/media/jni/soundpool/
DSound.cpp86 size_t written = 0; in decode() local
146 written += dataSize; in decode()
191 *sizeInBytes = written; in decode()
/frameworks/av/media/libcpustats/include/cpustats/
DREADME.txt1 This is a static library of CPU usage statistics, originally written
/frameworks/base/core/java/android/util/
DLog.java526 private int written = 0; field in Log.ImmediateLogWriter
539 return written; in getWritten()
547 written += println_native(bufID, priority, tag, new String(cbuf, off, len)); in write()
/frameworks/native/libs/bufferstreams/
DREADME.md10 This library is natively written in Rust and exposes a C API. If you make changes to the Rust API,
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp654 ssize_t written = 0; in writeToTrack() local
658 written = track->write(data + offsetInSamples, sizeInBytes, blocking); in writeToTrack()
660 if (written == (ssize_t) WOULD_BLOCK) { in writeToTrack()
661 written = 0; in writeToTrack()
669 written = sizeInBytes; in writeToTrack()
671 if (written >= 0) { in writeToTrack()
672 return written / sizeof(T); in writeToTrack()
674 return interpretWriteSizeError(written); in writeToTrack()
740 jint written = writeToTrack(lpTrack, javaAudioFormat, bytes, byteOffset, in android_media_AudioTrack_write_native_bytes() local
743 return written; in android_media_AudioTrack_write_native_bytes()
/frameworks/compile/mclinker/
DLICENSE.TXT33 prior written permission.
46 The LLVM software contains code written by third parties. Such software will
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp1160 ssize_t written = mAudioSink->write(entry->mBuffer->data() + entry->mOffset, in onDrainAudioQueue() local
1162 if (written < 0) { in onDrainAudioQueue()
1164 if (written == WOULD_BLOCK) { in onDrainAudioQueue()
1167 ALOGE("AudioSink write error(%zd) when writing %zu bytes", written, copy); in onDrainAudioQueue()
1175 entry->mOffset += written; in onDrainAudioQueue()
1191 size_t copiedFrames = written / mAudioSink->frameSize(); in onDrainAudioQueue()
1206 if (written != (ssize_t)copy) { in onDrainAudioQueue()
1226 ALOGV("AudioSink write short frame count %zd < %zu", written, copy); in onDrainAudioQueue()
1824 uint32_t written; in onAudioSinkChanged() local
1825 if (mAudioSink->getFramesWritten(&written) == OK) { in onAudioSinkChanged()
[all …]

12345678910