Home
last modified time | relevance | path

Searched refs:chunkSize (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/av/media/libstagefright/timedtext/
DTextDescriptions2.cpp93 ssize_t chunkSize = U32_AT(tmpData); // size includes size and type in extract3GPPLocalDescriptions() local
96 if (chunkSize <= 8 || chunkSize > size) { in extract3GPPLocalDescriptions()
100 size_t remaining = chunkSize - 8; in extract3GPPLocalDescriptions()
128 data += chunkSize; in extract3GPPLocalDescriptions()
129 size -= chunkSize; in extract3GPPLocalDescriptions()
142 ssize_t chunkSize = U32_AT(data); in extract3GPPGlobalDescriptions() local
148 if (chunkSize <= 8 || size < chunkSize) { in extract3GPPGlobalDescriptions()
181 data += chunkSize; in extract3GPPGlobalDescriptions()
182 size -= chunkSize; in extract3GPPGlobalDescriptions()
DTextDescriptions.cpp104 ssize_t chunkSize = U32_AT(tmpData); // size includes size and type in extract3GPPLocalDescriptions() local
107 if (chunkSize <= 8 || chunkSize > size) { in extract3GPPLocalDescriptions()
111 size_t remaining = chunkSize - 8; in extract3GPPLocalDescriptions()
366 data += chunkSize; in extract3GPPLocalDescriptions()
367 size -= chunkSize; in extract3GPPLocalDescriptions()
380 ssize_t chunkSize = U32_AT(data); in extract3GPPGlobalDescriptions() local
386 if (chunkSize <= 8 || size < chunkSize) { in extract3GPPGlobalDescriptions()
501 data += chunkSize; in extract3GPPGlobalDescriptions()
502 size -= chunkSize; in extract3GPPGlobalDescriptions()
/frameworks/base/opengl/java/android/opengl/
DETC1Util.java172 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); in createTexture() local
173 if (input.read(ioBuffer, 0, chunkSize) != chunkSize) { in createTexture()
176 dataBuffer.put(ioBuffer, 0, chunkSize); in createTexture()
177 i += chunkSize; in createTexture()
219 int chunkSize = Math.min(ioBuffer.length, encodedSize - i); in writeTexture() local
220 dataBuffer.get(ioBuffer, 0, chunkSize); in writeTexture()
221 output.write(ioBuffer, 0, chunkSize); in writeTexture()
222 i += chunkSize; in writeTexture()
/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/
DProtoInputStreamObjectTest.java87 private void testObjectOneChar(int chunkSize) throws IOException { in testObjectOneChar() argument
102 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneChar()
139 private void testObjectOneLargeChar(int chunkSize) throws IOException { in testObjectOneLargeChar() argument
156 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneLargeChar()
193 private void testObjectAndTwoChars(int chunkSize) throws IOException { in testObjectAndTwoChars() argument
213 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectAndTwoChars()
257 private void testComplexObject(int chunkSize) throws IOException { in testComplexObject() argument
283 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testComplexObject()
328 private void testDeepObjects(int chunkSize) throws IOException { in testDeepObjects() argument
352 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testDeepObjects()
DProtoInputStreamBoolTest.java47 private void testRead(int chunkSize) throws IOException { in testRead() argument
65 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
138 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
177 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
263 public void testPacked(int chunkSize) throws IOException { in testPacked() argument
297 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamEnumTest.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
154 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
298 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
354 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamInt32Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
154 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
297 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
353 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamSFixed32Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
152 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
291 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamSInt32Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
152 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
291 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamUInt32Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
154 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
296 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
352 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamFixed32Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
152 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
291 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamInt64Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
84 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
175 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
247 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
346 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
424 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamFixed64Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
177 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
354 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamUInt64Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
83 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
174 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
245 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
344 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
420 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamSFixed64Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
177 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
354 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamSInt64Test.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
81 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
172 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
240 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
339 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
401 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamStringTest.java41 private void testRead(int chunkSize) throws IOException { in testRead() argument
69 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
146 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
195 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
DProtoInputStreamBytesTest.java42 private void testRead(int chunkSize) throws IOException { in testRead() argument
73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
159 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
DProtoInputStreamFloatTest.java42 private void testRead(int chunkSize) throws IOException { in testRead() argument
88 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
189 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
266 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
378 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
446 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
DProtoInputStreamDoubleTest.java42 private void testRead(int chunkSize) throws IOException { in testRead() argument
97 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead()
198 private void testRepeated(int chunkSize) throws IOException { in testRepeated() argument
293 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated()
405 private void testPacked(int chunkSize) throws IOException { in testPacked() argument
493 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked()
/frameworks/av/media/libstagefright/
DJPEGSource.cpp173 uint16_t chunkSize; in parseJPEG() local
174 if (!mSource->getUInt16(i, &chunkSize)) { in parseJPEG()
180 if (chunkSize < 2) { in parseJPEG()
217 i += chunkSize - 2; in parseJPEG()
225 i += chunkSize - 2; in parseJPEG()
/frameworks/base/core/jni/android/graphics/
DNinePatch.cpp69 size_t chunkSize = env->GetArrayLength(obj); in validateNinePatchChunk() local
70 if (chunkSize < (int) (sizeof(Res_png_9patch))) { in validateNinePatchChunk()
75 int8_t* storage = new int8_t[chunkSize]; in validateNinePatchChunk()
77 env->GetByteArrayRegion(obj, 0, chunkSize, reinterpret_cast<jbyte*>(storage)); in validateNinePatchChunk()
/frameworks/base/libs/protoutil/src/
DEncodedBuffer.cpp33 EncodedBuffer::Pointer::Pointer(size_t chunkSize) in Pointer() argument
37 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
89 EncodedBuffer::EncodedBuffer(size_t chunkSize) in EncodedBuffer() argument
92 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in EncodedBuffer()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DByteString.java443 public static ByteString readFrom(InputStream streamToDrain, int chunkSize) in readFrom() argument
445 return readFrom(streamToDrain, chunkSize, chunkSize); in readFrom()
455 int chunkSize = minChunkSize; in readFrom() local
457 ByteString chunk = readChunk(streamToDrain, chunkSize); in readFrom()
462 chunkSize = Math.min(chunkSize * 2, maxChunkSize); in readFrom()
478 private static ByteString readChunk(InputStream in, final int chunkSize) in readChunk() argument
480 final byte[] buf = new byte[chunkSize]; in readChunk()
482 while (bytesRead < chunkSize) { in readChunk()
483 final int count = in.read(buf, bytesRead, chunkSize - bytesRead); in readChunk()
/frameworks/base/libs/protoutil/include/android/util/
DEncodedBuffer.h46 explicit EncodedBuffer(size_t chunkSize);
52 explicit Pointer(size_t chunkSize);

12