Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/wilhelm/tests/sandbox/streamSource/
DslesTestPlayStream.cpp38 #define BUFFER_SIZE (20*MPEG2_TS_BLOCK_SIZE) macro
42 char dataCache[BUFFER_SIZE * NB_BUFFERS];
108 size_t nbRead = fread((void*)dataCache, 1, BUFFER_SIZE*(NB_BUFFERS/2), file); in AndroidBufferQueueCallback()
109 if (nbRead == BUFFER_SIZE*(NB_BUFFERS/2)) { in AndroidBufferQueueCallback()
112 dataCache + i*BUFFER_SIZE, in AndroidBufferQueueCallback()
113 BUFFER_SIZE, NULL, 0); in AndroidBufferQueueCallback()
150 size_t nbRead = fread((void*)pBufferData, 1, BUFFER_SIZE, file); in AndroidBufferQueueCallback()
294 if (fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file) <= 0) { in TestPlayStream()
302 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, NULL, 0); in TestPlayStream()
308 if (fread(dataCache, 1, BUFFER_SIZE * 1, file) <= 0) { in TestPlayStream()
[all …]
/frameworks/wilhelm/tests/native-media/jni/
Dnative-media-jni.c60 #define BUFFER_SIZE (BLOCKS_PER_BUFFER*MPEG2_TS_BLOCK_SIZE) macro
64 char dataCache[BUFFER_SIZE * NB_BUFFERS];
142 assert(BUFFER_SIZE == dataSize); in AndroidBufferQueueCallback()
144 &dataCache[BUFFER_SIZE * NB_BUFFERS]); in AndroidBufferQueueCallback()
145 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE)); in AndroidBufferQueueCallback()
193 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file); in AndroidBufferQueueCallback()
198 nbRead * BUFFER_SIZE /*dataLength*/, in AndroidBufferQueueCallback()
301 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file); in enqueueInitialBuffers()
308 ALOGV("Initially queueing %zu buffers of %u bytes each", nbRead, BUFFER_SIZE); in enqueueInitialBuffers()
324 dataCache + i*BUFFER_SIZE, BUFFER_SIZE, items /*pMsg*/, in enqueueInitialBuffers()
[all …]
/frameworks/native/libs/gui/include/gui/
DTraceUtils.h40 const int BUFFER_SIZE = 256; in atraceFormatBegin() local
42 char buf[BUFFER_SIZE]; in atraceFormatBegin()
45 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in atraceFormatBegin()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DMemoryAccessTask.java26 private final static int BUFFER_SIZE = 32 * 1024 * 1024; field in MemoryAccessTask
34 byte[] memory = new byte[BUFFER_SIZE]; in run()
42 for (int index = 0; index < BUFFER_SIZE; index += BUFFER_STEP) { in run()
/frameworks/multidex/library/src/androidx/multidex/
DZipUtil.java46 private static final int BUFFER_SIZE = 0x4000; field in ZipUtil
111 int length = (int) Math.min(BUFFER_SIZE, stillToRead); in computeCrcOfCentralDir()
112 byte[] buffer = new byte[BUFFER_SIZE]; in computeCrcOfCentralDir()
120 length = (int) Math.min(BUFFER_SIZE, stillToRead); in computeCrcOfCentralDir()
DMultiDexExtractor.java83 private static final int BUFFER_SIZE = 0x4000; field in MultiDexExtractor
397 byte[] buffer = new byte[BUFFER_SIZE]; in extract()
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
DFastDataPerfTest.java46 private static final int BUFFER_SIZE = 4096; field in FastDataPerfTest
54 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream()
67 final FastDataOutput out = new FastDataOutput(os, BUFFER_SIZE); in timeWrite_Local()
79 final BufferedInputStream bis = new BufferedInputStream(is, BUFFER_SIZE); in timeRead_Upstream()
91 final DataInput in = new FastDataInput(is, BUFFER_SIZE); in timeRead_Local()
/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp34 const ssize_t BUFFER_SIZE = 16 * 1024; // 16 KB variable
161 uint8_t cirBuf[BUFFER_SIZE]; in readProcessedDataInStream()
208 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream()
211 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos)); in readProcessedDataInStream()
235 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos)); in readProcessedDataInStream()
256 if (rpos >= BUFFER_SIZE) { in readProcessedDataInStream()
259 if (wpos >= BUFFER_SIZE) { in readProcessedDataInStream()
/frameworks/base/services/core/java/com/android/server/integrity/model/
DBitOutputStream.java28 private static final int BUFFER_SIZE = 4 * 1024; field in BitOutputStream
36 mBuffer = new byte[BUFFER_SIZE]; in BitOutputStream()
68 if (byteToWrite == BUFFER_SIZE) { in setNext()
/frameworks/base/libs/usb/tests/accessorytest/
Daudio.c36 #define BUFFER_SIZE 16384 macro
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { in capture_thread()
174 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); in play_thread()
198 buffers[i] = malloc(BUFFER_SIZE); in init_audio()
/frameworks/base/core/java/android/util/
DBase64InputStream.java32 private static final int BUFFER_SIZE = 2048; field in Base64InputStream
64 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream()
70 coder.output = new byte[coder.maxOutputSize(BUFFER_SIZE)]; in Base64InputStream()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/utils/
DStreamUtils.java30 private static final int BUFFER_SIZE = 1024; field in StreamUtils
41 byte[] buffer = new byte[BUFFER_SIZE]; in inputStreamToString()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DUtils.java27 public static final int BUFFER_SIZE = 8192; field in Utils
30 transferStreamedData(in, out, BUFFER_SIZE); in transferStreamedData()
/frameworks/base/libs/protoutil/src/
DEncodedBuffer.cpp28 const size_t BUFFER_SIZE = 8 * 1024; // 8 KB variable
30 EncodedBuffer::Pointer::Pointer() : Pointer(BUFFER_SIZE) in Pointer()
38 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
86 EncodedBuffer::EncodedBuffer() : EncodedBuffer(BUFFER_SIZE) in EncodedBuffer()
94 chunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in EncodedBuffer()
/frameworks/opt/chips/src/com/android/ex/chips/
DDefaultPhotoManager.java45 private static final int BUFFER_SIZE = 1024*16; field in DefaultPhotoManager
111 byte[] buffer = new byte[BUFFER_SIZE]; in fetchPhotoAsync()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
DScreenRecordingMuxer.java35 private static final int BUFFER_SIZE = 1024 * 4096; field in ScreenRecordingMuxer
84 ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE); in mux()
/frameworks/rs/
DrsList.h9 constexpr size_t BUFFER_SIZE = 64; variable
21 char raw[BUFFER_SIZE - sizeof(LinkedBuffer*)];
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java197 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES; field in VerityBuilder.BufferedDigester
235 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume()
243 if (mBytesDigestedSinceReset == BUFFER_SIZE) { in consume()
262 int lastBlockSize = (int) (mOutput.position() % BUFFER_SIZE); in fillUpLastOutputChunk()
266 mOutput.put(ByteBuffer.allocate(BUFFER_SIZE - lastBlockSize)); in fillUpLastOutputChunk()
/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp33 const int BUFFER_SIZE = 16 * 1024; variable
61 char buf[BUFFER_SIZE]; in DoDataStream()
63 while ((nRead = read(rFd.get(), buf, BUFFER_SIZE)) > 0) { in DoDataStream()
/frameworks/base/services/core/java/com/android/server/
DNativeDaemonConnector.java84 private final int BUFFER_SIZE = 4096; field in NativeDaemonConnector
210 byte[] buffer = new byte[BUFFER_SIZE]; in listenToSocket()
214 int count = inputStream.read(buffer, start, BUFFER_SIZE - start); in listenToSocket()
273 final int remaining = BUFFER_SIZE - start; in listenToSocket()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsics_neon_Resize.S156 .set BUFFER_SIZE, (CHUNKSIZE * 2 + 4) * COMPONENT_COUNT * 2 define
157 .set OSC_STORE, (BUFFER_SIZE + 0)
158 .set OSCSTEP_STORE, (BUFFER_SIZE + 4)
159 .set OSCCTL_STORE, (BUFFER_SIZE + 8)
160 .set AVAIL_STORE, (BUFFER_SIZE + 16)
161 .set SP_STORE, (BUFFER_SIZE + 24) /* should be +20, but rounded up to make a legal constant somew…
184 sub r12, sp, #BUFFER_SIZE + 32
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp92 #define BUFFER_SIZE 2048 macro
188 mBufferMask *= BUFFER_SIZE; in set()
373 if ((unsigned int)(tick + BUFFER_SIZE - mBufferHead) > BUFFER_SIZE * 2) { in decode()
398 int count = (BUFFER_SIZE - (mBufferTail - mBufferHead)) * mSampleRate; in decode()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DModelInterpreter.java46 static final int BUFFER_SIZE = 0x1000; field in LineReader
49 byte mBuffer[] = new byte[BUFFER_SIZE];
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbMidiDevice.java59 private static final int BUFFER_SIZE = 512; field in UsbMidiDevice
213 byte[] buffer = new byte[BUFFER_SIZE]; in openLocked()
/frameworks/base/core/java/com/android/internal/util/
DBinaryXmlSerializer.java98 private static final int BUFFER_SIZE = 32_768; field in BinaryXmlSerializer
127 mOut = new FastDataOutput(os, BUFFER_SIZE); in setOutput()

12