Home
last modified time | relevance | path

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

12345678910>>...26

/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 …]
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp68 PixelFormat format, uint64_t usage, uint32_t stride, in importBuffer() argument
80 error = mMapper->validateBufferSize(bufferHandle, width, height, format, layerCount, usage, in importBuffer()
108 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lock() argument
111 return lockAsync(handle, usage, bounds, vaddr, -1, outBytesPerPixel, outBytesPerStride); in lock()
114 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument
117 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr()
131 status_t GraphicBufferMapper::lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lockAsync() argument
134 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd, outBytesPerPixel, in lockAsync()
144 const uint64_t usage = static_cast<uint64_t>( in lockAsync() local
146 return mMapper->lock(handle, usage, bounds, fenceFd, vaddr, outBytesPerPixel, in lockAsync()
[all …]
DGraphicBufferAllocator.cpp85 rec.layerCount, rec.format, rec.usage, rec.requestorName.c_str()); in dump()
90 rec.format, rec.usage, rec.requestorName.c_str()); in dump()
107 PixelFormat format, uint32_t layerCount, uint64_t usage, in allocate() argument
122 width, height, layerCount, format, usage); in allocate()
131 usage &= ~static_cast<uint64_t>((1 << 10) | (1 << 13)); in allocate()
134 mAllocator->allocate(width, height, format, layerCount, usage, 1, stride, handle); in allocate()
155 rec.usage = usage; in allocate()
164 width, height, layerCount, format, usage, in allocate()
DGralloc3.cpp65 uint64_t usage, in sBufferDescriptorInfo() argument
71 outDescriptorInfo->usage = usage; in sBufferDescriptorInfo()
99 if (descriptorInfo->usage & ~validUsageBits) { in validateBufferDescriptorInfo()
101 descriptorInfo->usage & ~validUsageBits); in validateBufferDescriptorInfo()
156 uint32_t layerCount, uint64_t usage, in validateBufferSize() argument
159 sBufferDescriptorInfo(width, height, format, layerCount, usage, &descriptorInfo); in validateBufferSize()
190 status_t Gralloc3Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, in lock() argument
207 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, in lock()
235 status_t Gralloc3Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, in lock() argument
252 auto ret = mMapper->lockYCbCr(buffer, usage, accessRegion, acquireFenceHandle, in lock()
[all …]
/frameworks/native/libs/nativewindow/
DAHardwareBuffer.cpp48 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate() local
50 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate()
90 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe()
96 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo() argument
106 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lockAndGetInfo()
113 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lockAndGetInfo()
137 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo()
151 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument
158 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock()
165 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock()
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/metrics/
DVoiceCallRatTracker.java143 private void addProto(RawVoiceCallRatUsage usage) { in addProto() argument
144 mRatUsageMap.put(Key.fromProto(usage), Value.fromProto(usage)); in addProto()
150 RawVoiceCallRatUsage usage = new RawVoiceCallRatUsage(); in entryToProto() local
151 usage.carrierId = key.carrierId; in entryToProto()
152 usage.rat = key.rat; in entryToProto()
156 usage.totalDurationMillis = value.durationMillis; in entryToProto()
157 usage.callCount = value.callCount; in entryToProto()
158 return usage; in entryToProto()
175 static Key fromProto(RawVoiceCallRatUsage usage) { in fromProto() argument
176 return new Key(usage.carrierId, usage.rat); in fromProto()
[all …]
/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);
38 uint32_t format, uint64_t usage);
44 uint64_t usage);
51 uint64_t usage);
59 uint64_t usage);
67 int Lock(uint32_t usage, int x, int y, int width, int height, void** address);
68 int LockYUV(uint32_t usage, int x, int y, int width, int height,
86 uint64_t usage() const { in usage() function
/frameworks/base/services/usage/java/com/android/server/usage/
DIntervalStats.java16 package com.android.server.usage;
18 import static android.app.usage.UsageEvents.Event.ACTIVITY_PAUSED;
19 import static android.app.usage.UsageEvents.Event.ACTIVITY_RESUMED;
20 import static android.app.usage.UsageEvents.Event.ACTIVITY_STOPPED;
21 import static android.app.usage.UsageEvents.Event.CONFIGURATION_CHANGE;
22 import static android.app.usage.UsageEvents.Event.CONTINUE_PREVIOUS_DAY;
23 import static android.app.usage.UsageEvents.Event.CONTINUING_FOREGROUND_SERVICE;
24 import static android.app.usage.UsageEvents.Event.DEVICE_SHUTDOWN;
25 import static android.app.usage.UsageEvents.Event.END_OF_DAY;
26 import static android.app.usage.UsageEvents.Event.FLUSH_TO_DISK;
[all …]
/frameworks/native/libs/vr/libdvr/tests/
Ddvr_named_buffer-test.cpp45 ASSERT_EQ(desc1.usage, 0u); in TEST()
50 ASSERT_EQ(desc2.usage, 0u); in TEST()
71 ASSERT_EQ(desc3.usage, 0u); in TEST()
116 const uint64_t usage = AHARDWAREBUFFER_USAGE_VIDEO_ENCODE; in TEST() local
119 int e1 = dvrSetupGlobalBuffer(buffer_key, 10, usage, &setup_buffer); in TEST()
130 ASSERT_EQ(usage, desc.usage); in TEST()
139 uint64_t usage = AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN | in TEST() local
147 int e1 = dvrSetupGlobalBuffer(buffer_name, size, usage, &setup_buffer); in TEST()
157 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer); in TEST()
190 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer); in TEST()
[all …]
/frameworks/base/graphics/java/android/graphics/
DGraphicBuffer.java78 public static GraphicBuffer create(int width, int height, int format, int usage) { in create() argument
79 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create()
81 return new GraphicBuffer(width, height, format, usage, nativeObject); in create()
90 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument
94 mUsage = usage; in GraphicBuffer()
104 int format, int usage, long unwrappedNativeObject) { in createFromExisting() argument
107 return new GraphicBuffer(width, height, format, usage, nativeObject); in createFromExisting()
288 int usage = in.readInt();
291 return new GraphicBuffer(width, height, format, usage, nativeObject);
301 private static native long nCreateGraphicBuffer(int width, int height, int format, int usage); in nCreateGraphicBuffer() argument
/frameworks/native/libs/vr/libdisplay/
Dshared_buffer_helpers.cpp65 auto usage = buffer_->usage() & ~GRALLOC_USAGE_SW_READ_MASK & in TryMapping() local
71 usage |= GRALLOC_USAGE_SW_READ_OFTEN; in TryMapping()
74 usage |= GRALLOC_USAGE_SW_READ_RARELY; in TryMapping()
77 usage |= GRALLOC_USAGE_SW_WRITE_OFTEN; in TryMapping()
80 usage |= GRALLOC_USAGE_SW_WRITE_RARELY; in TryMapping()
86 const auto ret = buffer_->Lock(usage, 0, 0, width, height, &address_); in TryMapping()
/frameworks/base/core/proto/android/media/
Daudioattributes.proto30 optional Usage usage = 1; field
56 // Usage value to use when the usage is unknown.
58 // Usage value to use when the usage is media, such as music, or movie
61 // Usage value to use when the usage is voice communications, such as
64 // Usage value to use when the usage is in-call signalling, such as with a
67 // Usage value to use when the usage is an alarm (e.g. wake-up alarm).
69 // Usage value to use when the usage is notification. Other notification
72 // Usage value to use when the usage is telephony ringtone.
74 // Usage value to use when the usage is a request to enter/end a
77 // Usage value to use when the usage is notification for an "instant"
[all …]
/frameworks/base/cmds/incident_helper/tests/
DCpuInfoParser_test.cpp76 CpuInfoProto::CpuUsage* usage = expected.mutable_cpu_usage(); in TEST_F() local
77 usage->set_cpu(400); in TEST_F()
78 usage->set_user(17); in TEST_F()
79 usage->set_nice(0); in TEST_F()
80 usage->set_sys(43); in TEST_F()
81 usage->set_idle(338); in TEST_F()
82 usage->set_iow(0); in TEST_F()
83 usage->set_irq(0); in TEST_F()
84 usage->set_sirq(1); in TEST_F()
85 usage->set_host(0); in TEST_F()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java27 import android.app.usage.NetworkStats.Bucket;
28 import android.app.usage.NetworkStatsManager;
141 final DataUsageInfo usage = new DataUsageInfo(); in getDataUsageInfo() local
142 usage.startDate = start; in getDataUsageInfo()
143 usage.usageLevel = totalBytes; in getDataUsageInfo()
144 usage.period = formatDateRange(start, end); in getDataUsageInfo()
145 usage.cycleStart = start; in getDataUsageInfo()
146 usage.cycleEnd = end; in getDataUsageInfo()
149 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
150 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
[all …]
/frameworks/native/cmds/lshal/
DHelpCommand.cpp35 mLshal.usage(); in main()
44 mLshal.usage(); in usageOfCommand()
50 mLshal.usage(); in usageOfCommand()
54 command->usage(); in usageOfCommand()
59 void HelpCommand::usage() const { in usage() function in android::lshal::HelpCommand
/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/libaaudio/tests/
Dtest_attributes.cpp32 aaudio_usage_t usage, in checkAttributes() argument
51 if (usage != DONT_SET) { in checkAttributes()
52 AAudioStreamBuilder_setUsage(aaudioBuilder, usage); in checkAttributes()
70 (usage == DONT_SET || usage == AAUDIO_UNSPECIFIED) in checkAttributes()
72 : usage; in checkAttributes()
155 for (aaudio_usage_t usage : sUsages) { in checkAttributesUsage() local
156 checkAttributes(perfMode, usage, DONT_SET); in checkAttributesUsage()
/frameworks/native/libs/ui/include_vndk/ui/
DGraphicBufferMapper.h55 PixelFormat format, uint64_t usage, uint32_t stride,
63 status_t lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr,
67 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
71 status_t lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr,
80 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
86 uint32_t layerCount, uint64_t usage, bool* outSupported);
/frameworks/av/media/audioserver/
Dmain_audioserver.cpp105 struct rusage usage; in main() local
106 getrusage(RUSAGE_CHILDREN, &usage); in main()
109 usage.ru_utime.tv_sec, usage.ru_utime.tv_usec / 1000, in main()
110 usage.ru_stime.tv_sec, usage.ru_stime.tv_usec / 1000); in main()
/frameworks/native/libs/ui/include/ui/
DGraphicBufferMapper.h55 PixelFormat format, uint64_t usage, uint32_t stride,
63 status_t lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr,
67 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr);
71 status_t lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr,
80 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr,
86 uint32_t layerCount, uint64_t usage, bool* outSupported);
DGralloc.h50 uint32_t layerCount, uint64_t usage,
58 virtual status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds,
64 virtual status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds,
78 uint32_t layerCount, uint64_t usage, bool* outSupported) const = 0;
96 uint32_t layerCount, uint64_t usage, uint32_t bufferCount,
/frameworks/base/startop/scripts/app_startup/
Dforce_compiler_filter30 usage() { function
41 -h, --help usage information (this)
57 usage
82 usage
88 usage
/frameworks/base/core/jni/
Dandroid_os_Debug.cpp376 const meminfo::MemUsage& usage = vma.usage; in load_maps() local
377 if (usage.swap_pss > 0 && *foundSwapPss != true) { in load_maps()
382 if (is_swappable && (usage.pss > 0)) { in load_maps()
384 if ((usage.shared_clean > 0) || (usage.shared_dirty > 0)) { in load_maps()
385 … sharing_proportion = (usage.pss - usage.uss) / (usage.shared_clean + usage.shared_dirty); in load_maps()
387 swapable_pss = (sharing_proportion * usage.shared_clean) + usage.private_clean; in load_maps()
390 stats[which_heap].pss += usage.pss; in load_maps()
392 stats[which_heap].rss += usage.rss; in load_maps()
393 stats[which_heap].privateDirty += usage.private_dirty; in load_maps()
394 stats[which_heap].sharedDirty += usage.shared_dirty; in load_maps()
[all …]

12345678910>>...26