/frameworks/base/core/java/android/os/ |
D | VibrationAttributes.java | 50 USAGE_ALARM, 99 public static final int USAGE_ALARM = 0x10 | USAGE_CLASS_ALARM; field in VibrationAttributes 353 case USAGE_ALARM: in getAudioUsage() 354 return AudioAttributes.USAGE_ALARM; in getAudioUsage() 432 case USAGE_ALARM: in usageToString() 534 case AudioAttributes.USAGE_ALARM: in setUsage() 535 mUsage = USAGE_ALARM; in setUsage()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | VibrationAttributesTest.java | 32 .setUsage(VibrationAttributes.USAGE_ALARM) in testSimple() 36 assertEquals(VibrationAttributes.USAGE_ALARM, attr.getUsage()); in testSimple()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorControlServiceTest.java | 19 import static android.os.VibrationAttributes.USAGE_ALARM; 151 verify(mMockVibrationScaler).updateAdaptiveHapticsScale(USAGE_ALARM, 0.7f); in testOnRequestVibrationParamsComplete_cachesAdaptiveHapticsScalesCorrectly() 216 verify(mMockVibrationScaler).updateAdaptiveHapticsScale(USAGE_ALARM, 0.7f); in testSetVibrationParams_cachesAdaptiveHapticsScalesCorrectly() 260 verify(mMockVibrationScaler).removeAdaptiveHapticsScale(USAGE_ALARM); in testClearVibrationParams_clearsCachedAdaptiveHapticsScales() 296 new int[]{USAGE_ALARM, USAGE_RINGTONE, USAGE_MEDIA, USAGE_TOUCH, USAGE_NOTIFICATION, in testShouldRequestVibrationParams_returnsTrueForVibrationsThatShouldRequestParams() 310 new int[]{USAGE_ALARM, USAGE_RINGTONE, USAGE_MEDIA, USAGE_TOUCH, USAGE_NOTIFICATION, in testShouldRequestVibrationParams_unregisteredVibratorController_returnsFalse()
|
D | VibratorManagerServiceTest.java | 139 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_ALARM).build(); 143 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_ALARM).build(); 800 eq(AudioAttributes.USAGE_ALARM), anyInt(), anyString()); in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager() 1210 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_ALARM)); in vibrate_withInputDevices_vibratesInputDevices() 1254 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_ALARM)); in vibrate_withriggerCallback_finishesVibration() 1538 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_ALARM)); in vibrate_withIntensitySettings_appliesSettingsToScaleVibrations() 1622 mVibrator.getDefaultVibrationIntensity(VibrationAttributes.USAGE_ALARM)); 2068 .setUsage(AudioAttributes.USAGE_ALARM) in onExternalVibration_withBypassMuteAudioFlag_ignoresUserSettings() 2071 .setUsage(AudioAttributes.USAGE_ALARM) in onExternalVibration_withBypassMuteAudioFlag_ignoresUserSettings() 2195 .setUsage(AudioAttributes.USAGE_ALARM) in frameworkStats_externalVibration_reportsAllMetrics() [all …]
|
D | VibrationSettingsTest.java | 23 import static android.os.VibrationAttributes.USAGE_ALARM; 115 USAGE_ALARM, 281 USAGE_ALARM, in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist() 395 USAGE_ALARM, in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist()
|
D | InputDeviceDelegateTest.java | 62 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_ALARM).build();
|
/frameworks/base/media/java/android/media/ |
D | AudioAttributes.java | 139 public final static int USAGE_ALARM = 4; field in AudioAttributes 319 SUPPRESSIBLE_USAGES.put(USAGE_ALARM, SUPPRESSIBLE_ALARM); in SUPPRESSIBLE_USAGES.put() argument 339 USAGE_ALARM, 897 case USAGE_ALARM: in setUsage() 1489 case USAGE_ALARM: in usageToString() 1541 case AudioAttributes.USAGE_ALARM: in usageToXsdString() 1585 sXsdStringToUsage.put(AudioUsage.AUDIO_USAGE_ALARM.toString(), USAGE_ALARM); in AudioUsage.AUDIO_USAGE_ALARM.toString() 1645 return USAGE_ALARM; in usageForStreamType() 1777 case USAGE_ALARM: in toVolumeStreamType() 1843 USAGE_ALARM, [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationChannelExtractorTest.java | 23 import static android.media.AudioAttributes.USAGE_ALARM; 203 .setUsage(USAGE_ALARM) in testAudioAttributes_alarmCategoryCanUseAlarmUsage() 213 assertThat(r.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_alarmCategoryCanUseAlarmUsage() 223 .setUsage(USAGE_ALARM) in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage() 236 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in testAudioAttributes_nonAlarmCategoryCannotUseAlarmUsage()
|
D | NotificationRecordTest.java | 23 import static android.media.AudioAttributes.USAGE_ALARM; 1592 new AudioAttributes.Builder().setUsage(USAGE_ALARM).build()); in updateChannel_nonNullAudioAttributes() 1595 assertThat(record.getAudioAttributes().getUsage()).isEqualTo(USAGE_ALARM); in updateChannel_nonNullAudioAttributes()
|
D | ZenModeFilteringTest.java | 163 .setUsage(AudioAttributes.USAGE_ALARM) in testIsAlarm()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 21 import static android.os.VibrationAttributes.USAGE_ALARM; 93 USAGE_ALARM, 108 USAGE_ALARM, 564 getDefaultIntensity(USAGE_ALARM)); in updateSettings() 590 mCurrentVibrationIntensities.put(USAGE_ALARM, alarmIntensity); in updateSettings() 701 getCurrentIntensity(USAGE_ALARM)); in dump() 703 getDefaultIntensity(USAGE_ALARM)); in dump()
|
D | VibratorControlService.java | 20 import static android.os.VibrationAttributes.USAGE_ALARM; 366 case USAGE_ALARM -> { in mapToAdaptiveVibrationType() 392 usages.add(USAGE_ALARM); in mapFromAdaptiveVibrationTypeToVibrationUsages()
|
D | VibratorManagerService.java | 1094 case VibrationAttributes.USAGE_ALARM: in getVibrationImportance() 1705 || usage == VibrationAttributes.USAGE_ALARM; in isRepeating() 1816 case VibrationAttributes.USAGE_ALARM -> in findGroupKeyProtoFieldId()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | VibrationConfig.java | 20 import static android.os.VibrationAttributes.USAGE_ALARM; 216 case USAGE_ALARM: in getDefaultVibrationIntensity()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | AudioAttributesUnitTest.java | 40 assertEquals("USAGE_ALARM", AudioAttributes.usageToString(AudioAttributes.USAGE_ALARM)); in testUsageToString_returnCorrectStrings()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationChannelExtractor.java | 90 && attributes.getUsage() == AudioAttributes.USAGE_ALARM) { in process()
|
D | ZenModeFiltering.java | 340 || record.isAudioAttributesUsage(AudioAttributes.USAGE_ALARM); in isAlarm()
|
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/ |
D | VibratorManagerServicePermissionTest.java | 58 .setUsage(VibrationAttributes.USAGE_ALARM)
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | FadeManagerConfigurationUnitTest.java | 444 AudioAttributes.USAGE_ALARM, in testSetFadeableUsages() 449 AudioAttributes aaForAlarm = createAudioAttributesForUsage(AudioAttributes.USAGE_ALARM); in testSetFadeableUsages() 504 AudioAttributes.USAGE_ALARM, in testSetFadeableUsages_withEmptyListClears_addsNewUsage()
|
/frameworks/base/core/java/android/app/ |
D | notification.aconfig | 160 description: "Only alarm category notifs can use USAGE_ALARM"
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | FadeConfigurationsTest.java | 182 List<Integer> usageList = List.of(AudioAttributes.USAGE_ALARM, in testGetFadeableUsages_withFadeManagerConfigurations_equals()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | FlashNotificationsControllerTest.java | 436 builder.setUsage(AudioAttributes.USAGE_ALARM); in getConfigWithAlarm()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationChannelTest.java | 280 testWriteXmlForBackup_customLookup(AudioAttributes.USAGE_ALARM, AudioColumns.IS_ALARM); in testWriteXmlForBackup_customLookup_alarmUsage()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | FlashNotificationsController.java | 213 == AudioAttributes.USAGE_ALARM);
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 1053 case AudioAttributes.USAGE_ALARM: in getFocusRampTimeMs()
|