/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioAttributesTest.java | 50 .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()
|
D | AudioPlaybackCaptureTest.java | 287 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 …]
|
D | AudioMixingRuleTest.java | 19 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()
|
D | RemoteSubmixTest.java | 124 .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()
|
D | SoundDoseHelperTest.java | 21 import static android.media.AudioAttributes.USAGE_MEDIA; 59 .setUsage(USAGE_MEDIA)
|
D | AudioFocusWithVdmTest.java | 26 import static android.media.AudioAttributes.USAGE_MEDIA; 73 new AudioAttributes.Builder().setUsage(USAGE_MEDIA).build();
|
D | DtsAudioFormatsTest.kt | 47 .setUsage(AudioAttributes.USAGE_MEDIA) in <lambda>()
|
D | AudioFocusTest.java | 111 .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()
|
D | NonDefaultDeviceForStrategyTest.java | 57 .setUsage(AudioAttributes.USAGE_MEDIA).build();
|
D | AudioMixTest.java | 79 .setUsage(AudioAttributes.USAGE_MEDIA)
|
D | DevicesForAttributesTest.java | 67 .setUsage(AudioAttributes.USAGE_MEDIA).build();
|
D | LoudnessCodecControllerTest.java | 369 .setUsage(AudioAttributes.USAGE_MEDIA) in createAndStartAudioTrack()
|
D | SpatializerTest.java | 393 for (int usage : new int[] { AudioAttributes.USAGE_MEDIA, in testMinSpatializationCapabilities()
|
D | AudioTrackSurroundTest.java | 116 .setUsage(AudioAttributes.USAGE_MEDIA) in scanProfilesForEncodings()
|
D | AudioTrackLatencyTest.java | 121 .setUsage(AudioAttributes.USAGE_MEDIA) in createStreamAudioTrack()
|
D | RoutingTest.java | 610 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build()); in allocMediaPlayer()
|
/cts/tests/vibrator/src/android/os/cts/ |
D | VibrationAttributesTest.java | 47 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
|
D | VibratorTest.java | 130 .setUsage(AudioAttributes.USAGE_MEDIA) 163 VibrationAttributes.USAGE_MEDIA,
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/media/ |
D | CarAudioManagerPermissionTest.java | 24 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/ |
D | AudioPlaybackLoad.java | 78 .setUsage(AudioAttributes.USAGE_MEDIA) in createAudioTrack()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarAudioManagerTest.java | 29 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()
|
D | CarAudioFocusTest.java | 73 .setUsage(AudioAttributes.USAGE_MEDIA) 776 case AudioAttributes.USAGE_MEDIA: in usageToString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | PreferredMixerAttributesTestActivity.java | 144 .setUsage(AudioAttributes.USAGE_MEDIA).build(); in displayTestResult()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 303 new AudioAttributes.Builder().setUsage(AudioAttributes.USAGE_MEDIA).build(); in testAddAudioAttributes()
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaSessionTest.java | 19 import static android.media.AudioAttributes.USAGE_MEDIA; 1188 assertThat(attrs.getUsage()).isEqualTo(USAGE_MEDIA); in verifyNewSession()
|