/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 270 // Always give the max jpeg buffer size regardless of the actual jpeg resolution. 588 buffer_handle_t *buffer, wp<BufferReleasedListener> listener) { 596 res = (*streamI)->pushIntoStream(buffer, listener); 598 ALOGE("%s: Unable to push buffer to reprocess stream %d: %s (%d)", 867 result = String8::format(" Stream slot buffer %d:\n", i); 946 camera_metadata_t **buffer) 949 return queue->dequeue(buffer, true); 966 camera_metadata_t **buffer) 972 *buffer = new_buffer; 1111 ALOGE("%s: Unable to configure compressed stream buffer dimension 587 pushReprocessBuffer(int reprocessStreamId, buffer_handle_t *buffer, wp<BufferReleasedListener> listener) argument 944 consumer_dequeue( const camera2_request_queue_src_ops_t *q, camera_metadata_t **buffer) argument 963 producer_dequeue( const camera2_frame_queue_dst_ops_t * , size_t entries, size_t bytes, camera_metadata_t **buffer) argument 1281 dequeue_buffer(const camera2_stream_ops_t *w, buffer_handle_t** buffer) argument 1308 enqueue_buffer(const camera2_stream_ops_t* w, int64_t timestamp, buffer_handle_t* buffer) argument 1344 cancel_buffer(const camera2_stream_ops_t* w, buffer_handle_t* buffer) argument 1514 acquire_buffer( const camera2_stream_in_ops_t *w, buffer_handle_t** buffer) argument 1546 release_buffer( const camera2_stream_in_ops_t* w, buffer_handle_t* buffer) argument [all...] |
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Device.cpp | 356 // Get max jpeg buffer size 366 // Calculate final jpeg buffer size for the given resolution. 845 SET_ERR_L("Invalid jpeg buffer size %zd", jpegBufferSize); 1278 buffer_handle_t *buffer, wp<BufferReleasedListener> listener) { 1280 (void)reprocessStreamId; (void)buffer; (void)listener; 1890 // Note: stream may be deallocated at this point, if this buffer was 1893 ALOGE("Can't return buffer to its stream: %s (%d)", 2135 ALOGW("%s: Input buffer should be NULL if there is no input" 2136 " buffer sent in the request", 2185 // Note: stream may be deallocated at this point, if this buffer wa 1277 pushReprocessBuffer(int reprocessStreamId, buffer_handle_t *buffer, wp<BufferReleasedListener> listener) argument [all...] |
/frameworks/base/core/jni/ |
H A D | AndroidRuntime.cpp | 430 * Reads a "property" into "buffer" with a default of "defaultArg". If 442 char* buffer, 446 strcpy(buffer, runtimeArg); 448 property_get(property, buffer+runtimeArgLen, defaultArg); 449 if (buffer[runtimeArgLen] == '\0') { 452 addOption(buffer); 457 * Reads a "property" into "buffer". If the property is non-empty, it 469 char* buffer, 473 strcpy(buffer, compilerArg); 475 property_get(property, buffer 441 parseRuntimeOption(const char* property, char* buffer, const char* runtimeArg, const char* defaultArg) argument 468 parseCompilerOption(const char* property, char* buffer, const char* compilerArg, const char* quotingArg) argument 497 parseCompilerRuntimeOption(const char* property, char* buffer, const char* runtimeArg, const char* quotingArg) argument 933 jchar* buffer = (jchar *)alloca(length * sizeof(jchar)); local [all...] |
H A D | android_opengl_GLES31.cpp | 97 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 104 position = _env->GetIntField(buffer, positionID); 105 limit = _env->GetIntField(buffer, limitID); 106 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 109 getBasePointerID, buffer); 116 getBaseArrayID, buffer); 118 getBaseArrayOffsetID, buffer); 131 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 132 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 134 jint position = _env->GetIntField(buffer, positionI 3000 android_glBindVertexBuffer__IIJI(JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) argument [all...] |
H A D | android_opengl_GLES31Ext.cpp | 98 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 105 position = _env->GetIntField(buffer, positionID); 106 limit = _env->GetIntField(buffer, limitID); 107 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 110 getBasePointerID, buffer); 117 getBaseArrayID, buffer); 119 getBaseArrayOffsetID, buffer); 132 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 133 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 135 jint position = _env->GetIntField(buffer, positionI 1304 android_glTexBufferEXT__III(JNIEnv *_env, jobject _this, jint target, jint internalformat, jint buffer) argument 1315 android_glTexBufferRangeEXT__IIIII(JNIEnv *_env, jobject _this, jint target, jint internalformat, jint buffer, jint offset, jint size) argument [all...] |
H A D | android_os_Debug.cpp | 592 char buffer[1024]; local 607 int len = read(fd, buffer, sizeof(buffer)-1); 614 buffer[len] = 0; 650 char* p = buffer; 677 len = read(fd, buffer, sizeof(buffer)-1); 680 buffer[len] = 0; 681 mem[MEMINFO_ZRAM_TOTAL] = atoll(buffer)/1024;
|
H A D | android_hardware_camera2_DngCreator.cpp | 113 bool setThumbnail(const uint8_t* buffer, uint32_t width, uint32_t height); 142 bool NativeContext::setThumbnail(const uint8_t* buffer, uint32_t width, uint32_t height) { argument 148 ALOGE("%s: Could not resize thumbnail buffer.", __FUNCTION__); 153 memcpy(thumb, buffer, size); 369 ALOGE("%s: Exception while reading from input into byte buffer.", __FUNCTION__); 375 ALOGE("%s: Exception while reading from byte buffer.", __FUNCTION__); 530 * StripSource subclass for direct buffer types. 623 // TODO: handle lens shading map, etc. conversions for other raw buffer sizes. 1631 static void DngCreator_nativeSetThumbnail(JNIEnv* env, jobject thiz, jobject buffer, jint width, argument 1645 jlong capacity = env->GetDirectBufferCapacity(buffer); [all...] |
H A D | android_opengl_GLES10.cpp | 99 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 106 position = _env->GetIntField(buffer, positionID); 107 limit = _env->GetIntField(buffer, limitID); 108 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 111 getBasePointerID, buffer); 118 getBaseArrayID, buffer); 120 getBaseArrayOffsetID, buffer); 133 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 136 jint position = _env->GetIntField(buffer, positionI [all...] |
H A D | android_opengl_GLES11Ext.cpp | 99 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) argument 106 position = _env->GetIntField(buffer, positionID); 107 limit = _env->GetIntField(buffer, limitID); 108 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 111 getBasePointerID, buffer); 118 getBaseArrayID, buffer); 120 getBaseArrayOffsetID, buffer); 133 getDirectBufferPointer(JNIEnv *_env, jobject buffer) { argument 134 char* buf = (char*) _env->GetDirectBufferAddress(buffer); 136 jint position = _env->GetIntField(buffer, positionI [all...] |
/frameworks/base/core/jni/android/opengl/ |
H A D | util.cpp | 756 getPointer(JNIEnv *_env, jobject buffer, jint *remaining) argument 765 position = _env->GetIntField(buffer, positionID); 766 limit = _env->GetIntField(buffer, limitID); 767 elementSizeShift = _env->GetIntField(buffer, elementSizeShiftID); 770 getBasePointerID, buffer); 779 BufferHelper(JNIEnv *env, jobject buffer) { argument 781 mBuffer = buffer;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Bitmap.java | 50 * Backing buffer for the Bitmap. 109 Bitmap(long nativeBitmap, byte[] buffer, int width, int height, int density, argument 120 mBuffer = buffer; 131 int nativeAllocationByteCount = buffer == null ? getByteCount() : 0; 209 * pixel buffer is remapped to the new config, just that the allocation is 462 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the 463 * caller). An exception is thrown if the buffer is not large enough to 467 * <p>The content of the bitmap is copied into the buffer as-is. This means 469 * (see {@link #isPremultiplied()}, the values in the buffer will also be 471 * <p>After this method returns, the current position of the buffer i [all...] |
/frameworks/base/libs/hwui/ |
H A D | PathTessellator.cpp | 27 i, buffer[i].x, buffer[i].y, buffer[i].alpha); \ 31 ALOGD("point %d at %f %f", i, buffer[i].x, buffer[i].y); \ 184 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size()); local 192 buffer[currentIndex++] = perimeter[srcAindex]; 194 buffer[currentIndex++] = perimeter[srcBindex]; 209 Vertex* buffer = vertexBuffer.alloc<Vertex>(perimeter.size() * 2 + 2); local 224 Vertex::set(&buffer[currentInde 244 storeBeginEnd(const PaintInfo& paintInfo, const Vertex& center, const Vector2& normal, Vertex* buffer, int& currentIndex, bool begin) argument 270 Vertex* buffer = vertexBuffer.alloc<Vertex>(allocSize); local 349 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(perimeter.size() * 3 + 2); local 407 storeCapAA(const PaintInfo& paintInfo, const Vector<Vertex>& vertices, AlphaVertex* buffer, bool isFirst, Vector2 normal, int offset) argument 583 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(allocSize); local 653 AlphaVertex* buffer = vertexBuffer.alloc<AlphaVertex>(6 * perimeter.size() + 8); local [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaCodec.java | 50 * // if API level <= 20, get input and output buffer arrays here 56 * // if API level >= 21, get input buffer here 65 * // if API level >= 21, get output buffer here 102 * Once the client has an input buffer available it can fill it with data 108 * The codec in turn will return an output buffer to the client in response 109 * to {@link #dequeueOutputBuffer}. After the output buffer has been processed 112 * {@link #releaseOutputBuffer} optionally allows rendering of the buffer 118 * data this is slightly relaxed in that a buffer may contain multiple 181 * Instantaneous Decoder Refresh (IDR) frame in a single buffer, which then 182 * can be enqueued as a regular input buffer 1213 setByteBuffer(ByteBuffer buffer) argument 1316 freeByteBuffer(ByteBuffer buffer) argument 1765 readInt(ByteBuffer buffer, boolean asLong) argument 1773 MediaImage( ByteBuffer buffer, ByteBuffer info, boolean readOnly, long timestamp, int xOffset, int yOffset, Rect cropRect) argument 1841 MediaPlane(ByteBuffer buffer, int rowInc, int colInc) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 370 const sp<ABuffer> &buffer = buffers.itemAt(i); local 374 env, !input /* readOnly */, true /* clearBuffer */, buffer, &byteBuffer); 392 JNIEnv *env, bool readOnly, bool clearBuffer, const sp<ABuffer> &buffer, 397 if (buffer->base() == NULL) { 402 env->NewDirectByteBuffer(buffer->base(), buffer->capacity()); 417 clearBuffer ? buffer->capacity() : (buffer->offset() + buffer->size())); 421 clearBuffer ? 0 : buffer 391 createByteBufferFromABuffer( JNIEnv *env, bool readOnly, bool clearBuffer, const sp<ABuffer> &buffer, jobject *buf) const argument 431 sp<ABuffer> buffer; local 448 sp<ABuffer> buffer; local 1281 jobject buffer; local [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | EGL14.java | 333 // C function EGLSurface eglCreatePbufferFromClientBuffer ( EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list ) 338 int buffer, 350 long buffer, 365 // C function EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 370 int buffer 373 // C function EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 378 int buffer 335 eglCreatePbufferFromClientBuffer( EGLDisplay dpy, int buftype, int buffer, EGLConfig config, int[] attrib_list, int offset ) argument 347 eglCreatePbufferFromClientBuffer( EGLDisplay dpy, int buftype, long buffer, EGLConfig config, int[] attrib_list, int offset ) argument
|
H A D | GLES31.java | 1057 // C function void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) 1061 int buffer, 1059 glBindVertexBuffer( int bindingindex, int buffer, long offset, int stride ) argument
|
H A D | GLES31Ext.java | 660 // C function void glTexBufferEXT ( GLenum target, GLenum internalformat, GLuint buffer ) 665 int buffer 668 // C function void glTexBufferRangeEXT ( GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size ) 673 int buffer, 670 glTexBufferRangeEXT( int target, int internalformat, int buffer, int offset, int size ) argument
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/ |
H A D | GLES20Canvas.java | 163 // GL buffer containing BOX_COORDINATES 297 // First create an nio buffer, then create a VBO from it. 299 FloatBuffer buffer = ByteBuffer.allocateDirect(size).order(ByteOrder.nativeOrder()) 301 buffer.put(values, 0, values.length).position(0); 302 return buffer; 951 private int uploadBuffer(Buffer buffer, int elementSize) { argument 957 GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, buffer.capacity() * elementSize, buffer,
|
/frameworks/minikin/libs/minikin/ |
H A D | Layout.cpp | 246 const unsigned char* src = bitmap.buffer + (y0 - y) * bmw + (x0 - x); 293 char* buffer = reinterpret_cast<char*>(malloc(length)); local 294 if (!buffer) { 297 ok = font->GetTable(tag, reinterpret_cast<uint8_t*>(buffer), &length); 301 free(buffer); 304 return hb_blob_create(const_cast<char*>(buffer), length, 305 HB_MEMORY_MODE_WRITABLE, buffer, free); 654 hb_buffer_t* buffer = LayoutEngine::getInstance().hbBuffer; local 716 hb_buffer_reset(buffer); 717 hb_buffer_set_script(buffer, scrip [all...] |
/frameworks/native/libs/binder/ |
H A D | Parcel.cpp | 379 status_t Parcel::setData(const uint8_t* buffer, size_t len) argument 383 memcpy(const_cast<uint8_t*>(data()), buffer, len);
|
/frameworks/native/opengl/libagl/ |
H A D | egl.cpp | 243 ANativeWindowBuffer* buffer; member in struct:android::egl_window_surface_v2_t 345 nativeWindow(window), buffer(0), previousBuffer(0), module(0), 361 if (buffer) { 362 buffer->common.decRef(&buffer->common); 376 // dequeue a buffer 378 if (nativeWindow->dequeueBuffer(nativeWindow, &buffer, 383 // wait for the buffer 386 nativeWindow->cancelBuffer(nativeWindow, buffer, fenceFd); 390 // allocate a corresponding depth-buffer 586 GGLSurface buffer; local 601 GGLSurface buffer; local 677 GGLSurface buffer; local 692 GGLSurface buffer; local 2027 eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint* ) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 700 size_t EventHub::getEvents(int timeoutMillis, RawEvent* buffer, size_t bufferSize) { argument 707 RawEvent* event = buffer; 789 char buffer[16]; local 792 nRead = read(mWakeReadPipeFd, buffer, sizeof(buffer)); 793 } while ((nRead == -1 && errno == EINTR) || nRead == sizeof(buffer)); 865 // the evdev client buffer. 923 // The result buffer is full. Reset the pending event index 955 if (event != buffer || awoken) { 1003 return event - buffer; 1052 char buffer[80]; local [all...] |
/frameworks/rs/ |
H A D | rsContext.cpp | 227 char buffer[128]; local 228 sprintf(buffer, "Avg fps %u, Frame %i ms, Script %i ms", mAverageFPS, mTimeMSLastFrame, mTimeMSLastScript); 231 uint32_t bufferLen = strlen(buffer); 237 mStateFont.renderText(buffer, bufferLen, 5, getHeight() - 6); 240 mStateFont.renderText(buffer, bufferLen, 4, getHeight() - 7); 258 // Need to call dlerror() to clear buffer before using it for dlsym().
|
/frameworks/av/media/libstagefright/ |
H A D | OMXCodec.cpp | 809 * be larger than certain minimum buffer size. However, 960 // Increases the output buffer size 1366 // XXX Need a (much) better heuristic to compute input buffer sizes. 1664 IOMX::buffer_id buffer; local 1672 mNode, portIndex, def.nBufferSize, &buffer, 1676 mNode, portIndex, mem, &buffer); 1684 mNode, portIndex, def.nBufferSize, &buffer, 1688 mNode, portIndex, mem, &buffer); 1691 err = mOMX->useBuffer(mNode, portIndex, mem, &buffer); 1703 info.mBuffer = buffer; 2229 IOMX::buffer_id buffer = msg.u.extended_buffer_data.buffer; local 2274 IOMX::buffer_id buffer = msg.u.extended_buffer_data.buffer; local 2316 MediaBuffer *buffer = info->mMediaBuffer; local 3329 drainInputBuffer(IOMX::buffer_id buffer) argument 3342 fillOutputBuffer(IOMX::buffer_id buffer) argument 3918 read( MediaBuffer **buffer, const ReadOptions *options) argument 4036 signalBufferReturned(MediaBuffer *buffer) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 307 char buffer[SIZE]; local 314 snprintf(buffer, SIZE, " pid: %d\n", client->pid()); 315 result.append(buffer); 321 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i)); 322 result.append(buffer); 329 snprintf(buffer, SIZE, " %7d %5d %5d\n", r->mSessionid, r->mPid, r->mCnt); 330 result.append(buffer); 339 char buffer[SIZE]; local 343 snprintf(buffer, SIZE, "Hardware status: %d\n" 347 result.append(buffer); 354 char buffer[SIZE]; local 2895 void *buffer = malloc(TEE_SINK_READ * frameSize); local [all...] |