Searched refs:buf (Results 101 - 125 of 356) sorted by relevance

1234567891011>>

/frameworks/native/opengl/tools/glgen/stubs/gles11/
H A DglGetShaderSource.cpp102 char* buf = (char*) malloc(shaderLen); local
103 if (buf == NULL) {
107 glGetShaderSource(shader, shaderLen, NULL, buf);
108 jstring result = _env->NewStringUTF(buf);
109 free(buf);
H A DglGetActiveAttrib.cpp194 char* buf = (char*) malloc(len); local
196 if (buf == NULL) {
241 (char *)buf
253 result = _env->NewStringUTF(buf);
255 if (buf) {
256 free(buf);
290 char* buf = (char*) malloc(len); local
292 if (buf == NULL) {
314 (char *)buf
323 result = _env->NewStringUTF(buf);
[all...]
H A DglGetActiveUniform.cpp196 char* buf = (char*) malloc(len); local
198 if (buf == NULL) {
244 (char *)buf
257 result = _env->NewStringUTF(buf);
259 if (buf) {
260 free(buf);
290 char* buf = (char*) malloc(len); local
292 if (buf == NULL) {
315 (char *)buf
324 result = _env->NewStringUTF(buf);
[all...]
H A DglGetTransformFeedbackVarying.cpp194 char* buf = (char*) malloc(len); local
196 if (buf == NULL) {
241 (char *)buf
253 result = _env->NewStringUTF(buf);
255 if (buf) {
256 free(buf);
290 char* buf = (char*) malloc(len); local
292 if (buf == NULL) {
314 (char *)buf
323 result = _env->NewStringUTF(buf);
[all...]
/frameworks/rs/cpu_ref/linkloader/utils/
H A Dserialize.h69 ArchiveReader(unsigned char const *buf = NULL, size_t size = 0)
70 : buf_begin(buf), buf_end(buf + size),
71 cursor(buf), cursor_base(NULL), good(buf != NULL) {
/frameworks/base/libs/common_time/
H A Dutils.cpp122 char buf[1024]; local
128 res = snprintf(buf, sizeof(buf), "\n%s\n", mHeader);
130 write(fd, buf, res);
153 res = snprintf(buf, sizeof(buf), "[%2zu] %s.%03ld :: %s%s\n",
160 write(fd, buf, res);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessList.java291 ByteBuffer buf = ByteBuffer.allocate(4 * (2*mOomAdj.length + 1));
292 buf.putInt(LMK_TARGET);
294 buf.putInt((mOomMinFree[i]*1024)/PAGE_SIZE);
295 buf.putInt(mOomAdj[i]);
298 writeLmkd(buf);
605 ByteBuffer buf = ByteBuffer.allocate(4 * 4);
606 buf.putInt(LMK_PROCPRIO);
607 buf.putInt(pid);
608 buf.putInt(uid);
609 buf
645 writeLmkd(ByteBuffer buf) argument
[all...]
/frameworks/av/cmds/screenrecord/
H A DProgram.cpp155 char* buf = new char[infoLen]; local
156 if (buf) {
157 glGetShaderInfoLog(shader, infoLen, NULL, buf);
158 ALOGE("Compile log: %s", buf);
159 delete[] buf;
186 char* buf = new char[bufLength]; local
187 if (buf) {
188 glGetProgramInfoLog(program, bufLength, NULL, buf);
189 ALOGE("Link log: %s", buf);
190 delete[] buf;
[all...]
/frameworks/base/tools/aapt/
H A DApkBuilder.cpp95 char* buf = packageConfigStr.lockBuffer(len); local
96 for (char* end = buf + len; buf < end; ++buf) {
97 if (*buf == '-') {
98 *buf = '_';
H A DZipFile.cpp207 unsigned char* buf = NULL; local
223 buf = new unsigned char[EndOfCentralDir::kMaxEOCDSearch];
224 if (buf == NULL) {
245 if (fread(buf, 1, readAmount, mZipFp) != (size_t) readAmount) {
253 if (buf[i] == 0x50 &&
254 ZipEntry::getLongLE(&buf[i]) == EndOfCentralDir::kSignature)
256 ALOGV("+++ Found EOCD at buf+%d\n", i);
267 result = mEOCD.readBuf(buf + i, readAmount - i);
341 delete[] buf;
1144 bool ZipFile::uncompress(const ZipEntry* pEntry, void* buf) cons
1156 void* buf = malloc(unlen); local
1220 readBuf(const unsigned char* buf, int len) argument
1264 unsigned char buf[kEOCDLen]; local
[all...]
/frameworks/native/libs/gui/tests/
H A DSurface_test.cpp107 ANativeWindowBuffer* buf = 0; local
109 status_t err = native_window_dequeue_buffer_and_wait(anw.get(), &buf);
116 &buf));
119 ASSERT_EQ(NO_ERROR, anw->cancelBuffer(anw.get(), buf, -1));
124 &buf));
125 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf, -1));
/frameworks/av/media/img_utils/include/img_utils/
H A DByteArrayOutput.h55 virtual status_t write(const uint8_t* buf, size_t offset, size_t count);
H A DFileInput.h58 virtual ssize_t read(uint8_t* buf, size_t offset, size_t count);
H A DFileOutput.h35 virtual status_t write(const uint8_t* buf, size_t offset, size_t count);
/frameworks/base/core/java/com/android/internal/util/
H A DHexDump.java106 char[] buf = new char[length * 2];
112 buf[bufIndex++] = HEX_DIGITS[(b >>> 4) & 0x0F];
113 buf[bufIndex++] = HEX_DIGITS[b & 0x0F];
116 return new String(buf);
/frameworks/base/opengl/java/android/opengl/
H A DEGLLogWrapper.java496 StringBuilder buf = new StringBuilder();
497 buf.append("{\n");
501 buf.append(" [" + index + "] = ");
503 buf.append("out of bounds");
505 buf.append(arr[index]);
507 buf.append('\n');
509 buf.append("}");
510 return buf.toString();
514 StringBuilder buf = new StringBuilder();
515 buf
[all...]
/frameworks/minikin/sample/
H A DMinikinSkia.h17 // If buf is NULL, just update size
18 bool GetTable(uint32_t tag, uint8_t *buf, size_t *size);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_transport.h46 * Receive @len bytes of data into @buf from the remote end. This is a blocking call.
49 int receive(void *buf, size_t len);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlingerConsumer.cpp72 int buf = item.mBuf; local
73 if (rejecter && rejecter->reject(mSlots[buf].mGraphicBuffer, item)) {
74 releaseBufferLocked(buf, mSlots[buf].mGraphicBuffer, EGL_NO_SYNC_KHR);
/frameworks/av/media/ndk/
H A DNdkMediaFormat.cpp170 sp<ABuffer> buf; local
171 if (format->mFormat->findBuffer(name, &buf)) {
172 *data = buf->data() + buf->offset();
173 *outsize = buf->size();
224 sp<ABuffer> buf = new ABuffer(size); local
225 memcpy(buf->data(), data, size);
226 buf->setRange(0, size);
228 format->mFormat->setBuffer(name, buf);
/frameworks/base/core/jni/
H A Dandroid_backup_BackupHelperDispatcher.cpp49 char* buf; local
102 buf = keyPrefix.lockBuffer(flattenedHeader.nameLength);
103 if (buf == NULL) {
108 amt = read(fd, buf, flattenedHeader.nameLength);
109 buf[flattenedHeader.nameLength] = 0;
175 const char* buf; local
194 buf = env->GetStringUTFChars(nameObj, NULL);
195 err = write(fd, buf, header.nameLength);
196 env->ReleaseStringUTFChars(nameObj, buf);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifData.java229 byte[] buf = new byte[tag.getComponentCount()];
230 tag.getBytes(buf);
233 System.arraycopy(buf, 0, code, 0, 8);
237 return new String(buf, 8, buf.length - 8, "US-ASCII");
239 return new String(buf, 8, buf.length - 8, "EUC-JP");
241 return new String(buf, 8, buf.length - 8, "UTF-16");
H A DExifModifier.java155 byte buf[] = tag.getStringByte();
156 if (buf.length == tag.getComponentCount()) {
157 buf[buf.length - 1] = 0;
158 mByteBuffer.put(buf);
160 mByteBuffer.put(buf);
180 buf = new byte[tag.getComponentCount()];
181 tag.getBytes(buf);
182 mByteBuffer.put(buf);
/frameworks/rs/cpu_ref/linkloader/android/
H A Dlibrsloader.cpp50 extern "C" RSExecRef rsloaderCreateExec(unsigned char const *buf, argument
54 RSExecRef object = rsloaderLoadExecutable(buf, buf_size);
67 extern "C" RSExecRef rsloaderLoadExecutable(unsigned char const *buf, argument
69 ArchiveReaderLE AR(buf, buf_size);
97 unsigned char *buf) {
106 llvm::ELF::Elf64_Ehdr* header = reinterpret_cast<llvm::ELF::Elf64_Ehdr*>(buf);
108 llvm::ELF::Elf32_Ehdr* header = reinterpret_cast<llvm::ELF::Elf32_Ehdr*>(buf);
113 reinterpret_cast<llvm::ELF::Elf64_Shdr*>(buf + header->e_shoff);
116 reinterpret_cast<llvm::ELF::Elf32_Shdr*>(buf + header->e_shoff);
96 rsloaderUpdateSectionHeaders(RSExecRef object_, unsigned char *buf) argument
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp213 char* buf = (char*) malloc(infoLen); local
214 if (buf) {
215 glGetShaderInfoLog(shader, infoLen, NULL, buf);
216 printf("Shader compile log:\n%s\n", buf);
217 free(buf);
221 char* buf = (char*) malloc(0x1000); local
222 if (buf) {
223 glGetShaderInfoLog(shader, 0x1000, NULL, buf);
224 printf("Shader compile log:\n%s\n", buf);
225 free(buf);
269 char* buf = (char*) malloc(bufLength); local
540 fillYV12Buffer(uint8_t* buf, int w, int h, int stride) argument
570 fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, const android_native_rect_t& rect) argument
[all...]

Completed in 4808 milliseconds

1234567891011>>