Home
last modified time | relevance | path

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

12

/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java85 for (StorageVolume volume : getVolumes()) { in testInvalidPath()
86 openExternalDirectoryInvalidPath(volume, ""); in testInvalidPath()
87 openExternalDirectoryInvalidPath(volume, "/dev/null"); in testInvalidPath()
88 openExternalDirectoryInvalidPath(volume, "/../"); in testInvalidPath()
89 openExternalDirectoryInvalidPath(volume, "/HiddenStuff"); in testInvalidPath()
97 for (StorageVolume volume : getVolumes()) { in testUserRejects()
100 userRejectsTest(volume, dir); in testUserRejects()
102 if (!volume.isPrimary()) { in testUserRejects()
104 userRejectsTest(volume, DIRECTORY_ROOT); in testUserRejects()
107 openExternalDirectoryValidPath(volume, DIRECTORY_PICTURES); in testUserRejects()
[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/os/src/android/os/storage/cts/
DStorageManagerTest.java182 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume(); in testGetPrimaryVolume() local
183 assertNotNull("Did not get primary storage", volume); in testGetPrimaryVolume()
186 assertNull("Should not grant access for root directory", volume.createAccessIntent(null)); in testGetPrimaryVolume()
188 volume.createAccessIntent("/system")); in testGetPrimaryVolume()
190 volume.createAccessIntent(Environment.DIRECTORY_DOCUMENTS)); in testGetPrimaryVolume()
193 assertNotNull("Should have description", volume.getDescription(mContext)); in testGetPrimaryVolume()
194 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
195 assertEquals("Wrong state", Environment.MEDIA_MOUNTED, volume.getState()); in testGetPrimaryVolume()
198 final String uuid = volume.getUuid(); in testGetPrimaryVolume()
199 final boolean removable = volume.isRemovable(); in testGetPrimaryVolume()
[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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java143 private int getVolumeDelta(int volume) { in getVolumeDelta() argument
285 float volume = 13; in test() local
292 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
293 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
294 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
295 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
305 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
306 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
307 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
308 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
[all …]
/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
DStubTunerTvInputService.java121 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/cts/tests/tests/media/src/android/media/cts/
DVolumeShaperTest.java802 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
804 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
805 (volume >= lastVolume)); in testPlayerCubicMonotonic()
806 lastVolume = volume; in testPlayerCubicMonotonic()
825 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
827 + volume + " <= " + lastVolume, in testPlayerCubicMonotonic()
828 (volume <= lastVolume)); in testPlayerCubicMonotonic()
829 lastVolume = volume; in testPlayerCubicMonotonic()
849 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
851 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
[all …]
DAudioManagerTest.java249 float volume = 13; in testSoundEffects() local
256 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
257 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
258 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
259 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
269 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
270 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
271 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
272 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
631 int volume, volumeDelta; in testVolume() local
[all …]
DMockPlayer.java228 public void setPlayerVolume(float volume) { in setPlayerVolume() 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/lib/include/audio/
DAudioHardware.h64 virtual bool prepare(SamplingRate samplingRate, int volume, int mode = EModeVoice) = 0;
DRemoteAudio.h51 bool startPlayback(bool stereo, int samplingF, int mode, int volume,
56 bool startRecording(bool stereo, int samplingF, int mode, int volume,
DAudioRemote.h29 virtual bool prepare(AudioHardware::SamplingRate samplingRate, int volume,
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_ArtistsTest.java51 String volume = "fakeVolume"; in testGetContentUri() local
52 assertNull(mContentResolver.query(Artists.getContentUri(volume), null, null, null, null)); in testGetContentUri()
DMediaStore_Audio_PlaylistsTest.java59 String volume = "fakeVolume"; in testGetContentUri() local
60 assertNull(mContentResolver.query(Playlists.getContentUri(volume), null, null, null, in testGetContentUri()
DMediaStore_Audio_Artists_AlbumsTest.java54 String volume = "fakeVolume"; in testGetContentUri() local
55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), in testGetContentUri()
DMediaStore_Audio_GenresTest.java58 String volume = "fakeVolume"; in testGetContentUri() local
59 assertNull(mContentResolver.query(Genres.getContentUri(volume), null, null, null, null)); in testGetContentUri()
DMediaStore_Audio_AlbumsTest.java61 String volume = "fakeVolume"; in testGetContentUri() local
62 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); in testGetContentUri()
DMediaStore_Audio_MediaTest.java52 String volume = "faveVolume"; in testGetContentUri() local
53 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); in testGetContentUri()
DMediaStoreUiTest.java286 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local
287 final Intent intent = volume.createAccessIntent(directoryName); in acquireAccess()
/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

12