Searched defs:buf (Results 226 - 250 of 270) sorted by relevance

1234567891011

/frameworks/base/core/jni/
H A Dandroid_opengl_GLES32.cpp246 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local
247 if (buf) {
250 buf += position << elementSizeShift;
255 return (void*) buf;
567 /* void glDebugMessageInsert ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */
570 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jint length, jstring buf) {
576 if (!buf) {
579 _exceptionMessage = "buf == null";
582 _nativebuf = _env->GetStringUTFChars(buf, 0);
595 _env->ReleaseStringUTFChars(buf, _nativebu
569 android_glDebugMessageInsert__IIIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jint length, jstring buf) argument
775 android_glBlendEquationi__II(JNIEnv *_env, jobject _this, jint buf, jint mode) argument
785 android_glBlendEquationSeparatei__III(JNIEnv *_env, jobject _this, jint buf, jint modeRGB, jint modeAlpha) argument
796 android_glBlendFunci__III(JNIEnv *_env, jobject _this, jint buf, jint src, jint dst) argument
807 android_glBlendFuncSeparatei__IIIII(JNIEnv *_env, jobject _this, jint buf, jint srcRGB, jint dstRGB, jint srcAlpha, jint dstAlpha) argument
[all...]
H A Dandroid_os_Debug.cpp968 char buf[BUFSIZ]; local
969 while (size_t n = fread(buf, sizeof(char), BUFSIZ, in)) {
970 fwrite(buf, sizeof(char), n, fp);
H A Dandroid_util_Binder.cpp785 char buf[128]; local
786 sprintf(buf, "Restoring bad calling ident: 0x%" PRIx64, token);
787 jniThrowException(env, "java/lang/IllegalStateException", buf);
996 static int getprocname(pid_t pid, char *buf, size_t len) { argument
1003 *buf = '\0';
1006 if (!fgets(buf, len, f)) {
1007 *buf = '\0';
1073 char buf[LOGGER_ENTRY_MAX_PAYLOAD]; local
1074 buf[0] = EVENT_TYPE_LIST;
1075 buf[
[all...]
H A Dandroid_hardware_camera2_DngCreator.cpp317 status_t write(const uint8_t* buf, size_t offset, size_t count);
346 status_t JniOutputStream::write(const uint8_t* buf, size_t offset, size_t count) { argument
350 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset));
390 ssize_t read(uint8_t* buf, size_t offset, size_t count);
416 ssize_t JniInputStream::read(uint8_t* buf, size_t offset, size_t count) { argument
433 mEnv->GetByteArrayRegion(mByteArray, 0, actual, reinterpret_cast<jbyte*>(buf + offset));
479 ssize_t read(uint8_t* buf, size_t offset, size_t count);
502 ssize_t JniInputByteBuffer::read(uint8_t* buf, size_t offset, size_t count) { argument
517 mEnv->GetByteArrayRegion(mByteArray, 0, realCount, reinterpret_cast<jbyte*>(buf + offset));
H A Dandroid_opengl_GLES10.cpp248 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local
249 if (buf) {
252 buf += position << elementSizeShift;
257 return (void*) buf;
H A Dandroid_opengl_GLES11Ext.cpp248 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local
249 if (buf) {
252 buf += position << elementSizeShift;
257 return (void*) buf;
H A Dandroid_opengl_GLES31.cpp246 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local
247 if (buf) {
250 buf += position << elementSizeShift;
255 return (void*) buf;
2831 char* buf = (char*) malloc(infoLen); local
2832 if (buf == NULL) {
2836 glGetProgramPipelineInfoLog(shader, infoLen, NULL, buf);
2837 jstring result = _env->NewStringUTF(buf);
2838 free(buf);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp91 char buf[256]; // 256 chars should be enough for anyone... local
92 strncpy(buf, pkgPath.string(), 255);
93 buf[255] = '\0';
94 char* filename = buf;
770 char buf[1024]; local
771 while (fgets(buf, sizeof(buf), fin)) {
774 char* space = strchr(buf, ' ');
775 char* newline = strchr(buf, '\n');
782 oap.path = String8(buf, spac
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLSurfaceView.java1853 @Override public void write(char[] buf, int offset, int count) { argument
1855 char c = buf[offset + i];
H A DGLES31Ext.java285 // C function void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf )
292 String buf
445 // C function void glBlendEquationiEXT ( GLuint buf, GLenum mode )
448 int buf,
452 // C function void glBlendEquationSeparateiEXT ( GLuint buf, GLenum modeRGB, GLenum modeAlpha )
455 int buf,
460 // C function void glBlendFunciEXT ( GLuint buf, GLenum src, GLenum dst )
463 int buf,
468 // C function void glBlendFuncSeparateiEXT ( GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha )
471 int buf,
447 glBlendEquationiEXT( int buf, int mode ) argument
454 glBlendEquationSeparateiEXT( int buf, int modeRGB, int modeAlpha ) argument
462 glBlendFunciEXT( int buf, int src, int dst ) argument
470 glBlendFuncSeparateiEXT( int buf, int srcRGB, int dstRGB, int srcAlpha, int dstAlpha ) argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLES20Canvas.java942 public int uploadBuffer(FloatBuffer buf) { argument
943 return uploadBuffer(buf, FLOAT_SIZE);
947 public int uploadBuffer(ByteBuffer buf) { argument
948 return uploadBuffer(buf, 1);
/frameworks/base/services/net/java/android/net/dhcp/
H A DDhcpPacket.java354 Inet4Address srcIp, short destUdp, short srcUdp, ByteBuffer buf,
366 buf.clear();
367 buf.order(ByteOrder.BIG_ENDIAN);
370 buf.put(ETHER_BROADCAST);
371 buf.put(mClientMac);
372 buf.putShort((short) OsConstants.ETH_P_IP);
379 ipHeaderOffset = buf.position();
380 buf.put(IP_VERSION_HEADER_LEN);
381 buf.put(IP_TOS_LOWDELAY); // tos: IPTOS_LOWDELAY
382 ipLengthOffset = buf
353 fillInPacket(int encap, Inet4Address destIp, Inet4Address srcIp, short destUdp, short srcUdp, ByteBuffer buf, byte requestCode, boolean broadcast) argument
481 checksum(ByteBuffer buf, int seed, int start, int end) argument
523 addTlv(ByteBuffer buf, byte type, byte value) argument
532 addTlv(ByteBuffer buf, byte type, byte[] payload) argument
547 addTlv(ByteBuffer buf, byte type, Inet4Address addr) argument
556 addTlv(ByteBuffer buf, byte type, List<Inet4Address> addrs) argument
576 addTlv(ByteBuffer buf, byte type, Short value) argument
587 addTlv(ByteBuffer buf, byte type, Integer value) argument
598 addTlv(ByteBuffer buf, byte type, String str) argument
609 addTlvEnd(ByteBuffer buf) argument
629 addCommonClientTlvs(ByteBuffer buf) argument
685 readAsciiString(ByteBuffer buf, int byteCount, boolean nullOk) argument
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp450 void* buf = realloc(mData, allocSize); local
451 if (buf == NULL) {
454 mData = buf;
457 return buf;
492 void* buf = editData(total); local
493 if (buf == NULL) {
496 memcpy(((char*)buf)+end, data, size);
1282 void* buf = file->editData(len); local
1283 memcpy(buf, data, len);
H A DResource.cpp2047 char* buf = result.lockBuffer(size); local
2049 if (buf[i] == ':' || buf[i] == '.') {
2050 buf[i] = '_';
/frameworks/base/tools/aapt2/compile/
H A DPng.cpp89 png_bytep buf = outBuffer->nextBlock<png_byte>(length); local
90 memcpy(buf, data, length);
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
H A DBitcodeReader.cpp3438 unsigned char buf[16]; local
3439 if (Bytes.readBytes(buf, 16, 0) != 16)
3442 if (!isBitcode(buf, buf + 16))
3445 if (isBitcodeWrapper(buf, buf + 4)) {
3446 const unsigned char *bitcodeStart = buf;
3447 const unsigned char *bitcodeEnd = buf + 16;
3449 Bytes.dropLeadingBytes(bitcodeStart - buf);
/frameworks/minikin/libs/minikin/
H A DLayout.cpp51 buf = new uint8_t[width * height]();
55 delete[] buf;
62 o.write((const char *)buf, width * height);
76 uint8_t* dst = buf + y0 * width;
475 BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags);
543 BidiText::BidiText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags) argument
562 ubidi_setPara(mBidi, buf, mBufSize, bidiReq, NULL, &status);
579 void Layout::doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, argument
590 for (const BidiText::Iter::RunInfo& runInfo : BidiText(buf, start, count, bufSize, bidiFlags)) {
591 doLayoutRunCached(buf, runInf
597 measureText(const uint16_t* buf, size_t start, size_t count, size_t bufSize, int bidiFlags, const FontStyle &style, const MinikinPaint &paint, const FontCollection* collection, float* advances) argument
617 doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t dstStart, const FontCollection* collection, Layout* layout, float* advances) argument
656 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t bufStart, const FontCollection* collection, Layout* layout, float* advances) argument
705 doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx) argument
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp379 char *buf = (char *) malloc(size + 1); local
380 if (buf == NULL) {
384 int retval = klogctl(KLOG_READ_ALL, buf, size);
387 free(buf);
390 buf[retval] = '\0';
391 printf("%s\n\n", buf);
392 free(buf);
888 char buf[PROPERTY_KEY_MAX + PROPERTY_VALUE_MAX + 10]; local
889 snprintf(buf, sizeof(buf), "[
[all...]
/frameworks/native/cmds/installd/
H A Dutils.cpp472 char buf[8192]; local
474 while ((size = read(fsfd, buf, sizeof(buf))) > 0) {
475 write(fdfd, buf, size);
/frameworks/native/libs/binder/
H A DParcel.cpp1287 void* const buf = this->writeInplace(pad_size(len)); local
1288 if (buf == NULL)
1300 err = val.flatten(buf, len, fds, fd_count);
2063 void const* const buf = this->readInplace(pad_size(len)); local
2064 if (buf == NULL)
2087 err = val.unflatten(buf, len, fds, fd_count);
/frameworks/native/libs/gui/
H A DSurface.cpp162 ANativeWindowBuffer* buf; local
164 int result = c->dequeueBuffer(&buf, &fenceFd);
173 c->cancelBuffer(buf, -1);
176 *buffer = buf;
260 int buf = -1; local
262 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence,
274 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer);
277 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf);
284 result = mGraphicBufferProducer->requestBuffer(buf,
[all...]
/frameworks/native/opengl/libagl/
H A Degl.cpp240 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr);
241 status_t unlock(ANativeWindowBuffer* buf);
441 ANativeWindowBuffer* buf, int usage, void** vaddr)
445 err = module->lock(module, buf->handle,
446 usage, 0, 0, buf->width, buf->height, vaddr);
451 status_t egl_window_surface_v2_t::unlock(ANativeWindowBuffer* buf) argument
453 if (!buf) return BAD_VALUE;
456 err = module->unlock(module, buf->handle);
440 lock( ANativeWindowBuffer* buf, int usage, void** vaddr) argument
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp1781 virtual bool reject(const sp<GraphicBuffer>& buf, argument
1783 if (buf == NULL) {
1787 uint32_t bufWidth = buf->getWidth();
1788 uint32_t bufHeight = buf->getHeight();
/frameworks/rs/
H A DrsAllocation.cpp197 char buf[1024]; local
198 sprintf(buf, "Allocation::subData called with mismatched size expected %zu, got %zu",
200 rsc->setError(RS_ERROR_BAD_VALUE, buf);
227 char buf[1024]; local
228 sprintf(buf, "Allocation::read called with mismatched size expected %zu, got %zu",
230 rsc->setError(RS_ERROR_BAD_VALUE, buf);
246 char buf[1024]; local
247 sprintf(buf, "Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes);
248 rsc->setError(RS_ERROR_BAD_VALUE, buf);
353 char buf[102 local
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.cpp270 char buf[BUFFER_SIZE]; local
273 vsnprintf(buf, BUFFER_SIZE, fmt, ap);
276 eventMark(buf);

Completed in 430 milliseconds

1234567891011