/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/muteawait/ |
D | MediaMuteAwaitConnectionManagerTest.kt | 21 import android.media.AudioAttributes.USAGE_MEDIA 131 muteAwaitListener.onMutedUntilConnection(DEVICE, intArrayOf(USAGE_MEDIA)) in onMutedUntilConnection_isUsageMedia_localMediaManagerNotified() 143 muteAwaitListener.onUnmutedEvent(EVENT_CONNECTION, DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_noDeviceMutedBefore_localMediaManagerNotNotified() 152 muteAwaitListener.onMutedUntilConnection(DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_notSameDevice_localMediaManagerNotNotified() 163 muteAwaitListener.onUnmutedEvent(EVENT_CONNECTION, otherDevice, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_notSameDevice_localMediaManagerNotNotified() 172 muteAwaitListener.onMutedUntilConnection(DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_notUsageMedia_localMediaManagerNotNotified() 184 muteAwaitListener.onMutedUntilConnection(DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_sameDeviceAndUsageMedia_localMediaManagerNotified() 187 muteAwaitListener.onUnmutedEvent(EVENT_CONNECTION, DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_sameDeviceAndUsageMedia_localMediaManagerNotified() 196 getMuteAwaitListener().onMutedUntilConnection(DEVICE, intArrayOf(USAGE_MEDIA)) in onMutedUntilConnection_isLogged() 205 getMuteAwaitListener().onUnmutedEvent(EVENT_CONNECTION, DEVICE, intArrayOf(USAGE_MEDIA)) in onUnmutedEvent_notMostRecentDevice_isLogged() [all …]
|
/frameworks/base/media/tests/AudioPolicyTest/src/com/android/audiopolicytest/ |
D | FadeManagerConfigurationUnitTest.java | 60 createAudioAttributesForUsage(AudioAttributes.USAGE_MEDIA); 72 AudioAttributes.USAGE_MEDIA, 146 .that(mFmc.getFadeOutVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build() 152 .that(mFmc.getFadeInVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build() 180 .that(fmc.getFadeOutVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeDurations_succeeds() 186 .that(fmc.getFadeInVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeDurations_succeeds() 218 .that(fmc.getFadeOutVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeManagerConfiguration_succeeds() 220 AudioAttributes.USAGE_MEDIA)); in build_withFadeManagerConfiguration_succeeds() 226 .that(fmc.getFadeInVolumeShaperConfigForUsage(AudioAttributes.USAGE_MEDIA)) in build_withFadeManagerConfiguration_succeeds() 228 AudioAttributes.USAGE_MEDIA)); in build_withFadeManagerConfiguration_succeeds() [all …]
|
D | AudioPolicyDeathTestActivity.java | 54 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in onCreate()
|
/frameworks/base/core/java/android/os/ |
D | VibrationAttributes.java | 53 USAGE_MEDIA, 142 public static final int USAGE_MEDIA = 0x10 | USAGE_CLASS_MEDIA; field in VibrationAttributes 357 case USAGE_MEDIA: in getAudioUsage() 358 return AudioAttributes.USAGE_MEDIA; in getAudioUsage() 442 case USAGE_MEDIA: in usageToString() 537 case AudioAttributes.USAGE_MEDIA: in setUsage() 539 mUsage = USAGE_MEDIA; in setUsage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/muteawait/ |
D | MediaMuteAwaitConnectionCli.kt | 20 import android.media.AudioAttributes.USAGE_MEDIA 61 intArrayOf(USAGE_MEDIA), device, TIMEOUT, TIMEOUT_UNITS in execute()
|
D | MediaMuteAwaitConnectionManager.kt | 21 import android.media.AudioAttributes.USAGE_MEDIA 100 private fun IntArray.hasMedia() = USAGE_MEDIA in this
|
/frameworks/base/media/java/android/media/ |
D | AudioAttributes.java | 125 public final static int USAGE_MEDIA = 1; field in AudioAttributes 320 SUPPRESSIBLE_USAGES.put(USAGE_MEDIA, SUPPRESSIBLE_MEDIA); in SUPPRESSIBLE_USAGES.put() argument 336 USAGE_MEDIA, 894 case USAGE_MEDIA: in setUsage() 1483 case USAGE_MEDIA: in usageToString() 1535 case AudioAttributes.USAGE_MEDIA: in usageToXsdString() 1580 sXsdStringToUsage.put(AudioUsage.AUDIO_USAGE_MEDIA.toString(), USAGE_MEDIA); in AudioUsage.AUDIO_USAGE_MEDIA.toString() 1643 return USAGE_MEDIA; in usageForStreamType() 1764 case USAGE_MEDIA: in toVolumeStreamType() 1840 USAGE_MEDIA, [all …]
|
D | HwAudioSource.java | 260 .setUsage(AudioAttributes.USAGE_MEDIA) in build()
|
D | AudioFocusRequest.java | 223 .setUsage(AudioAttributes.USAGE_MEDIA).build();
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | AudioRoutingUtils.java | 30 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | HearingAidAudioRoutingConstants.java | 42 AudioAttributes.USAGE_MEDIA,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/ |
D | FadeConfigurationsTest.java | 23 import static android.media.AudioAttributes.USAGE_MEDIA; 63 USAGE_MEDIA 83 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
|
D | FadeOutManagerTest.java | 19 import static android.media.AudioAttributes.USAGE_MEDIA; 58 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
|
D | LoudnessCodecHelperTest.java | 76 private static final int TEST_USAGE = AudioAttributes.USAGE_MEDIA; 325 .setUsage(AudioAttributes.USAGE_MEDIA) in getApcListForApcWithPiidSid()
|
D | SpatializerHelperTest.java | 139 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in testNoRoutingCanBeSpatialized()
|
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | VibratorControlServiceTest.java | 22 import static android.os.VibrationAttributes.USAGE_MEDIA; 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()
|
/frameworks/base/core/java/android/os/vibrator/ |
D | VibrationConfig.java | 23 import static android.os.VibrationAttributes.USAGE_MEDIA; 228 case USAGE_MEDIA: in getDefaultVibrationIntensity()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationChannelExtractorTest.java | 24 import static android.media.AudioAttributes.USAGE_MEDIA; 244 .setUsage(USAGE_MEDIA) in testAudioAttributes_noMediaUsage() 257 assertThat(channel.getAudioAttributes().getUsage()).isEqualTo(USAGE_MEDIA); in testAudioAttributes_noMediaUsage()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | AudioAttributesUnitTest.java | 34 assertEquals("USAGE_MEDIA", AudioAttributes.usageToString(AudioAttributes.USAGE_MEDIA)); in testUsageToString_returnCorrectStrings()
|
D | AudioTrackUnitTest.java | 50 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
|
D | MediaPlayerUnitTest.java | 52 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/template/ |
D | AudioTestHarnessTemplateAndroidTest.java | 93 .setUsage(AudioAttributes.USAGE_MEDIA) in playAudioFile()
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | VibrationSettings.java | 24 import static android.os.VibrationAttributes.USAGE_MEDIA; 577 getDefaultIntensity(USAGE_MEDIA)); in updateSettings() 592 mCurrentVibrationIntensities.put(USAGE_MEDIA, mediaIntensity); in updateSettings() 713 getCurrentIntensity(USAGE_MEDIA)); in dump() 715 getDefaultIntensity(USAGE_MEDIA)); in dump()
|
D | VibratorControlService.java | 23 import static android.os.VibrationAttributes.USAGE_MEDIA; 375 case USAGE_MEDIA, USAGE_UNKNOWN -> { in mapToAdaptiveVibrationType() 405 usages.add(USAGE_MEDIA); in mapFromAdaptiveVibrationTypeToVibrationUsages()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationChannelExtractor.java | 96 || attributes.getUsage() == AudioAttributes.USAGE_MEDIA)) { in process()
|