/aosp12/packages/apps/Contacts/src/com/android/contacts/ |
H A D | TypePrecedence.java | 86 public static int getTypePrecedence(String mimetype, int type) { in getTypePrecedence() argument 87 int[] typePrecedence = getTypePrecedenceList(mimetype); in getTypePrecedence() 101 private static int[] getTypePrecedenceList(String mimetype) { in getTypePrecedenceList() argument 102 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList() 104 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList() 106 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList() 108 } else if (mimetype.equals(Im.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList() 110 } else if (mimetype.equals(MIME_TYPE_VIDEO_CHAT)) { in getTypePrecedenceList() 112 } else if (mimetype.equals(Organization.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
|
H A D | SplitAggregateView.java | 174 String mimetype = cursor.getString(SplitQuery.MIMETYPE); in loadData() local 175 if (StructuredName.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 177 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 179 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 181 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData()
|
/aosp12/packages/providers/ContactsProvider/tests/assets/test1/ |
H A D | expected_data.txt | 4 4 mimetype=vnd.android.cursor.item/name 31 31 mimetype=vnd.android.cursor.item/name 58 58 mimetype=vnd.android.cursor.item/name 85 85 mimetype=vnd.android.cursor.item/note 112 112 mimetype=vnd.android.cursor.item/name 544 544 mimetype=vnd.android.cursor.item/im 571 571 mimetype=vnd.android.cursor.item/im 598 598 mimetype=vnd.android.cursor.item/im 625 625 mimetype=vnd.android.cursor.item/im 652 652 mimetype=vnd.android.cursor.item/im [all …]
|
/aosp12/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
H A D | contacts2_1108.sql | 22 CREATE TABLE mimetypes (_id INTEGER PRIMARY KEY AUTOINCREMENT,mimetype TEXT NOT NULL); field 124 CREATE UNIQUE INDEX mime_type ON mimetypes (mimetype); 142 …mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9,… 144 …tat_id, data_id, raw_contacts.contact_id AS contact_id, mimetypes.mimetype AS mimetype, usage_type… 155 …mimetype FROM mimetypes WHERE mimetypes._id = name.mimetype_id)='vnd.android.cursor.item/name') LE… 156 …JOIN accounts ON (raw_contacts.account_id=accounts._id) WHERE mimetypes.mimetype='vnd.android.curs… 157 …mimetype='vnd.android.cursor.item/email_v2' THEN 1 ELSE (CASE WHEN mimetype='vnd.android.cursor.it… 158 …mimetype FROM mimetypes WHERE mimetypes._id = name.mimetype_id)='vnd.android.cursor.item/name') LE… 159 …JOIN accounts ON (raw_contacts.account_id=accounts._id) WHERE mimetypes.mimetype='vnd.android.curs… 161 …ups ON (mimetypes.mimetype='vnd.android.cursor.item/group_membership' AND groups._id = dat… [all …]
|
/aosp12/packages/providers/ContactsProvider/tests/assets/testSynced/ |
H A D | expected_data.txt | 4 4 mimetype=vnd.android.cursor.item/name 31 31 mimetype=vnd.android.cursor.item/name 58 58 mimetype=vnd.android.cursor.item/name 85 85 mimetype=vnd.android.cursor.item/name 112 112 mimetype=vnd.android.cursor.item/name 139 139 mimetype=vnd.android.cursor.item/name 166 166 mimetype=vnd.android.cursor.item/name 193 193 mimetype=vnd.android.cursor.item/name 220 220 mimetype=vnd.android.cursor.item/phone_v2 247 247 mimetype=vnd.android.cursor.item/phone_v2 [all …]
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
H A D | DownloadDrmHelper.java | 42 public static boolean isDrmMimeType(Context context, String mimetype) { in isDrmMimeType() argument 47 if (drmClient != null && mimetype != null && mimetype.length() > 0) { in isDrmMimeType() 48 result = drmClient.canHandle("", mimetype); in isDrmMimeType() 66 public static boolean isDrmConvertNeeded(String mimetype) { in isDrmConvertNeeded() argument 67 return MIMETYPE_DRM_MESSAGE.equals(mimetype); in isDrmConvertNeeded()
|
/aosp12/frameworks/base/telephony/common/com/google/android/mms/util/ |
H A D | DownloadDrmHelper.java | 44 public static boolean isDrmMimeType(Context context, String mimetype) { in isDrmMimeType() argument 49 if (drmClient != null && mimetype != null && mimetype.length() > 0) { in isDrmMimeType() 50 result = drmClient.canHandle("", mimetype); in isDrmMimeType() 69 public static boolean isDrmConvertNeeded(String mimetype) { in isDrmConvertNeeded() argument 70 return MIMETYPE_DRM_MESSAGE.equals(mimetype); in isDrmConvertNeeded()
|
/aosp12/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
H A D | expected_data.txt | 4 4 mimetype=vnd.android.cursor.item/name 31 31 mimetype=vnd.android.cursor.item/name 58 58 mimetype=vnd.android.cursor.item/name 85 85 mimetype=vnd.android.cursor.item/phone_v2 112 112 mimetype=vnd.android.cursor.item/phone_v2 139 139 mimetype=vnd.android.cursor.item/phone_v2 166 166 mimetype=vnd.android.cursor.item/email_v2 193 193 mimetype=vnd.android.cursor.item/email_v2 220 220 mimetype=vnd.android.cursor.item/email_v2 247 247 mimetype=vnd.android.cursor.item/group_membership [all …]
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppUtility.java | 181 public static void openReceivedFile(Context context, String fileName, String mimetype, in openReceivedFile() argument 183 if (fileName == null || mimetype == null) { in openReceivedFile() 227 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile() 229 activityIntent.setDataAndTypeAndNormalize(path, mimetype); in openReceivedFile() 239 Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); in openReceivedFile() 244 Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex); in openReceivedFile() 274 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { in isRecognizedFileType() argument 278 Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); in isRecognizedFileType() 282 mimetypeIntent.setDataAndTypeAndNormalize(fileUri, mimetype); in isRecognizedFileType() 288 Log.d(TAG, "NO application to handle MIME type " + mimetype); in isRecognizedFileType()
|
H A D | BluetoothOppShareInfo.java | 71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, in BluetoothOppShareInfo() argument 78 mMimetype = mimetype; in BluetoothOppShareInfo()
|
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
H A D | DataRowHandlerForCustomMimetype.java | 24 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandlerForCustomMimetype() argument 25 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCustomMimetype()
|
H A D | DataRowHandlerForCommonDataKind.java | 36 AbstractContactAggregator aggregator, String mimetype, String typeColumn, in DataRowHandlerForCommonDataKind() argument 38 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCommonDataKind()
|
H A D | DataRowHandler.java | 87 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandler() argument 91 mMimetype = mimetype; in DataRowHandler()
|
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadDrmHelper.java | 41 public static boolean isDrmConvertNeeded(String mimetype) { in isDrmConvertNeeded() argument 42 return MIMETYPE_DRM_MESSAGE.equals(mimetype); in isDrmConvertNeeded()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/editor/ |
H A D | AggregationSuggestionEngine.java | 403 final String mimetype = mDataCursor.getString(DataQuery.MIMETYPE); in getSuggestions() local 404 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions() 411 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions() 418 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions() 423 } else if (StructuredName.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions() 429 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions()
|
H A D | EditorUiUtils.java | 104 public static int getLayoutResourceId(String mimetype) { in getLayoutResourceId() argument 105 final Integer id = mimetypeLayoutMap.get(mimetype); in getLayoutResourceId()
|
/aosp12/packages/providers/MediaProvider/tools/genfiles/ |
H A D | genfiles.sh | 54 while read format mediatype mimetype data; 121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
|
/aosp12/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
H A D | CaptivePortalLoginActivityTest.java | 546 final String mimetype = "image/png"; in testDownload() local 549 server.setResponse(downloadQuery, "This is a test file", mimetype, Collections.singletonMap( in testDownload() 577 assertEquals(mimetype, fileIntent.getType()); in testDownload() 682 MockResponse(String body, String mimetype, Map<String, String> headers) { in MockResponse() argument 684 this.mMimetype = mimetype; in MockResponse() 720 private void setResponse(String query, String body, String mimetype, in setResponse() argument 722 mResponses.put(query, new MockResponse(body, mimetype, headers)); in setResponse()
|
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
H A D | MediaFrameworkTest.java | 122 String mimetype = "audio/mpeg"; in startPlayback() local 125 intent.setDataAndType(path, mimetype); in startPlayback()
|
/aosp12/frameworks/base/core/java/android/webkit/ |
H A D | DownloadListener.java | 31 String contentDisposition, String mimetype, long contentLength); in onDownloadStart() argument
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | ContactLoader.java | 410 final String mimetype = (String) keys.next(); in loadEncodedContactEntity() local 413 final JSONObject obj = items.optJSONObject(mimetype); in loadEncodedContactEntity() 415 final JSONArray array = items.getJSONArray(mimetype); in loadEncodedContactEntity() 418 processOneRecord(rawContact, item, mimetype); in loadEncodedContactEntity() 421 processOneRecord(rawContact, obj, mimetype); in loadEncodedContactEntity() 431 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) in processOneRecord() argument 434 itemValues.put(Data.MIMETYPE, mimetype); in processOneRecord()
|
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/model/ |
H A D | ContactLoader.java | 181 final String mimetype = (String) keys.next(); in loadEncodedContactEntity() local 184 final JSONObject obj = items.optJSONObject(mimetype); in loadEncodedContactEntity() 186 final JSONArray array = items.getJSONArray(mimetype); in loadEncodedContactEntity() 189 processOneRecord(rawContact, item, mimetype); in loadEncodedContactEntity() 192 processOneRecord(rawContact, obj, mimetype); in loadEncodedContactEntity() 200 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) in processOneRecord() argument 203 itemValues.put(Data.MIMETYPE, mimetype); in processOneRecord()
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/model/account/ |
H A D | ExternalAccountTypeTest.java | 180 for (String mimetype : mDefaultMimetypes) { in testReadOnlyDefinition() 181 assertNotNull(type.getKindForMimetype(mimetype)); in testReadOnlyDefinition()
|
/aosp12/frameworks/av/media/extractors/mkv/ |
H A D | MatroskaExtractor.cpp | 2213 const char *mimetype = ""; in addTracks() local 2214 if (!AMediaFormat_getString(meta, AMEDIAFORMAT_KEY_MIME, &mimetype)) { in addTracks() 2227 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_AVC) && isSetCsdFrom1stFrame)) { in addTracks() 2235 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_MPEG2) && isSetCsdFrom1stFrame)) { in addTracks() 2243 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_MPEG4) && isSetCsdFrom1stFrame) || in addTracks() 2244 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_XVID) && isSetCsdFrom1stFrame) || in addTracks() 2245 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_DIVX) && isSetCsdFrom1stFrame) || in addTracks() 2246 (!strcmp(mimetype, MEDIA_MIMETYPE_VIDEO_DIVX3) && isSetCsdFrom1stFrame)) { in addTracks()
|
/aosp12/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/ |
H A D | DownloadService.java | 170 public static Intent makeCreateFileIntent(String mimetype, String filename) { in makeCreateFileIntent() argument 173 intent.setType(mimetype); in makeCreateFileIntent()
|