Home
last modified time | relevance | path

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

12

/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/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/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/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java181 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()
DBluetoothOppShareInfo.java71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, in BluetoothOppShareInfo() argument
78 mMimetype = mimetype; in BluetoothOppShareInfo()
/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.java104 public static int getLayoutResourceId(String mimetype) { in getLayoutResourceId() argument
105 final Integer id = mimetypeLayoutMap.get(mimetype); in getLayoutResourceId()
/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
DCaptivePortalLoginActivityTest.java442 final String mimetype = "image/png"; in testDownload() local
445 server.setResponse(downloadQuery, "This is a test file", mimetype, Collections.singletonMap( in testDownload()
480 assertEquals(mimetype, fileIntent.getType()); in testDownload()
520 MockResponse(String body, String mimetype, Map<String, String> headers) { in MockResponse() argument
522 this.mMimetype = mimetype; in MockResponse()
558 private void setResponse(String query, String body, String mimetype, in setResponse() argument
560 mResponses.put(query, new MockResponse(body, mimetype, headers)); in setResponse()
/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.java87 AbstractContactAggregator aggregator, String mimetype) { in DataRowHandler() argument
91 mMimetype = mimetype; in DataRowHandler()
DSearchIndexManager.java380 String mimetype = cursor.getString(ContactIndexQuery.MIMETYPE); in buildAndInsertIndex() local
381 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype); in buildAndInsertIndex()
/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/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/Dialer/java/com/android/contacts/common/model/
DContactLoader.java181 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()
/packages/providers/MediaProvider/tools/genfiles/
Dgenfiles.sh54 while read format mediatype mimetype data;
121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
/packages/apps/Contacts/tests/src/com/android/contacts/model/account/
DExternalAccountTypeTest.java180 for (String mimetype : mDefaultMimetypes) { in testReadOnlyDefinition()
181 assertNotNull(type.getKindForMimetype(mimetype)); in testReadOnlyDefinition()
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java170 public static Intent makeCreateFileIntent(String mimetype, String filename) { in makeCreateFileIntent() argument
173 intent.setType(mimetype); in makeCreateFileIntent()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DBaseContactsProvider2Test.java1318 String mimetype = c.getString(0); in dumpData() local
1319 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { in dumpData()
1322 mimetype = mimetype.substring(mimetype.indexOf('/') + 1); in dumpData()
1323 Log.i("Data ", String.format(" %-10s %s,%s,%s", mimetype, in dumpData()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsHelper.java123 return context.getString(R.string.mimetype); in getDetailsName()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactActivity.java1021 for (String mimetype : SORTED_ABOUT_CARD_MIMETYPES) { in buildAboutCardEntries()
1022 final List<DataItem> mimeTypeItems = dataItemsMap.get(mimetype); in buildAboutCardEntries()
1707 final String mimetype = intent.getType(); in dataItemToEntry() local
1709 if (MIMETYPE_HANGOUTS.equals(mimetype)) { in dataItemToEntry()
1743 if (!MIMETYPE_GPLUS_PROFILE.equals(mimetype)) { in dataItemToEntry()
1744 entryContextMenuInfo = new EntryContextMenuInfo(header, mimetype, in dataItemToEntry()

12