Home
last modified time | relevance | path

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

/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/base/cmds/incidentd/src/
DFdBuffer.cpp33 const ssize_t BUFFER_SIZE = 16 * 1024; // 16 KB variable
37 :mBuffer(new EncodedBuffer(BUFFER_SIZE)), in FdBuffer()
54 if (mBuffer->size() >= MAX_BUFFER_COUNT * BUFFER_SIZE) { in read()
109 if (mBuffer->size() >= MAX_BUFFER_COUNT * BUFFER_SIZE) { in readFully()
153 uint8_t cirBuf[BUFFER_SIZE]; in readProcessedDataInStream()
159 if (mBuffer->size() >= MAX_BUFFER_COUNT * BUFFER_SIZE) { in readProcessedDataInStream()
200 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream()
203 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos)); in readProcessedDataInStream()
227 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos)); in readProcessedDataInStream()
248 if (rpos >= BUFFER_SIZE) { in readProcessedDataInStream()
[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/base/libs/hwui/utils/
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/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/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.cpp27 const size_t BUFFER_SIZE = 8 * 1024; // 8 KB variable
29 EncodedBuffer::Pointer::Pointer() : Pointer(BUFFER_SIZE) in Pointer()
37 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
92 mChunkSize = 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/core/java/android/util/apk/
DVerityBuilder.java193 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES; field in VerityBuilder.BufferedDigester
231 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume()
239 if (mBytesDigestedSinceReset == BUFFER_SIZE) { in consume()
258 int lastBlockSize = (int) (mOutput.position() % BUFFER_SIZE); in fillUpLastOutputChunk()
262 mOutput.put(ByteBuffer.allocate(BUFFER_SIZE - lastBlockSize)); in fillUpLastOutputChunk()
/frameworks/rs/
DrsList.h9 constexpr size_t BUFFER_SIZE = 64; variable
21 char raw[BUFFER_SIZE - sizeof(LinkedBuffer*)];
/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
DrsCpuIntrinsics_advsimd_Resize.S139 .set BUFFER_SIZE, (CHUNKSIZE * 2 + 4) * COMPONENT_COUNT * 2 define
165 sub x12, sp, #BUFFER_SIZE
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp88 #define BUFFER_SIZE 2048 macro
184 mBufferMask *= BUFFER_SIZE; in set()
369 if ((unsigned int)(tick + BUFFER_SIZE - mBufferHead) > BUFFER_SIZE * 2) { in decode()
394 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/jni/
Dandroid_util_Process.cpp709 const size_t BUFFER_SIZE = 4096; in android_os_Process_readProcLines() local
710 char* buffer = (char*)malloc(BUFFER_SIZE); in android_os_Process_readProcLines()
711 int len = read(fd, buffer, BUFFER_SIZE-1); in android_os_Process_readProcLines()
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java121 private static final int BUFFER_SIZE = 65536; field in AdbDebuggingManager
397 byte[] buffer = new byte[BUFFER_SIZE]; in listenToSocket()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt71580 Landroid/util/Base64InputStream;->BUFFER_SIZE:I
105694 Ljava/nio/file/Files;->BUFFER_SIZE:I
110975 Ljava/util/Scanner;->BUFFER_SIZE:I