/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
MediaPlayerPowerTest.java | 51 MediaPlayer mp = new MediaPlayer(); local 52 mp.setDataSource(filePath); 53 mp.prepare(); 54 mp.start(); 56 mp.stop(); 57 mp.release();
|
/external/dropbear/libtommath/etc/ |
mont.c | 7 mp_digit mp; local 23 mp_montgomery_setup(&modulus, &mp); 29 mp_montgomery_reduce(&pp, &modulus, mp);
|
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTest.java | 81 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 220 MediaPlayer mp = MediaPlayer.create(mContext, resid); local 221 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 222 mp.setWakeMode(mContext, PowerManager.PARTIAL_WAKE_LOCK); 224 assertFalse(mp.isPlaying()); 225 mp.start(); 226 assertTrue(mp.isPlaying()); 228 assertFalse(mp.isLooping()); 229 mp.setLooping(true); 230 assertTrue(mp.isLooping()) 610 MediaPlayer mp = new MediaPlayer(); local [all...] |
AudioManagerTest.java | 204 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); local 205 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 206 mp.start(); 210 mp.stop(); 211 mp.release(); 611 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); local 612 mp.setAudioStreamType(STREAM_MUSIC); 613 mp.setLooping(true); 614 mp.start(); 637 mp.stop() [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 93 MediaPlayer mp = new MediaPlayer(); local 95 mp.setDataSource(MediaNames.VIDEO_RTSP3GP); 97 mp.setDisplay(mSurfaceView.getHolder()); 98 mp.prepare(); 99 mp.start();
|
/packages/apps/Mms/src/com/android/mms/ui/ |
SlideListItemView.java | 123 MediaPlayer mp = new MediaPlayer(); local 125 mp.setDataSource(mContext, video); 126 mImagePreview.setImageBitmap(mp.getFrameAt(1000)); 130 mp.release();
|
SlideshowAttachmentView.java | 104 MediaPlayer mp = new MediaPlayer(); local 106 mp.setDataSource(mContext, video); 107 mImageView.setImageBitmap(mp.getFrameAt(1000)); 111 mp.release();
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
MediaPresetReverbTest.java | 190 MediaPlayer mp = null; local 208 mp = new MediaPlayer(); 209 mp.setDataSource(MediaNames.SINE_200_1000); 210 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 211 mp.attachAuxEffect(mReverb.getId()); 212 mp.setAuxEffectSendLevel(1.0f); 215 mp.prepare(); 216 mp.start(); 218 mp.stop(); 238 if (mp != null) 259 MediaPlayer mp = null; local [all...] |
MediaBassBoostTest.java | 192 MediaPlayer mp = null; local 210 mp = new MediaPlayer(); 211 mp.setDataSource(MediaNames.SINE_200_1000); 212 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 213 getBassBoost(mp.getAudioSessionId()); 214 mp.prepare(); 215 mp.start(); 246 if (mp != null) { 247 mp.release();
|
MediaEqualizerTest.java | 259 MediaPlayer mp = null; local 276 mp = new MediaPlayer(); 277 mp.setDataSource(MediaNames.SINE_200_1000); 278 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 279 getEqualizer(mp.getAudioSessionId()); 280 mp.prepare(); 281 mp.start(); 308 if (mp != null) { 309 mp.release();
|
MediaVirtualizerTest.java | 193 MediaPlayer mp = null; local 211 mp = new MediaPlayer(); 212 mp.setDataSource(MediaNames.SINE_200_1000); 213 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 214 getVirtualizer(mp.getAudioSessionId()); 215 mp.prepare(); 216 mp.start(); 251 if (mp != null) { 252 mp.release();
|
CodecTest.java | 84 MediaPlayer mp = new MediaPlayer(); local 86 mp.setDataSource(filePath); 87 mp.prepare(); 91 int duration = mp.getDuration(); 93 mp.release(); 103 MediaPlayer mp = new MediaPlayer(); local 105 mp.setDataSource(filePath); 107 mp.prepare(); 108 mp.start(); 111 mp.pause() 136 MediaPlayer mp = new MediaPlayer(); local 163 MediaPlayer mp = new MediaPlayer(); local 201 MediaPlayer mp = new MediaPlayer(); local 226 MediaPlayer mp = new MediaPlayer(); local 235 MediaPlayer mp = new MediaPlayer(); local 329 MediaPlayer mp = new MediaPlayer(); local 375 MediaPlayer mp = new MediaPlayer(); local 403 MediaPlayer mp = new MediaPlayer(); local 431 MediaPlayer mp = new MediaPlayer(); local 461 MediaPlayer mp = new MediaPlayer(); local 499 MediaPlayer mp = new MediaPlayer(); local 567 MediaPlayer mp = new MediaPlayer(); local 586 MediaPlayer mp = new MediaPlayer(); local 600 MediaPlayer mp = null; local 634 MediaPlayer mp = null; local [all...] |
MediaEnvReverbTest.java | 345 MediaPlayer mp = null; local 363 mp = new MediaPlayer(); 364 mp.setDataSource(MediaNames.SINE_200_1000); 365 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 366 mp.attachAuxEffect(mReverb.getId()); 367 mp.setAuxEffectSendLevel(1.0f); 372 mp.prepare(); 373 mp.start(); 375 mp.stop(); 395 if (mp != null) 416 MediaPlayer mp = null; local [all...] |
MediaVisualizerTest.java | 197 MediaPlayer mp = null; local 214 mp = new MediaPlayer(); 215 mp.setDataSource(MediaNames.SINE_200_1000); 216 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); 217 getVisualizer(mp.getAudioSessionId()); 229 mp.prepare(); 230 mp.start(); 256 if (mp != null) { 257 mp.release(); 273 MediaPlayer mp = null local [all...] |
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechTest.java | 170 MediaPlayer mp = new MediaPlayer(); local 171 mp.setDataSource(filePath); 172 mp.prepare(); 173 mp.start(); 174 mp.stop();
|
/external/dropbear/libtomcrypt/src/pk/ecc/ |
ecc_verify_hash.c | 52 void *mp; local 62 mp = NULL; 128 /* find the montgomery mp */ 129 if ((err = mp_montgomery_setup(m, &mp)) != CRYPT_OK) { goto error; } 132 if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, m, mp)) != CRYPT_OK) { goto error; } 135 if ((err = ltc_mp.ecc_map(mG, m, mp)) != CRYPT_OK) { goto error; } 155 if (mp != NULL) { 156 mp_montgomery_free(mp);
|
ltc_ecc_mulmod.c | 43 void *mu, *mp; local 53 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 57 mp_montgomery_free(mp); 61 mp_montgomery_free(mp); 73 mp_montgomery_free(mp); 98 if ((err = ltc_mp.ecc_ptdbl(tG, M[0], modulus, mp)) != CRYPT_OK) { goto done; } 99 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], modulus, mp)) != CRYPT_OK) { goto done; } 100 if ((err = ltc_mp.ecc_ptdbl(M[0], M[0], modulus, mp)) != CRYPT_OK) { goto done; } 104 if ((err = ltc_mp.ecc_ptadd(M[j-9], tG, M[j-8], modulus, mp)) != CRYPT_OK) { goto done; } 138 if ((err = ltc_mp.ecc_ptdbl(R, R, modulus, mp)) != CRYPT_OK) { goto done; [all...] |
ltc_ecc_mulmod_timing.c | 41 void *mu, *mp; local 51 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 55 mp_montgomery_free(mp); 60 mp_montgomery_free(mp); 72 mp_montgomery_free(mp); 94 if ((err = ltc_mp.ecc_ptdbl(tG, M[1], modulus, mp)) != CRYPT_OK) { goto done; } 122 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 123 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 130 if ((err = ltc_mp.ecc_ptadd(M[0], M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; } 131 if ((err = ltc_mp.ecc_ptdbl(M[1], M[2], modulus, mp)) != CRYPT_OK) { goto done; [all...] |
ltc_ecc_mul2add.c | 46 void *mp, *mu; local 97 if ((err = mp_montgomery_setup(modulus, &mp)) != CRYPT_OK) { 117 if ((err = ltc_mp.ecc_ptdbl(precomp[1], precomp[2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 118 if ((err = ltc_mp.ecc_ptadd(precomp[1], precomp[2], precomp[3], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 121 if ((err = ltc_mp.ecc_ptdbl(precomp[1<<2], precomp[2<<2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 122 if ((err = ltc_mp.ecc_ptadd(precomp[1<<2], precomp[2<<2], precomp[3<<2], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 127 if ((err = ltc_mp.ecc_ptadd(precomp[x], precomp[(y<<2)], precomp[x+(y<<2)], modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 160 if ((err = ltc_mp.ecc_ptdbl(C, C, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 161 if ((err = ltc_mp.ecc_ptdbl(C, C, modulus, mp)) != CRYPT_OK) { goto ERR_MU; } 174 if ((err = ltc_mp.ecc_ptadd(C, precomp[nA + (nB<<2)], C, modulus, mp)) != CRYPT_OK) { goto ERR_MU; [all...] |
/external/dropbear/libtommath/ |
bn_mp_exptmod_fast.c | 35 mp_digit buf, mp; local 89 if ((err = mp_montgomery_setup (P, &mp)) != MP_OKAY) { 116 mp_dr_setup(P, &mp); 125 if ((err = mp_reduce_2k_setup(P, &mp)) != MP_OKAY) { 178 if ((err = redux (&M[1 << (winsize - 1)], P, mp)) != MP_OKAY) { 188 if ((err = redux (&M[x], P, mp)) != MP_OKAY) { 231 if ((err = redux (&res, P, mp)) != MP_OKAY) { 248 if ((err = redux (&res, P, mp)) != MP_OKAY) { 257 if ((err = redux (&res, P, mp)) != MP_OKAY) { 275 if ((err = redux (&res, P, mp)) != MP_OKAY) [all...] |
/external/libgsm/src/ |
preprocess.c | 42 word mp = S->mp; local 105 msp = GSM_MULT_R( mp, -28180 ); 106 mp = SASR( L_temp, 15 ); 107 *so++ = GSM_ADD( mp, msp ); 112 S->mp = mp;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
MediaPlayerStressTest.java | 69 MediaPlayer mp = new MediaPlayer(); local 70 mp.setDataSource(MediaNames.STREAM_H264_480_360_1411k); 71 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 72 mp.prepare(); 73 mp.start(); 82 mp.seekTo(seek_time); 84 mp.release(); 107 MediaPlayer mp = new MediaPlayer(); local 108 mp.setDataSource(MediaNames.VIDEO_H263_AMR); 109 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()) [all...] |
MediaRecorderStressTest.java | 296 MediaPlayer mp = new MediaPlayer(); local 297 mp.setDataSource(recorded_file); 298 mp.prepare(); 299 int duration = mp.getDuration(); 303 mp.release(); 375 MediaPlayer mp = new MediaPlayer(); local 376 mp.setDataSource(filename); 377 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); 378 mp.prepare(); 379 mp.start() [all...] |
/external/dropbear/libtomcrypt/testprof/ |
ecc_test.c | 35 void *modulus, *mp, *kA, *kB, *rA, *rB; local 59 DO(mp_montgomery_setup(modulus, &mp)); 84 DO(ltc_mp.ecc_ptadd(C1, C2, C1, modulus, mp)); 85 DO(ltc_mp.ecc_map(C1, modulus, mp)); 96 mp_montgomery_free(mp);
|
/external/e2fsprogs/lib/ext2fs/ |
ismounted.c | 199 struct statfs *mp; local 204 n = getmntinfo(&mp, MNT_NOWAIT); 215 s2 = mp->f_mntfromname; 224 ++mp; 227 strncpy(mtpt, mp->f_mntonname, mtlen);
|