Home
last modified time | relevance | path

Searched refs:USAGE_ALARM (Results 1 – 25 of 31) sorted by relevance

12

/frameworks/base/core/java/android/os/
DVibrationAttributes.java50 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/
DVibrationAttributesTest.java32 .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/
DVibratorControlServiceTest.java19 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()
DVibratorManagerServiceTest.java139 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 …]
DVibrationSettingsTest.java23 import static android.os.VibrationAttributes.USAGE_ALARM;
115 USAGE_ALARM,
281 USAGE_ALARM, in shouldIgnoreVibration_fromBackground_doesNotIgnoreUsagesFromAllowlist()
395 USAGE_ALARM, in shouldIgnoreVibration_inBatterySaverMode_doesNotIgnoreUsagesFromAllowlist()
DInputDeviceDelegateTest.java62 new VibrationAttributes.Builder().setUsage(VibrationAttributes.USAGE_ALARM).build();
/frameworks/base/media/java/android/media/
DAudioAttributes.java139 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/
DNotificationChannelExtractorTest.java23 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()
DNotificationRecordTest.java23 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()
DZenModeFilteringTest.java163 .setUsage(AudioAttributes.USAGE_ALARM) in testIsAlarm()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java21 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()
DVibratorControlService.java20 import static android.os.VibrationAttributes.USAGE_ALARM;
366 case USAGE_ALARM -> { in mapToAdaptiveVibrationType()
392 usages.add(USAGE_ALARM); in mapFromAdaptiveVibrationTypeToVibrationUsages()
DVibratorManagerService.java1094 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/
DVibrationConfig.java20 import static android.os.VibrationAttributes.USAGE_ALARM;
216 case USAGE_ALARM: in getDefaultVibrationIntensity()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DAudioAttributesUnitTest.java40 assertEquals("USAGE_ALARM", AudioAttributes.usageToString(AudioAttributes.USAGE_ALARM)); in testUsageToString_returnCorrectStrings()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationChannelExtractor.java90 && attributes.getUsage() == AudioAttributes.USAGE_ALARM) { in process()
DZenModeFiltering.java340 || record.isAudioAttributesUsage(AudioAttributes.USAGE_ALARM); in isAlarm()
/frameworks/base/tests/permission/src/com/android/framework/permission/tests/
DVibratorManagerServicePermissionTest.java58 .setUsage(VibrationAttributes.USAGE_ALARM)
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/
DFadeManagerConfigurationUnitTest.java444 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/
Dnotification.aconfig160 description: "Only alarm category notifs can use USAGE_ALARM"
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java182 List<Integer> usageList = List.of(AudioAttributes.USAGE_ALARM, in testGetFadeableUsages_withFadeManagerConfigurations_equals()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DFlashNotificationsControllerTest.java436 builder.setUsage(AudioAttributes.USAGE_ALARM); in getConfigWithAlarm()
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationChannelTest.java280 testWriteXmlForBackup_customLookup(AudioAttributes.USAGE_ALARM, AudioColumns.IS_ALARM); in testWriteXmlForBackup_customLookup_alarmUsage()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DFlashNotificationsController.java213 == AudioAttributes.USAGE_ALARM);
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java1053 case AudioAttributes.USAGE_ALARM: in getFocusRampTimeMs()

12