Home
last modified time | relevance | path

Searched refs:USAGE_MEDIA (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/muteawait/
DMediaMuteAwaitConnectionManagerTest.kt21 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/
DFadeManagerConfigurationUnitTest.java60 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 …]
DAudioPolicyDeathTestActivity.java54 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in onCreate()
/frameworks/base/core/java/android/os/
DVibrationAttributes.java53 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/
DMediaMuteAwaitConnectionCli.kt20 import android.media.AudioAttributes.USAGE_MEDIA
61 intArrayOf(USAGE_MEDIA), device, TIMEOUT, TIMEOUT_UNITS in execute()
DMediaMuteAwaitConnectionManager.kt21 import android.media.AudioAttributes.USAGE_MEDIA
100 private fun IntArray.hasMedia() = USAGE_MEDIA in this
/frameworks/base/media/java/android/media/
DAudioAttributes.java125 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 …]
DHwAudioSource.java260 .setUsage(AudioAttributes.USAGE_MEDIA) in build()
DAudioFocusRequest.java223 .setUsage(AudioAttributes.USAGE_MEDIA).build();
/frameworks/base/services/core/java/com/android/server/media/
DAudioRoutingUtils.java30 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidAudioRoutingConstants.java42 AudioAttributes.USAGE_MEDIA,
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DFadeConfigurationsTest.java23 import static android.media.AudioAttributes.USAGE_MEDIA;
63 USAGE_MEDIA
83 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
DFadeOutManagerTest.java19 import static android.media.AudioAttributes.USAGE_MEDIA;
58 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
DLoudnessCodecHelperTest.java76 private static final int TEST_USAGE = AudioAttributes.USAGE_MEDIA;
325 .setUsage(AudioAttributes.USAGE_MEDIA) in getApcListForApcWithPiidSid()
DSpatializerHelperTest.java139 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in testNoRoutingCanBeSpatialized()
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorControlServiceTest.java22 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/
DVibrationConfig.java23 import static android.os.VibrationAttributes.USAGE_MEDIA;
228 case USAGE_MEDIA: in getDefaultVibrationIntensity()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationChannelExtractorTest.java24 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/
DAudioAttributesUnitTest.java34 assertEquals("USAGE_MEDIA", AudioAttributes.usageToString(AudioAttributes.USAGE_MEDIA)); in testUsageToString_returnCorrectStrings()
DAudioTrackUnitTest.java50 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
DMediaPlayerUnitTest.java52 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/template/
DAudioTestHarnessTemplateAndroidTest.java93 .setUsage(AudioAttributes.USAGE_MEDIA) in playAudioFile()
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationSettings.java24 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()
DVibratorControlService.java23 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/
DNotificationChannelExtractor.java96 || attributes.getUsage() == AudioAttributes.USAGE_MEDIA)) { in process()

123