/frameworks/base/core/jni/ |
H A D | android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 109 ALOGE("%s: Failed to set native window usage flag, error %s (%d).", __FUNCTION__, 491 int32_t usage = 0; local 492 status_t err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &usage); 495 "Error while querying surface usage bits"); 498 return usage;
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmManagerClient.java | 381 throw new IllegalArgumentException("Given usage or path is invalid/null"); 882 private native ContentValues _getConstraints(int uniqueId, String path, int usage); argument
|
/frameworks/base/media/java/android/media/ |
H A D | AudioAttributes.java | 44 * <li>usage: "why" you are playing a sound, what is this sound used for. This is achieved with 45 * the "usage" information. Examples of usage are {@link #USAGE_MEDIA} and {@link #USAGE_ALARM}. 97 * Usage value to use when the usage is unknown. 101 * Usage value to use when the usage is media, such as music, or movie 106 * Usage value to use when the usage is voice communications, such as telephony 111 * Usage value to use when the usage is in-call signalling, such as with 116 * Usage value to use when the usage is an alarm (e.g. wake-up alarm). 120 * Usage value to use when the usage is notification. See other 125 * Usage value to use when the usage i 510 setUsage(@ttributeUsage int usage) argument 857 usageToString(int usage) argument [all...] |
H A D | ImageReader.java | 77 * Invalid consumer buffer usage flag. This usage flag will be ignored 137 * Create a new reader for images of the desired size, format and consumer usage flag. 149 * The format and usage flag combination describes how the buffer will be used by 152 * encoding, the format and usage flag combination needs to be 154 * {@link ImageReader} object is created with a valid size and such format/usage flag 176 * Note that not all format and usage flag combination is supported by the 183 * <th>Compatible usage flags</th> 210 * @param usage The intended usage o 217 newInstance(int width, int height, int format, int maxImages, long usage) argument 229 ImageReader(int width, int height, int format, int maxImages, long usage) argument 721 isFormatUsageCombinationAllowed(int format, long usage) argument [all...] |
/frameworks/base/rs/java/android/renderscript/ |
H A D | Mesh.java | 199 int usage; field in class:Mesh.Builder.Entry 210 * @param usage specifies how the mesh allocations are to be 214 public Builder(RenderScript rs, int usage) { argument 216 mUsage = usage; 808 int usage = Allocation.USAGE_SCRIPT; 810 usage |= Allocation.USAGE_GRAPHICS_VERTEX; 813 Builder smb = new Builder(mRS, usage);
|
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 154 * The usage of the Allocation. These signal to RenderScript where to place 199 * consumer. This usage will cause the Allocation to be created 279 * Get the usage flags of the Allocation. 281 * @return usage this Allocation's set of the USAGE_* flags OR'd together 382 Allocation(long id, RenderScript rs, Type t, int usage) { argument 384 if ((usage & ~(USAGE_SCRIPT | 392 throw new RSIllegalArgumentException("Unknown usage specified."); 395 if ((usage 424 Allocation(long id, RenderScript rs, Type t, boolean owningType, int usage, MipmapControl mips) argument 2664 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument 2693 createTyped(RenderScript rs, Type type, int usage) argument 2721 createSized(RenderScript rs, Element e, int count, int usage) argument 2793 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 2886 createAllocations(RenderScript rs, Type t, int usage, int numAlloc) argument 3085 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 3156 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument 3249 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument 3303 createFromString(RenderScript rs, String str, int usage) argument [all...] |
/frameworks/native/libs/gui/ |
H A D | IGraphicBufferProducer.cpp | 128 uint32_t height, PixelFormat format, uint32_t usage, 137 data.writeUint32(usage); 336 PixelFormat format, uint32_t usage) { 342 data.writeUint32(usage); 520 PixelFormat format, uint32_t usage, 523 slot, fence, w, h, format, usage, outTimestamps); 572 PixelFormat format, uint32_t usage) override { 573 return mBase->allocateBuffers(width, height, format, usage); 657 uint32_t usage = data.readUint32(); local 664 usage, getTimestamp 127 dequeueBuffer(int *buf, sp<Fence>* fence, uint32_t width, uint32_t height, PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument 335 allocateBuffers(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument 780 uint32_t usage = data.readUint32(); local [all...] |
H A D | BufferQueueProducer.cpp | 350 PixelFormat format, uint32_t usage, 368 BQ_LOGV("dequeueBuffer: w=%u h=%u format=%#x, usage=%#x", width, height, 369 format, usage); 389 // Enable the usage bits the consumer requested 390 usage |= mCore->mConsumerUsageBits; 420 BQ_LAYER_COUNT, usage)) { 437 BQ_LAYER_COUNT, usage)) { 456 buffer->needsReallocation(width, height, format, BQ_LAYER_COUNT, usage)) 506 width, height, format, BQ_LAYER_COUNT, usage, 1322 PixelFormat format, uint32_t usage) { 348 dequeueBuffer(int *outSlot, sp<android::Fence> *outFence, uint32_t width, uint32_t height, PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument 1321 allocateBuffers(uint32_t width, uint32_t height, PixelFormat format, uint32_t usage) argument [all...] |
H A D | GLConsumer.cpp | 1116 status_t GLConsumer::setConsumerUsageBits(uint32_t usage) { argument 1122 usage |= DEFAULT_USAGE_FLAGS; 1123 return mConsumer->setConsumerUsageBits(usage); 1222 ALOGE("Failed to create image. size=%ux%u st=%u usage=0x%x fmt=%d",
|
/frameworks/native/libs/vr/libdvr/tests/ |
H A D | dvr_display_manager-test.cpp | 59 uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity) { 63 layer_count, usage, capacity, &queue); 57 CreateSurfaceQueue( const UniqueDvrSurface& surface, uint32_t width, uint32_t height, uint32_t format, uint32_t layer_count, uint64_t usage, size_t capacity) argument
|
/frameworks/native/services/inputflinger/host/ |
H A D | InputDriver.cpp | 66 input_usage_t usage; member in struct:input_int_usage 166 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, 170 .usage = usage, .min = min, .max = max, .resolution = resolution}); 175 input_collection_id_t id, input_usage_t* usage, size_t usageCount) { 178 report->collections[id].boolUsages.push_back(usage[i]); 200 input_usage_t usage, int32_t value, int32_t arity_index) { 204 input_usage_t usage, bool value, int32_t arity_index) { 335 input_usage_t usage, int32_t min, int32_t max, float resolution) { 337 driver->inputReportDefinitionDeclareUsageInt(report, id, usage, mi 165 inputReportDefinitionDeclareUsageInt(input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument 174 inputReportDefinitionDeclareUsagesBool(input_report_definition_t* report, input_collection_id_t id, input_usage_t* usage, size_t usageCount) argument 199 inputReportSetUsageInt(input_report_t* r, input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index) argument 203 inputReportSetUsageBool(input_report_t* r, input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index) argument 333 input_report_definition_declare_usage_int(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, float resolution) argument 340 input_report_definition_declare_usages_bool(input_host_t* host, input_report_definition_t* report, input_collection_id_t id, input_usage_t* usage, size_t usage_count) argument 363 input_report_set_usage_int(input_host_t* host, input_report_t* r, input_collection_id_t id, input_usage_t usage, int32_t value, int32_t arity_index) argument 369 input_report_set_usage_bool(input_host_t* host, input_report_t* r, input_collection_id_t id, input_usage_t usage, bool value, int32_t arity_index) argument [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | VirtualDisplaySurface.cpp | 89 // on usage bits. 158 // composition. Stop using the format and usage requested by the GLES 165 // format/usage and get a new buffer when the GLES driver calls 341 PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) { 345 mSinkBufferWidth, mSinkBufferHeight, format, usage, nullptr); 374 VDS_LOGV("dequeueBuffer(%s): buffers[%d]=%p fmt=%d usage=%#x", 384 uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, 388 pslot, fence, w, h, format, usage, outTimestamps); 395 VDS_LOGV("dequeueBuffer %dx%d fmt=%d usage=%#x", w, h, format, usage); 340 dequeueBuffer(Source source, PixelFormat format, uint32_t usage, int* sslot, sp<Fence>* fence) argument 383 dequeueBuffer(int* pslot, sp<Fence>* fence, uint32_t w, uint32_t h, PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument [all...] |
/frameworks/rs/ |
H A D | rsScriptC_Lib.cpp | 234 void rsrAllocationSyncAll(Context *rsc, Allocation *a, RsAllocationUsageType usage) { argument 235 a->syncAll(rsc, usage);
|
/frameworks/support/media-compat/java/android/support/v4/media/ |
H A D | AudioAttributesCompat.java | 43 * <li>usage: "why" you are playing a sound, what is this sound used for. This is achieved with 44 * the "usage" information. Examples of usage are {@link #USAGE_MEDIA} and {@link 88 /** Usage value to use when the usage is unknown. */ 90 /** Usage value to use when the usage is media, such as music, or movie soundtracks. */ 92 /** Usage value to use when the usage is voice communications, such as telephony or VoIP. */ 95 * Usage value to use when the usage is in-call signalling, such as with a "busy" beep, or DTMF 100 /** Usage value to use when the usage is an alarm (e.g. wake-up alarm). */ 103 * Usage value to use when the usage is notification. See other notification usages for more 107 /** Usage value to use when the usage i 486 setUsage(@ttributeUsage int usage) argument 615 usageToString(int usage) argument 702 toVolumeStreamType( boolean fromGetVolumeControlStream, int flags, @AttributeUsage int usage) argument [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | stagefright.cpp | 605 static void usage(const char *me) { function 606 fprintf(stderr, "usage: %s [options] [input_filename]\n", me); 827 usage(argv[0]);
|
/frameworks/av/media/libstagefright/ |
H A D | CameraSource.cpp | 567 uint32_t usage = GRALLOC_USAGE_SW_READ_OFTEN; local 569 usage = GRALLOC_USAGE_HW_VIDEO_ENCODER; 574 mVideoBufferConsumer = new BufferItemConsumer(consumer, usage, bufferCount);
|
/frameworks/av/services/camera/libcameraservice/device1/ |
H A D | CameraHardwareInterface.cpp | 368 CameraHardwareInterface::setUsage(hardware::graphics::common::V1_0::BufferUsage usage) { argument 375 mPreviewUsage = (int) usage; 1003 int CameraHardwareInterface::sSetUsage(struct preview_stream_ops* w, int usage) argument 1007 hw->mPreviewUsage = usage; 1008 return native_window_set_usage(a, usage);
|
/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/base/services/core/java/com/android/server/notification/ |
H A D | NotificationRecord.java | 656 public boolean isAudioAttributesUsage(int usage) { argument 658 return attributes != null && attributes.getUsage() == usage;
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 128 t->attr.usage = l.getUsage(); 161 ints[6] = static_cast<int32_t>(t.attr.usage); 994 uint32_t usage, FrameEventHistoryDelta* outTimestamps) { 998 w, h, static_cast<PixelFormat>(format), usage, 1148 ::android::PixelFormat format, uint32_t usage) { 1150 width, height, static_cast<PixelFormat>(format), usage); 991 dequeueBuffer( int* slot, sp<Fence>* fence, uint32_t w, uint32_t h, ::android::PixelFormat format, uint32_t usage, FrameEventHistoryDelta* outTimestamps) argument 1147 allocateBuffers(uint32_t width, uint32_t height, ::android::PixelFormat format, uint32_t 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/rs/support/java/src/android/support/v8/renderscript/ |
H A D | Allocation.java | 34 * <p>An Allocation also contains a set of usage flags that denote how the 35 * Allocation could be used. For example, an Allocation may have usage flags 149 * The usage of the Allocation. These signal to RenderScript where to place 168 * consumer. This usage will cause the Allocation to be created as 258 * Get the usage flags of the Allocation. 260 * @return usage this Allocation's set of the USAGE_* flags OR'd together 350 Allocation(long id, RenderScript rs, Type t, int usage) { argument 352 if ((usage & ~(USAGE_SCRIPT | 357 throw new RSIllegalArgumentException("Unknown usage specified."); 360 if ((usage 2557 createTyped(RenderScript rs, Type type, MipmapControl mips, int usage) argument 2585 createTyped(RenderScript rs, Type type, int usage) argument 2613 createSized(RenderScript rs, Element e, int count, int usage) argument 2680 createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 2768 createCubemapFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) argument 2839 createCubemapFromCubeFaces(RenderScript rs, Bitmap xpos, Bitmap xneg, Bitmap ypos, Bitmap yneg, Bitmap zpos, Bitmap zneg, MipmapControl mips, int usage) argument 2935 createFromBitmapResource(RenderScript rs, Resources res, int id, MipmapControl mips, int usage) argument 2982 createFromString(RenderScript rs, String str, int usage) argument [all...] |
/frameworks/av/media/libaudioclient/ |
H A D | AudioSystem.cpp | 788 status_t AudioSystem::setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument 792 return aps->setForceUse(usage, config); 795 audio_policy_forced_cfg_t AudioSystem::getForceUse(audio_policy_force_use_t usage) argument 799 return aps->getForceUse(usage);
|
H A D | IAudioPolicyService.cpp | 142 virtual status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config) argument 146 data.writeInt32(static_cast <uint32_t>(usage)); 152 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) argument 156 data.writeInt32(static_cast <uint32_t>(usage)); 890 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>( local 894 reply->writeInt32(static_cast <uint32_t>(setForceUse(usage, config))); 900 audio_policy_force_use_t usage = static_cast <audio_policy_force_use_t>( local 902 reply->writeInt32(static_cast <uint32_t>(getForceUse(usage)));
|
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXNodeInstance.cpp | 819 OMX_U32 portIndex, OMX_U32* usage) { 843 *usage = params.nUsage; 818 getGraphicBufferUsage( OMX_U32 portIndex, OMX_U32* usage) argument
|