/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 19 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/ |
D | CarAudioZoneTest.java | 18 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()
|
D | CarAudioFocusTest.java | 98 .setUsage(AudioAttributes.USAGE_ALARM)
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/sound/ |
D | VolumeSettingsRingtoneManagerTest.java | 19 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/ |
D | NotificationEntryTest.java | 21 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/ |
D | CustomInputEventListenerTest.java | 219 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/ |
D | AudioTransientPlayersFragment.java | 19 import static android.media.AudioAttributes.USAGE_ALARM; 50 USAGE_VOICE_COMMUNICATION, USAGE_ALARM, USAGE_NOTIFICATION));
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | SoundPreferenceController.java | 19 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/ |
D | CustomInputEventListener.java | 114 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/ |
D | CarDuckingUtilsTest.java | 19 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/ |
D | AsyncRingtonePlayer.kt | 291 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>() 486 .setUsage(AudioAttributes.USAGE_ALARM) in <lambda>()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerKlaxon.kt | 80 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmKlaxon.kt | 78 .setUsage(AudioAttributes.USAGE_ALARM) in vibrateLOrLater()
|
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/action/sensoryfeedback/ |
D | EmergencyActionAlarmHelper.java | 63 .setUsage(AudioAttributes.USAGE_ALARM) in playWarningSound()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioDynamicRouting.java | 46 AudioAttributes.USAGE_ALARM,
|
D | CarAudioContext.java | 171 AudioAttributes.USAGE_ALARM in CONTEXT_TO_USAGES.put() argument
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 459 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/ |
D | SoundPreferenceControllerTest.java | 261 AudioAttributes.USAGE_ALARM).build()); in testOnPreferenceTreeClick_alarmSound()
|