/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 222 buf = new uint8_t[width * height](); 226 delete[] buf; 233 o.write((const char *)buf, width * height); 247 uint8_t* dst = buf + y0 * width; 519 void Layout::doLayout(const uint16_t* buf, size_t start, size_t count, size_t bufSize, argument 543 ubidi_setPara(bidi, buf, bufSize, bidiReq, NULL, &status); 569 doLayoutRunCached(buf, startRun, lengthRun, bufSize, isRtl, &ctx, 583 doLayoutRunCached(buf, start, count, bufSize, isRtl, &ctx, start); 588 void Layout::doLayoutRunCached(const uint16_t* buf, size_t start, size_t count, size_t bufSize, argument 592 size_t wordstart = start == bufSize ? start : getPrevWordBreak(buf, star 616 doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx, size_t bufStart) argument 652 doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize, bool isRtl, LayoutContext* ctx) argument [all...] |
/frameworks/native/cmds/installd/ |
H A D | commands.c | 1216 char buf[PKG_PATH_MAX+1]; local 1250 buf[PKG_PATH_MAX] = 0; 1254 while (bufi < bufe && buf[bufi] != '\n') { 1258 buf[bufi] = 0; 1259 ALOGV("Processing line: %s\n", buf+bufp); 1261 while (bufp < bufi && isspace(buf[bufp])) { 1265 if (buf[bufp] == '#' || bufp == bufi) { 1270 UPDATE_COMMANDS_DIR_PREFIX, name, buf+bufp); 1274 ALOGV("Move file: %s (from %s to %s)\n", buf+bufp, srcpkg, dstpkg); 1275 if (!create_move_path(srcpath, srcpkg, buf [all...] |
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 891 void* const buf = this->writeInplace(PAD_SIZE(len)); local 892 if (buf == NULL) 900 err = val.flatten(buf, len, fds, fd_count); 1295 void const* const buf = this->readInplace(PAD_SIZE(len)); local 1296 if (buf == NULL) 1315 err = val.unflatten(buf, len, fds, fd_count);
|
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 240 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr); 241 status_t unlock(ANativeWindowBuffer* buf); 435 ANativeWindowBuffer* buf, int usage, void** vaddr) 439 err = module->lock(module, buf->handle, 440 usage, 0, 0, buf->width, buf->height, vaddr); 445 status_t egl_window_surface_v2_t::unlock(ANativeWindowBuffer* buf) argument 447 if (!buf) return BAD_VALUE; 450 err = module->unlock(module, buf->handle); 434 lock( ANativeWindowBuffer* buf, int usage, void** vaddr) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | Layer.cpp | 1135 virtual bool reject(const sp<GraphicBuffer>& buf, argument 1137 if (buf == NULL) { 1141 uint32_t bufWidth = buf->getWidth(); 1142 uint32_t bufHeight = buf->getHeight();
|
/frameworks/opt/net/wifi/service/tools/halutil/ |
H A D | halutil.cpp | 145 char buf[EVENT_BUF_SIZE]; local 147 if (wifi_get_iface_name(ifaceHandles[i], buf, sizeof(buf)) == WIFI_SUCCESS) { 148 if (strcmp(buf, "wlan0") == 0) { 149 printMsg("found interface %s\n", buf); 151 } else if (strcmp(buf, "p2p0") == 0) { 152 printMsg("found interface %s\n", buf); 250 char buf[256]; member in struct:__anon1460 263 strcpy(eventCache[eventsInCache].buf, msg); 279 strcpy(info.buf, eventCach [all...] |
/frameworks/rs/api/ |
H A D | gen_runtime.cpp | 464 char buf[100]; local 465 snprintf(buf, sizeof(buf), "%d", n); 466 return string(buf);
|
/frameworks/rs/ |
H A D | rsContext.cpp | 217 char buf[PROPERTY_VALUE_MAX]; local 218 property_get(str, buf, "0"); 219 return atoi(buf);
|
/frameworks/support/v8/renderscript/jni/ |
H A D | android_renderscript_RenderScript.cpp | 165 char buf[1024]; local 170 buf, sizeof(buf), 177 return _env->NewStringUTF(buf);
|
/frameworks/av/media/libstagefright/ |
H A D | OMXCodec.cpp | 1938 ANativeWindowBuffer* buf; local 1939 err = native_window_dequeue_buffer_and_wait(mNativeWindow.get(), &buf); 1945 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(buf, false)); 2008 ANativeWindowBuffer* buf; local 2010 int err = native_window_dequeue_buffer_and_wait(mNativeWindow.get(), &buf); 2024 if (graphicBuffer->handle == buf->handle) { 2031 CODEC_LOGE("dequeued unrecognized buffer: %p", buf); 2122 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 2126 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 2135 err = buf [all...] |
H A D | ACodec.cpp | 804 ANativeWindowBuffer *buf; local 805 err = native_window_dequeue_buffer_and_wait(mNativeWindow.get(), &buf); 811 sp<GraphicBuffer> graphicBuffer(new GraphicBuffer(buf, false)); 937 ANativeWindowBuffer *buf; local 947 if (native_window_dequeue_buffer_and_wait(mNativeWindow.get(), &buf) != 0) { 958 info->mGraphicBuffer->handle == buf->handle) { 980 oldest->mGraphicBuffer = new GraphicBuffer(buf, false); 3974 sp<GraphicBuffer> buf(new GraphicBuffer(anb, false)); 3978 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 3987 err = buf [all...] |
H A D | MPEG4Extractor.cpp | 541 char *buf = (char*)malloc(psshsize); local 542 char *ptr = buf; 548 mFileMetaData->setData(kKeyPssh, 'pssh', buf, psshsize); 549 free(buf); 1056 char buf[4]; local 1057 memset(buf, 0, 4); 1058 if (mDataSource->readAt(data_offset + 4, buf + 1, 3) < 3) { 1061 uint32_t defaultAlgorithmId = ntohl(*((int32_t*)buf)); 1067 memset(buf, 0, 4); 1068 if (mDataSource->readAt(data_offset + 7, buf [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_DngCreator.cpp | 173 status_t write(const uint8_t* buf, size_t offset, size_t count); 202 status_t JniOutputStream::write(const uint8_t* buf, size_t offset, size_t count) { argument 206 mEnv->SetByteArrayRegion(mByteArray, 0, len, reinterpret_cast<const jbyte*>(buf + offset)); 246 ssize_t read(uint8_t* buf, size_t offset, size_t count); 272 ssize_t JniInputStream::read(uint8_t* buf, size_t offset, size_t count) { argument 289 mEnv->GetByteArrayRegion(mByteArray, 0, actual, reinterpret_cast<jbyte*>(buf + offset)); 335 ssize_t read(uint8_t* buf, size_t offset, size_t count); 358 ssize_t JniInputByteBuffer::read(uint8_t* buf, size_t offset, size_t count) { argument 373 mEnv->GetByteArrayRegion(mByteArray, 0, realCount, reinterpret_cast<jbyte*>(buf + offset));
|
H A D | android_opengl_GLES10.cpp | 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 135 if (buf) { 138 buf += position << elementSizeShift; 143 return (void*) buf;
|
H A D | android_opengl_GLES11Ext.cpp | 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 135 if (buf) { 138 buf += position << elementSizeShift; 143 return (void*) buf;
|
H A D | android_opengl_GLES20.cpp | 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 135 if (buf) { 138 buf += position << elementSizeShift; 143 return (void*) buf; 1841 char* buf = (char*) malloc(len); local 1843 if (buf == NULL) { 1888 (char *)buf 1900 result = _env->NewStringUTF(buf); 1902 if (buf) { 1903 free(buf); 1937 char* buf = (char*) malloc(len); local 2171 char* buf = (char*) malloc(len); local 2265 char* buf = (char*) malloc(len); local 2785 char* buf = (char*) malloc(infoLen); local 2980 char* buf = (char*) malloc(infoLen); local 3229 char* buf = (char*) malloc(shaderLen); local [all...] |
H A D | android_opengl_GLES30.cpp | 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 135 if (buf) { 138 buf += position << elementSizeShift; 143 return (void*) buf; 1968 char* buf = (char*) malloc(len); local 1970 if (buf == NULL) { 2015 (char *)buf 2027 result = _env->NewStringUTF(buf); 2029 if (buf) { 2030 free(buf); 2064 char* buf = (char*) malloc(len); local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | GLES31Ext.java | 285 // 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...] |
H A D | GLLogWrapper.java | 130 private void formattedAppend(StringBuilder buf, int value, int format) { argument 133 buf.append(value); 136 buf.append(Float.intBitsToFloat(value)); 139 buf.append(value / 65536.0f); 145 StringBuilder buf = new StringBuilder(); 146 buf.append("{\n"); 150 buf.append(" [" + index + "] = "); 152 buf.append("out of bounds"); 154 formattedAppend(buf, arr[index], format); 156 buf 198 toString(int n, FloatBuffer buf) argument 208 toString(int n, int format, IntBuffer buf) argument 220 toString(int n, ShortBuffer buf) argument 230 arg(String name, int n, FloatBuffer buf) argument 234 arg(String name, int n, IntBuffer buf) argument 238 arg(String name, int n, ShortBuffer buf) argument [all...] |
/frameworks/base/tools/aapt/ |
H A D | Resource.cpp | 2006 char* buf = result.lockBuffer(size); local 2008 if (buf[i] == ':' || buf[i] == '.') { 2009 buf[i] = '_';
|
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/ |
H A D | BitcodeReader.cpp | 3388 unsigned char buf[16]; local 3389 if (Bytes->readBytes(0, 16, buf) == -1) 3392 if (!isBitcode(buf, buf + 16)) 3395 if (isBitcodeWrapper(buf, buf + 4)) { 3396 const unsigned char *bitcodeStart = buf; 3397 const unsigned char *bitcodeEnd = buf + 16; 3399 Bytes->dropLeadingBytes(bitcodeStart - buf);
|
/frameworks/rs/driver/ |
H A D | rsdRuntimeStubs.cpp | 725 char buf[256]; local 727 sprintf(buf, "Out range ElementAt X %i of %i", x, t->getLODDimX(0)); 728 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 734 sprintf(buf, "Vector size mismatch for ElementAt %i of %i", vecSize, e->getVectorSize()); 735 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 740 sprintf(buf, "Data type mismatch for ElementAt %i of %i", dt, e->getType()); 741 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 756 char buf[256]; local 758 sprintf(buf, "Out range ElementAt X %i of %i", x, t->getLODDimX(0)); 759 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); 794 char buf[256]; local [all...] |
/frameworks/base/libs/hwui/ |
H A D | OpenGLRenderer.cpp | 398 char buf[BUFFER_SIZE]; local 401 vsnprintf(buf, BUFFER_SIZE, fmt, ap); 404 eventMark(buf);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifInterface.java | 1040 ByteBuffer buf = file.getChannel().map(MapMode.READ_WRITE, 0, exifSize); 1044 ret = rewriteExif(buf, tags); 1060 * @param buf a ByteBuffer containing a jpeg file with existing exif tags to 1068 public boolean rewriteExif(ByteBuffer buf, Collection<ExifTag> tags) throws IOException { argument 1071 mod = new ExifModifier(buf, this); 2044 byte[] buf = new byte[1024]; 2045 int ret = is.read(buf, 0, 1024); 2047 os.write(buf, 0, ret); 2048 ret = is.read(buf, 0, 1024);
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 330 char buf[1024]; local 335 buf, sizeof(buf), 341 return _env->NewStringUTF(buf);
|