Home
last modified time | relevance | path

Searched refs:mediaPlayer (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DNoWakeLockPermissionTest.java68 final MediaPlayer mediaPlayer = new MediaPlayer(); in testMediaPlayerWakeLock() local
69 mediaPlayer.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK); in testMediaPlayerWakeLock()
71 mediaPlayer.start(); in testMediaPlayerWakeLock()
77 mediaPlayer.stop(); in testMediaPlayerWakeLock()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java161 MediaPlayer mediaPlayer = new MediaPlayer(); in assertMediaPlayerCleartextRequestSucceeds() local
163 mediaPlayer.setDataSource(getContext(), uri); in assertMediaPlayerCleartextRequestSucceeds()
166 mediaPlayer.prepare(); in assertMediaPlayerCleartextRequestSucceeds()
170 mediaPlayer.stop(); in assertMediaPlayerCleartextRequestSucceeds()
179 MediaPlayer mediaPlayer = new MediaPlayer(); in assertMediaPlayerCleartextRequestBlocked() local
181 mediaPlayer.setDataSource(getContext(), uri); in assertMediaPlayerCleartextRequestBlocked()
184 mediaPlayer.prepare(); in assertMediaPlayerCleartextRequestBlocked()
188 mediaPlayer.stop(); in assertMediaPlayerCleartextRequestBlocked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodPresentMediaDialog.java182 final MediaPlayer mediaPlayer = new MediaPlayer(); in onCreateDialog() local
188 mediaPlayer.setDataSource(getActivity(), uri); in onCreateDialog()
189 mediaPlayer.prepare(); in onCreateDialog()
198 mediaPlayer.setOnPreparedListener(new OnPreparedListener() { in onCreateDialog()
204 mediaPlayer.start(); in onCreateDialog()