/cts/suite/cts/deviceTests/dram/jni/ |
MemoryNativeJni.cpp | 30 jclass clazz, jint bufferSize, jint repetition) 32 char* src = new char[bufferSize]; 33 char* dst = new char[bufferSize]; 40 memset(src, 0, bufferSize); 41 memset(dst, 0, bufferSize); 44 memcpy(dst, src, bufferSize); 45 src[bufferSize - 1] = i & 0xff; 54 jclass clazz, jint bufferSize, jint repetition, jint c) 56 char* dst = new char[bufferSize]; 62 memset(dst, 0, bufferSize); [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/output/ |
InstanceOutputBufferProvider.java | 24 private final int bufferSize; 26 public InstanceOutputBufferProvider(int bufferSize) { 27 this.bufferSize = bufferSize; 32 return new StringBuilder(bufferSize);
|
/external/skia/tests/ |
FrontBufferedStreamTest.cpp | 38 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { 41 SkAutoTUnref<SkStream> bufferedStream(SkFrontBufferedStream::Create(&memStream, bufferSize)); 44 test_read(reporter, bufferedStream, gAbcs, bufferSize / 2); 49 test_read(reporter, bufferedStream, gAbcs, bufferSize / 4); 52 test_read(reporter, bufferedStream, gAbcs + bufferedStream->getPosition(), bufferSize / 2); 57 test_read(reporter, bufferedStream, gAbcs, bufferSize << 1); 65 static void test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) { 67 SkAutoTUnref<SkStream> bufferedStream(SkFrontBufferedStream::Create(&memStream, bufferSize)); 70 test_read(reporter, bufferedStream, gAbcs, bufferSize); 76 test_read(reporter, bufferedStream, gAbcs, bufferSize); [all...] |
/external/skia/tools/ |
win_lcid.cpp | 7 int bufferSize; 9 bufferSize = GetLocaleInfoEx(pStr, LOCALE_SENGLANGUAGE, wcBuffer, BUFFER_SIZE); 10 if (bufferSize == 0) {
|
/cts/suite/cts/deviceTests/dram/src/com/android/cts/dram/ |
MemoryNative.java | 25 * with each having the size of bufferSize. 26 * @param bufferSize 30 public static native double runMemcpy(int bufferSize, int repetition); 34 * with each having the size of bufferSize. 35 * @param bufferSize 40 public static native double runMemset(int bufferSize, int repetition, int c);
|
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/ |
BufferedResourceLoader.java | 33 private int bufferSize = DEFAULT_BUFFER_SIZE; 40 return reader == null ? null : new BufferedReader(reader, bufferSize); 44 return bufferSize; 47 public void setBufferSize(int bufferSize) { 48 this.bufferSize = bufferSize;
|
/external/lzma/CPP/7zip/Common/ |
InBuffer.cpp | 17 bool CInBuffer::Create(UInt32 bufferSize)
20 if (bufferSize < kMinBlockSize)
21 bufferSize = kMinBlockSize;
22 if (_bufferBase != 0 && _bufferSize == bufferSize)
25 _bufferSize = bufferSize;
26 _bufferBase = (Byte *)::MidAlloc(bufferSize);
|
OutBuffer.cpp | 9 bool COutBuffer::Create(UInt32 bufferSize)
12 if (bufferSize < kMinBlockSize)
13 bufferSize = kMinBlockSize;
14 if (_buffer != 0 && _bufferSize == bufferSize)
17 _bufferSize = bufferSize;
18 _buffer = (Byte *)::MidAlloc(bufferSize);
|
/external/chromium_org/third_party/skia/src/images/ |
SkStreamHelpers.cpp | 27 const size_t bufferSize = 256 * 1024; // 256KB 28 char buffer[bufferSize]; 31 size_t bytesRead = stream->read(buffer, bufferSize);
|
/external/lzma/CS/7zip/Common/ |
InBuffer.cs | 15 public InBuffer(uint bufferSize)
17 m_Buffer = new byte[bufferSize];
18 m_BufferSize = bufferSize;
|
OutBuffer.cs | 13 public OutBuffer(uint bufferSize)
15 m_Buffer = new byte[bufferSize];
16 m_BufferSize = bufferSize;
|
/external/skia/src/images/ |
SkStreamHelpers.cpp | 27 const size_t bufferSize = 256 * 1024; // 256KB 28 char buffer[bufferSize]; 31 size_t bytesRead = stream->read(buffer, bufferSize);
|
/external/qemu/distrib/sdl-1.2.15/src/audio/nds/ |
sound9.c | 27 void SoundSystemInit(u32 rate,u32 buffersize,u8 channel,u8 format) 32 soundsystem->buffersize = buffersize; 34 soundsystem->buffersize = buffersize * sizeof(short); 36 soundsystem->mixbuffer = (s8*)SDL_malloc(soundsystem->buffersize);
|
/cts/suite/audio_quality/lib/src/audio/ |
AudioSignalFactory.cpp | 27 int bufferSize = samples * (stereo? 2 : 1) * BPS; 28 android::sp<Buffer> buffer(new Buffer(bufferSize)); 48 int bufferSize = samples * (stereo? 2 : 1) * BPS; 49 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize)); 73 int bufferSize = samples * (stereo? 2 : 1) * BPS; 74 android::sp<Buffer> buffer(new Buffer(bufferSize, bufferSize));
|
/device/generic/goldfish/opengl/system/renderControl_enc/ |
renderControl.attrib | 13 len buffer bufferSize 17 len buffer bufferSize
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
flagparser.c | 16 static void extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, UErrorCode *status); 17 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 91 static void extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, UErrorCode *status) { 99 offset = getFlagOffset(buffer, bufferSize); 127 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { 130 for (offset = 0; offset < bufferSize;offset++) { 137 if (offset == bufferSize || (offset - 1) == bufferSize) {
|
/external/expat/tests/benchmark/ |
benchmark.c | 21 "usage: %s [-n] filename bufferSize nr_of_loops\n", prog); 31 int nrOfLoops, bufferSize, fileSize, i, isFinal; 61 bufferSize = atoi (argv[j + 2]); 63 if (bufferSize <= 0 || nrOfLoops <= 0) { 86 if (parseBufferSize <= bufferSize) 89 parseBufferSize = bufferSize; 100 XMLBufPtr += bufferSize; 112 nrOfLoops, bufferSize, cpuTime / (double) nrOfLoops);
|
/sdk/emulator/opengl/host/libs/renderControl_dec/ |
renderControl.attrib | 13 len buffer bufferSize 17 len buffer bufferSize
|
/external/clang/lib/AST/ |
NestedNameSpecifier.cpp | 399 void Append(char *Start, char *End, char *&Buffer, unsigned &BufferSize, 401 if (BufferSize + (End - Start) > BufferCapacity) { 406 (unsigned)(BufferSize + (End - Start))); 408 memcpy(NewBuffer, Buffer, BufferSize); 416 memcpy(Buffer + BufferSize, Start, End - Start); 417 BufferSize += End-Start; 422 unsigned &BufferSize, unsigned &BufferCapacity) { 426 Buffer, BufferSize, BufferCapacity); 430 void SavePointer(void *Ptr, char *&Buffer, unsigned &BufferSize, 434 Buffer, BufferSize, BufferCapacity) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
AudioRecord_BufferSizeTest.java | 63 int bufferSize = AudioRecord.getMinBufferSize(sampleRateInHz, CHANNEL_CONFIG, AUDIO_FORMAT); 64 byte[] buffer = new byte[bufferSize]; 65 assertTrue(bufferSize > 0); 67 createAudioRecord(sampleRateInHz, bufferSize); 73 assertTrue(mAudioRecord.read(buffer, 0, bufferSize) > 0); 81 private void createAudioRecord(final int sampleRateInHz, final int bufferSize) { 83 CHANNEL_CONFIG, AUDIO_FORMAT, bufferSize);
|
/device/generic/goldfish/libqemu/ |
test_guest_2.c | 57 int bufferSize = 16384; 132 bufferSize = size; 152 buffer = malloc(bufferSize); 153 buffer2 = malloc(bufferSize); 155 for (nn = 0; nn < bufferSize; nn++) { 163 int ret = pipe_send(pipe, buffer, bufferSize); 167 fprintf(stderr,"%d: Sending %d bytes failed: %s\n", count, bufferSize, strerror(errno)); 174 len = bufferSize; 189 if (memcmp(buffer, buffer2, bufferSize) != 0) { 194 for (nn = 0; nn < bufferSize; ) { [all...] |
/external/chromium_org/third_party/angle/src/libGLESv2/renderer/ |
IndexBuffer11.h | 24 virtual bool initialize(unsigned int bufferSize, GLenum indexType, bool dynamic); 33 virtual bool setSize(unsigned int bufferSize, GLenum indexType);
|
IndexBuffer9.h | 24 virtual bool initialize(unsigned int bufferSize, GLenum indexType, bool dynamic); 33 virtual bool setSize(unsigned int bufferSize, GLenum indexType);
|
/external/icu4c/tools/toolutil/ |
flagparser.c | 16 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const char ** flagNames, int32_t numOfFlags, UErrorCode *status); 17 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize); 108 static int32_t extractFlag(char* buffer, int32_t bufferSize, char* flag, int32_t flagSize, const char **flagNames, int32_t numOfFlags, UErrorCode *status) { 116 offset = getFlagOffset(buffer, bufferSize); 156 static int32_t getFlagOffset(const char *buffer, int32_t bufferSize) { 159 for (offset = 0; offset < bufferSize;offset++) { 166 if (offset == bufferSize || (offset - 1) == bufferSize) {
|
/external/proguard/src/proguard/io/ |
ManifestRewriter.java | 64 private int bufferSize = 0; 79 if (bufferIndex < bufferSize) 92 bufferSize = 0; 93 buffer[bufferSize++] = '\n'; 99 bufferSize = 0; 105 buffer[bufferSize++] = (char)c2; 113 bufferSize = 0; 117 buffer[bufferSize++] = (char)c3;
|