Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/media/audio/src/android/media/audio/cts/
DBluetoothProfileConnectionInfoTest.java40 final int volume = 42; in testCoverageA2dp() local
42 .createA2dpInfo(supprNoisy, volume); in testCoverageA2dp()
45 assertEquals(info.getVolume(), volume); in testCoverageA2dp() local
50 final int volume = 42; in testCoverageA2dpSink() local
52 .createA2dpSinkInfo(volume); in testCoverageA2dpSink()
54 assertEquals(info.getVolume(), volume); in testCoverageA2dpSink() local
80 final int volume = 7; in testCoverageLeOutputAudio() local
82 .createLeAudioOutputInfo(supprNoisy, volume); in testCoverageLeOutputAudio()
86 assertEquals(info.getVolume(), volume); in testCoverageLeOutputAudio() local
DVolumeShaperTest.java948 final float volume = volumeShaper.getVolume(); in runTestCubicMonotonicPlayer() local
950 + volume + " >= " + lastVolume, in runTestCubicMonotonicPlayer()
951 (volume >= lastVolume)); in runTestCubicMonotonicPlayer()
952 lastVolume = volume; in runTestCubicMonotonicPlayer()
971 final float volume = volumeShaper.getVolume(); in runTestCubicMonotonicPlayer() local
973 + volume + " <= " + lastVolume, in runTestCubicMonotonicPlayer()
974 (volume <= lastVolume)); in runTestCubicMonotonicPlayer()
975 lastVolume = volume; in runTestCubicMonotonicPlayer()
995 final float volume = volumeShaper.getVolume(); in runTestCubicMonotonicPlayer() local
997 + volume + " >= " + lastVolume, in runTestCubicMonotonicPlayer()
[all …]
DAudioManagerTest.java485 float volume = 0.5f; // volume should be between 0.f to 1.f (or -1). in testSoundEffects() local
492 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
493 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
494 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
495 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
505 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
506 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
507 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
508 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
1053 int volume, volumeDelta; in testVolume() local
[all …]
/cts/tests/storageaccess/src/android/storageaccess/cts/tests/
DScopedDirectoryAccessClientTest.kt46 volumes.forEach { volume -> in <lambda>() method
48 assertNull("Should NOT be able get access intent for '$path' on $volume", in <lambda>()
49 volume.createAccessIntent(path)) in <lambda>()
77 volumes.forEach { volume -> in <lambda>() method
81 if (volume.isPrimary && path == null) return@innerLoop in <lambda>()
83 val intent = volume.createAccessIntent(path) in <lambda>()
84 assertNotNull("Could NOT get access intent for '$path' on $volume", intent) in <lambda>()
86 log("Launching Access Intent for '$path' on $volume: ${intent!!}") in <lambda>()
/cts/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecAudioManager.java87 int volume = minVolume + ((maxVolume - minVolume) * percentVolume / 100); in onCreate() local
88 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in onCreate()
89 Log.i(TAG, "Set volume to " + volume + " (" + percentVolume + "%)"); in onCreate()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerHelper.java120 for (String volume: volumes) { in getPublicVolumeExcluding()
121 if (volume.contains("public") in getPublicVolumeExcluding()
122 && (excludingVolume == null || !volume.contains(excludingVolume))) { in getPublicVolumeExcluding()
124 String[] splits = volume.split(" "); in getPublicVolumeExcluding()
DStorageManagerTest.java237 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume(); in testGetPrimaryVolume() local
238 assertNotNull("Did not get primary storage", volume); in testGetPrimaryVolume()
241 assertNull("Should not grant access for root directory", volume.createAccessIntent(null)); in testGetPrimaryVolume()
243 volume.createAccessIntent("/system")); in testGetPrimaryVolume()
245 volume.createAccessIntent(Environment.DIRECTORY_DOCUMENTS)); in testGetPrimaryVolume()
248 assertNotNull("Should have description", volume.getDescription(mContext)); in testGetPrimaryVolume()
249 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
250 assertEquals("Wrong state", Environment.MEDIA_MOUNTED, volume.getState()); in testGetPrimaryVolume()
253 final String fsUuid = volume.getUuid(); in testGetPrimaryVolume()
254 final UUID uuid = volume.getStorageUuid(); in testGetPrimaryVolume()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java143 private int getVolumeDelta(int volume) { in getVolumeDelta() argument
306 float volume = 13; in test() local
313 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
314 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
315 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
316 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
326 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
327 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
328 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
329 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
[all …]
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DBaseHostTestCase.java178 for (String volume: volList) { in getPublicVolumeExcluding()
179 if (volume.contains("public") in getPublicVolumeExcluding()
180 && (excludingVolume == null || !volume.contains(excludingVolume))) { in getPublicVolumeExcluding()
182 String[] splits = volume.split(" "); in getPublicVolumeExcluding()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DStubMediaRoute2ProviderService.java225 public void onSetRouteVolume(long requestId, String routeId, int volume) { in onSetRouteVolume() argument
236 volume = Math.max(0, Math.min(volume, route.getVolumeMax())); in onSetRouteVolume()
238 .setVolume(volume) in onSetRouteVolume()
244 public void onSetSessionVolume(long requestId, String sessionId, int volume) { in onSetSessionVolume() argument
249 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume()
251 .setVolume(volume) in onSetSessionVolume()
DMediaActivityTest.java175 int volume = mStreamVolumeMap.get(stream); in cleanUp() local
177 mAudioManager.setStreamVolume(stream, volume, /* flag= */ 0); in cleanUp()
181 + volume + ", currentVolume=" + mAudioManager.getStreamVolume(stream)); in cleanUp()
311 int volume = mStreamVolumeMap.get(stream); in checkAnyStreamVolumeChanged() local
312 if (mAudioManager.getStreamVolume(stream) != volume) { in checkAnyStreamVolumeChanged()
DMediaRouterTest.java630 public void onVolumeSetRequest(RouteInfo info, int volume) { in onVolumeSetRequest() argument
633 mVolume = volume; in onVolumeSetRequest()
/cts/hostsidetests/media/app/MediaRouteProviderApps/src/android/media/router/cts/
DBaseFakeRouteProviderService.java89 public void onSetRouteVolume(long requestId, String routeId, int volume) {} in onSetRouteVolume() argument
92 public void onSetSessionVolume(long requestId, String sessionId, int volume) {} in onSetSessionVolume() argument
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTvInputService.java56 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DFaultyTvInputService.java61 public void onSetStreamVolume(float volume) { } in onSetStreamVolume() argument
DHardwareSessionTest.java146 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DStubTunerTvInputService.java125 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DTvInputServiceTest.java588 final float volume = 0.8f; in verifyCommandSetStreamVolume() local
590 onTvView(tvView -> tvView.setStreamVolume(volume)); in verifyCommandSetStreamVolume()
595 assertThat(session.mStreamVolume).isEqualTo(volume); in verifyCommandSetStreamVolume()
1620 public void onSetStreamVolume(float volume) {
1622 mStreamVolume = volume;
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DLogHelper.java105 String volume = testString.split("at")[1].trim().replaceAll("%", ""); in parseDutVolume() local
106 return Integer.parseInt(volume); in parseDutVolume()
/cts/tests/tests/tv/src/android/media/tv/ad/cts/
DStubTvInputService2.java77 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DStubTvInputService2.java91 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/hostsidetests/hdmicec/
Dcec_adapter.md151 : send a volume up command to the amp if present
154 : send a volume down command to the amp if present
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothVolumeControlTest.java135 public void onDeviceVolumeChanged(BluetoothDevice device, int volume) { in onDeviceVolumeChanged() argument
138 assertThat(volume).isEqualTo(mTestVolume); in onDeviceVolumeChanged()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java467 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local
468 final Intent intent = volume.createOpenDocumentTreeIntent(); in acquireAccess()

12