/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/hostsidetests/hdmicec/app/src/android/hdmicec/app/ |
D | HdmiCecAudioManager.java | 73 int volume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in onCreate() local 74 int percentVolume = 100 * volume / (maxVolume - minVolume); in onCreate() 82 int volume = minVolume + ((maxVolume - minVolume) * percentVolume / 100); in onCreate() local 83 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in onCreate() 84 Log.i(TAG, "Set volume to " + volume + " (" + percentVolume + "%)"); in onCreate()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaActivityTest.java | 111 int volume = mStreamVolumeMap.get(stream); in cleanUp() local 112 mAudioManager.setStreamVolume(stream, volume, 0); in cleanUp() 161 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased() local 162 if (mAudioManager.getStreamVolume(stream) != volume) { in testVolumeKey_afterSessionReleased() 173 int volume = mStreamVolumeMap.get(stream); in testVolumeKey_afterSessionReleased() local 174 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 | 286 float volume = 13; in testSoundEffects() local 293 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects() 294 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects() 295 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects() 296 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects() 306 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects() 307 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects() 308 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects() 309 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects() 628 int volume, volumeDelta; in testVolume() local [all …]
|
D | MediaControllerTest.java | 169 public void onSetVolumeTo(int volume) { in testVolumeControl() 171 setCurrentVolume(volume); in testVolumeControl()
|
D | MediaRouterTest.java | 607 public void onVolumeSetRequest(RouteInfo info, int volume) { in onVolumeSetRequest() argument 610 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 | 211 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local 212 final Intent intent = volume.createOpenDocumentTreeIntent(); in acquireAccess()
|
/cts/hostsidetests/hdmicec/ |
D | cec_adapter.md | 151 : send a volume up command to the amp if present 154 : send a volume down command to the amp if present
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputService.java | 352 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
|