/frameworks/base/data/keyboards/ |
D | Vendor_0957_Product_0001.kl | 46 key usage 0x00070037 PERIOD 49 key usage 0x000c01BB TV_INPUT 51 key usage 0x000c0185 TV_TELETEXT 52 key usage 0x000c0061 CAPTIONS 54 key usage 0x000c01BD INFO 56 key usage 0x000c0069 PROG_RED 57 key usage 0x000c006A PROG_GREEN 58 key usage 0x000c006C PROG_YELLOW 59 key usage 0x000c006B PROG_BLUE 60 key usage 0x000c00B4 MEDIA_SKIP_BACKWARD [all …]
|
D | Vendor_0957_Product_0031.kl | 47 key usage 0x000c01BB TV_INPUT 49 key usage 0x000c0185 TV_TELETEXT 50 key usage 0x000c0061 CAPTIONS 52 key usage 0x000c01BD INFO 53 key usage 0x000c0037 PERIOD 55 key usage 0x000c0069 PROG_RED 56 key usage 0x000c006A PROG_GREEN 57 key usage 0x000c006C PROG_YELLOW 58 key usage 0x000c006B PROG_BLUE 59 key usage 0x000c00B4 MEDIA_SKIP_BACKWARD [all …]
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibrationSettingsTest.java | 291 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 292 if (expectedAllowedVibrations.contains(usage)) { in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 293 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 295 assertVibrationIgnoredForUsage(usage, Vibration.Status.IGNORED_BACKGROUND); in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 305 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_fromForeground_allowsAnyUsage() 306 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_fromForeground_allowsAnyUsage() 317 for (int usage : ALL_USAGES) { in wirelessChargingVibrationsEnabled_doesNotRegisterBatteryReceiver_allowsAnyUsage() 318 assertVibrationNotIgnoredForUsage(usage); in wirelessChargingVibrationsEnabled_doesNotRegisterBatteryReceiver_allowsAnyUsage() 328 for (int usage : ALL_USAGES) { in shouldIgnoreVibration_noBatteryIntentWhenSystemReady_allowsAnyUsage() 329 assertVibrationNotIgnoredForUsage(usage); in shouldIgnoreVibration_noBatteryIntentWhenSystemReady_allowsAnyUsage() [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/native/libs/input/tests/data/ |
D | hid_fallback_mapping.kl | 20 key usage 0x0c0067 WINDOW 21 key usage 0x0c006F BRIGHTNESS_UP 22 key usage 0x0c0070 BRIGHTNESS_DOWN 23 key usage 0x0c0079 KEYBOARD_BACKLIGHT_UP 24 key usage 0x0c007A KEYBOARD_BACKLIGHT_DOWN 27 key usage 0x0c007C KEYBOARD_BACKLIGHT_TOGGLE FALLBACK_USAGE_MAPPING 28 key usage 0x0c0173 MEDIA_AUDIO_TRACK FALLBACK_USAGE_MAPPING 29 key usage 0x0c019C PROFILE_SWITCH FALLBACK_USAGE_MAPPING 30 key usage 0x0c01A2 ALL_APPS FALLBACK_USAGE_MAPPING 31 key usage 0x0d0044 STYLUS_BUTTON_PRIMARY FALLBACK_USAGE_MAPPING [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | PrivacyDialogControllerV2Test.kt | 184 val usage = createMockPermGroupUsage() in <lambda>() constant 185 `when`(usage.isPhoneCall).thenReturn(false) in <lambda>() 186 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 197 val usage = createMockPermGroupUsage() in <lambda>() constant 198 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 212 val usage = createMockPermGroupUsage() in <lambda>() constant 213 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 232 val usage = createMockPermGroupUsage() in <lambda>() constant 233 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 249 val usage = createMockPermGroupUsage() in <lambda>() constant [all …]
|
D | PrivacyDialogControllerTest.kt | 181 val usage = createMockPermGroupUsage() in <lambda>() constant 182 `when`(usage.isPhoneCall).thenReturn(false) in <lambda>() 183 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 194 val usage = createMockPermGroupUsage() in <lambda>() constant 195 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 213 val usage = createMockPermGroupUsage() in <lambda>() constant 214 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 230 val usage = createMockPermGroupUsage() in <lambda>() constant 231 `when`(permissionManager.getIndicatorAppOpUsageData(anyBoolean())).thenReturn(listOf(usage)) in <lambda>() 244 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/base/core/java/android/permission/ |
D | PermissionUsageHelper.java | 355 OpUsage usage = usagesWithLabels.keyAt(usageNum); in getOpUsageDataByDevice() local 356 String attributionLabel = subAttributionLabelsMap.getOrDefault(usage.packageName, in getOpUsageDataByDevice() 357 new ArrayMap<>()).getOrDefault(usage.attributionTag, null); in getOpUsageDataByDevice() 359 new PermissionGroupUsage(usage.packageName, usage.uid, usage.lastAccessTime, in getOpUsageDataByDevice() 361 usage.isRunning, isPhone, usage.attributionTag, attributionLabel, in getOpUsageDataByDevice() 400 for (OpUsage usage : usages) { in updateSubattributionLabelsMap() 401 if (usage.attributionTag != null && !subAttributionLabelsMap.containsKey( in updateSubattributionLabelsMap() 402 usage.packageName)) { in updateSubattributionLabelsMap() 403 subAttributionLabelsMap.put(usage.packageName, in updateSubattributionLabelsMap() 404 getSubattributionLabelsForPackage(usage.packageName, usage.uid)); in updateSubattributionLabelsMap() [all …]
|
/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.toArray()) { 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 | 141 uint64_t usage = AHardwareBuffer_convertToGrallocUsageBits(desc->usage); in AHardwareBuffer_allocate() local 143 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate() 183 outDesc->usage = AHardwareBuffer_convertFromGrallocUsageBits(gbuffer->getUsage()); in AHardwareBuffer_describe() 189 int AHardwareBuffer_lockAndGetInfo(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lockAndGetInfo() argument 199 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lockAndGetInfo() 206 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lockAndGetInfo() 230 …int result = gbuffer->lockAsync(usage, usage, bounds, outVirtualAddress, fence, &bytesPerPixel, &b… in AHardwareBuffer_lockAndGetInfo() 244 int AHardwareBuffer_lock(AHardwareBuffer* buffer, uint64_t usage, in AHardwareBuffer_lock() argument 251 if (usage & ~(AHARDWAREBUFFER_USAGE_CPU_READ_MASK | in AHardwareBuffer_lock() 258 usage = AHardwareBuffer_convertToGrallocUsageBits(usage); in AHardwareBuffer_lock() [all …]
|
/frameworks/base/media/java/android/media/ |
D | FadeManagerConfiguration.java | 279 public long getFadeOutDurationForUsage(@AudioAttributes.AttributeUsage int usage) { in getFadeOutDurationForUsage() argument 281 validateUsage(usage); in getFadeOutDurationForUsage() 283 mUsageToFadeWrapperMap.get(usage), /* isFadeIn= */ false)); in getFadeOutDurationForUsage() 295 public long getFadeInDurationForUsage(@AudioAttributes.AttributeUsage int usage) { in getFadeInDurationForUsage() argument 297 validateUsage(usage); in getFadeInDurationForUsage() 299 mUsageToFadeWrapperMap.get(usage), /* isFadeIn= */ true)); in getFadeInDurationForUsage() 314 @AudioAttributes.AttributeUsage int usage) { in getFadeOutVolumeShaperConfigForUsage() 316 validateUsage(usage); in getFadeOutVolumeShaperConfigForUsage() 317 return getVolumeShaperConfigFromWrapper(mUsageToFadeWrapperMap.get(usage), in getFadeOutVolumeShaperConfigForUsage() 333 @AudioAttributes.AttributeUsage int usage) { in getFadeInVolumeShaperConfigForUsage() [all …]
|
/frameworks/native/libs/ui/ |
D | GraphicBufferAllocator.cpp | 101 rec.layerCount, rec.format, rec.usage, rec.requestorName.c_str()); in dump() 129 request.width, request.height, request.layerCount, request.format, request.usage); in allocate() 147 request.format, request.layerCount, request.usage, in allocate() 154 request.width, request.height, request.layerCount, request.format, request.usage, in allocate() 181 rec.usage = request.usage; in allocate() 190 uint32_t layerCount, uint64_t usage, in allocateHelper() argument 204 width, height, layerCount, format, usage); in allocateHelper() 214 usage &= ~static_cast<uint64_t>((1 << 10) | (1 << 13)); in allocateHelper() 216 status_t error = mAllocator->allocate(requestorName, width, height, format, layerCount, usage, in allocateHelper() 221 width, height, layerCount, format, usage, error); in allocateHelper() [all …]
|
/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; 115 final DataUsageInfo usage = new DataUsageInfo(); in getDataUsageInfo() local 116 usage.startDate = start; in getDataUsageInfo() 117 usage.usageLevel = totalBytes; in getDataUsageInfo() 118 usage.period = formatDateRange(start, end); in getDataUsageInfo() 119 usage.cycleStart = start; in getDataUsageInfo() 120 usage.cycleEnd = end; in getDataUsageInfo() 123 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo() 124 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo() [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/native/libs/nativewindow/rust/src/ |
D | lib.rs | 51 usage: AHardwareBuffer_UsageFlags, in is_supported() 59 usage: usage.0, in is_supported() 82 usage: AHardwareBuffer_UsageFlags, in new() 89 usage: usage.0, in new() 179 pub fn usage(&self) -> AHardwareBuffer_UsageFlags { in usage() method 180 AHardwareBuffer_UsageFlags(self.description().usage) in usage() 194 usage: 0, in description() 307 usage: AHardwareBuffer_UsageFlags::AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN.0, in from_raw_allows_getters() 341 buffer.usage(), in basic_getters()
|
/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/base/services/usage/java/com/android/server/usage/ |
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 …]
|