Home
last modified time | relevance | path

Searched refs:BUFFER_SIZE (Results 1 – 25 of 31) 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/base/libs/hwui/utils/
DTraceUtils.h41 const int BUFFER_SIZE = 256; in atraceFormatBegin() local
43 char buf[BUFFER_SIZE]; in atraceFormatBegin()
46 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/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/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/base/core/java/android/util/apk/
DVerityBuilder.java169 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES; field in VerityBuilder.BufferedDigester
207 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume()
215 if (mBytesDigestedSinceReset == BUFFER_SIZE) { in consume()
234 int lastBlockSize = (int) (mOutput.position() % BUFFER_SIZE); in fillUpLastOutputChunk()
238 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/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/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/core/jni/
Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp60 static constexpr int BUFFER_SIZE = 256 * 1024; variable
61 static constexpr int BLOCKS_COUNT = BUFFER_SIZE / INCFS_DATA_FILE_BLOCK_SIZE;
430 buffer.reserve(BUFFER_SIZE); in onPrepareImage()
487 constexpr auto capacity = BUFFER_SIZE; in copyToIncFs()
/frameworks/base/core/jni/
Dandroid_util_Process.cpp764 const size_t BUFFER_SIZE = 4096; in android_os_Process_readProcLines() local
765 char* buffer = (char*)malloc(BUFFER_SIZE); in android_os_Process_readProcLines()
766 int len = read(fd, buffer, BUFFER_SIZE-1); in android_os_Process_readProcLines()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/gradle/wrapper/
Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...

12