Home
last modified time | relevance | path

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

12

/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DScopedDirectoryAccessClientTest.java70 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/
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/hostsidetests/hdmicec/app/src/android/hdmicec/app/
DHdmiCecAudioManager.java79 int volume = minVolume + ((maxVolume - minVolume) * percentVolume / 100); in onCreate() local
80 audioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in onCreate()
81 Log.i(TAG, "Set volume to " + volume + " (" + percentVolume + "%)"); in onCreate()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java203 final StorageVolume volume = mStorageManager.getPrimaryStorageVolume(); in testGetPrimaryVolume() local
204 assertNotNull("Did not get primary storage", volume); in testGetPrimaryVolume()
207 assertNull("Should not grant access for root directory", volume.createAccessIntent(null)); in testGetPrimaryVolume()
209 volume.createAccessIntent("/system")); in testGetPrimaryVolume()
211 volume.createAccessIntent(Environment.DIRECTORY_DOCUMENTS)); in testGetPrimaryVolume()
214 assertNotNull("Should have description", volume.getDescription(mContext)); in testGetPrimaryVolume()
215 assertTrue("Should be primary", volume.isPrimary()); in testGetPrimaryVolume()
216 assertEquals("Wrong state", Environment.MEDIA_MOUNTED, volume.getState()); in testGetPrimaryVolume()
219 final String fsUuid = volume.getUuid(); in testGetPrimaryVolume()
220 final UUID uuid = volume.getStorageUuid(); in testGetPrimaryVolume()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DRingerModeActivity.java139 private int getVolumeDelta(int volume) { in getVolumeDelta() argument
298 float volume = 13; in test() local
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()
318 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in test()
319 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in test()
320 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in test()
321 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in test()
[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/tests/tests/media/src/android/media/cts/
DStubMediaRoute2ProviderService.java184 public void onSetRouteVolume(long requestId, String routeId, int volume) { in onSetRouteVolume() argument
189 volume = Math.max(0, Math.min(volume, route.getVolumeMax())); in onSetRouteVolume()
191 .setVolume(volume) in onSetRouteVolume()
197 public void onSetSessionVolume(long requestId, String sessionId, int volume) { in onSetSessionVolume() argument
202 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume()
204 .setVolume(volume) in onSetSessionVolume()
DMediaActivityTest.java143 int volume = mStreamVolumeMap.get(stream); in cleanUp() local
145 mAudioManager.setStreamVolume(stream, volume, /* flag= */ 0); in cleanUp()
149 + volume + ", currentVolume=" + mAudioManager.getStreamVolume(stream)); in cleanUp()
271 int volume = mStreamVolumeMap.get(stream); in checkAnyStreamVolumeChanged() local
272 if (mAudioManager.getStreamVolume(stream) != volume) { in checkAnyStreamVolumeChanged()
DVolumeShaperTest.java803 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
805 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
806 (volume >= lastVolume)); in testPlayerCubicMonotonic()
807 lastVolume = volume; in testPlayerCubicMonotonic()
826 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
828 + volume + " <= " + lastVolume, in testPlayerCubicMonotonic()
829 (volume <= lastVolume)); in testPlayerCubicMonotonic()
830 lastVolume = volume; in testPlayerCubicMonotonic()
850 final float volume = volumeShaper.getVolume(); in testPlayerCubicMonotonic() local
852 + volume + " >= " + lastVolume, in testPlayerCubicMonotonic()
[all …]
DAudioManagerTest.java327 float volume = 0.5f; // volume should be between 0.f to 1.f (or -1). in testSoundEffects() local
334 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
335 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
336 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
337 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
347 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_UP, volume); in testSoundEffects()
348 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_DOWN, volume); in testSoundEffects()
349 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_LEFT, volume); in testSoundEffects()
350 mAudioManager.playSoundEffect(AudioManager.FX_FOCUS_NAVIGATION_RIGHT, volume); in testSoundEffects()
681 int volume, volumeDelta; in testVolume() local
[all …]
DMediaRouterTest.java607 public void onVolumeSetRequest(RouteInfo info, int volume) { in onVolumeSetRequest() argument
610 mVolume = volume; in onVolumeSetRequest()
/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.java146 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DStubTunerTvInputService.java121 public void onSetStreamVolume(float volume) { in onSetStreamVolume() argument
DTvInputServiceTest.java478 final float volume = 0.8f; in verifyCommandSetStreamVolume() local
480 onTvView(tvView -> tvView.setStreamVolume(volume)); in verifyCommandSetStreamVolume()
485 assertThat(session.mStreamVolume).isEqualTo(volume); in verifyCommandSetStreamVolume()
1220 public void onSetStreamVolume(float volume) {
1222 mStreamVolume = volume;
/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/
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/hostsidetests/hdmicec/src/android/hdmicec/cts/
DLogHelper.java76 String volume = testString.split("at")[1].trim().replaceAll("%", ""); in parseDutVolume() local
77 return Integer.parseInt(volume); in parseDutVolume()
/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
/cts/hostsidetests/hdmicec/
Dcec_adapter.md151 : send a volume up command to the amp if present
154 : send a volume down command to the amp if present
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java339 final StorageVolume volume = storageManager.getStorageVolume(file); in acquireAccess() local
340 final Intent intent = volume.createOpenDocumentTreeIntent(); in acquireAccess()

12