Home
last modified time | relevance | path

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

12

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioAttributesTest.java50 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in testParcelableDescribeContents()
59 .setUsage(AudioAttributes.USAGE_MEDIA) in testParcelableWriteToParcelCreate()
147 setSystemUsage(new AudioAttributes.Builder(), AudioAttributes.USAGE_MEDIA); in testSetSystemUsage_throwsWhenPassedSdkUsage()
157 .setUsage(AudioAttributes.USAGE_MEDIA); in testBuild_throwsWhenSettingBothSystemAndSdkUsages()
174 .setUsage(AudioAttributes.USAGE_MEDIA) in testGetSystemUsage_returnsSetUsage()
177 assertEquals(AudioAttributes.USAGE_MEDIA, getSystemUsage(attributes)); in testGetSystemUsage_returnsSetUsage()
184 .setUsage(AudioAttributes.USAGE_MEDIA) in testSpatializationAttr()
193 .setUsage(AudioAttributes.USAGE_MEDIA) in testSpatializationAttr()
312 assertEquals(AudioAttributes.USAGE_MEDIA, usage); in testXsdStringToUsage_returnsCorrectUsage()
322 String xsdUsage = AudioAttributes.usageToXsdString(AudioAttributes.USAGE_MEDIA); in testUsageToXsdString_returnsCorrectString()
DAudioPlaybackCaptureTest.java287 AudioAttributes.USAGE_MEDIA,
302 mAPCTestConfig.matchingUsages = new int[]{ AudioAttributes.USAGE_MEDIA }; in testPlaybackCaptureFast()
303 testPlaybackCapture(OPT_IN, AudioAttributes.USAGE_MEDIA, EXPECT_DATA); in testPlaybackCaptureFast()
304 testPlaybackCapture(OPT_OUT, AudioAttributes.USAGE_MEDIA, EXPECT_SILENCE); in testPlaybackCaptureFast()
310 mAPCTestConfig.matchingUsages = new int[]{ AudioAttributes.USAGE_MEDIA }; in testPlaybackCaptureRerouting()
311 testPlaybackCapture(OPT_IN, AudioAttributes.USAGE_MEDIA, EXPECT_DATA); in testPlaybackCaptureRerouting()
322 mAPCTestConfig.excludeUsages = new int[]{ AudioAttributes.USAGE_MEDIA }; in testCombineUsages()
341 doTestCaptureMatchingAllowedUsage(AudioAttributes.USAGE_MEDIA); in testCaptureMatchingAllowedUsageMedia()
409 mAPCTestConfig.matchingUsages = new int[]{ AudioAttributes.USAGE_MEDIA }; in testStoppedMediaProjection()
410 testPlaybackCapture(OPT_IN, AudioAttributes.USAGE_MEDIA, EXPECT_DATA); in testStoppedMediaProjection()
[all …]
DAudioMixingRuleTest.java19 import static android.media.AudioAttributes.USAGE_MEDIA;
64 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
83 isAudioMixMatchUsageCriterion(USAGE_MEDIA), in testConstructValidRule()
112 isAudioMixMatchUsageCriterion(USAGE_MEDIA), in testRuleBuilderDedupsCriteria()
122 .addMixRule(RULE_MATCH_ATTRIBUTE_USAGE, USAGE_MEDIA) in failsWhenAddAttributeRuleCalledWithInvalidType()
132 .excludeMixRule(RULE_MATCH_ATTRIBUTE_USAGE, USAGE_MEDIA) in failsWhenExcludeAttributeRuleCalledWithInvalidType()
DRemoteSubmixTest.java124 .addMatchingUsage(AudioAttributes.USAGE_MEDIA) in createPlaybackCaptureRecord()
134 "matchingUsages", AudioAttributes.USAGE_MEDIA, apcConfig.getMatchingUsages()[0]); in createPlaybackCaptureRecord()
223 ALLOW_CAPTURE_BY_ALL, R.raw.sine1320hz5sec, AudioAttributes.USAGE_MEDIA); in testPlaybackCapture()
DSoundDoseHelperTest.java21 import static android.media.AudioAttributes.USAGE_MEDIA;
59 .setUsage(USAGE_MEDIA)
DAudioFocusWithVdmTest.java26 import static android.media.AudioAttributes.USAGE_MEDIA;
73 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
DDtsAudioFormatsTest.kt47 .setUsage(AudioAttributes.USAGE_MEDIA) in <lambda>()
DAudioFocusTest.java111 .setUsage(AudioAttributes.USAGE_MEDIA)
581 .setUsage(AudioAttributes.USAGE_MEDIA) in testAudioFocusRequestMediaGainLossWithPlayer()
995 .setUsage(AudioAttributes.USAGE_MEDIA) in testDuckedUidsAfterMediaMusic()
1009 .setUsage(AudioAttributes.USAGE_MEDIA) in testDuckedUidsAfterMediaSpeech()
1078 .setUsage(AudioAttributes.USAGE_MEDIA) in doTwoFocusOwnerOnePlayerFocusLoss()
1083 .setUsage(AudioAttributes.USAGE_MEDIA) in doTwoFocusOwnerOnePlayerFocusLoss()
DNonDefaultDeviceForStrategyTest.java57 .setUsage(AudioAttributes.USAGE_MEDIA).build();
DAudioMixTest.java79 .setUsage(AudioAttributes.USAGE_MEDIA)
DDevicesForAttributesTest.java67 .setUsage(AudioAttributes.USAGE_MEDIA).build();
DLoudnessCodecControllerTest.java369 .setUsage(AudioAttributes.USAGE_MEDIA) in createAndStartAudioTrack()
DSpatializerTest.java393 for (int usage : new int[] { AudioAttributes.USAGE_MEDIA, in testMinSpatializationCapabilities()
DAudioTrackSurroundTest.java116 .setUsage(AudioAttributes.USAGE_MEDIA) in scanProfilesForEncodings()
DAudioTrackLatencyTest.java121 .setUsage(AudioAttributes.USAGE_MEDIA) in createStreamAudioTrack()
DRoutingTest.java610 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build()); in allocMediaPlayer()
/cts/tests/vibrator/src/android/os/cts/
DVibrationAttributesTest.java47 map.put(AudioAttributes.USAGE_GAME, VibrationAttributes.USAGE_MEDIA); in map.put() argument
48 map.put(AudioAttributes.USAGE_MEDIA, VibrationAttributes.USAGE_MEDIA); in map.put() argument
75 map.put(VibrationAttributes.USAGE_MEDIA, AudioAttributes.USAGE_MEDIA); in map.put() argument
DVibratorTest.java130 .setUsage(AudioAttributes.USAGE_MEDIA)
163 VibrationAttributes.USAGE_MEDIA,
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/media/
DCarAudioManagerPermissionTest.java24 import static android.media.AudioAttributes.USAGE_MEDIA;
153 () -> mCarAudioManager.createAudioPatch("address", USAGE_MEDIA, 0)); in createAudioPatchPermission()
181 () -> mCarAudioManager.getVolumeGroupIdForUsage(USAGE_MEDIA)); in getVolumeGroupIdForUsagePermission()
188 () -> mCarAudioManager.getVolumeGroupIdForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getVolumeGroupIdForUsageWithZonePermission()
237 () -> mCarAudioManager.getOutputDeviceForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getOutputDeviceForUsagePermission()
/cts/tests/mediapc/src/android/mediapc/cts/
DAudioPlaybackLoad.java78 .setUsage(AudioAttributes.USAGE_MEDIA) in createAudioTrack()
/cts/tests/tests/car/src/android/car/cts/
DCarAudioManagerTest.java29 import static android.media.AudioAttributes.USAGE_MEDIA;
685 () -> mCarAudioManager.getVolumeGroupIdForUsage(INVALID_AUDIO_ZONE, USAGE_MEDIA)); in getVolumeGroupIdForUsage_withInvalidZoneId_throwsException()
699 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(USAGE_MEDIA); in getVolumeGroupIdForUsage_returnsValidId()
712 int volumeGroupId = mCarAudioManager.getVolumeGroupIdForUsage(mZoneId, USAGE_MEDIA); in getVolumeGroupIdForUsage_withZoneId_returnsValidId()
790 () -> mCarAudioManager.getOutputDeviceForUsage(PRIMARY_AUDIO_ZONE, USAGE_MEDIA)); in getOutputDeviceForUsage_withoutDynamicRouting_throws()
803 () -> mCarAudioManager.getOutputDeviceForUsage(INVALID_AUDIO_ZONE, USAGE_MEDIA)); in getOutputDeviceForUsage_withInvalidZoneId_throws()
829 USAGE_MEDIA); in getOutputDeviceForUsage_succeeds()
DCarAudioFocusTest.java73 .setUsage(AudioAttributes.USAGE_MEDIA)
776 case AudioAttributes.USAGE_MEDIA: in usageToString()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DPreferredMixerAttributesTestActivity.java144 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in displayTestResult()
/cts/tests/tests/speech/src/android/speech/tts/cts/
DTextToSpeechServiceTest.java303 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); in testAddAudioAttributes()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DMediaSessionTest.java19 import static android.media.AudioAttributes.USAGE_MEDIA;
1188 assertThat(attrs.getUsage()).isEqualTo(USAGE_MEDIA); in verifyNewSession()

12