Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Email/provider_src/com/android/email/
DLegacyConversions.java397 final MimeMultipart mp = new MimeMultipart(); in makeMessage() local
398 mp.setSubType("mixed"); in makeMessage()
399 message.setBody(mp); in makeMessage()
402 addTextBodyPart(mp, "text/html", in makeMessage()
409 addTextBodyPart(mp, "text/plain", in makeMessage()
448 addAttachmentPart(mp, mimeType, contentSize, filename, contentId, content); in makeMessage()
473 private static void addTextBodyPart(final MimeMultipart mp, final String contentType, in addTextBodyPart() argument
481 mp.addBodyPart(bp); in addTextBodyPart()
495 protected static void addAttachmentPart(final Multipart mp, final String contentType, in addAttachmentPart() argument
507 mp.addBodyPart(bp); in addAttachmentPart()
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/
DMimeUtility.java385 MimeMultipart mp = (MimeMultipart)part.getBody(); in collectParts() local
387 if (mp.getSubTypeForTest().equals("alternative")) { in collectParts()
388 for (int i = 0; i < mp.getCount(); i++) { in collectParts()
389 if (mp.getBodyPart(i).isMimeType("text/html")) { in collectParts()
395 for (int i = 0; i < mp.getCount(); i++) { in collectParts()
397 BodyPart bp = mp.getBodyPart(i); in collectParts()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/
DMimeUtility.java369 MimeMultipart mp = (MimeMultipart) part.getBody(); in collectParts() local
371 if (mp.getSubTypeForTest().equals("alternative")) { in collectParts()
372 for (int i = 0; i < mp.getCount(); i++) { in collectParts()
373 if (mp.getBodyPart(i).isMimeType("text/html")) { in collectParts()
379 for (int i = 0; i < mp.getCount(); i++) { in collectParts()
381 BodyPart bp = mp.getBodyPart(i); in collectParts()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java245 public void onPrepared(MediaPlayer mp) { in onPrepared() argument
247 mPlayer = (PreviewPlayer) mp; in onPrepared()
370 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument
376 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
478 public void onPrepared(MediaPlayer mp) { in onPrepared() argument
480 mActivity.onPrepared(mp); in onPrepared()
DMusicPicker.java653 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
654 if (mMediaPlayer == mp) { in onCompletion()
655 mp.stop(); in onCompletion()
656 mp.release(); in onCompletion()
DMediaPlaybackService.java1953 public void onCompletion(MediaPlayer mp) {
1954 if (mp == mCurrentMediaPlayer && mNextMediaPlayer != null) {
1973 public boolean onError(MediaPlayer mp, int what, int extra) {
2053 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
/packages/apps/Messaging/src/com/android/messaging/util/
DMediaUtilImpl.java47 public void onCompletion(final MediaPlayer mp) { in playSound()
51 mp.stop(); in playSound()
52 mp.release(); in playSound()
DNotificationPlayer.java221 public void onCompletion(final MediaPlayer mp) { in onCompletion() argument
/packages/apps/Email/tests/src/com/android/email/
DLegacyConversionsTest.java200 final MimeMultipart mp = new MimeMultipart(); in testAttachmentRoundTrip() local
201 mp.setSubType("mixed"); in testAttachmentRoundTrip()
222 LegacyConversions.addAttachmentPart(mp, "text/plain", size, "test.txt", in testAttachmentRoundTrip()
231 outMessage.setBody(mp); in testAttachmentRoundTrip()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java148 final MimeMultipart mp = new MimeMultipart(mContentType); in build() local
150 mp.addBodyPart(p); in build()
152 return mp; in build()
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioAttachmentView.java232 public void onCompletion(final MediaPlayer mp) { in setupMediaPlayer()
246 public void onPrepared(final MediaPlayer mp) { in setupMediaPlayer()
264 public boolean onError(final MediaPlayer mp, final int what, final int extra) { in setupMediaPlayer()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java489 MimeMultipart mp = new MimeMultipart(); in parseBodyStructure() local
504 mp.addBodyPart(bp); in parseBodyStructure()
508 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase(Locale.US)); in parseBodyStructure()
513 part.setBody(mp); in parseBodyStructure()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioPlayer.java131 public boolean onError(MediaPlayer mp, int what, int extra) { in doStart()
146 public void onCompletion(MediaPlayer mp) { in doStart()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMessage.java91 Multipart mp = (Multipart) body; in writeTo() local
92 mp.writeTo(out); in writeTo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/setup/
DSetupWizardActivity.java202 public void onPrepared(final MediaPlayer mp) { in onCreate()
206 mp.setLooping(true); in onCreate()
211 public boolean onError(final MediaPlayer mp, final int what, final int extra) { in onCreate()
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DRecorder.java250 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument
256 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimVideo.java329 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
334 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument
DMoviePlayer.java360 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java860 MimeMultipart mp = new MimeMultipart(); in parseBodyStructure() local
875 mp.addBodyPart(bp); in parseBodyStructure()
879 mp.setSubType(bs.getStringOrEmpty(i).getString().toLowerCase(Locale.US)); in parseBodyStructure()
884 part.setBody(mp); in parseBodyStructure()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java543 public void onPrepared(MediaPlayer mp) { in onPrepared() argument
556 if (!mp.isPlaying()) { in onPrepared()
572 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java396 public boolean onError(MediaPlayer mp, int what, int extra) { in playAlertTone()
410 public void onCompletion(MediaPlayer mp) { in playAlertTone()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageShow.java388 Matrix mp = master.computeImageToScreen(previousImage, 0, false); in drawImageAndAnimate() local
390 mp.mapRect(dp); in drawImageAndAnimate()
480 canvas.drawBitmap(previousImage, mp, mPaint); in drawImageAndAnimate()
/packages/apps/Settings/src/com/android/settings/widget/
DVideoPreference.java72 mMediaPlayer.setOnSeekCompleteListener(mp -> mVideoReady = true); in VideoPreference()
/packages/apps/Gallery/src/com/android/camera/
DMovieViewControl.java236 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java300 public boolean onError(MediaPlayer mp, int what, int extra) {

12