Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java19 import static android.media.AudioAttributes.USAGE_ALARM;
195 mHalAudioFocus.requestAudioFocus(USAGE_ALARM, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndDifferentUsage_keepsExistingRequest()
302 mHalAudioFocus.abandonAudioFocus(USAGE_ALARM, ZONE_ID); in abandonAudioFocus_withExistingRequestOfDifferentUsage_doesNothing()
338 mHalAudioFocus.requestAudioFocus(USAGE_ALARM, ZONE_ID, AUDIOFOCUS_GAIN); in reset_abandonsExistingRequests()
354 mHalAudioFocus.requestAudioFocus(USAGE_ALARM, ZONE_ID, AUDIOFOCUS_GAIN); in reset_notifiesHal()
364 verify(mAudioControlWrapper).onAudioFocusChange(USAGE_ALARM, ZONE_ID, AUDIOFOCUS_LOSS); in reset_notifiesHal()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZoneTest.java18 import static android.media.AudioAttributes.USAGE_ALARM;
144 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_returnsNoMatchingContexts()
165 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_withMultiDevices_returnsContexts()
184 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_deviceWithMultiContext_returnsContext()
224 new Builder().setUsage(USAGE_ALARM) in findActiveContextsFromPlaybackConfigurations_withMultiGroupMatch_returnsContexts()
DCarAudioFocusTest.java98 .setUsage(AudioAttributes.USAGE_ALARM)
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/
DVolumeSettingsRingtoneManagerTest.java19 import static android.media.AudioAttributes.USAGE_ALARM;
80 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfConfigIsEmpty()
93 Uri ringtoneUri = mRingtoneManager.getRingtoneUri(USAGE_ALARM); in getRingtoneUri_defaultsToDefaultRingtoneUriIfUsageNotInConfig()
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/
DNotificationEntryTest.java21 import static android.media.AudioAttributes.USAGE_ALARM;
189 channel.setSound(null, new AudioAttributes.Builder().setUsage(USAGE_ALARM).build()); in testIsAudioAttributes()
194 assertTrue(entry.isAudioAttributesUsage(USAGE_ALARM)); in testIsAudioAttributes()
203 assertFalse(entry.isAudioAttributesUsage(USAGE_ALARM)); in testIsNotAudioAttributes()
/packages/services/Car/tests/SampleCustomInputService/tests/src/com/android/car/custominput/sample/unittest/
DCustomInputEventListenerTest.java219 doTestIncreaseVolumeAndAssert(AudioAttributes.USAGE_ALARM, CustomInputEvent.INPUT_CODE_F6); in testHandleEvent_increaseAlarmVolume()
252 doTestIncreaseMaxVolumeAndAssert(AudioAttributes.USAGE_ALARM, in testHandleEvent_increaseAlarmVolumeMax()
283 doTestDecreaseVolumeAndAssert(AudioAttributes.USAGE_ALARM, CustomInputEvent.INPUT_CODE_F7); in testHandleEvent_decreaseAlarmVolume()
316 doTestDecreaseMinVolumeAndAssert(AudioAttributes.USAGE_ALARM, in testHandleEvent_decreaseAlarmMinVolume()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTransientPlayersFragment.java19 import static android.media.AudioAttributes.USAGE_ALARM;
50 USAGE_VOICE_COMMUNICATION, USAGE_ALARM, USAGE_NOTIFICATION));
/packages/apps/Settings/src/com/android/settings/notification/app/
DSoundPreferenceController.java19 import static android.media.AudioAttributes.USAGE_ALARM;
105 if (USAGE_ALARM == mChannel.getAudioAttributes().getUsage()) { in handlePreferenceTreeClick()
/packages/services/Car/tests/SampleCustomInputService/src/com/android/car/custominput/sample/
DCustomInputEventListener.java114 increaseVolume(targetDisplayId, AudioAttributes.USAGE_ALARM); in handle()
117 decreaseVolume(targetDisplayId, AudioAttributes.USAGE_ALARM); in handle()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarDuckingUtilsTest.java19 import static android.media.AudioAttributes.USAGE_ALARM;
178 int[] usages = new int[]{USAGE_MEDIA, USAGE_SAFETY, USAGE_ALARM}; in getAddressesToDuck_withDuckedContextsSharingADevice_includesAddressOnce()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt291 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
486 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerKlaxon.kt80 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmKlaxon.kt78 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/
DEmergencyActionAlarmHelper.java63 .setUsage(AudioAttributes.USAGE_ALARM) in playWarningSound()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDynamicRouting.java46 AudioAttributes.USAGE_ALARM,
DCarAudioContext.java171 AudioAttributes.USAGE_ALARM in CONTEXT_TO_USAGES.put() argument
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java459 attrBuilder.setUsage(AudioAttributes.USAGE_ALARM); in playAlertTone()
680 AudioAttributes.USAGE_NOTIFICATION : AudioAttributes.USAGE_ALARM); in getAlertAudioAttributes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DSoundPreferenceControllerTest.java261 AudioAttributes.USAGE_ALARM).build()); in testOnPreferenceTreeClick_alarmSound()