Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java70 for (StorageVolume volume : getVolumes()) { in testInvalidPath()
71 openExternalDirectoryInvalidPath(volume, ""); in testInvalidPath()
72 openExternalDirectoryInvalidPath(volume, "/dev/null"); in testInvalidPath()
73 openExternalDirectoryInvalidPath(volume, "/../"); in testInvalidPath()
74 openExternalDirectoryInvalidPath(volume, "/HiddenStuff"); in testInvalidPath()
82 for (StorageVolume volume : getVolumes()) { in testActivityFailsForAllVolumesAndDirectories()
85 sendOpenExternalDirectoryIntent(volume, dir); in testActivityFailsForAllVolumesAndDirectories()
88 if (!volume.isPrimary()) { in testActivityFailsForAllVolumesAndDirectories()
90 sendOpenExternalDirectoryIntent(volume, DIRECTORY_ROOT); in testActivityFailsForAllVolumesAndDirectories()
96 private void openExternalDirectoryInvalidPath(StorageVolume volume, String directoryName) { in openExternalDirectoryInvalidPath() argument
[all …]
/cts/suite/audio_quality/test/
DRemoteAudioFakeTcpTest.cpp165 int volume = 0; in TEST_F() local
174 U32_ENDIAN_SWAP(volume), in TEST_F()
187 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
198 int volume = 0; in TEST_F() local
207 U32_ENDIAN_SWAP(volume), in TEST_F()
231 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
241 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
251 ASSERT_TRUE(mRemoteAudio->startPlayback(stereo, samplingF, mode, volume, id, repeat)); in TEST_F()
260 int volume = 0; in TEST_F() local
270 U32_ENDIAN_SWAP(volume), in TEST_F()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaActivityTest.java110 int volume = mStreamVolumeMap.get(stream); in cleanUp() local
111 mAudioManager.setStreamVolume(stream, volume, 0); in cleanUp()
160 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased() local
161 if (mAudioManager.getStreamVolume(stream) != volume) { in testVolumeKey_afterSessionReleased()
172 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased() local
173 if (mAudioManager.getStreamVolume(stream) != volume) { in testVolumeKey_afterSessionReleased()
DVolumeShaperTest.java801 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
803 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
804 (volume >= lastVolume)); in testPlayerCubicMonotonic()
805 lastVolume = volume; in testPlayerCubicMonotonic()
824 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
826 + volume + " <= " + lastVolume, in testPlayerCubicMonotonic()
827 (volume <= lastVolume)); in testPlayerCubicMonotonic()
828 lastVolume = volume; in testPlayerCubicMonotonic()
848 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
850 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
[all …]
DAudioManagerTest.java272 float volume = 13; in testSoundEffects() local
279 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
280 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
281 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
282 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
292 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
293 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
294 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
295 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
614 int volume, volumeDelta; in testVolume() local
[all …]
DMediaControllerTest.java168 public void onSetVolumeTo(int volume) { in testVolumeControl()
170 setCurrentVolume(volume); in testVolumeControl()
DMediaRouterTest.java606 public void onVolumeSetRequest(RouteInfo info, int volume) { in onVolumeSetRequest() argument
609 mVolume = volume; in onVolumeSetRequest()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java190 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume(); in testGetPrimaryVolume() local
191 assertNotNull("Did not get primary storage", volume); in testGetPrimaryVolume()
194 assertNull("Should not grant access for root directory", volume.createAccessIntent(null)); in testGetPrimaryVolume()
196 volume.createAccessIntent("/system")); in testGetPrimaryVolume()
198 volume.createAccessIntent(Environment.DIRECTORY_DOCUMENTS)); in testGetPrimaryVolume()
201 assertNotNull("Should have description", volume.getDescription(mContext)); in testGetPrimaryVolume()
202 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
203 assertEquals("Wrong state", Environment.MEDIA_MOUNTED, volume.getState()); in testGetPrimaryVolume()
206 final String uuid = volume.getUuid(); in testGetPrimaryVolume()
207 final boolean removable = volume.isRemovable(); in testGetPrimaryVolume()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java145 private int getVolumeDelta(int volume) { in getVolumeDelta() argument
287 float volume = 13; in test() local
294 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
295 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
296 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
297 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
307 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
308 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
309 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
310 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
[all …]
/cts/suite/audio_quality/lib/src/audio/
DAudioRemote.cpp21 bool AudioRemote::prepare(AudioHardware::SamplingRate samplingRate, int volume, int mode) in prepare() argument
28 mVolume = volume; in prepare()
DRemoteAudio.cpp231 bool RemoteAudio::startPlayback(bool stereo, int samplingF, int mode, int volume, in startPlayback() argument
252 handler->getParam().mVolume = volume; in startPlayback()
276 bool RemoteAudio::startRecording(bool stereo, int samplingF, int mode, int volume, in startRecording() argument
290 handler->getParam().mVolume = volume; in startRecording()
/cts/suite/audio_quality/lib/include/audio/
DRemoteAudio.h51 bool startPlayback(bool stereo, int samplingF, int mode, int volume,
56 bool startRecording(bool stereo, int samplingF, int mode, int volume,
DAudioHardware.h64 virtual bool prepare(SamplingRate samplingRate, int volume, int mode = EModeVoice) = 0;
DAudioRemote.h29 virtual bool prepare(AudioHardware::SamplingRate samplingRate, int volume,
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTvInputService.java48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DFaultyTvInputService.java61 public void onSetStreamVolume(float volume) { } in onSetStreamVolume() argument
DHardwareSessionTest.java144 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DTvInputServiceTest.java490 final float volume = 0.8f; in verifyCommandSetStreamVolume() local
491 mTvView.setStreamVolume(volume); in verifyCommandSetStreamVolume()
498 && session.mStreamVolume == volume; in verifyCommandSetStreamVolume()
1193 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
1195 mStreamVolume = volume; in onSetStreamVolume()
DStubTunerTvInputService.java121 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DAudioProtocol.java240 final int volume = mDataBuffer.getInt(3 * 4); in handleStartPlayback() local
278 float newVolume = (maxVolume - minVolume) * volume / 100 + minVolume; in handleStartPlayback()
281 " min " + minVolume + " received " + volume); in handleStartPlayback()
336 final int volume = mDataBuffer.getInt(2 * 4); in handleStartRecording() local
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java405 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local
406 final Intent intent = volume.createOpenDocumentTreeIntent(); in acquireAccess()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputService.java352 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument