Home
last modified time | relevance | path

Searched refs:bufSize (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/cmds/incidentd/src/
Dproto_util.cpp36 status_t write_header_section(int fd, const uint8_t* buf, size_t bufSize) { in write_header_section() argument
39 if (bufSize == 0) { in write_header_section()
43 err = write_section_header(fd, FIELD_ID_INCIDENT_HEADER, bufSize); in write_header_section()
48 err = WriteFully(fd, buf, bufSize); in write_header_section()
/frameworks/native/opengl/tools/glgen/specs/gles11/
DGLES32.spec6 GLuint glGetDebugMessageLog ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint…
10 void glGetObjectLabel ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *l…
12 void glGetObjectPtrLabel ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label )
28 …, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data )
29 void glGetnUniformfv ( GLuint program, GLint location, GLsizei bufSize, GLfloat *params )
30 void glGetnUniformiv ( GLuint program, GLint location, GLsizei bufSize, GLint *params )
31 void glGetnUniformuiv ( GLuint program, GLint location, GLsizei bufSize, GLuint *params )
Dchecks.spec79 glGetnUniformfv check params bufSize
80 glGetnUniformiv check params bufSize
81 glGetnUniformuiv check params bufSize
95 glReadnPixels check data bufSize
DGLES31Ext.spec5 GLuint glGetDebugMessageLogKHR ( GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLu…
9 void glGetObjectLabelKHR ( GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar…
11 void glGetObjectPtrLabelKHR ( const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label )
/frameworks/av/media/tests/benchmark/src/native/decoder/
DDecoder.cpp26 uint8_t *buf, int32_t frameID, size_t bufSize) { in readSampleData() argument
34 if (bufSize < bytesCount) { in readSampleData()
54 size_t bufSize; in onInputAvailable() local
55 uint8_t *buf = AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable()
67 readSampleData(mInputBuffer, mOffset, mFrameMetaData, buf, mNumInputFrame, bufSize); in onInputAvailable()
104 size_t bufSize; in onOutputAvailable() local
105 uint8_t *buf = AMediaCodec_getOutputBuffer(mCodec, bufIdx, &bufSize); in onOutputAvailable()
/frameworks/base/opengl/java/android/opengl/
DGLES32.java313 int bufSize, in glGetDebugMessageLog() argument
545 int bufSize, in glReadnPixels() argument
554 int bufSize, in glGetnUniformfv() argument
564 int bufSize, in glGetnUniformfv() argument
573 int bufSize, in glGetnUniformiv() argument
583 int bufSize, in glGetnUniformiv() argument
592 int bufSize, in glGetnUniformuiv() argument
602 int bufSize, in glGetnUniformuiv() argument
DGLES30.java1341 int bufSize, in glGetActiveUniformBlockName() argument
1456 int bufSize, in glGetSynciv() argument
1468 int bufSize, in glGetSynciv() argument
1698 int bufSize, in glGetProgramBinary() argument
1710 int bufSize, in glGetProgramBinary() argument
1802 int bufSize, in glGetInternalformativ() argument
1813 int bufSize, in glGetInternalformativ() argument
/frameworks/av/media/libstagefright/foundation/
Dbase64.cpp31 size_t bufSize = n / 4 * 3; in decodeBase64() local
32 sp<ABuffer> buf = new ABuffer(bufSize); in decodeBase64()
34 if (decodeBase64(buf->data(), &bufSize, s.c_str())) { in decodeBase64()
35 buf->setRange(0, bufSize); in decodeBase64()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp53 size_t bufSize, size_t start, size_t count, in doLayout() argument
58 const minikin::U16StringPiece textBuf(buf, bufSize); in doLayout()
74 size_t count, size_t bufSize, float* advances) { in measureText() argument
76 const minikin::U16StringPiece textBuf(buf, bufSize); in measureText()
DMinikinUtils.h47 size_t bufSize, size_t start, size_t count,
53 size_t start, size_t count, size_t bufSize,
/frameworks/native/opengl/libs/EGL/
DBlobCache_test.cpp160 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_F() enumerator
163 char buf[bufSize]; in TEST_F()
167 for (int i = 0; i < bufSize; i++) { in TEST_F()
210 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_F() enumerator
213 char buf[bufSize]; in TEST_F()
217 for (int i = 0; i < bufSize; i++) { in TEST_F()
221 mBC->set(key, MAX_KEY_SIZE, buf, bufSize); in TEST_F()
222 ASSERT_EQ(size_t(bufSize), mBC->get(key, MAX_KEY_SIZE, nullptr, 0)); in TEST_F()
/frameworks/av/media/extractors/mpeg2/
DMPEG2TSExtractor.cpp210 size_t bufSize; in read() local
211 if (inMeta.findData(kKeyCryptoIV, &bufType, &bufData, &bufSize)) { in read()
212 AMediaFormat_setBuffer(outMeta, AMEDIAFORMAT_KEY_CRYPTO_IV, bufData, bufSize); in read()
214 if (inMeta.findData(kKeyCryptoKey, &bufType, &bufData, &bufSize)) { in read()
215 AMediaFormat_setBuffer(outMeta, AMEDIAFORMAT_KEY_CRYPTO_KEY, bufData, bufSize); in read()
217 if (inMeta.findData(kKeyPlainSizes, &bufType, &bufData, &bufSize)) { in read()
218 AMediaFormat_setBuffer(outMeta, AMEDIAFORMAT_KEY_CRYPTO_PLAIN_SIZES, bufData, bufSize); in read()
220 if (inMeta.findData(kKeyEncryptedSizes, &bufType, &bufData, &bufSize)) { in read()
221 AMediaFormat_setBuffer(outMeta, AMEDIAFORMAT_KEY_CRYPTO_ENCRYPTED_SIZES, bufData, bufSize); in read()
223 if (inMeta.findData(kKeySEI, &bufType, &bufData, &bufSize)) { in read()
[all …]
/frameworks/base/libs/androidfw/
DZipUtils.cpp109 bool Append(uint8_t* buf, size_t bufSize) override { in Append() argument
110 if (mBytesWritten + bufSize > mOutputSize) { in Append()
114 memcpy(mOutput + mBytesWritten, buf, bufSize); in Append()
115 mBytesWritten += bufSize; in Append()
/frameworks/av/media/tests/benchmark/src/native/encoder/
DEncoder.cpp34 size_t bufSize = 0; in onInputAvailable() local
35 char *buf = (char *)AMediaCodec_getInputBuffer(mCodec, bufIdx, &bufSize); in onInputAvailable()
55 if (bufSize < bytesToRead) { in onInputAvailable()
57 mParams.frameSize = bufSize; in onInputAvailable()
58 bytesToRead = bufSize; in onInputAvailable()
61 ALOGE("bytes to read %zu bufSize %zu \n", bytesToRead, bufSize); in onInputAvailable()
/frameworks/av/media/libeffects/testlibs/
DAudioFormatAdapter.h49 template<class T, size_t bufSize>
65 mMaxSamplesPerCall = bufSize / nChannels; in configure()
116 audio_sample_t mBuffer[bufSize];
/frameworks/native/opengl/libs/GLES2/
Dgl2_api.in163 void API_ENTRY(glGetActiveAttrib)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, G…
164 CALL_GL_API(glGetActiveAttrib, program, index, bufSize, length, size, type, name);
166 void API_ENTRY(glGetActiveUniform)(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, …
167 CALL_GL_API(glGetActiveUniform, program, index, bufSize, length, size, type, name);
196 void API_ENTRY(glGetProgramInfoLog)(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoL…
197 CALL_GL_API(glGetProgramInfoLog, program, bufSize, length, infoLog);
205 void API_ENTRY(glGetShaderInfoLog)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog…
206 CALL_GL_API(glGetShaderInfoLog, shader, bufSize, length, infoLog);
211 void API_ENTRY(glGetShaderSource)(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source) {
212 CALL_GL_API(glGetShaderSource, shader, bufSize, length, source);
[all …]
Dgl2ext_api.in13 GLuint API_ENTRY(glGetDebugMessageLogKHR)(GLuint count, GLsizei bufSize, GLenum *sources, GLenum *t…
14 …CALL_GL_API_RETURN(glGetDebugMessageLogKHR, count, bufSize, sources, types, ids, severities, lengt…
25 void API_ENTRY(glGetObjectLabelKHR)(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *lengt…
26 CALL_GL_API(glGetObjectLabelKHR, identifier, name, bufSize, length, label);
31 void API_ENTRY(glGetObjectPtrLabelKHR)(const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *l…
32 CALL_GL_API(glGetObjectPtrLabelKHR, ptr, bufSize, length, label);
43 … GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void *data) {
44 CALL_GL_API(glReadnPixelsKHR, x, y, width, height, format, type, bufSize, data);
46 void API_ENTRY(glGetnUniformfvKHR)(GLuint program, GLint location, GLsizei bufSize, GLfloat *params…
47 CALL_GL_API(glGetnUniformfvKHR, program, location, bufSize, params);
[all …]
/frameworks/native/libs/ui/
DGraphicBufferAllocator.cpp152 size_t bufSize; in allocateHelper() local
158 bufSize = static_cast<size_t>(width) * height * bpp; in allocateHelper()
160 bufSize = static_cast<size_t>((*stride)) * height * bpp; in allocateHelper()
172 rec.size = bufSize; in allocateHelper()
/frameworks/native/cmds/atrace/
Datrace.cpp941 constexpr size_t bufSize = 64*1024; in dumpTrace() local
942 std::unique_ptr<uint8_t> in(new uint8_t[bufSize]); in dumpTrace()
943 std::unique_ptr<uint8_t> out(new uint8_t[bufSize]); in dumpTrace()
953 zs.avail_out = bufSize; in dumpTrace()
959 result = read(traceFD, in.get(), bufSize); in dumpTrace()
975 result = write(outFd, out.get(), bufSize); in dumpTrace()
976 if ((size_t)result < bufSize) { in dumpTrace()
980 zs.avail_out = bufSize; // skip the final write in dumpTrace()
984 zs.avail_out = bufSize; in dumpTrace()
993 if (zs.avail_out < bufSize) { in dumpTrace()
[all …]
/frameworks/ml/nn/driver/cache/BlobCache/
DBlobCache_test.cpp223 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_P() enumerator
226 char buf[bufSize]; in TEST_P()
230 for (int i = 0; i < bufSize; i++) { in TEST_P()
272 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_P() enumerator
275 char buf[bufSize]; in TEST_P()
279 for (int i = 0; i < bufSize; i++) { in TEST_P()
283 mBC->set(key, MAX_KEY_SIZE, buf, bufSize); in TEST_P()
284 ASSERT_EQ(size_t(bufSize), mBC->get(key, MAX_KEY_SIZE, NULL, 0)); in TEST_P()
/frameworks/base/core/jni/
Dandroid_opengl_GLES32.cpp595 …(JNIEnv *_env, jobject _this, jint count, jint bufSize, jintArray sources_ref, jint sourcesOffset,… in android_glGetDebugMessageLog__II_3II_3II_3II_3II_3II_3BI() argument
1012 …s, jint x, jint y, jint width, jint height, jint format, jint type, jint bufSize, jobject data_buf… in android_glReadnPixels__IIIIIIILjava_nio_Buffer_2() argument
1028 if (_remaining < bufSize) { in android_glReadnPixels__IIIIIIILjava_nio_Buffer_2()
1045 (GLsizei)bufSize, in android_glReadnPixels__IIIIIIILjava_nio_Buffer_2()
1061 …(JNIEnv *_env, jobject _this, jint program, jint location, jint bufSize, jfloatArray params_ref, j… in android_glGetnUniformfv__III_3FI() argument
1082 if (_remaining < bufSize) { in android_glGetnUniformfv__III_3FI()
1095 (GLsizei)bufSize, in android_glGetnUniformfv__III_3FI()
1112 (JNIEnv *_env, jobject _this, jint program, jint location, jint bufSize, jobject params_buf) { in android_glGetnUniformfv__IIILjava_nio_FloatBuffer_2() argument
1128 if (_remaining < bufSize) { in android_glGetnUniformfv__IIILjava_nio_FloatBuffer_2()
1141 (GLsizei)bufSize, in android_glGetnUniformfv__IIILjava_nio_FloatBuffer_2()
[all …]
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DEncoder.java285 int bufSize = inputBuffer.capacity(); in onInputAvailable() local
291 if (bufSize < bytesToRead) { in onInputAvailable()
293 mFrameSize = bufSize; in onInputAvailable()
294 bytesToRead = bufSize; in onInputAvailable()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistory.java287 int bufSize = p.readInt(); in getNextParcel() local
289 mCurrentParcelEnd = curPos + bufSize; in getNextParcel()
307 final int bufSize = p.readInt(); in getNextParcel() local
309 mCurrentParcelEnd = curPos + bufSize; in getNextParcel()
/frameworks/native/opengl/include/GLES3/
Dgl32.h439 typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize
440 …ENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length,…
450 typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *l…
453 typedef void (GL_APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *len…
455 typedef void (GL_APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *leng…
582 GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsiz…
583 GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsi…
593 GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, …
596 GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GL…
598 GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLc…
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglGetActiveUniformBlockName.java6 int bufSize, in glGetActiveUniformBlockName() argument

123