/frameworks/base/data/keyboards/ |
D | Vendor_0957_Product_0001.kl | 47 key usage 0x000c01BB TV_INPUT 48 key usage 0x000c022A BOOKMARK 49 key usage 0x000c0096 SETTINGS 50 key usage 0x000c009F NOTIFICATION 51 key usage 0x000c008D GUIDE 52 key usage 0x000c0089 TV 53 key usage 0x000c009C CHANNEL_UP 54 key usage 0x000c009D CHANNEL_DOWN 55 key usage 0x000c00CD MEDIA_PLAY_PAUSE 56 key usage 0x000c00B4 MEDIA_SKIP_BACKWARD [all …]
|
/frameworks/native/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 21 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/ |
D | GraphicBufferMapper.cpp | 87 PixelFormat format, uint64_t usage, uint32_t stride, in importBuffer() argument 99 error = mMapper->validateBufferSize(bufferHandle, width, height, format, layerCount, usage, in importBuffer() 127 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lock() argument 130 return lockAsync(handle, usage, bounds, vaddr, -1, outBytesPerPixel, outBytesPerStride); in lock() 133 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument 136 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr() 150 status_t GraphicBufferMapper::lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lockAsync() argument 153 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd, outBytesPerPixel, in lockAsync() 163 const uint64_t usage = static_cast<uint64_t>( in lockAsync() local 165 return mMapper->lock(handle, usage, bounds, fenceFd, vaddr, outBytesPerPixel, in lockAsync() [all …]
|
D | GraphicBufferAllocator.cpp | 96 rec.layerCount, rec.format, rec.usage, rec.requestorName.c_str()); in dump() 112 uint32_t layerCount, uint64_t usage, in allocateHelper() argument 126 width, height, layerCount, format, usage); in allocateHelper() 136 usage &= ~static_cast<uint64_t>((1 << 10) | (1 << 13)); in allocateHelper() 138 status_t error = mAllocator->allocate(requestorName, width, height, format, layerCount, usage, in allocateHelper() 143 width, height, layerCount, format, usage, error); in allocateHelper() 169 rec.usage = usage; in allocateHelper() 177 uint32_t layerCount, uint64_t usage, in allocate() argument 180 return allocateHelper(width, height, format, layerCount, usage, handle, stride, requestorName, in allocate() 186 uint64_t usage, buffer_handle_t* handle, in allocateRawHandle() argument [all …]
|
D | Gralloc4.cpp | 73 PixelFormat format, uint32_t layerCount, uint64_t usage, in sBufferDescriptorInfo() argument 80 outDescriptorInfo->usage = usage; in sBufferDescriptorInfo() 109 if (descriptorInfo->usage & ~validUsageBits) { in validateBufferDescriptorInfo() 111 descriptorInfo->usage & ~validUsageBits); in validateBufferDescriptorInfo() 166 uint32_t layerCount, uint64_t usage, in validateBufferSize() argument 169 sBufferDescriptorInfo("validateBufferSize", width, height, format, layerCount, usage, in validateBufferSize() 201 status_t Gralloc4Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, in lock() argument 250 auto ret = mMapper->lock(buffer, usage, accessRegion, acquireFenceHandle, in lock() 271 status_t Gralloc4Mapper::lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, in lock() argument 284 error = lock(bufferHandle, usage, bounds, acquireFence, &data, nullptr, nullptr); in lock() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionUsageHelper.java | 319 OpUsage usage = usagesWithLabels.keyAt(usageNum); in getOpUsageData() local 320 usages.add(new PermGroupUsage(usage.packageName, usage.uid, permGroup, in getOpUsageData() 321 usage.lastAccessTime, usage.isRunning, isPhone, in getOpUsageData() 394 OpUsage usage = new OpUsage(packageName, attributionTag, op, uid, in getOpUsages() local 397 Integer packageAttr = usage.getPackageIdHash(); in getOpUsages() 400 map.put(packageAttr, usage); in getOpUsages() 406 permGroupUsages.put(packageAttr, usage); in getOpUsages() 407 } else if (usage.lastAccessTime in getOpUsages() 409 permGroupUsages.put(packageAttr, usage); in getOpUsages() 446 OpUsage usage = usages.get(i); in getUniqueUsagesWithLabels() local [all …]
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 48 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/ |
D | GoogLeNet.java | 32 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/ |
D | VoiceCallRatTracker.java | 143 private void addProto(VoiceCallRatUsage usage) { in addProto() argument 144 mRatUsageMap.put(Key.fromProto(usage), Value.fromProto(usage)); in addProto() 150 VoiceCallRatUsage usage = new VoiceCallRatUsage(); 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(VoiceCallRatUsage usage) { in fromProto() argument 176 return new Key(usage.carrierId, usage.rat); in fromProto() [all …]
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 46 for (int usage : AudioAttributes.SDK_USAGES) { 47 final int suppressionBehavior = AudioAttributes.SUPPRESSIBLE_USAGES.get(usage); 51 audioMutedUsages.append(usage, true); in audioMutedUsages.append() argument 52 vibrationMutedUsages.append(usage, true); in vibrationMutedUsages.append() argument 70 public int checkAudioOperation(int code, int usage, int uid, String packageName) { in checkAudioOperation() argument 79 if (mutedUsages.get(usage)) { in checkAudioOperation() 86 final int mode = checkZenModeRestrictionLocked(code, usage, uid, packageName); in checkAudioOperation() 94 private int checkZenModeRestrictionLocked(int code, int usage, int uid, String packageName) { in checkZenModeRestrictionLocked() argument 97 final Restriction r = usageRestrictions.get(usage); in checkZenModeRestrictionLocked() 105 public void setZenModeAudioRestriction(int code, int usage, int uid, int mode, in setZenModeAudioRestriction() argument [all …]
|
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/ |
D | ion_buffer.h | 15 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/native/libs/ui/include/ui/ |
D | GraphicBufferMapper.h | 59 PixelFormat format, uint64_t usage, uint32_t stride, 67 status_t lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, 71 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 75 status_t lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, 84 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, 90 uint32_t layerCount, uint64_t usage, bool* outSupported); 136 uint32_t layerCount, uint64_t usage, 139 uint32_t layerCount, uint64_t usage, 142 uint32_t layerCount, uint64_t usage, 145 uint32_t layerCount, uint64_t usage, [all …]
|
D | Gralloc4.h | 52 PixelFormat format, uint32_t layerCount, uint64_t usage, 58 status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 62 status_t lock(buffer_handle_t bufferHandle, uint64_t usage, const Rect& bounds, 68 uint64_t usage, bool* outSupported) const override; 113 uint32_t layerCount, uint64_t usage, 116 uint32_t layerCount, uint64_t usage, 119 uint32_t layerCount, uint64_t usage, 122 uint32_t layerCount, uint64_t usage, 125 uint32_t layerCount, uint64_t usage, 129 uint32_t layerCount, uint64_t usage, [all …]
|
/frameworks/native/libs/ui/include_vndk/ui/ |
D | GraphicBufferMapper.h | 59 PixelFormat format, uint64_t usage, uint32_t stride, 67 status_t lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, 71 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr); 75 status_t lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, void** vaddr, 84 uint32_t usage, const Rect& bounds, android_ycbcr *ycbcr, 90 uint32_t layerCount, uint64_t usage, bool* outSupported); 136 uint32_t layerCount, uint64_t usage, 139 uint32_t layerCount, uint64_t usage, 142 uint32_t layerCount, uint64_t usage, 145 uint32_t layerCount, uint64_t usage, [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyDialogControllerTest.kt | 169 val usage = createMockPermGroupUsage() in <lambda>() constant 170 `when`(usage.isPhoneCall).thenReturn(false) in <lambda>() 171 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 182 val usage = createMockPermGroupUsage() in <lambda>() constant 183 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 201 val usage = createMockPermGroupUsage() in <lambda>() constant 202 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 218 val usage = createMockPermGroupUsage() in <lambda>() constant 219 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 232 val usage = createMockPermGroupUsage() in <lambda>() constant [all …]
|
/frameworks/native/libs/vr/libdvr/tests/ |
D | dvr_named_buffer-test.cpp | 45 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/native/libs/vr/libdisplay/ |
D | shared_buffer_helpers.cpp | 65 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/cmds/incident_helper/tests/ |
D | CpuInfoParser_test.cpp | 76 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/core/proto/android/media/ |
D | audioattributes.proto | 30 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/services/tests/servicestests/src/com/android/server/usage/ |
D | AppIdleHistoryTests.java | 17 package com.android.server.usage; 19 import static android.app.usage.UsageStatsManager.REASON_MAIN_FORCED_BY_SYSTEM; 20 import static android.app.usage.UsageStatsManager.REASON_MAIN_FORCED_BY_USER; 21 import static android.app.usage.UsageStatsManager.REASON_MAIN_TIMEOUT; 22 import static android.app.usage.UsageStatsManager.REASON_MAIN_USAGE; 23 import static android.app.usage.UsageStatsManager.REASON_SUB_FORCED_SYSTEM_FLAG_BACKGROUND_RESOURCE… 24 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_MOVE_TO_FOREGROUND; 25 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE; 26 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_FREQUENT; 27 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_RARE; [all …]
|
/frameworks/native/cmds/lshal/ |
D | HelpCommand.cpp | 35 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/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 26 import android.app.usage.NetworkStats.Bucket; 27 import android.app.usage.NetworkStatsManager; 139 final DataUsageInfo usage = new DataUsageInfo(); in getDataUsageInfo() local 140 usage.startDate = start; in getDataUsageInfo() 141 usage.usageLevel = totalBytes; in getDataUsageInfo() 142 usage.period = formatDateRange(start, end); in getDataUsageInfo() 143 usage.cycleStart = start; in getDataUsageInfo() 144 usage.cycleEnd = end; in getDataUsageInfo() 147 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo() 148 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | GraphicBuffer.java | 80 public static GraphicBuffer create(int width, int height, int format, int usage) { in create() argument 81 long nativeObject = nCreateGraphicBuffer(width, height, format, usage); in create() 83 return new GraphicBuffer(width, height, format, usage, nativeObject); in create() 92 private GraphicBuffer(int width, int height, int format, int usage, long nativeObject) { in GraphicBuffer() argument 96 mUsage = usage; in GraphicBuffer() 284 int usage = in.readInt(); 287 return new GraphicBuffer(width, height, format, usage, nativeObject); 297 private static native long nCreateGraphicBuffer(int width, int height, int format, int usage); in nCreateGraphicBuffer() argument
|
/frameworks/native/services/inputflinger/host/ |
D | InputDriver.h | 56 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 …]
|
/frameworks/av/media/audioserver/ |
D | main_audioserver.cpp | 109 struct rusage usage; in main() local 110 getrusage(RUSAGE_CHILDREN, &usage); in main() 113 usage.ru_utime.tv_sec, usage.ru_utime.tv_usec / 1000, in main() 114 usage.ru_stime.tv_sec, usage.ru_stime.tv_usec / 1000); in main()
|