Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/
DTypePrecedence.java86 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()
DSplitAggregateView.java174 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/
Dexpected_data.txt4 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/
Dcontacts2_1108.sql22 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);
139mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9,… variable
142mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9,…
143mimetype 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…
155mimetype 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/
Dexpected_data.txt4 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/
Dexpected_data.txt4 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/
DDownloadDrmHelper.java42 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/
DBluetoothOppObexClientSessionTest.java103 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()
DBluetoothOppObexServerSessionTest.java144 String mimetype = "image/jpeg"; in addShare_updatesShareInfo() local
160 mimetype, in addShare_updatesShareInfo()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java203 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()
DBluetoothOppShareInfo.java76 String mimetype, in BluetoothOppShareInfo() argument
90 mMimetype = mimetype; in BluetoothOppShareInfo()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandlerForCustomMimetype.java24 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandlerForCustomMimetype() argument
25 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCustomMimetype()
DDataRowHandlerForCommonDataKind.java36 AbstractContactAggregator aggregator, String mimetype, String typeColumn, in DataRowHandlerForCommonDataKind() argument
38 super(context, dbHelper, aggregator, mimetype); in DataRowHandlerForCommonDataKind()
DDataRowHandler.java90 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandler() argument
94 mMimetype = mimetype; in DataRowHandler()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java403 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()
DEditorUiUtils.java108 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/
DMockContentProviderWrapper.kt44 mimetype: String, in openTypedAssetFile()
48 return provider.openTypedAssetFile(uri, mimetype, opts, cancellationSignal) in openTypedAssetFile()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadDrmHelper.java41 public static boolean isDrmConvertNeeded(String mimetype) { in isDrmConvertNeeded() argument
42 return MIMETYPE_DRM_MESSAGE.equals(mimetype); in isDrmConvertNeeded()
/packages/providers/MediaProvider/tools/genfiles/
Dgenfiles.sh54 while read format mediatype mimetype data;
121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java756 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/
DContactLoader.java182 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/
DContactLoader.java410 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/
DExternalAccountTypeTest.java181 for (String mimetype : mDefaultMimetypes) { in testReadOnlyDefinition()
182 assertNotNull(type.getKindForMimetype(mimetype)); in testReadOnlyDefinition()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DMoveRawContactsTest.java257 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/
DDetailsHelper.java123 return context.getString(R.string.mimetype); in getDetailsName()

12