Searched refs:MediaPicker (Results 1 – 11 of 11) sorted by relevance
37 public class MediaPickerTest extends FragmentTestCase<MediaPicker> {43 super(MediaPicker.class); in MediaPickerTest()47 protected MediaPicker getFragment() { in getFragment()49 mFragment = new MediaPicker(getInstrumentation().getTargetContext()); in getFragment()79 final MediaPicker fragment = getFragment(); in initFragment()91 fragment.open(MediaPicker.MEDIA_TYPE_ALL, false); in initFragment()99 initFragment(MediaPicker.MEDIA_TYPE_ALL, new Integer[] { in testDefaultTabs()102 final MediaPicker mediaPicker = getFragment(); in testDefaultTabs()116 initFragment(MediaPicker.MEDIA_TYPE_IMAGE, new Integer[] { in testFilterTabsBeforeAttach()119 final MediaPicker mediaPicker = getFragment(); in testFilterTabsBeforeAttach()
36 import com.android.messaging.ui.mediapicker.MediaPicker;37 import com.android.messaging.ui.mediapicker.MediaPicker.MediaPickerListener;63 MediaPicker createMediaPicker(); in createMediaPicker()347 private MediaPicker mMediaPicker;419 mMediaPicker.open(MediaPicker.MEDIA_TYPE_DEFAULT, animate); in show()448 private MediaPicker getExistingOrCreateMediaPicker() { in getExistingOrCreateMediaPicker()452 MediaPicker mediaPicker = (MediaPicker) in getExistingOrCreateMediaPicker()453 mFragmentManager.findFragmentByTag(MediaPicker.FRAGMENT_TAG); in getExistingOrCreateMediaPicker()462 MediaPicker.FRAGMENT_TAG).commit(); in getExistingOrCreateMediaPicker()
94 import com.android.messaging.ui.mediapicker.MediaPicker;1018 public MediaPicker getMediaPicker() { in getMediaPicker()1019 return (MediaPicker) getFragmentManagerToUse().findFragmentByTag( in getMediaPicker()1020 MediaPicker.FRAGMENT_TAG); in getMediaPicker()1488 public MediaPicker createMediaPicker() { in createMediaPicker()1489 return new MediaPicker(getActivity()); in createMediaPicker()
58 GalleryMediaChooser(final MediaPicker mediaPicker) { in GalleryMediaChooser()74 return (MediaPicker.MEDIA_TYPE_IMAGE in getSupportedMediaTypes()75 | MediaPicker.MEDIA_TYPE_VIDEO in getSupportedMediaTypes()76 | MediaPicker.MEDIA_TYPE_AUDIO); in getSupportedMediaTypes()220 MediaPicker.GALLERY_PERMISSION_REQUEST_CODE); in setSelected()233 if (requestCode == MediaPicker.GALLERY_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()
37 AudioMediaChooser(final MediaPicker mediaPicker) { in AudioMediaChooser()43 return MediaPicker.MEDIA_TYPE_AUDIO; in getSupportedMediaTypes()118 MediaPicker.RECORD_AUDIO_PERMISSION_REQUEST_CODE); in requestRecordAudioPermission()124 if (requestCode == MediaPicker.RECORD_AUDIO_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()
46 ContactMediaChooser(final MediaPicker mediaPicker) { in ContactMediaChooser()52 return MediaPicker.MEDIA_TYPE_VCARD; in getSupportedMediaTypes()97 MediaPicker.READ_CONTACT_PERMISSION_REQUEST_CODE); in setSelected()104 if (requestCode == MediaPicker.READ_CONTACT_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()
62 CameraMediaChooser(final MediaPicker mediaPicker) { in CameraMediaChooser()69 return MediaPicker.MEDIA_TYPE_IMAGE | MediaPicker.MEDIA_TYPE_VIDEO; in getSupportedMediaTypes()71 return MediaPicker.MEDIA_TYPE_NONE; in getSupportedMediaTypes()273 MediaPicker.CAMERA_PERMISSION_REQUEST_CODE); in requestCameraPermission()278 MediaPicker.RECORD_AUDIO_PERMISSION_REQUEST_CODE); in requestRecordAudioPermission()284 if (requestCode == MediaPicker.CAMERA_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()290 } else if (requestCode == MediaPicker.RECORD_AUDIO_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()
42 protected final MediaPicker mMediaPicker;65 MediaChooser(final MediaPicker mediaPicker) { in MediaChooser()
62 public class MediaPicker extends Fragment implements DraftMessageSubscriptionDataProvider { class166 public MediaPicker() { in MediaPicker() method in MediaPicker170 public MediaPicker(final Context context) { in MediaPicker() method in MediaPicker
73 private MediaPicker mMediaPicker;194 void setMediaPicker(final MediaPicker mediaPicker) { in setMediaPicker()
35 import com.android.messaging.ui.mediapicker.MediaPicker;54 @Mock protected MediaPicker mockMediaPicker;75 Mockito.eq(R.id.mediapicker_container), Mockito.any(MediaPicker.class), in initNewInputManager()77 Mockito.when(mockFragmentManager.findFragmentByTag(MediaPicker.FRAGMENT_TAG)) in initNewInputManager()101 Mockito.eq(R.id.mediapicker_container), Mockito.any(MediaPicker.class), in testShowHideInputs()