Home
last modified time | relevance | path

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

12

/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java82 for (StorageVolume volume : getVolumes()) { in testInvalidPath()
83 openExternalDirectoryInvalidPath(volume, ""); in testInvalidPath()
84 openExternalDirectoryInvalidPath(volume, "/dev/null"); in testInvalidPath()
85 openExternalDirectoryInvalidPath(volume, "/../"); in testInvalidPath()
86 openExternalDirectoryInvalidPath(volume, "/HiddenStuff"); in testInvalidPath()
94 for (StorageVolume volume : getVolumes()) { in testUserRejects()
97 userRejectsTest(volume, dir); in testUserRejects()
99 if (!volume.isPrimary()) { in testUserRejects()
101 userRejectsTest(volume, DIRECTORY_ROOT); in testUserRejects()
104 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.java181 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume(); in testGetPrimaryVolume() local
182 assertNotNull("Did not get primary storage", volume); in testGetPrimaryVolume()
185 assertNull("Should not grant access for root directory", volume.createAccessIntent(null)); in testGetPrimaryVolume()
187 volume.createAccessIntent("/system")); in testGetPrimaryVolume()
189 volume.createAccessIntent(Environment.DIRECTORY_DOCUMENTS)); in testGetPrimaryVolume()
192 assertNotNull("Should have description", volume.getDescription(mContext)); in testGetPrimaryVolume()
193 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
194 assertEquals("Wrong state", Environment.MEDIA_MOUNTED, volume.getState()); in testGetPrimaryVolume()
197 final String uuid = volume.getUuid(); in testGetPrimaryVolume()
198 final boolean removable = volume.isRemovable(); in testGetPrimaryVolume()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DAudioManagerTest.java109 float volume = 13; in testSoundEffects() local
116 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
117 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
118 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
119 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
129 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
130 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
131 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
132 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
454 int volume, volumeDelta; in testVolume() local
[all …]
DVolumeShaperTest.java792 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
794 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
795 (volume >= lastVolume)); in testPlayerCubicMonotonic()
796 lastVolume = volume; in testPlayerCubicMonotonic()
815 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
817 + volume + " <= " + lastVolume, in testPlayerCubicMonotonic()
818 (volume <= lastVolume)); in testPlayerCubicMonotonic()
819 lastVolume = volume; in testPlayerCubicMonotonic()
839 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
841 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
[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
DStubTunerTvInputService.java121 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()
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
/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_Artists_AlbumsTest.java54 String volume = "fakeVolume"; in testGetContentUri() local
55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), 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_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()
DMediaStoreUiTest.java286 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local
287 final Intent intent = volume.createAccessIntent(directoryName); in acquireAccess()
DMediaStore_Audio_MediaTest.java52 String volume = "faveVolume"; in testGetContentUri() local
53 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); in testGetContentUri()
DMediaStore_Video_MediaTest.java59 String volume = "fakeVolume"; in testGetContentUri() local
60 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); in testGetContentUri()
/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