/frameworks/base/libs/hwui/renderthread/ |
H A D | EglManager.cpp | 67 char buf[PROPERTY_VALUE_MAX]; local 68 int len = property_get(PROPERTY_RENDER_DIRTY_REGIONS, buf, "true"); 69 return !strncasecmp("true", buf, len);
|
/frameworks/base/media/java/android/media/ |
H A D | SRTRenderer.java | 183 byte[] buf = sb.toString().getBytes(); 184 parcel.writeInt(buf.length); 185 parcel.writeByteArray(buf);
|
/frameworks/native/libs/binder/tests/ |
H A D | binderLibTest.cpp | 612 uint8_t buf[1] = { 0 }; local 635 ret = read(pipefd[0], buf, sizeof(buf)); 636 EXPECT_EQ(sizeof(buf), ret); 637 EXPECT_EQ(write_value, buf[0]); 641 ret = read(pipefd[0], buf, sizeof(buf)); 723 uint8_t buf[1] = { 0 }; local 843 const void *buf; local 854 buf [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
H A D | gltrace_context.cpp | 290 ElementArrayBuffer::ElementArrayBuffer(GLvoid *buf, GLsizeiptr size) { argument 294 if (buf != NULL) { 295 memcpy(mBuf, buf, size);
|
/frameworks/rs/cpp/ |
H A D | RenderScript.cpp | 100 char buf[256]; local 101 property_get(str, buf, "0"); 102 return atoi(buf);
|
/frameworks/rs/java/tests/GenImages/src/com/android/rs/genimage/ |
H A D | GenImage.java | 140 FloatBuffer createFloatBuffer(float buf[]) { argument 141 ByteBuffer bb = ByteBuffer.allocateDirect(buf.length * 4); 144 fb.put(buf);
|
/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/aidl/ |
H A D | aidl_language_y.y | 357 void init_buffer_type(buffer_type* buf, int lineno) 359 buf->lineno = lineno; 360 buf->token = 0; 361 buf->data = NULL; 362 buf->extra = NULL;
|
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 196 sp<GraphicBuffer> buf(new GraphicBuffer(anb, /*keepOwnership*/false)); 197 uint32_t grallocBufWidth = buf->getWidth(); 198 uint32_t grallocBufHeight = buf->getHeight(); 199 uint32_t grallocBufStride = buf->getStride(); 245 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 273 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 280 uint32_t stride = buf->getStride(); 306 err = buf->lockYCbCr(GRALLOC_USAGE_SW_WRITE_OFTEN, &ycbcr); 331 err = buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&img)); 349 err = buf [all...] |
H A D | android_net_LocalSocketImpl.cpp | 488 * Reads data from a socket into buf, processing any ancillary data 500 unsigned char *buf = (unsigned char *)buffer; local 508 iv.iov_base = buf; 552 void *buf, size_t len) 556 unsigned char *buffer = (unsigned char *)buf; 647 unsigned char buf; local 649 err = socket_read_all(env, object, fd, &buf, 1); 661 return (jint)buf; 551 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument
|
H A D | android_opengl_GLES31Ext.cpp | 247 char* buf = (char*) _env->GetDirectBufferAddress(buffer); local 248 if (buf) { 251 buf += position << elementSizeShift; 256 return (void*) buf; 525 /* void glDebugMessageInsertKHR ( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf ) */ 528 (JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) { 535 if (!buf) { 538 _exceptionMessage = "buf == null"; 541 _nativebuf = _env->GetStringUTFChars(buf, 0); 542 _length = _env->GetStringUTFLength(buf); 527 android_glDebugMessageInsertKHR__IIIILjava_lang_String_2(JNIEnv *_env, jobject _this, jint source, jint type, jint id, jint severity, jstring buf) argument 770 android_glBlendEquationiEXT__II(JNIEnv *_env, jobject _this, jint buf, jint mode) argument 780 android_glBlendEquationSeparateiEXT__III(JNIEnv *_env, jobject _this, jint buf, jint modeRGB, jint modeAlpha) argument 791 android_glBlendFunciEXT__III(JNIEnv *_env, jobject _this, jint buf, jint src, jint dst) argument 802 android_glBlendFuncSeparateiEXT__IIIII(JNIEnv *_env, jobject _this, jint buf, jint srcRGB, jint dstRGB, jint srcAlpha, jint dstAlpha) argument [all...] |
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcTestLib.cpp | 604 void hwcTestSetPixel(GraphicBuffer *gBuf, unsigned char *buf, argument 628 *(buf + yPlaneOffset + y * yPlaneStride + x) = pixel & 0xff; 629 *(buf + uPlaneOffset + (y / 2) * uPlaneStride + (x / 2)) 631 *(buf + vPlaneOffset + (y / 2) * vPlaneStride + (x / 2)) 648 memmove(buf + ((gBuf->getStride() * attrib->bytes) * y) 655 unsigned char* buf = NULL; local 661 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); 669 hwcTestSetPixel(gBuf, buf, x, y, (x < gBuf->getWidth()) 693 unsigned char* buf = NULL; local 698 err = gBuf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, (void**)(&buf)); [all...] |
/frameworks/base/core/java/com/android/internal/backup/ |
H A D | LocalTransport.java | 181 byte[] buf = new byte[bufSize]; 200 buf = new byte[bufSize]; 202 changeSet.readEntityData(buf, 0, dataSize); 215 entity.write(buf, 0, dataSize); 537 byte[] buf = new byte[size]; 538 in.read(buf); 541 out.writeEntityData(buf, size);
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 412 char[] buf = value.toCharArray(); 414 if (buf[i] > 255) { 420 if ((buf[0] < '0' || buf[0] > '9') && buf[0] != '.' && buf[0] != '-' && buf[0] != '+') {
|
/frameworks/rs/driver/ |
H A D | rsdGL.cpp | 498 char buf[1024]; 499 snprintf(buf, sizeof(buf), "GL Error = 0x%08x, from: %s", err, msg); 502 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); 506 rsc->setError(RS_ERROR_OUT_OF_MEMORY, buf); 509 rsc->setError(RS_ERROR_DRIVER, buf); 514 ALOGE("%p, %s", rsc, buf);
|
/frameworks/native/libs/gui/ |
H A D | Surface.cpp | 144 ANativeWindowBuffer* buf; local 146 int result = c->dequeueBuffer(&buf, &fenceFd); 152 c->cancelBuffer(buf, -1); 155 *buffer = buf; 228 int buf = -1; local 230 status_t result = mGraphicBufferProducer->dequeueBuffer(&buf, &fence, swapIntervalZero, 242 sp<GraphicBuffer>& gbuf(mSlots[buf].buffer); 245 ALOGE_IF(fence == NULL, "Surface::dequeueBuffer: received null Fence! buf=%d", buf); 252 result = mGraphicBufferProducer->requestBuffer(buf, [all...] |
/frameworks/rs/ |
H A D | rsAllocation.cpp | 187 char buf[1024]; local 188 sprintf(buf, "Allocation::subData called with mismatched size expected %zu, got %zu", 190 rsc->setError(RS_ERROR_BAD_VALUE, buf); 217 char buf[1024]; local 218 sprintf(buf, "Allocation::read called with mismatched size expected %zu, got %zu", 220 rsc->setError(RS_ERROR_BAD_VALUE, buf); 236 char buf[1024]; local 237 sprintf(buf, "Allocation size mismatch, expected %zu, got %zu", (lineSize * h), sizeBytes); 238 rsc->setError(RS_ERROR_BAD_VALUE, buf); 343 char buf[102 local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerDyn.cpp | 216 TC* buf = NULL; local 221 (void)posix_memalign(reinterpret_cast<void**>(&buf), 32, (c.mL+1)*c.mHalfNumCoefs*sizeof(TC)); 228 firKaiserGen(buf, c.mL, c.mHalfNumCoefs, stopBandAtten, fcr, atten); 229 c.mFirCoefs = buf; 233 mCoefBuffer = buf; 243 testFir(buf, c.mL, c.mHalfNumCoefs, fp, fs, /*passSteps*/ 1000, /*stopSteps*/ 100000,
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
H A D | ExifParser.java | 560 byte[] buf = new byte[(int) numOfComp]; 562 buf, 0, (int) numOfComp); 563 tag.setValue(buf); 682 byte buf[] = new byte[tag.getComponentCount()]; 683 read(buf); 684 tag.setValue(buf);
|
/frameworks/rs/cpu_ref/ |
H A D | rsCpuExecutable.cpp | 173 char buf[len + 1]; local 179 buf[i] = 'a' + r; 182 buf[i] = 'A' + (r - 26); 185 buf[i] = '0' + (r - 52); 188 buf[len] = '\0'; 189 return String8(buf);
|
/frameworks/av/cmds/screenrecord/ |
H A D | Overlay.cpp | 257 void Overlay::getTimeString_l(nsecs_t monotonicNsec, char* buf, size_t bufLen) { argument 268 strftime(buf, bufLen, format, &tm); 273 strlcat(buf, tmpBuf, bufLen);
|
/frameworks/av/media/img_utils/src/ |
H A D | DngUtils.cpp | 46 status_t OpcodeListBuilder::buildOpList(uint8_t* buf) const { 48 memcpy(buf, &count, sizeof(count)); 49 memcpy(buf + sizeof(count), mOpList.getArray(), mOpList.getSize());
|
/frameworks/av/media/libmedia/ |
H A D | Visualizer.cpp | 294 uint8_t buf[mCaptureSize]; local 295 status = getWaveForm(buf); 297 status = doFft(fft, buf);
|
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.h | 128 status_t enqueue(camera_metadata_t *buf); 129 status_t dequeue(camera_metadata_t **buf, bool incrementCount = false); 140 status_t setStreamSlot(camera_metadata_t *buf);
|