/frameworks/av/media/libstagefright/omx/tests/ |
H A D | OMXHarness.cpp | 790 static void usage(const char *me) { function 791 fprintf(stderr, "usage: %s\n" 839 usage(me);
|
/frameworks/av/services/audiopolicy/ |
H A D | AudioPolicyInterfaceImpl.cpp | 93 status_t AudioPolicyService::setForceUse(audio_policy_force_use_t usage, argument 102 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) { 110 mAudioPolicyManager->setForceUse(usage, config); 114 audio_policy_forced_cfg_t AudioPolicyService::getForceUse(audio_policy_force_use_t usage) argument 119 if (usage < 0 || usage >= AUDIO_POLICY_FORCE_USE_CNT) { 122 return mAudioPolicyManager->getForceUse(usage);
|
/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 118 ALOGE("%s: Failed to set native window usage flag, error %s (%d).", __FUNCTION__, 486 int32_t usage = 0; local 487 status_t err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &usage); 490 "Error while querying surface usage bits"); 493 return usage;
|
H A D | android_opengl_GLES11.cpp | 337 /* void glBufferData ( GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage ) */ 340 (JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) { 366 (GLenum)usage 339 android_glBufferData__IILjava_nio_Buffer_2I(JNIEnv *_env, jobject _this, jint target, jint size, jobject data_buf, jint usage) argument
|
H A D | android_media_AudioSystem.cpp | 365 android_media_AudioSystem_setForceUse(JNIEnv *env, jobject thiz, jint usage, jint config) argument 367 return (jint) check_AudioSystem_Command(AudioSystem::setForceUse(static_cast <audio_policy_force_use_t>(usage), 372 android_media_AudioSystem_getForceUse(JNIEnv *env, jobject thiz, jint usage) argument 374 return static_cast <jint>(AudioSystem::getForceUse(static_cast <audio_policy_force_use_t>(usage)));
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmManagerClient.java | 370 throw new IllegalArgumentException("Given usage or path is invalid/null"); 871 private native ContentValues _getConstraints(int uniqueId, String path, int usage); argument
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Mesh.java | 198 int usage; field in class:Mesh.Builder.Entry 209 * @param usage specifies how the mesh allocations are to be 213 public Builder(RenderScript rs, int usage) { argument 215 mUsage = usage; 801 int usage = Allocation.USAGE_SCRIPT; 803 usage |= Allocation.USAGE_GRAPHICS_VERTEX; 806 Builder smb = new Builder(mRS, usage);
|
H A D | Allocation.java | 33 * <p>An Allocation also contains a set of usage flags that denote how the 34 * Allocation could be used. For example, an Allocation may have usage flags 140 * The usage of the Allocation. These signal to RenderScript where to place 185 * consumer. This usage will cause the Allocation to be created 265 * Get the usage flags of the Allocation. 267 * @return usage this Allocation's set of the USAGE_* flags OR'd together 304 Allocation(long id, RenderScript rs, Type t, int usage) { argument 306 if ((usage & ~(USAGE_SCRIPT | 314 throw new RSIllegalArgumentException("Unknown usage specified."); 317 if ((usage 1385 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument 1410 createTyped(RenderScript rs, Type type, int usage) argument 1438 createSized(RenderScript rs, Element e, int count, int usage) argument 1507 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1618 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1689 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument 1782 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument 1836 createFromString(RenderScript rs, String str, int usage) argument [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | AppOpsService.java | 590 public int checkAudioOperation(int code, int usage, int uid, String packageName) { argument 592 final int mode = checkRestrictionLocked(code, usage, uid, packageName); 600 private int checkRestrictionLocked(int code, int usage, int uid, String packageName) { argument 603 final Restriction r = usageRestrictions.get(usage); 612 public void setAudioRestriction(int code, int usage, int uid, int mode, argument 622 usageRestrictions.remove(usage); 636 usageRestrictions.put(usage, r); 1215 final int usage = restrictions.keyAt(i); 1217 pw.print(" usage="); pw.print(AudioAttributes.usageToString(usage)); [all...] |
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ZenModeHelper.java | 262 private void applyRestrictions(boolean mute, int usage) { argument 264 mAppOps.setRestriction(AppOpsManager.OP_VIBRATE, usage, 267 mAppOps.setRestriction(AppOpsManager.OP_PLAY_AUDIO, usage,
|
/frameworks/native/libs/gui/ |
H A D | BufferQueueProducer.cpp | 253 uint32_t width, uint32_t height, uint32_t format, uint32_t usage) { 260 BQ_LOGV("dequeueBuffer: async=%s w=%u h=%u format=%#x, usage=%#x", 261 async ? "true" : "false", width, height, format, usage); 281 // Enable the usage bits the consumer requested 282 usage |= mCore->mConsumerUsageBits; 315 ((static_cast<uint32_t>(buffer->usage) & usage) != usage)) 344 width, height, format, usage, &error)); 907 uint32_t height, uint32_t format, uint32_t usage) { 251 dequeueBuffer(int *outSlot, sp<android::Fence> *outFence, bool async, uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument 906 allocateBuffers(bool async, uint32_t width, uint32_t height, uint32_t format, uint32_t usage) argument [all...] |
H A D | GLConsumer.cpp | 1012 status_t GLConsumer::setConsumerUsageBits(uint32_t usage) { argument 1014 usage |= DEFAULT_USAGE_FLAGS; 1015 return mConsumer->setConsumerUsageBits(usage); 1100 ALOGE("Failed to create image. size=%ux%u st=%u usage=0x%x fmt=%d",
|
H A D | Surface.cpp | 469 int usage = va_arg(args, int); local 470 return setUsage(usage);
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | VirtualDisplaySurface.cpp | 77 // on usage bits. 143 // composition. Stop using the format and usage requested by the GLES 150 // format/usage and get a new buffer when the GLES driver calls 287 uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) { 293 mSinkBufferWidth, mSinkBufferHeight, format, usage); 322 VDS_LOGV("dequeueBuffer(%s): buffers[%d]=%p fmt=%d usage=%#x", 332 uint32_t w, uint32_t h, uint32_t format, uint32_t usage) { 334 return mSource[SOURCE_SINK]->dequeueBuffer(pslot, fence, async, w, h, format, usage); 341 VDS_LOGV("dequeueBuffer %dx%d fmt=%d usage=%#x", w, h, format, usage); 286 dequeueBuffer(Source source, uint32_t format, uint32_t usage, int* sslot, sp<Fence>* fence) argument 331 dequeueBuffer(int* pslot, sp<Fence>* fence, bool async, uint32_t w, uint32_t h, uint32_t format, uint32_t usage) argument [all...] |
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 35 * <p>An Allocation also contains a set of usage flags that denote how the 36 * Allocation could be used. For example, an Allocation may have usage flags 83 * The usage of the Allocation. These signal to RenderScript where to place 102 * consumer. This usage will cause the Allocation to be created as 182 * Get the usage flags of the Allocation. 184 * @return usage this Allocation's set of the USAGE_* flags OR'd together 221 Allocation(int id, RenderScript rs, Type t, int usage) { argument 223 if ((usage & ~(USAGE_SCRIPT | 228 throw new RSIllegalArgumentException("Unknown usage specified."); 231 if ((usage 1209 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument 1236 createTyped(RenderScript rs, Type type, int usage) argument 1264 createSized(RenderScript rs, Element e, int count, int usage) argument 1335 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1412 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 1483 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument 1579 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument 1626 createFromString(RenderScript rs, String str, int usage) argument [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 591 static void usage(const char *me) { function 592 fprintf(stderr, "usage: %s [options] [input_filename]\n", me); 799 usage(argv[0]);
|
/frameworks/av/media/libmedia/ |
H A D | IAudioPolicyService.cpp | 121 virtual status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument 125 data.writeInt32(static_cast <uint32_t>(usage)); 131 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) argument 135 data.writeInt32(static_cast <uint32_t>(usage)); 756 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>( local 760 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config))); 766 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>( local 768 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage)));
|
H A D | AudioSystem.cpp | 625 status_t AudioSystem::setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument 629 return aps->setForceUse(usage, config); 632 audio_policy_forced_cfg_t AudioSystem::getForceUse(audio_policy_force_use_t usage) argument 636 return aps->getForceUse(usage);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.h | 656 static int __set_usage(struct preview_stream_ops* w, int usage) argument 659 return native_window_set_usage(a, usage);
|
/frameworks/base/core/java/android/app/ |
H A D | AppOpsManager.java | 20 import android.app.usage.UsageStatsManager; 199 /** @hide Retrieve current usage stats via {@link UsageStatsManager}. */ 224 /** Access to {@link android.app.usage.UsageStatsManager}. */ 995 * @param usage The {@link android.media.AudioAttributes} usage value. 1000 public void setRestriction(int code, @AttributeUsage int usage, int mode, argument 1004 mService.setAudioRestriction(code, usage, uid, mode, exceptionPackages);
|
/frameworks/base/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 248 JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) { 253 = getDrmManagerClientImpl(env, thiz)->getConstraints(uniqueId, &pathString, usage); 247 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
|
/frameworks/native/opengl/libagl/ |
H A D | array.cpp | 1474 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) argument 1485 if ((usage!=GL_STATIC_DRAW) && (usage!=GL_DYNAMIC_DRAW)) { 1499 if (c->bufferObjectManager->allocateStore(edit_bo, size, usage) != 0) {
|
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXNodeInstance.cpp | 459 OMX_U32 portIndex, OMX_U32* usage) { 483 *usage = params.nUsage; 458 getGraphicBufferUsage( OMX_U32 portIndex, OMX_U32* usage) argument
|
/frameworks/av/services/camera/libcameraservice/device2/ |
H A D | Camera2Device.cpp | 1053 uint32_t usage; local 1057 &id, &formatActual, &usage, &maxBuffers); 1065 "usage 0x%x, producer wants %d buffers", __FUNCTION__, 1066 id, formatActual, usage, maxBuffers); 1070 mUsage = usage; 1089 ALOGE("%s: Unable to configure usage %08x for stream %d", 1262 result.appendFormat(" size %zu, usage 0x%x, requested format 0x%x\n",
|
/frameworks/base/media/java/android/media/ |
H A D | AudioSystem.java | 524 // usage for setForceUse, must match AudioSystem::force_use 533 // usage for AudioRecord.startRecordingSync(), must match AudioSystem::sync_event_t 540 public static native int setForceUse(int usage, int config); argument 541 public static native int getForceUse(int usage); argument
|