Home
last modified time | relevance | path

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

12

/frameworks/native/libs/gui/include/gui/
DTraceUtils.h49 const int BUFFER_SIZE = 256; in atraceFormatBegin() local
51 char buf[BUFFER_SIZE]; in atraceFormatBegin()
54 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in atraceFormatBegin()
61 const int BUFFER_SIZE = 256; in instantFormat() local
63 char buf[BUFFER_SIZE]; in instantFormat()
66 vsnprintf(buf, BUFFER_SIZE, fmt, ap); in instantFormat()
/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/core/tests/coretests/src/android/view/contentcapture/
DContentCaptureManagerTest.java46 private static final int BUFFER_SIZE = 100; field in ContentCaptureManagerTest
76 BUFFER_SIZE, in testConstructor_contentProtection_disabled_bufferNotCreated()
110 BUFFER_SIZE, in testConstructor_contentProtection_enabled_bufferCreated()
120 ContentCaptureEvent[] expected = new ContentCaptureEvent[BUFFER_SIZE]; in testConstructor_contentProtection_enabled_bufferCreated()
122 for (int i = 0; i < BUFFER_SIZE + offset; i++) { in testConstructor_contentProtection_enabled_bufferCreated()
125 expected[(i + BUFFER_SIZE - offset) % BUFFER_SIZE] = event; in testConstructor_contentProtection_enabled_bufferCreated()
DMainContentCaptureSessionV2Test.java74 private static final int BUFFER_SIZE = 100; field in MainContentCaptureSessionV2Test
137 -BUFFER_SIZE, in onSessionStarted_contentProtectionNoBuffer_processorNotCreated()
158 BUFFER_SIZE, in onSessionStarted_contentProtectionNoGroups_processorNotCreated()
446 for (int i = 0; i < BUFFER_SIZE - 1; i++) { in notifyViewAppearedBelowMaximumBufferSize()
455 assertThat(session.mEventProcessQueue).hasSize(BUFFER_SIZE - 1); in notifyViewAppearedBelowMaximumBufferSize()
468 for (int i = 0; i < BUFFER_SIZE; i++) { in notifyViewAppearedExactAsMaximumBufferSize()
490 for (int i = 0; i < BUFFER_SIZE * 2 + 1; i++) { in notifyViewAppearedAboveMaximumBufferSize()
531 BUFFER_SIZE, in createOptions()
547 BUFFER_SIZE, in createOptions()
DMainContentCaptureSessionTest.java74 private static final int BUFFER_SIZE = 100; field in MainContentCaptureSessionTest
137 -BUFFER_SIZE, in onSessionStarted_contentProtectionNoBuffer_processorNotCreated()
158 BUFFER_SIZE, in onSessionStarted_contentProtectionNoGroups_processorNotCreated()
465 BUFFER_SIZE, in createOptions()
481 BUFFER_SIZE, in createOptions()
/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()
/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.java33 private static final int BUFFER_SIZE = 2048; field in Base64InputStream
65 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream()
71 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.cpp29 constexpr size_t BUFFER_SIZE = 8 * 1024; // 8 KB variable
32 EncodedBuffer::Pointer::Pointer() : Pointer(BUFFER_SIZE) in Pointer()
40 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
88 EncodedBuffer::EncodedBuffer() : EncodedBuffer(BUFFER_SIZE) in EncodedBuffer()
96 chunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in EncodedBuffer()
/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
DFastDataPerfTest.java49 private static final int BUFFER_SIZE = 4096; field in FastDataPerfTest
57 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream()
106 final BufferedInputStream bis = new BufferedInputStream(is, BUFFER_SIZE); in timeRead_Upstream()
/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
86 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.java178 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES; field in VerityBuilder.BufferedDigester
216 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume()
224 if (mBytesDigestedSinceReset == BUFFER_SIZE) { in consume()
243 int lastBlockSize = (int) (mOutput.position() % BUFFER_SIZE); in fillUpLastOutputChunk()
247 mOutput.put(ByteBuffer.allocate(BUFFER_SIZE - lastBlockSize)); in fillUpLastOutputChunk()
/frameworks/base/core/tests/coretests/src/android/view/contentprotection/
DContentProtectionEventProcessorTest.java108 private static final int BUFFER_SIZE = 150; field in ContentProtectionEventProcessorTest
115 BUFFER_SIZE,
346 for (int i = 0; i < BUFFER_SIZE - 2; i++) { in processEvent_loginDetected_true_belowResetLimit()
362 for (int i = 0; i < BUFFER_SIZE - 1; i++) { in processEvent_loginDetected_false_aboveResetLimit()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/
DWireBuffer.java24 private static final int BUFFER_SIZE = 1024 * 1024 * 1; field in WireBuffer
37 this(BUFFER_SIZE); in WireBuffer()
/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/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/rs/toolkit/
DResize_neon.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

12