Searched refs:acceptMimes (Results 1 – 13 of 13) sorted by relevance
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 88 mState.acceptMimes = new String[]{"*/*"}; in testMatchingRoots_Everything() 95 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRoots_PngOrWild() 102 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRoots_AudioWild() 109 mState.acceptMimes = new String[] { "audio/*", "image/*" }; in testMatchingRoots_AudioWildOrImageWild() 116 mState.acceptMimes = new String[] { "audio/mpeg" }; in testMatchingRoots_AudioSpecific() 123 mState.acceptMimes = new String[] { "application/msword" }; in testMatchingRoots_Document() 130 mState.acceptMimes = new String[] { "application/*" }; in testMatchingRoots_Application() 137 mState.acceptMimes = new String[] { "application/x-flac", "image/png" }; in testMatchingRoots_FlacOrPng() 145 mState.acceptMimes = new String[]{"application/x-flac", "image/png"}; in testMatchingRoots_FlacOrPng_crossProfile() 152 mState.acceptMimes = new String[] { "*/*" }; in testDefaultRoot() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | State.java | 72 public String[] acceptMimes; field in State 126 acceptMimes = intent.getStringArrayExtra(Intent.EXTRA_MIME_TYPES); in initAcceptMimes() 128 acceptMimes = new String[] { defaultAcceptMimeType }; in initAcceptMimes() 147 if (action != ACTION_GET_CONTENT && action != ACTION_OPEN || acceptMimes == null) { in isPhotoPicking() 151 for (String mimeType : acceptMimes) { in isPhotoPicking() 174 out.writeStringArray(acceptMimes); in writeToParcel() 189 + ", acceptMimes=" + Arrays.toString(acceptMimes) in toString() 211 state.acceptMimes = in.createStringArray();
|
D | FilteringCursorWrapper.java | 40 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes) { in FilteringCursorWrapper() argument 41 this(cursor, acceptMimes, null, Long.MIN_VALUE); in FilteringCursorWrapper() 44 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes, String[] rejectMimes) { in FilteringCursorWrapper() argument 45 this(cursor, acceptMimes, rejectMimes, Long.MIN_VALUE); in FilteringCursorWrapper() 49 Cursor cursor, String[] acceptMimes, String[] rejectMimes, long rejectBefore) { in FilteringCursorWrapper() argument 65 if (MimeTypes.mimeMatches(acceptMimes, mimeType)) { in FilteringCursorWrapper()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersAccess.java | 124 MimeTypes.mimeMatches(root.derivedMimeTypes, state.acceptMimes) || in getMatchingRoots() 125 MimeTypes.mimeMatches(state.acceptMimes, root.derivedMimeTypes); in getMatchingRoots() 129 + Arrays.toString(state.acceptMimes)); in getMatchingRoots()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
D | StateTest.java | 54 assertArrayEquals(MIME_TYPES, mState.acceptMimes); in testAcceptGivenMimeTypesInExtra() 61 assertArrayEquals(new String[] { MIME_TYPES[0] }, mState.acceptMimes); in testAcceptIntentTypeWithoutExtra()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/picker/ |
D | ActionHandlerTest.java | 427 mEnv.state.acceptMimes = new String[] { "image/*" }; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 479 mEnv.state.acceptMimes = new String[] { "image/*" }; in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection() 700 for (int i = 0; i < mEnv.state.acceptMimes.length; ++i) { in assertContent() 701 assertEquals(mEnv.state.acceptMimes[i], clipData.getDescription().getMimeType(i)); in assertContent()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | Config.java | 79 return MimeTypes.mimeMatches(state.acceptMimes, mimeType); in isDocumentEnabled()
|
D | ActionHandler.java | 414 null, mState.acceptMimes, new ClipData.Item(uris[0])); in onPickFinished()
|
D | PickActivity.java | 344 MimeTypes.VISUAL_MIMES, mState.acceptMimes); in refreshDirectory()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | RecentsLoaderTests.java | 69 mEnv.state.acceptMimes = new String[] { "*/*" }; in setUp()
|
D | GlobalSearchLoaderTest.java | 67 mEnv.state.acceptMimes = new String[]{"*/*"}; in setUp()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MultiRootDocumentsLoader.java | 188 cursor, mState.acceptMimes, getRejectMimes(), rejectBefore) { in loadInBackgroundLocked()
|
D | BaseActivity.java | 265 mSearchManager.initChipSets(mState.acceptMimes); in onCreate()
|