Searched defs:usage (Results 101 - 116 of 116) sorted by relevance

12345

/frameworks/native/opengl/libagl/
H A Degl.cpp240 status_t lock(ANativeWindowBuffer* buf, int usage, void** vaddr);
435 ANativeWindowBuffer* buf, int usage, void** vaddr)
440 usage, 0, 0, buf->width, buf->height, vaddr);
434 lock( ANativeWindowBuffer* buf, int usage, void** vaddr) argument
/frameworks/support/v8/renderscript/jni/
H A Dandroid_renderscript_RenderScript.cpp321 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer) argument
323 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer);
324 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer);
355 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
364 pixels, GetBitmapSize(_env, jbitmap), usage);
371 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
380 (uint32_t)usage, (uintptr_t)pixels);
387 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
396 pixels, GetBitmapSize(_env, jbitmap), usage);
[all...]
/frameworks/av/media/libstagefright/
H A DOMXCodec.cpp1842 OMX_U32 usage = 0; local
1843 err = mOMX->getGraphicBufferUsage(mNode, kPortIndexOutput, &usage);
1845 ALOGW("querying usage flags from OMX IL component failed: %d", err);
1847 usage = 0;
1850 usage |= GRALLOC_USAGE_PROTECTED;
1855 if (usage & GRALLOC_USAGE_PROTECTED) {
1872 ALOGV("native_window_set_usage usage=0x%lx", usage);
1874 mNativeWindow.get(), usage | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
H A DACodec.cpp665 OMX_U32 usage = 0; local
666 err = mOMX->getGraphicBufferUsage(mNode, kPortIndexOutput, &usage);
668 ALOGW("querying usage flags from OMX IL component failed: %d", err);
670 usage = 0;
672 int omxUsage = usage;
675 usage |= GRALLOC_USAGE_PROTECTED;
680 if (usage & GRALLOC_USAGE_PROTECTED) {
702 ALOGW("failed to get consumer usage bits. ignoring");
706 ALOGV("gralloc usage: %#x(OMX) => %#x(ACodec) + %#x(Consumer) = %#x",
707 omxUsage, usage, consumerUsag
[all...]
/frameworks/base/opengl/java/android/opengl/
H A DGLErrorWrapper.java968 public void glBufferData(int target, int size, Buffer data, int usage) { argument
970 mgl11.glBufferData(target, size, data, usage);
H A DGLLogWrapper.java2779 public void glBufferData(int target, int size, Buffer data, int usage) { argument
2784 arg("usage", usage);
2786 mgl11.glBufferData(target, size, data, usage);
/frameworks/native/services/surfaceflinger/
H A DSurfaceFlinger.cpp3208 uint32_t usage = GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN | local
3215 err |= native_window_set_usage(window, usage);
/frameworks/base/core/java/android/hardware/
H A DCamera.java954 * @param usage additional usage flags to set for the Allocation. The usage
960 * @throws RSIllegalArgumentException if the usage flags are not compatible
965 public final Allocation createPreviewAllocation(RenderScript rs, int usage) argument
980 usage | Allocation.USAGE_IO_INPUT);
1051 "Allocation usage does not include USAGE_IO_INPUT");
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES20.cpp472 /* void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) */
475 (JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) {
501 (GLenum)usage
474 android_glBufferData__IILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) argument
H A Dcom_google_android_gles_jni_GLImpl.cpp4090 /* void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) */
4093 (JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) {
4119 (GLenum)usage
4092 android_glBufferData__IILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) argument
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp532 nAllocationCreateTyped(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mips, jint usage, jlong pointer) argument
534 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", (RsContext)con, (RsElement)type, mips, usage, (void *)pointer);
535 return (jlong)(uintptr_t) rsAllocationCreateTyped((RsContext)con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uintptr_t)pointer);
595 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) argument
605 ptr, bitmap.getSize(), usage);
611 nAllocationCreateBitmapBackedAllocation(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) argument
621 (uint32_t)usage, (uintptr_t)ptr);
627 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, jlong con, jlong type, jint mip, jobject jbitmap, jint usage) argument
637 ptr, bitmap.getSize(), usage);
[all...]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DRenderScript.java306 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); argument
307 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { argument
309 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
311 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
312 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
314 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
317 native int rsnAllocationCreateBitmapBackedAllocation(int con, int type, int mip, Bitmap bmp, int usage); argument
318 synchronized int nAllocationCreateBitmapBackedAllocation(int type, int mip, Bitmap bmp, int usage) { argument
320 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
324 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
325 nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) argument
334 rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage) argument
335 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument
[all...]
/frameworks/av/services/audiopolicy/
H A DAudioPolicyManager.cpp741 void AudioPolicyManager::setForceUse(audio_policy_force_use_t usage, argument
744 ALOGV("setForceUse() usage %d, config %d, mPhoneState %d", usage, config, mPhoneState);
747 switch(usage) {
755 mForceUse[usage] = config;
766 mForceUse[usage] = config;
774 mForceUse[usage] = config;
785 mForceUse[usage] = config;
793 mForceUse[usage] = config;
800 mForceUse[usage]
833 getForceUse(audio_policy_force_use_t usage) argument
[all...]
/frameworks/base/media/java/android/media/
H A DAudioService.java406 // Forced device usage for communications
4191 private void setForceUse(int usage, int config) { argument
4192 AudioSystem.setForceUse(usage, config);
4276 // Restore forced usage for communcations and record
/frameworks/base/rs/java/android/renderscript/
H A DRenderScript.java360 native long rsnAllocationCreateTyped(long con, long type, int mip, int usage, long pointer); argument
361 synchronized long nAllocationCreateTyped(long type, int mip, int usage, long pointer) { argument
363 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
365 native long rsnAllocationCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
366 synchronized long nAllocationCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) { argument
368 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
371 native long rsnAllocationCreateBitmapBackedAllocation(long con, long type, int mip, Bitmap bmp, int usage); argument
372 synchronized long nAllocationCreateBitmapBackedAllocation(long type, int mip, Bitmap bmp, int usage) { argument
374 return rsnAllocationCreateBitmapBackedAllocation(mContext, type, mip, bmp, usage);
377 native long rsnAllocationCubeCreateFromBitmap(long con, long type, int mip, Bitmap bmp, int usage); argument
378 nAllocationCubeCreateFromBitmap(long type, int mip, Bitmap bmp, int usage) argument
387 rsnAllocationCreateFromAssetStream(long con, int mips, int assetStream, int usage) argument
388 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument
[all...]
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_api.cpp459 void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const void * data, GLenum usage) { argument
483 // copy argument usage
487 arg_usage->add_intvalue((int)usage);
492 glContext->hooks->gl.glBufferData(target, size, data, usage);
[all...]

Completed in 225 milliseconds

12345