/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/ |
D | DirectoryEntry.java | 27 public String mimeType; field in DirectoryEntry 33 mimeType = in.readString(); in DirectoryEntry() 56 parcel.writeString(mimeType); in writeToParcel()
|
D | DirectoryEntryAdapter.java | 39 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()
|
D | ScopedDirectoryAccessFragment.java | 207 entry.mimeType = childCursor.getString(childCursor.getColumnIndex( in updateDirectoryEntries()
|
/development/samples/NotePad/tests/src/com/example/android/notepad/ |
D | NotePadProviderTest.java | 165 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/ |
D | WebView1.java | 37 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/ |
D | VoicemailProviderHelper.java | 110 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
|
D | VoicemailProviderHelpers.java | 118 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/ |
D | DirectoryEntry.java | 24 public String mimeType; field in DirectoryEntry
|
D | DirectoryEntryAdapter.java | 83 viewHolder.getMimeType().setText(mDirectoryEntries.get(position).mimeType); in onBindViewHolder() 85 if (DIRECTORY_MIME_TYPE.equals(mDirectoryEntries.get(position).mimeType)) { in onBindViewHolder()
|
D | DirectorySelectionFragment.java | 180 entry.mimeType = childCursor.getString(1); in updateDirectoryEntries()
|
/development/samples/browseable/BasicContactables/src/com.example.android.basiccontactables/ |
D | ContactablesLoaderCallbacks.java | 123 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/ |
D | ImageKeyboard.java | 65 @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/ |
D | PickContact.java | 53 ResultDisplayer(String msg, String mimeType) { in ResultDisplayer() argument 55 mMimeType = mimeType; in ResultDisplayer()
|
D | FileProvider.java | 134 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, in writeDataToPipe() argument
|
D | DocumentsSample.java | 346 private Uri createDocument(ContentResolver resolver, Uri documentUri, String mimeType, in createDocument() argument 350 uri = DocumentsContract.createDocument(resolver, documentUri, mimeType, displayName); in createDocument()
|
/development/samples/Vault/src/com/example/android/vault/ |
D | VaultProvider.java | 241 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/MediaRecorder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 145 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/ |
D | MediaCodecWrapper.java | 145 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/BasicMediaDecoder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 145 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/ |
D | ContactManager.java | 348 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/ |
D | MyCloudProvider.java | 333 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/ |
D | MainActivity.java | 129 for (final String mimeType : contentMimeTypes) { in onCommitContent() 130 if (inputContentInfo.getDescription().hasMimeType(mimeType)) { in onCommitContent()
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/ |
D | AddVoicemailActivity.java | 127 String mimeType = mMimeType.getText().toString(); in buildVoicemailObjectFromUiElements() local
|
/development/samples/NotePad/src/com/example/android/notepad/ |
D | NotePadProvider.java | 430 public void writeDataToPipe(ParcelFileDescriptor output, Uri uri, String mimeType, in writeDataToPipe() argument
|