Searched defs:BUFFER_SIZE (Results 1 - 12 of 12) sorted by path

/frameworks/base/core/java/android/util/
H A DBase64InputStream.java32 private static final int BUFFER_SIZE = 2048; field in class:Base64InputStream
64 inputBuffer = new byte[BUFFER_SIZE];
70 coder.output = new byte[coder.maxOutputSize(BUFFER_SIZE)];
/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp543 const size_t BUFFER_SIZE = 2048; local
544 char* buffer = (char*)malloc(BUFFER_SIZE);
545 int len = read(fd, buffer, BUFFER_SIZE-1);
/frameworks/base/libs/hwui/
H A DDisplayListLogBuffer.cpp19 // BUFFER_SIZE size must be one more than a multiple of COMMAND_SIZE to ensure
22 #define BUFFER_SIZE ((NUM_COMMANDS) + 1) macro
59 mBufferFirst = (OpLog*) malloc(BUFFER_SIZE * sizeof(OpLog));
61 mBufferLast = mBufferFirst + BUFFER_SIZE - 1;
/frameworks/base/services/java/com/android/server/
H A DNativeDaemonConnector.java70 private final int BUFFER_SIZE = 4096; field in class:NativeDaemonConnector
137 byte[] buffer = new byte[BUFFER_SIZE];
141 int count = inputStream.read(buffer, start, BUFFER_SIZE - start);
182 final int remaining = BUFFER_SIZE - start;
H A DNotificationManagerService.java278 static final int BUFFER_SIZE = 250; field in class:NotificationManagerService.Archive
279 ArrayDeque<StatusBarNotification> mBuffer = new ArrayDeque<StatusBarNotification>(BUFFER_SIZE);
295 if (mBuffer.size() == BUFFER_SIZE) {
355 if (count == 0) count = Archive.BUFFER_SIZE;
367 if (count == 0) count = Archive.BUFFER_SIZE;
/frameworks/base/services/java/com/android/server/usb/
H A DUsbDebuggingManager.java52 private final int BUFFER_SIZE = 4096; field in class:UsbDebuggingManager
69 byte[] buffer = new byte[BUFFER_SIZE];
/frameworks/ex/chips/src/com/android/ex/chips/
H A DBaseRecipientAdapter.java791 private static final int BUFFER_SIZE = 1024*16; field in class:BaseRecipientAdapter
818 byte[] buffer = new byte[BUFFER_SIZE];
/frameworks/opt/net/voip/src/jni/rtp/
H A DAudioGroup.cpp88 #define BUFFER_SIZE 2048 macro
184 mBufferMask *= BUFFER_SIZE;
369 if ((unsigned int)(tick + BUFFER_SIZE - mBufferHead) > BUFFER_SIZE * 2) {
394 int count = (BUFFER_SIZE - (mBufferTail - mBufferHead)) * mSampleRate;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
H A DModelInterpreter.java44 static final int BUFFER_SIZE = 0x1000; field in class:LineReader
47 byte mBuffer[] = new byte[BUFFER_SIZE];
/frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/platform/
H A DSurfaceFlingerHelper.java38 private static int BUFFER_SIZE = 128; field in class:SurfaceFlingerHelper
49 private static List<List<String>> mFrameBufferData = new ArrayList<List<String>>(BUFFER_SIZE);
58 private static long[] mDeltaVsync = new long[BUFFER_SIZE];
61 private static long[] mDelta2Vsync = new long[BUFFER_SIZE];
67 private static double[] mNormalizedDelta2Vsync = new double[BUFFER_SIZE];
68 private static int[] mRoundNormalizedDelta2Vsync = new int[BUFFER_SIZE];
/frameworks/wilhelm/tests/native-media/jni/
H A 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);
144 &dataCache[BUFFER_SIZE * NB_BUFFERS]);
145 assert(0 == (((char *) pBufferData - dataCache) % BUFFER_SIZE));
193 nbRead = fread(pBufferData, BUFFER_SIZE, 1, file);
198 nbRead * BUFFER_SIZE /*dataLength*/,
301 nbRead = fread(dataCache, BUFFER_SIZE, NB_BUFFERS, file);
308 ALOGV("Initially queueing %u buffers of %u bytes each", nbRead, BUFFER_SIZE);
324 dataCache + i*BUFFER_SIZE, BUFFER_SIZ
[all...]
/frameworks/wilhelm/tests/sandbox/streamSource/
H A DslesTestPlayStream.cpp38 #define BUFFER_SIZE (20*MPEG2_TS_BLOCK_SIZE) macro
42 char dataCache[BUFFER_SIZE * NB_BUFFERS];
83 // assert(BUFFER_SIZE <= dataSize);
108 size_t nbRead = fread((void*)dataCache, 1, BUFFER_SIZE*(NB_BUFFERS/2), file);
109 if (nbRead == BUFFER_SIZE*(NB_BUFFERS/2)) {
112 dataCache + i*BUFFER_SIZE,
113 BUFFER_SIZE, NULL, 0);
150 size_t nbRead = fread((void*)pBufferData, 1, BUFFER_SIZE, file);
297 if (fread(dataCache, 1, BUFFER_SIZE * NB_BUFFERS, file) <= 0) {
305 dataCache + i*BUFFER_SIZE, BUFFER_SIZ
[all...]

Completed in 302 milliseconds