/packages/apps/Contacts/src/com/android/contacts/ |
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()
|
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()
|
/packages/providers/ContactsProvider/tests/assets/test1/ |
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 139 139 mimetype=vnd.android.cursor.item/organization 166 166 mimetype=vnd.android.cursor.item/phone_v2 193 193 mimetype=vnd.android.cursor.item/phone_v2 220 220 mimetype=vnd.android.cursor.item/phone_v2 247 247 mimetype=vnd.android.cursor.item/phone_v2 [all …]
|
/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
D | contacts2_1108.sql | 22 CREATE TABLE mimetypes (_id INTEGER PRIMARY KEY AUTOINCREMENT,mimetype TEXT NOT NULL); field 34 …ckage_id INTEGER REFERENCES package(_id),mimetype_id INTEGER REFERENCES mimetype(_id) NOT NULL,raw… 124 CREATE UNIQUE INDEX mime_type ON mimetypes (mimetype); 139 …mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9,… variable 142 …mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9,… 143 …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… 154 …=raw_contact_id) WHERE mimetype_id=(SELECT _id FROM mimetypes WHERE mimetype='vnd.android.curs… 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… [all …]
|
/packages/providers/ContactsProvider/tests/assets/testSynced/ |
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 …]
|
/packages/providers/ContactsProvider/tests/assets/testUnsynced/ |
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 …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/ |
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()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
D | BluetoothOppObexClientSessionTest.java | 103 String mimetype = "image/jpeg"; in startThenStop_startsAndStopsClientThread() local 119 mimetype, in startThenStop_startsAndStopsClientThread() 130 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in startThenStop_startsAndStopsClientThread() 171 String mimetype = "image/jpeg"; in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError() local 187 mimetype, in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError() 198 new BluetoothOppSendFileInfo(filename, mimetype, totalBytes, null, status); in clientThreadSendFile_clientSessionDisconnected_returnsObexDataError()
|
D | BluetoothOppObexServerSessionTest.java | 144 String mimetype = "image/jpeg"; in addShare_updatesShareInfo() local 160 mimetype, in addShare_updatesShareInfo()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppUtility.java | 203 Context context, String fileName, String mimetype, Long timeStamp, Uri uri) { in openReceivedFile() argument 204 if (fileName == null || mimetype == null) { in openReceivedFile() 269 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile() 272 path.normalizeScheme(), Intent.normalizeMimeType(mimetype)); in openReceivedFile() 277 Log.v(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); in openReceivedFile() 285 Log.v(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex); in openReceivedFile() 316 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { in isRecognizedFileType() argument 319 Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); in isRecognizedFileType() 323 fileUri.normalizeScheme(), Intent.normalizeMimeType(mimetype)); in isRecognizedFileType() 329 Log.d(TAG, "NO application to handle MIME type " + mimetype); in isRecognizedFileType()
|
D | BluetoothOppShareInfo.java | 76 String mimetype, in BluetoothOppShareInfo() argument 90 mMimetype = mimetype; in BluetoothOppShareInfo()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | DataRowHandlerForCustomMimetype.java | 24 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandlerForCustomMimetype() argument 25 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCustomMimetype()
|
D | DataRowHandlerForCommonDataKind.java | 36 AbstractContactAggregator aggregator, String mimetype, String typeColumn, in DataRowHandlerForCommonDataKind() argument 38 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCommonDataKind()
|
D | DataRowHandler.java | 90 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandler() argument 94 mMimetype = mimetype; in DataRowHandler()
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
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()
|
D | EditorUiUtils.java | 108 public static int getLayoutResourceId(String mimetype) { in getLayoutResourceId() argument 109 final Integer id = mimetypeLayoutMap.get(mimetype); in getLayoutResourceId()
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/util/test/ |
D | MockContentProviderWrapper.kt | 44 mimetype: String, in openTypedAssetFile() 48 return provider.openTypedAssetFile(uri, mimetype, opts, cancellationSignal) in openTypedAssetFile()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadDrmHelper.java | 41 public static boolean isDrmConvertNeeded(String mimetype) { in isDrmConvertNeeded() argument 42 return MIMETYPE_DRM_MESSAGE.equals(mimetype); in isDrmConvertNeeded()
|
/packages/providers/MediaProvider/tools/genfiles/ |
D | genfiles.sh | 54 while read format mediatype mimetype data; 121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
|
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/ |
D | CaptivePortalLoginActivityTest.java | 756 final String mimetype = "image/png"; in testDownload() local 759 server.setResponse(downloadQuery, "This is a test file", mimetype, Collections.singletonMap( in testDownload() 789 assertEquals(mimetype, fileIntent.getType()); in testDownload() 800 eq(mockFile), any() /* context */, eq(mimetype)); in testDownload() 906 MockResponse(String body, String mimetype, Map<String, String> headers) { in MockResponse() argument 908 this.mMimetype = mimetype; in MockResponse() 944 private void setResponse(String query, String body, String mimetype, in setResponse() argument 946 mResponses.put(query, new MockResponse(body, mimetype, headers)); in setResponse() 970 String filename, String mimetype) throws Exception { in prepareTestDirectlyOpen() argument 975 server.setResponse(downloadQuery, "This is a test file", mimetype, Collections.singletonMap( in prepareTestDirectlyOpen()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | ContactLoader.java | 182 final String mimetype = (String) keys.next(); in loadEncodedContactEntity() local 185 final JSONObject obj = items.optJSONObject(mimetype); in loadEncodedContactEntity() 187 final JSONArray array = items.getJSONArray(mimetype); in loadEncodedContactEntity() 190 processOneRecord(rawContact, item, mimetype); in loadEncodedContactEntity() 193 processOneRecord(rawContact, obj, mimetype); in loadEncodedContactEntity() 201 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) in processOneRecord() argument 204 itemValues.put(Data.MIMETYPE, mimetype); in processOneRecord()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
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()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/ |
D | ExternalAccountTypeTest.java | 181 for (String mimetype : mDefaultMimetypes) { in testReadOnlyDefinition() 182 assertNotNull(type.getKindForMimetype(mimetype)); in testReadOnlyDefinition()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | MoveRawContactsTest.java | 257 private void assertData(long rawContactId, String mimetype, String data1, int expectedCount) { in assertData() argument 264 mimetype, in assertData() 269 private void assertDataExists(long rawContactId, String mimetype, String data1) { in assertDataExists() argument 270 assertData(rawContactId, mimetype, data1, 1); in assertDataExists() 273 private void assertDataDoesNotExist(long rawContactId, String mimetype, String data1) { in assertDataDoesNotExist() argument 274 assertData(rawContactId, mimetype, data1, 0); in assertDataDoesNotExist()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | DetailsHelper.java | 123 return context.getString(R.string.mimetype); in getDetailsName()
|