/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 261 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 262 if (expectedAllowedVibrations.contains(usage)) { in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 263 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 265 assertVibrationIgnoredForUsage(usage, Vibration.Status.IGNORED_BACKGROUND); in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 275 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_fromForeground_allowsAnyUsage() 276 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_fromForeground_allowsAnyUsage() 292 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist() 293 if (expectedAllowedVibrations.contains(usage)) { in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist() 294 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist() 296 assertVibrationIgnoredForUsage(usage, Vibration.Status.IGNORED_FOR_POWER); in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist() [all …]
|
/frameworks/base/data/keyboards/ |
D | Vendor_0957_Product_0001.kl | 47 key usage 0x000c01BB TV_INPUT 48 key usage 0x000c0186 MACRO_1 50 key usage 0x000c0185 TV_TELETEXT 51 key usage 0x000c0061 CAPTIONS 53 key usage 0x000c01BD INFO 54 key usage 0x000c0037 PERIOD 56 key usage 0x000c0069 PROG_RED 57 key usage 0x000c006A PROG_GREEN 58 key usage 0x000c006C PROG_YELLOW 59 key usage 0x000c006B PROG_BLUE [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/av/media/libaudiousecasevalidation/tests/ |
D | UsecaseValidator-test.cpp | 66 audio_usage_t usage) { in testVerifyAudioAttributes() argument 69 attributes.usage = usage; in testVerifyAudioAttributes() 113 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_GAME); in TEST_F() 117 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_MEDIA); in TEST_F() 143 attributes.usage = AUDIO_USAGE_GAME; in TEST_F() 147 attributes.usage = AUDIO_USAGE_MEDIA; in TEST_F() 181 attributes.usage = AUDIO_USAGE_GAME; in TEST_F() 183 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_GAME); in TEST_F() 185 attributes.usage = AUDIO_USAGE_VOICE_COMMUNICATION; in TEST_F() 187 EXPECT_EQ(attr.value().usage, AUDIO_USAGE_VOICE_COMMUNICATION); in TEST_F() [all …]
|
/frameworks/base/core/java/android/permission/ |
D | PermissionUsageHelper.java | 355 OpUsage usage = usagesWithLabels.keyAt(usageNum); in getOpUsageData() local 356 String attributionLabel = subAttributionLabelsMap.getOrDefault(usage.packageName, in getOpUsageData() 357 new ArrayMap<>()).getOrDefault(usage.attributionTag, null); in getOpUsageData() 359 new PermissionGroupUsage(usage.packageName, usage.uid, usage.lastAccessTime, in getOpUsageData() 361 usage.isRunning, isPhone, usage.attributionTag, attributionLabel, in getOpUsageData() 374 for (OpUsage usage : usages) { in updateSubattributionLabelsMap() 375 if (usage.attributionTag != null && !subAttributionLabelsMap.containsKey( in updateSubattributionLabelsMap() 376 usage.packageName)) { in updateSubattributionLabelsMap() 377 subAttributionLabelsMap.put(usage.packageName, in updateSubattributionLabelsMap() 378 getSubattributionLabelsForPackage(usage.packageName, usage.uid)); in updateSubattributionLabelsMap() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyDialogControllerV2Test.kt | 192 val usage = createMockPermGroupUsage() in <lambda>() constant 193 `when`(usage.isPhoneCall).thenReturn(false) in <lambda>() 194 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 205 val usage = createMockPermGroupUsage() in <lambda>() constant 206 `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>() 238 val usage = createMockPermGroupUsage() in <lambda>() constant 239 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 255 val usage = createMockPermGroupUsage() in <lambda>() constant [all …]
|
D | PrivacyDialogControllerTest.kt | 177 val usage = createMockPermGroupUsage() in <lambda>() constant 178 `when`(usage.isPhoneCall).thenReturn(false) in <lambda>() 179 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 190 val usage = createMockPermGroupUsage() in <lambda>() constant 191 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 209 val usage = createMockPermGroupUsage() in <lambda>() constant 210 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 226 val usage = createMockPermGroupUsage() in <lambda>() constant 227 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 240 val usage = createMockPermGroupUsage() in <lambda>() constant [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/nativewindow/ |
D | AHardwareBuffer.cpp | 51 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate() local 53 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate() 93 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe() 99 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo() argument 109 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lockAndGetInfo() 116 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lockAndGetInfo() 140 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo() 154 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument 161 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock() 168 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock() [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 101 rec.layerCount, rec.format, rec.usage, rec.requestorName.c_str()); in dump() 117 uint32_t layerCount, uint64_t usage, in allocateHelper() argument 131 width, height, layerCount, format, usage); in allocateHelper() 141 usage &= ~static_cast<uint64_t>((1 << 10) | (1 << 13)); in allocateHelper() 143 status_t error = mAllocator->allocate(requestorName, width, height, format, layerCount, usage, in allocateHelper() 148 width, height, layerCount, format, usage, error); in allocateHelper() 174 rec.usage = usage; in allocateHelper() 182 uint32_t layerCount, uint64_t usage, in allocate() argument 185 return allocateHelper(width, height, format, layerCount, usage, handle, stride, requestorName, in allocate() 191 uint64_t usage, buffer_handle_t* handle, in allocateRawHandle() argument [all …]
|
D | GraphicBufferMapper.cpp | 94 uint64_t usage, uint32_t stride, in importBuffer() argument 105 error = mMapper->validateBufferSize(bufferHandle, width, height, format, layerCount, usage, in importBuffer() 138 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lock() argument 141 return lockAsync(handle, usage, bounds, vaddr, -1, outBytesPerPixel, outBytesPerStride); in lock() 144 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument 147 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr() 161 status_t GraphicBufferMapper::lockAsync(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lockAsync() argument 164 return lockAsync(handle, usage, usage, bounds, vaddr, fenceFd, outBytesPerPixel, in lockAsync() 174 const uint64_t usage = static_cast<uint64_t>( in lockAsync() local 176 return mMapper->lock(handle, usage, bounds, fenceFd, vaddr, outBytesPerPixel, in lockAsync() [all …]
|
/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/av/media/libaudiousecasevalidation/ |
D | UsecaseValidator.cpp | 70 __func__, streamId, portId, attributes.usage, attributionSource.pid, in startClient() 97 __func__, streamId, attributes.usage, attributionSource.pid, in verifyAudioAttributes() 102 if (isUsageValid(attributes.usage) && isContentTypeValid(attributes.content_type) in verifyAudioAttributes() 105 __func__, attributes.usage, streamId, attributionSource.pid, in verifyAudioAttributes() 108 attrRet.usage = AUDIO_USAGE_GAME; in verifyAudioAttributes() 118 bool isUsageValid(audio_usage_t usage) { in isUsageValid() argument 119 ALOGV("isUsageValid usage: %d", usage); in isUsageValid() 120 switch (usage) { in isUsageValid()
|
/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.REASON_SUB_USAGE_NOTIFICATION_SEEN; 26 import static android.app.usage.UsageStatsManager.REASON_SUB_USAGE_SLICE_PINNED; 27 import static android.app.usage.UsageStatsManager.STANDBY_BUCKET_ACTIVE; [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 | 23 import android.app.usage.NetworkStats.Bucket; 24 import android.app.usage.NetworkStatsManager; 127 final DataUsageInfo usage = new DataUsageInfo(); in getDataUsageInfo() local 128 usage.startDate = start; in getDataUsageInfo() 129 usage.usageLevel = totalBytes; in getDataUsageInfo() 130 usage.period = formatDateRange(start, end); in getDataUsageInfo() 131 usage.cycleStart = start; in getDataUsageInfo() 132 usage.cycleEnd = end; in getDataUsageInfo() 135 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo() 136 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | TEST_MAPPING | 7 "include-filter": "android.app.usage" 15 "include-filter": "com.android.server.usage" 18 "exclude-filter": "com.android.server.usage.StorageStatsServiceTest" 26 "include-filter": "android.app.usage.cts.BroadcastResponseStatsTest" 48 "include-filter": "android.app.usage.cts.UsageStatsTest"
|
D | IntervalStats.java | 16 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/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() 285 int usage = in.readInt(); 288 return new GraphicBuffer(width, height, format, usage, nativeObject); 298 private static native long nCreateGraphicBuffer(int width, int height, int format, int usage); in nCreateGraphicBuffer() argument
|
/frameworks/native/services/inputflinger/host/ |
D | InputDriver.h | 55 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, 58 input_collection_id_t id, input_usage_t* usage, size_t usageCount) = 0; 66 input_usage_t usage, int32_t value, int32_t arity_index) = 0; 68 input_usage_t usage, bool value, int32_t arity_index) = 0; 102 input_collection_id_t id, input_usage_t usage, int32_t min, int32_t max, 105 input_collection_id_t id, input_usage_t* usage, size_t usageCount) override; 113 input_usage_t usage, int32_t value, int32_t arity_index) override; 115 input_usage_t usage, bool value, int32_t arity_index) override; 156 input_usage_t usage, int32_t min, int32_t max, float resolution); 160 input_usage_t* usage, size_t usage_count); [all …]
|
D | InputDriver.cpp | 66 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 334 input_usage_t usage, int32_t min, int32_t max, float resolution) { in input_report_definition_declare_usage_int() argument 336 driver->inputReportDefinitionDeclareUsageInt(report, id, usage, min, max, resolution); in input_report_definition_declare_usage_int() 341 input_usage_t* usage, size_t usage_count) { in input_report_definition_declare_usages_bool() argument [all …]
|