Home
last modified time | relevance | path

Searched refs:mimeType (Results 1 – 25 of 34) sorted by relevance

12

/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DDirectoryEntry.java27 public String mimeType; field in DirectoryEntry
33 mimeType = in.readString(); in DirectoryEntry()
56 parcel.writeString(mimeType); in writeToParcel()
DDirectoryEntryAdapter.java39 viewHolder.mimeType.setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
42 .equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
64 public TextView mimeType; field in DirectoryEntryAdapter.ViewHolder
70 mimeType = (TextView) v.findViewById(R.id.textview_mimetype); in ViewHolder()
DScopedDirectoryAccessFragment.java207 entry.mimeType = childCursor.getString(childCursor.getColumnIndex( in updateDirectoryEntries()
/development/samples/ReceiveContentDemo/src/com/example/android/receivecontent/
DMyReceiver.java94 String mimeType = contentResolver.getType(uri); in receive()
95 Log.i(Logcat.TAG, "Processing " + mimeType + ": " + uri); in receive()
96 if (ClipDescription.compareMimeTypes(mimeType, "image/*")) { in receive()
100 showMessage(applicationContext, uri, mimeType); in receive()
126 @NonNull Uri uri, @NonNull String mimeType) { in showMessage() argument
137 String msg = "Received " + mimeType + " (" + lengthBytes + " bytes): " + uri; in showMessage()
DAttachmentsRepo.java63 String mimeType = contentResolver.getType(uri); in write() local
64 String ext = MimeTypeMap.getSingleton().getExtensionFromMimeType(mimeType); in write()
/development/samples/NotePad/tests/src/com/example/android/notepad/
DNotePadProviderTest.java165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI); in testUriAndGetType() local
166 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); in testUriAndGetType()
169 mimeType = mMockResolver.getType(NotePad.Notes.LIVE_FOLDER_URI); in testUriAndGetType()
170 assertEquals(NotePad.Notes.CONTENT_TYPE, mimeType); in testUriAndGetType()
176 mimeType = mMockResolver.getType(noteIdUri); in testUriAndGetType()
177 assertEquals(NotePad.Notes.CONTENT_ITEM_TYPE, mimeType); in testUriAndGetType()
180 mimeType = mMockResolver.getType(INVALID_URI); in testUriAndGetType()
207 String mimeType[] = mMockResolver.getStreamTypes(testUri, MIME_TYPES_ALL); in testGetStreamTypes() local
211 assertNotNull(mimeType); in testGetStreamTypes()
212 assertEquals(mimeType[0],"text/plain"); in testGetStreamTypes()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DWebView1.java37 final String mimeType = "text/html"; in onCreate() local
42 wv.loadData("<a href='x'>Hello World! - 1</a>", mimeType, null); in onCreate()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/
DVoicemailProviderHelper.java110 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) in setVoicemailContent() argument
119 public void setVoicemailContent(Uri voicemailUri, byte[] inputBytes, String mimeType) in setVoicemailContent() argument
DVoicemailProviderHelpers.java118 public void setVoicemailContent(Uri voicemailUri, InputStream inputStream, String mimeType) in setVoicemailContent() argument
120 setVoicemailContent(voicemailUri, null, inputStream, mimeType); in setVoicemailContent()
124 public void setVoicemailContent(Uri voicemailUri, byte[] inputBytes, String mimeType) in setVoicemailContent() argument
126 setVoicemailContent(voicemailUri, inputBytes, null, mimeType); in setVoicemailContent()
130 String mimeType) throws IOException { in setVoicemailContent() argument
150 values.put(Voicemails.MIME_TYPE, mimeType); in setVoicemailContent()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectoryEntry.java24 public String mimeType; field in DirectoryEntry
DDirectoryEntryAdapter.java83 viewHolder.getMimeType().setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder()
85 if (DIRECTORY_MIME_TYPE.equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
DDirectorySelectionFragment.java180 entry.mimeType = childCursor.getString(1); in updateDirectoryEntries()
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/
DContactablesLoaderCallbacks.java123 String mimeType = cursor.getString(typeColumnIndex); in onLoadFinished() local
124 if (mimeType.equals(CommonDataKinds.Phone.CONTENT_ITEM_TYPE)) { in onLoadFinished()
126 } else if (mimeType.equals(CommonDataKinds.Email.CONTENT_ITEM_TYPE)) { in onLoadFinished()
/development/samples/browseable/CommitContentSampleIME/src/com.example.android.commitcontent.ime/
DImageKeyboard.java65 @Nullable EditorInfo editorInfo, @NonNull String mimeType) { in isCommitContentSupported() argument
81 if (ClipDescription.compareMimeTypes(mimeType, supportedMimeType)) { in isCommitContentSupported()
88 private void doCommitContent(@NonNull String description, @NonNull String mimeType, in doCommitContent() argument
128 new ClipDescription(description, new String[]{mimeType}), in doCommitContent()
/development/samples/ApiDemos/src/com/example/android/apis/content/
DPickContact.java53 ResultDisplayer(String msg, String mimeType) { in ResultDisplayer() argument
55 mMimeType = mimeType; in ResultDisplayer()
DFileProvider.java134 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, in writeDataToPipe() argument
DDocumentsSample.java387 private Uri createDocument(ContentResolver resolver, Uri documentUri, String mimeType, in createDocument() argument
391 uri = DocumentsContract.createDocument(resolver, documentUri, mimeType, displayName); in createDocument()
/development/samples/Vault/src/com/example/android/vault/
DVaultProvider.java241 final String mimeType = meta.optString(Document.COLUMN_MIME_TYPE); in includeDocument() local
242 if (Document.MIME_TYPE_DIR.equals(mimeType)) { in includeDocument()
254 row.add(Document.COLUMN_MIME_TYPE, mimeType); in includeDocument()
293 public String createDocument(String parentDocumentId, String mimeType, String displayName) in createDocument() argument
309 initDocument(childDocId, mimeType, displayName); in createDocument()
332 private void initDocument(long docId, String mimeType, String displayName) in initDocument() argument
340 meta.put(Document.COLUMN_MIME_TYPE, mimeType); in initDocument()
342 if (Document.MIME_TYPE_DIR.equals(mimeType)) { in initDocument()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in fromVideoFormat() local
149 if (mimeType.contains("video/")) { in fromVideoFormat()
150 videoCodec = MediaCodec.createDecoderByType(mimeType); in fromVideoFormat()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in fromVideoFormat() local
149 if (mimeType.contains("video/")) { in fromVideoFormat()
150 videoCodec = MediaCodec.createDecoderByType(mimeType); in fromVideoFormat()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java145 final String mimeType = trackFormat.getString(MediaFormat.KEY_MIME); in fromVideoFormat() local
149 if (mimeType.contains("video/")) { in fromVideoFormat()
150 videoCodec = MediaCodec.createDecoderByType(mimeType); in fromVideoFormat()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactManager.java348 final String mimeType = c.getString(DataQuery.COLUMN_MIMETYPE); in updateContact() local
350 if (mimeType.equals(StructuredName.CONTENT_ITEM_TYPE)) { in updateContact()
358 } else if (mimeType.equals(Phone.CONTENT_ITEM_TYPE)) { in updateContact()
373 } else if (mimeType.equals(Email.CONTENT_ITEM_TYPE)) { in updateContact()
377 } else if (mimeType.equals(Photo.CONTENT_ITEM_TYPE)) { in updateContact()
479 final String mimeType = c.getString(DataQuery.COLUMN_MIMETYPE); in getRawContact() local
485 if (mimeType.equals(StructuredName.CONTENT_ITEM_TYPE)) { in getRawContact()
489 } else if (mimeType.equals(Phone.CONTENT_ITEM_TYPE)) { in getRawContact()
498 } else if (mimeType.equals(Email.CONTENT_ITEM_TYPE)) { in getRawContact()
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/
DMyCloudProvider.java333 public String createDocument(String documentId, String mimeType, String displayName)
431 for (String mimeType : mimeTypes) {
432 mimeTypesString.append(mimeType).append("\n");
501 final String mimeType = getTypeForFile(file);
503 if (mimeType.startsWith("image/")) {
512 row.add(Document.COLUMN_MIME_TYPE, mimeType);
/development/samples/browseable/CommitContentSampleApp/src/com.example.android.commitcontent.app/
DMainActivity.java129 for (final String mimeType : contentMimeTypes) { in onCommitContent()
130 if (inputContentInfo.getDescription().hasMimeType(mimeType)) { in onCommitContent()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
DAddVoicemailActivity.java127 String mimeType = mMimeType.getText().toString(); in buildVoicemailObjectFromUiElements() local

12