/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | ScopedDirectoryAccessClientTest.java | 70 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/ |
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/media/src/android/media/cts/ |
D | MediaActivityTest.java | 110 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()
|
D | VolumeShaperTest.java | 801 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 …]
|
D | AudioManagerTest.java | 272 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 …]
|
D | MediaControllerTest.java | 168 public void onSetVolumeTo(int volume) { in testVolumeControl() 170 setCurrentVolume(volume); in testVolumeControl()
|
D | MediaRouterTest.java | 606 public void onVolumeSetRequest(RouteInfo info, int volume) { in onVolumeSetRequest() argument 609 mVolume = volume; in onVolumeSetRequest()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 190 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/ |
D | RingerModeActivity.java | 145 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/ |
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/suite/audio_quality/lib/include/audio/ |
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 | AudioHardware.h | 64 virtual bool prepare(SamplingRate samplingRate, int volume, int mode = EModeVoice) = 0;
|
D | AudioRemote.h | 29 virtual bool prepare(AudioHardware::SamplingRate samplingRate, int volume,
|
/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 | TvInputServiceTest.java | 490 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()
|
D | StubTunerTvInputService.java | 121 public void onSetStreamVolume(float volume) { in onSetStreamVolume() 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/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
|
/cts/tests/providerui/src/android/providerui/cts/ |
D | MediaStoreUiTest.java | 405 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/ |
D | MockTvInputService.java | 352 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|