Home
last modified time | relevance | path

Searched refs:usage (Results 1 – 25 of 390) sorted by relevance

12345678910>>...16

/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp21 uint64_t usage) in IonBuffer() argument
23 Alloc(width, height, kDefaultGraphicBufferLayerCount, format, usage); in IonBuffer()
27 uint32_t stride, uint32_t format, uint64_t usage) in IonBuffer() argument
29 format, usage) {} in IonBuffer()
33 uint64_t usage) in IonBuffer() argument
38 handle, width, height, layer_count, stride, format, usage); in IonBuffer()
40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer()
48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer()
75 uint32_t format, uint64_t usage) { in Alloc() argument
78 "usage=%" PRIx64, width, height, layer_count, format, usage); in Alloc()
[all …]
Dbuffer_hub_client.cpp84 int BufferHubBuffer::Lock(int usage, int x, int y, int width, int height, in Lock() argument
86 return buffer_.Lock(usage, x, y, width, height, address); in Lock()
94 int ret = Lock(usage(), 0, 0, width, height, addr); in GetBlobReadWritePointer()
171 uint32_t usage, size_t metadata_size) in BufferProducer() argument
172 : BufferProducer(width, height, format, usage, usage, metadata_size) {} in BufferProducer()
208 uint32_t format, uint32_t usage, in BufferProducer() argument
210 : BufferProducer(name, user_id, group_id, width, height, format, usage, in BufferProducer()
211 usage, meta_size_bytes) {} in BufferProducer()
249 BufferProducer::BufferProducer(uint32_t usage, size_t size) in BufferProducer() argument
250 : BufferProducer(usage, usage, size) {} in BufferProducer()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioPolicyHelper.h34 switch (attr->usage) { in audio_attributes_to_stream_type()
78 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes()
82 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
89 attr->usage = AUDIO_USAGE_ASSISTANCE_SONIFICATION; in stream_type_to_audio_attributes()
93 attr->usage = AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE; in stream_type_to_audio_attributes()
97 attr->usage = AUDIO_USAGE_ALARM; in stream_type_to_audio_attributes()
101 attr->usage = AUDIO_USAGE_NOTIFICATION; in stream_type_to_audio_attributes()
105 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
110 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING; in stream_type_to_audio_attributes()
114 attr->usage = AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY; in stream_type_to_audio_attributes()
/frameworks/av/include/media/
DAudioPolicyHelper.h34 switch (attr->usage) { in audio_attributes_to_stream_type()
78 attr->usage = AUDIO_USAGE_MEDIA; in stream_type_to_audio_attributes()
82 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
89 attr->usage = AUDIO_USAGE_ASSISTANCE_SONIFICATION; in stream_type_to_audio_attributes()
93 attr->usage = AUDIO_USAGE_NOTIFICATION_TELEPHONY_RINGTONE; in stream_type_to_audio_attributes()
97 attr->usage = AUDIO_USAGE_ALARM; in stream_type_to_audio_attributes()
101 attr->usage = AUDIO_USAGE_NOTIFICATION; in stream_type_to_audio_attributes()
105 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION; in stream_type_to_audio_attributes()
110 attr->usage = AUDIO_USAGE_VOICE_COMMUNICATION_SIGNALLING; in stream_type_to_audio_attributes()
114 attr->usage = AUDIO_USAGE_ASSISTANCE_ACCESSIBILITY; in stream_type_to_audio_attributes()
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DGoogLeNet.java32 private int usage; field in GoogLeNet
112 GoogLeNet(int usage) { in GoogLeNet() argument
113 this.usage = usage; in GoogLeNet()
154 if (usage == USE_SGEMM || usage == USE_SGEMM_PADDED) { in setTest()
164 if (usage == USE_SGEMM || usage == USE_BNNM) { in setTest()
182 if (usage == USE_BNNM || usage == USE_BNNM_PADDED) { in setTest()
191 if (usage == USE_SGEMM || usage == USE_SGEMM_PADDED) { in setTest()
209 if (usage == USE_SGEMM || usage == USE_SGEMM_PADDED) { in runTest()
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.h69 virtual routing_strategy getStrategyForUsage(audio_usage_t usage) in getStrategyForUsage() argument
71 return mPolicyEngine->getStrategyForUsage(usage); in getStrategyForUsage()
81 virtual status_t setForceUse(audio_policy_force_use_t usage, in setForceUse() argument
84 return mPolicyEngine->setForceUse(usage, config); in setForceUse()
86 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) const in getForceUse() argument
88 return mPolicyEngine->getForceUse(usage); in getForceUse()
118 status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config);
119 audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) const in getForceUse() argument
121 return mForceUse[usage]; in getForceUse()
126 routing_strategy getStrategyForUsage(audio_usage_t usage);
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dion_buffer.h15 IonBuffer(uint32_t width, uint32_t height, uint32_t format, uint64_t usage);
17 uint32_t stride, uint32_t format, uint64_t usage);
20 uint64_t usage);
35 uint32_t format, uint64_t usage);
41 uint64_t usage);
48 uint64_t usage);
56 uint64_t usage);
64 int Lock(uint32_t usage, int x, int y, int width, int height, void** address);
65 int LockYUV(uint32_t usage, int x, int y, int width, int height,
82 uint64_t usage() const { in usage() function
Dbuffer_hub_client.h35 int Lock(int usage, int x, int y, int width, int height, void** addr);
94 uint32_t usage() const { return buffer_.usage(); } in usage() function
98 uint64_t producer_usage() const { return buffer_.usage(); } in producer_usage()
99 uint64_t consumer_usage() const { return buffer_.usage(); } in consumer_usage()
196 uint32_t usage, size_t metadata_size = 0);
215 uint32_t usage, size_t metadata_size = 0);
222 BufferProducer(uint32_t usage, size_t size);
227 uint32_t usage, size_t size);
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java76 public static GraphicBuffer create(int width, int height, int format, int usage) { in create() argument
77 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create()
79 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
87 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument
91 mUsage = usage; in GraphicBuffer()
100 int format, int usage, long unwrappedNativeObject) { in createFromExisting() argument
103 return new GraphicBuffer(width, height, format, usage, nativeObject); in createFromExisting()
283 int usage = in.readInt();
286 return new GraphicBuffer(width, height, format, usage, nativeObject);
296 private static native long nCreateGraphicBuffer(int width, int height, int format, int usage); in nCreateGraphicBuffer() argument
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp82 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, in lock() argument
85 return lockAsync(handle, usage, bounds, vaddr, -1); in lock()
88 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument
91 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr()
106 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd) in lockAsync() argument
108 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd); in lockAsync()
117 const uint64_t usage = static_cast<uint64_t>( in lockAsync() local
119 Gralloc2::Error error = mMapper->lock(handle, usage, in lockAsync()
152 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, int fenceFd) in lockAsyncYCbCr() argument
157 Gralloc2::Error error = mMapper->lock(handle, usage, in lockAsyncYCbCr()
DGraphicBufferAllocator.cpp70 rec.usage, rec.requestorName.c_str()); in dump()
76 rec.usage, rec.requestorName.c_str()); in dump()
96 PixelFormat format, uint32_t layerCount, uint64_t usage, in allocate() argument
116 info.usage = usage; in allocate()
129 rec.usage = usage; in allocate()
138 width, height, layerCount, format, usage, in allocate()
DGraphicBuffer.cpp54 usage = 0; in GraphicBuffer()
68 PixelFormat inFormat, uint32_t inLayerCount, uint64_t usage, in GraphicBuffer() argument
73 usage, std::move(requestorName)); in GraphicBuffer()
89 uint64_t usage, in GraphicBuffer() argument
94 layerCount, usage, stride); in GraphicBuffer()
142 static_cast<int>(inUsage) == usage) in reallocate()
161 if ((static_cast<uint32_t>(usage) & inUsage) != inUsage) return true; in needsReallocation()
179 usage = static_cast<int>(inUsage); in initWithSize()
187 PixelFormat format, uint32_t layerCount, uint64_t usage, in initWithHandle() argument
194 ANativeWindowBuffer::usage = static_cast<int>(usage); in initWithHandle()
[all …]
/frameworks/av/services/audiopolicy/engineconfigurable/src/
DEngine.h68 virtual routing_strategy getStrategyForUsage(audio_usage_t usage);
77 virtual status_t setForceUse(audio_policy_force_use_t usage, in setForceUse() argument
80 return mPolicyEngine->setForceUse(usage, config); in setForceUse()
82 virtual audio_policy_forced_cfg_t getForceUse(audio_policy_force_use_t usage) const in getForceUse() argument
84 return mPolicyEngine->getForceUse(usage); in getForceUse()
110 virtual status_t addUsage(const std::string &name, audio_usage_t usage) in addUsage() argument
112 return mPolicyEngine->add<audio_usage_t>(name, usage); in addUsage()
132 virtual bool setStrategyForUsage(const audio_usage_t &usage, routing_strategy strategy) in setStrategyForUsage() argument
135 usage); in setStrategyForUsage()
162 status_t setForceUse(audio_policy_force_use_t usage, audio_policy_forced_cfg_t config);
[all …]
/frameworks/native/services/inputflinger/host/
DInputDriver.h56 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
59 input_collection_id_t id, input_usage_t* usage, size_t usageCount) = 0;
67 input_usage_t usage, int32_t value, int32_t arity_index) = 0;
69 input_usage_t usage, bool value, int32_t arity_index) = 0;
103 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max,
106 input_collection_id_t id, input_usage_t* usage, size_t usageCount) override;
114 input_usage_t usage, int32_t value, int32_t arity_index) override;
116 input_usage_t usage, bool value, int32_t arity_index) override;
157 input_usage_t usage, int32_t min, int32_t max, float resolution);
161 input_usage_t* usage, size_t usage_count);
[all …]
DInputDriver.cpp66 input_usage_t usage; member
166 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, in inputReportDefinitionDeclareUsageInt() argument
170 .usage = usage, .min = min, .max = max, .resolution = resolution}); in inputReportDefinitionDeclareUsageInt()
175 input_collection_id_t id, input_usage_t* usage, size_t usageCount) { in inputReportDefinitionDeclareUsagesBool() argument
178 report->collections[id].boolUsages.push_back(usage[i]); in inputReportDefinitionDeclareUsagesBool()
200 input_usage_t usage, int32_t value, int32_t arity_index) { in inputReportSetUsageInt() argument
204 input_usage_t usage, bool value, int32_t arity_index) { in inputReportSetUsageBool() argument
335 input_usage_t usage, int32_t min, int32_t max, float resolution) { in input_report_definition_declare_usage_int() argument
337 driver->inputReportDefinitionDeclareUsageInt(report, id, usage, min, max, resolution); in input_report_definition_declare_usage_int()
342 input_usage_t* usage, size_t usage_count) { in input_report_definition_declare_usages_bool() argument
[all …]
/frameworks/av/media/audioserver/
Dmain_audioserver.cpp100 struct rusage usage; in main() local
101 getrusage(RUSAGE_CHILDREN, &usage); in main()
104 usage.ru_utime.tv_sec, usage.ru_utime.tv_usec / 1000, in main()
105 usage.ru_stime.tv_sec, usage.ru_stime.tv_usec / 1000); in main()
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp63 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate() local
65 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
105 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe()
111 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument
115 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock()
122 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock()
130 return gBuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence); in AHardwareBuffer_lock()
390 uint64_t AHardwareBuffer_convertToGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertToGrallocUsageBits() argument
416 return usage; in AHardwareBuffer_convertToGrallocUsageBits()
419 uint64_t AHardwareBuffer_convertFromGrallocUsageBits(uint64_t usage) { in AHardwareBuffer_convertFromGrallocUsageBits() argument
[all …]
/frameworks/webview/chromium/plat_support/
Dgraphic_buffer_impl.cpp78 int usage = 0; in Map() local
81 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN; in Map()
84 usage = android::GraphicBuffer::USAGE_SW_WRITE_OFTEN; in Map()
87 usage = android::GraphicBuffer::USAGE_SW_READ_OFTEN | in Map()
93 return mBuffer->lock(usage, vaddr); in Map()
/frameworks/base/media/java/android/media/
DImageReader.java218 long usage) { in newInstance() argument
219 if (!isFormatUsageCombinationAllowed(format, usage)) { in newInstance()
221 + " format = " + format + ", usage = " + usage); in newInstance()
223 return new ImageReader(width, height, format, maxImages, usage); in newInstance()
229 protected ImageReader(int width, int height, int format, int maxImages, long usage) { in ImageReader() argument
251 nativeInit(new WeakReference<>(this), width, height, format, maxImages, usage); in ImageReader()
721 private static boolean isFormatUsageCombinationAllowed(int format, long usage) { in isFormatUsageCombinationAllowed() argument
727 if (usage == BUFFER_USAGE_UNKNOWN) { in isFormatUsageCombinationAllowed()
733 boolean isAllowed = (usage == HardwareBuffer.USAGE_GPU_SAMPLED_IMAGE); in isFormatUsageCombinationAllowed()
734 isAllowed = isAllowed || (usage == HardwareBuffer.USAGE_VIDEO_ENCODE); in isFormatUsageCombinationAllowed()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3SharedOutputStream.cpp44 uint32_t usage; in connectStreamSplitterLocked() local
45 getEndpointUsage(&usage); in connectStreamSplitterLocked()
47 res = mStreamSplitter->connect(mSurfaces, usage, camera3_stream::max_buffers, &mConsumer); in connectStreamSplitterLocked()
194 status_t Camera3SharedOutputStream::getEndpointUsage(uint32_t *usage) const { in getEndpointUsage()
201 *usage = getPresetConsumerUsage(); in getEndpointUsage()
206 *usage |= u; in getEndpointUsage()
212 *usage |= u; in getEndpointUsage()
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_named_buffer-test.cpp63 ASSERT_EQ(desc1.usage, 0u); in TEST_F()
68 ASSERT_EQ(desc2.usage, 0u); in TEST_F()
89 ASSERT_EQ(desc3.usage, 0u); in TEST_F()
136 const uint64_t usage = AHARDWAREBUFFER_USAGE_VIDEO_ENCODE; in TEST_F() local
139 int e1 = dvrDisplayManagerSetupNamedBuffer(client_, buffer_name, 10, usage, in TEST_F()
151 ASSERT_EQ(usage, desc.usage); in TEST_F()
/frameworks/native/services/vr/bufferhubd/
Dproducer_queue_channel.cpp143 uint32_t format, uint64_t usage, size_t buffer_count) { in OnProducerQueueAllocateBuffers() argument
153 if (usage & usage_policy_.usage_deny_set_mask) { in OnProducerQueueAllocateBuffers()
158 usage, usage_policy_.usage_deny_set_mask); in OnProducerQueueAllocateBuffers()
162 if (~usage & usage_policy_.usage_deny_clear_mask) { in OnProducerQueueAllocateBuffers()
167 usage, usage_policy_.usage_deny_clear_mask); in OnProducerQueueAllocateBuffers()
174 (usage & ~usage_policy_.usage_clear_mask) | usage_policy_.usage_set_mask; in OnProducerQueueAllocateBuffers()
194 uint32_t format, uint64_t usage) { in AllocateBuffer() argument
220 buffer_id, width, height, layer_count, format, usage); in AllocateBuffer()
225 format, usage, meta_size_bytes_); in AllocateBuffer()
/frameworks/base/tools/split-select/
DMain.cpp37 static void usage() { in usage() function
57 usage(); in help()
256 usage(); in main()
265 usage(); in main()
274 usage(); in main()
280 usage(); in main()
291 usage(); in main()
299 usage(); in main()
305 usage(); in main()
321 usage(); in main()
[all …]
/frameworks/native/include/ui/
DGraphicBufferMapper.h56 uint32_t usage, const Rect& bounds, void** vaddr);
59 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
64 uint32_t usage, const Rect& bounds, void** vaddr, int fenceFd);
71 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java174 final DataUsageInfo usage = new DataUsageInfo(); in getDataUsageInfo() local
175 usage.startDate = start; in getDataUsageInfo()
176 usage.usageLevel = totalBytes; in getDataUsageInfo()
177 usage.period = formatDateRange(start, end); in getDataUsageInfo()
179 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
180 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
182 usage.warningLevel = getDefaultWarningLevel(); in getDataUsageInfo()
184 if (usage != null && mNetworkController != null) { in getDataUsageInfo()
185 usage.carrier = mNetworkController.getMobileDataNetworkName(); in getDataUsageInfo()
187 return usage; in getDataUsageInfo()

12345678910>>...16