Searched refs:MediaPicker (Results 1 – 10 of 10) 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()
93 import com.android.messaging.ui.mediapicker.MediaPicker;1008 public MediaPicker getMediaPicker() { in getMediaPicker()1009 return (MediaPicker) getFragmentManagerToUse().findFragmentByTag( in getMediaPicker()1010 MediaPicker.FRAGMENT_TAG); in getMediaPicker()1478 public MediaPicker createMediaPicker() { in createMediaPicker()1479 return new MediaPicker(getActivity()); in createMediaPicker()
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()
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()
50 GalleryMediaChooser(final MediaPicker mediaPicker) { in GalleryMediaChooser()57 return MediaPicker.MEDIA_TYPE_IMAGE | MediaPicker.MEDIA_TYPE_VIDEO; in getSupportedMediaTypes()200 MediaPicker.GALLERY_PERMISSION_REQUEST_CODE); in setSelected()212 if (requestCode == MediaPicker.GALLERY_PERMISSION_REQUEST_CODE) { in onRequestPermissionsResult()
41 protected final MediaPicker mMediaPicker;64 MediaChooser(final MediaPicker mediaPicker) { in MediaChooser()
64 public class MediaPicker extends Fragment implements DraftMessageSubscriptionDataProvider { class171 public MediaPicker() { in MediaPicker() method in MediaPicker175 public MediaPicker(final Context context) { in MediaPicker() method in MediaPicker
73 private MediaPicker mMediaPicker;194 void setMediaPicker(final MediaPicker mediaPicker) { in setMediaPicker()
34 import com.android.messaging.ui.mediapicker.MediaPicker;53 @Mock protected MediaPicker mockMediaPicker;74 Mockito.eq(R.id.mediapicker_container), Mockito.any(MediaPicker.class), in initNewInputManager()76 Mockito.when(mockFragmentManager.findFragmentByTag(MediaPicker.FRAGMENT_TAG)) in initNewInputManager()100 Mockito.eq(R.id.mediapicker_container), Mockito.any(MediaPicker.class), in testShowHideInputs()