/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | ScopedDirectoryAccessClientTest.java | 85 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/ |
D | RemoteAudioFakeTcpTest.cpp | 165 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/ |
D | StorageManagerTest.java | 182 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/ |
D | AudioRemote.cpp | 21 bool AudioRemote::prepare(AudioHardware::SamplingRate samplingRate, int volume, int mode) in prepare() argument 28 mVolume = volume; in prepare()
|
D | RemoteAudio.cpp | 231 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/ |
D | RingerModeActivity.java | 143 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/ |
D | StubTvInputService.java | 48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|
D | FaultyTvInputService.java | 61 public void onSetStreamVolume(float volume) { } in onSetStreamVolume() argument
|
D | HardwareSessionTest.java | 144 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|
D | StubTunerTvInputService.java | 121 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VolumeShaperTest.java | 802 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 …]
|
D | AudioManagerTest.java | 249 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 …]
|
D | MockPlayer.java | 228 public void setPlayerVolume(float volume) { in setPlayerVolume() argument
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
D | StubTvInputService.java | 48 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|
/cts/suite/audio_quality/lib/include/audio/ |
D | AudioHardware.h | 64 virtual bool prepare(SamplingRate samplingRate, int volume, int mode = EModeVoice) = 0;
|
D | RemoteAudio.h | 51 bool startPlayback(bool stereo, int samplingF, int mode, int volume, 56 bool startRecording(bool stereo, int samplingF, int mode, int volume,
|
D | AudioRemote.h | 29 virtual bool prepare(AudioHardware::SamplingRate samplingRate, int volume,
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | MediaStore_Audio_ArtistsTest.java | 51 String volume = "fakeVolume"; in testGetContentUri() local 52 assertNull(mContentResolver.query(Artists.getContentUri(volume), null, null, null, null)); in testGetContentUri()
|
D | MediaStore_Audio_PlaylistsTest.java | 59 String volume = "fakeVolume"; in testGetContentUri() local 60 assertNull(mContentResolver.query(Playlists.getContentUri(volume), null, null, null, in testGetContentUri()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 54 String volume = "fakeVolume"; in testGetContentUri() local 55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), in testGetContentUri()
|
D | MediaStore_Audio_GenresTest.java | 58 String volume = "fakeVolume"; in testGetContentUri() local 59 assertNull(mContentResolver.query(Genres.getContentUri(volume), null, null, null, null)); in testGetContentUri()
|
D | MediaStore_Audio_AlbumsTest.java | 61 String volume = "fakeVolume"; in testGetContentUri() local 62 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); in testGetContentUri()
|
D | MediaStore_Audio_MediaTest.java | 52 String volume = "faveVolume"; in testGetContentUri() local 53 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); in testGetContentUri()
|
D | MediaStoreUiTest.java | 286 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/ |
D | AudioProtocol.java | 240 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
|