Searched refs:acceptMimes (Results 1 – 13 of 13) sorted by relevance
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/roots/ |
D | ProvidersAccessTest.java | 64 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_Everything() 75 mState.acceptMimes = new String[] { "*/*" }; in testMatchingRoots_DirectoryCopy() 85 mState.acceptMimes = new String[] { "image/png", "*/*" }; in testMatchingRoots_PngOrWild() 92 mState.acceptMimes = new String[] { "audio/*" }; in testMatchingRoots_AudioWild() 99 mState.acceptMimes = new String[] { "audio/*", "image/*" }; in testMatchingRoots_AudioWildOrImageWild() 106 mState.acceptMimes = new String[] { "audio/mpeg" }; in testMatchingRoots_AudioSpecific() 113 mState.acceptMimes = new String[] { "application/msword" }; in testMatchingRoots_Document() 120 mState.acceptMimes = new String[] { "application/*" }; in testMatchingRoots_Application() 127 mState.acceptMimes = new String[] { "application/x-flac", "image/png" }; in testMatchingRoots_FlacOrPng() 151 mState.acceptMimes = new String[] { "*/*" }; in testExcludedAuthorities()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | State.java | 72 public String[] acceptMimes; field in State 113 acceptMimes = intent.getStringArrayExtra(Intent.EXTRA_MIME_TYPES); in initAcceptMimes() 115 acceptMimes = new String[] { defaultAcceptMimeType }; in initAcceptMimes() 134 if (action != ACTION_GET_CONTENT && action != ACTION_OPEN || acceptMimes == null) { in isPhotoPicking() 138 for (String mimeType : acceptMimes) { in isPhotoPicking() 154 out.writeStringArray(acceptMimes); in writeToParcel() 170 + ", acceptMimes=" + Arrays.toString(acceptMimes) in toString() 193 state.acceptMimes = in.createStringArray();
|
D | FilteringCursorWrapper.java | 39 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes) { in FilteringCursorWrapper() argument 40 this(cursor, acceptMimes, null, Long.MIN_VALUE); in FilteringCursorWrapper() 43 public FilteringCursorWrapper(Cursor cursor, String[] acceptMimes, String[] rejectMimes) { in FilteringCursorWrapper() argument 44 this(cursor, acceptMimes, rejectMimes, Long.MIN_VALUE); in FilteringCursorWrapper() 48 Cursor cursor, String[] acceptMimes, String[] rejectMimes, long rejectBefore) { in FilteringCursorWrapper() argument 64 if (MimeTypes.mimeMatches(acceptMimes, mimeType)) { in FilteringCursorWrapper()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersAccess.java | 125 MimeTypes.mimeMatches(root.derivedMimeTypes, state.acceptMimes) || in getMatchingRoots() 126 MimeTypes.mimeMatches(state.acceptMimes, root.derivedMimeTypes); in getMatchingRoots() 130 + 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 | 400 mEnv.state.acceptMimes = new String[] { "image/*" }; in testFinishPicking_SetsCorrectResultAndFinishes_ActionGetContent_MultipleSelection() 452 mEnv.state.acceptMimes = new String[] { "image/*" }; in testFinishPicking_SetsCorrectResultAndFinishes_ActionOpen_MultipleSelection() 607 for (int i = 0; i < mEnv.state.acceptMimes.length; ++i) { in assertContent() 608 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 | PickActivity.java | 316 MimeTypes.VISUAL_MIMES, mState.acceptMimes); in refreshDirectory()
|
D | ActionHandler.java | 435 null, mState.acceptMimes, new ClipData.Item(uris[0])); in onPickFinished()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | RecentsLoaderTests.java | 56 mEnv.state.acceptMimes = new String[] { "*/*" }; in setUp()
|
D | GlobalSearchLoaderTest.java | 64 mEnv.state.acceptMimes = new String[]{"*/*"}; in setUp()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MultiRootDocumentsLoader.java | 175 cursor, mState.acceptMimes, getRejectMimes(), rejectBefore) { in loadInBackgroundLocked()
|
D | BaseActivity.java | 253 mSearchManager.initChipSets(mState.acceptMimes); in onCreate()
|