Searched defs:usage (Results 51 - 71 of 71) sorted by relevance

123

/frameworks/base/core/jni/
H A Dandroid_opengl_GLES11.cpp132 /* void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) */
135 (JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) {
161 (GLenum)usage
134 android_glBufferData__IILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) argument
H A Dandroid_opengl_GLES20.cpp271 /* void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) */
274 (JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) {
300 (GLenum)usage
273 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/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp246 JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) {
251 = getDrmManagerClientImpl(env, thiz)->getConstraints(uniqueId, &pathString, usage);
245 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
/frameworks/native/libs/gui/
H A DSurfaceTexture.cpp853 status_t SurfaceTexture::setConsumerUsageBits(uint32_t usage) { argument
855 usage |= DEFAULT_USAGE_FLAGS;
856 return mBufferQueue->setConsumerUsageBits(usage);
H A DSurfaceTextureClient.cpp436 int usage = va_arg(args, int); local
437 return setUsage(usage);
/frameworks/native/opengl/libagl/
H A Darray.cpp1470 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) argument
1481 if ((usage!=GL_STATIC_DRAW) && (usage!=GL_DYNAMIC_DRAW)) {
1495 if (c->bufferObjectManager->allocateStore(edit_bo, size, usage) != 0) {
H A Degl.cpp239 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/base/media/java/android/media/
H A DAudioSystem.java367 // usage for setForceUse, must match AudioSystem::force_use
375 // usage for AudioRecord.startRecordingSync(), must match AudioSystem::sync_event_t
382 public static native int setForceUse(int usage, int config); argument
383 public static native int getForceUse(int usage); argument
H A DAudioService.java340 // Forced device usage for communications
3221 private void setForceUse(int usage, int config) { argument
3222 AudioSystem.setForceUse(usage, config);
3296 // Restore forced usage for communcations and record
/frameworks/av/media/libstagefright/
H A DACodec.cpp523 OMX_U32 usage = 0; local
524 err = mOMX->getGraphicBufferUsage(mNode, kPortIndexOutput, &usage);
526 ALOGW("querying usage flags from OMX IL component failed: %d", err);
528 usage = 0;
532 usage |= GRALLOC_USAGE_PROTECTED;
537 if (usage & GRALLOC_USAGE_PROTECTED) {
556 usage | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
H A DOMXCodec.cpp1730 OMX_U32 usage = 0; local
1731 err = mOMX->getGraphicBufferUsage(mNode, kPortIndexOutput, &usage);
1733 ALOGW("querying usage flags from OMX IL component failed: %d", err);
1735 usage = 0;
1738 usage |= GRALLOC_USAGE_PROTECTED;
1743 if (usage & GRALLOC_USAGE_PROTECTED) {
1760 ALOGV("native_window_set_usage usage=0x%lx", usage);
1762 mNativeWindow.get(), usage | GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_EXTERNAL_DISP);
/frameworks/av/services/audioflinger/
H A DAudioPolicyService.cpp187 status_t AudioPolicyService::setForceUse(audio_policy_force_use_t usage, argument
196 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) {
204 mpAudioPolicy->set_force_use(mpAudioPolicy, usage, config);
208 audio_policy_forced_cfg_t AudioPolicyService::getForceUse(audio_policy_force_use_t usage) argument
213 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) {
216 return mpAudioPolicy->get_force_use(mpAudioPolicy, usage);
/frameworks/av/services/camera/libcameraservice/
H A DCamera2Device.cpp991 uint32_t usage; local
995 &id, &formatActual, &usage, &maxBuffers);
1003 "usage 0x%x, producer wants %d buffers", __FUNCTION__,
1004 id, formatActual, usage, maxBuffers);
1008 mUsage = usage;
1027 ALOGE("%s: Unable to configure usage %08x for stream %d",
1191 result.appendFormat(" size %d, usage 0x%x, requested format 0x%x\n",
/frameworks/support/renderscript/v8/jni/
H A Dandroid_renderscript_RenderScript.cpp318 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer) argument
320 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer);
321 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer);
352 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
361 GetBitmapSize(_env, jbitmap), usage);
368 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
377 pixels, GetBitmapSize(_env, jbitmap), usage);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DRenderScript.java185 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); argument
186 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { argument
188 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
190 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
191 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
193 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
195 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
196 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
198 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
205 native int rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage); argument
206 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument
[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/base/graphics/java/android/renderscript/
H A DRenderScript.java254 native int rsnAllocationCreateTyped(int con, int type, int mip, int usage, int pointer); argument
255 synchronized int nAllocationCreateTyped(int type, int mip, int usage, int pointer) { argument
257 return rsnAllocationCreateTyped(mContext, type, mip, usage, pointer);
259 native int rsnAllocationCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
260 synchronized int nAllocationCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
262 return rsnAllocationCreateFromBitmap(mContext, type, mip, bmp, usage);
264 native int rsnAllocationCubeCreateFromBitmap(int con, int type, int mip, Bitmap bmp, int usage); argument
265 synchronized int nAllocationCubeCreateFromBitmap(int type, int mip, Bitmap bmp, int usage) { argument
267 return rsnAllocationCubeCreateFromBitmap(mContext, type, mip, bmp, usage);
274 native int rsnAllocationCreateFromAssetStream(int con, int mips, int assetStream, int usage); argument
275 nAllocationCreateFromAssetStream(int mips, int assetStream, int usage) argument
[all...]
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp460 nAllocationCreateTyped(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mips, jint usage, jint pointer) argument
462 LOG_API("nAllocationCreateTyped, con(%p), type(%p), mip(%i), usage(%i), ptr(%p)", con, (RsElement)type, mips, usage, (void *)pointer);
463 return (jint) rsAllocationCreateTyped(con, (RsType)type, (RsAllocationMipmapControl)mips, (uint32_t)usage, (uint32_t)pointer);
526 nAllocationCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
536 ptr, bitmap.getSize(), usage);
542 nAllocationCubeCreateFromBitmap(JNIEnv *_env, jobject _this, RsContext con, jint type, jint mip, jobject jbitmap, jint usage) argument
552 ptr, bitmap.getSize(), usage);
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_api.cpp460 void GLTrace_glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) { argument
484 // copy argument usage
488 arg_usage->add_intvalue((int)usage);
493 glContext->hooks->gl.glBufferData(target, size, data, usage);

Completed in 5007 milliseconds

123