Home
last modified time | relevance | path

Searched refs:mimetype (Results 1 – 25 of 30) 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/experimental/LoaderApp/src/com/android/loaderapp/model/
DTypePrecedence.java78 public static int getTypePrecedence(String mimetype, int type) { in getTypePrecedence() argument
79 int[] typePrecedence = getTypePrecedenceList(mimetype); in getTypePrecedence()
93 private static int[] getTypePrecedenceList(String mimetype) { in getTypePrecedenceList() argument
94 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
96 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) { in getTypePrecedenceList()
98 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
100 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
102 } else if (mimetype.equals(Im.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
104 } else if (mimetype.equals(Organization.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
/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/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/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java172 public static void openReceivedFile(Context context, String fileName, String mimetype, in openReceivedFile() argument
174 if (fileName == null || mimetype == null) { in openReceivedFile()
201 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile()
203 activityIntent.setDataAndTypeAndNormalize(path, mimetype); in openReceivedFile()
222 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); in openReceivedFile()
225 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex); in openReceivedFile()
240 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { in isRecognizedFileType() argument
243 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); in isRecognizedFileType()
246 mimetypeIntent.setDataAndTypeAndNormalize(fileUri, mimetype); in isRecognizedFileType()
251 if (D) 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/Music/src/com/android/music/
DQueryBrowserActivity.java391 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow( in bindView() local
394 if (mimetype == null) { in bindView()
395 mimetype = "audio/"; in bindView()
397 if (mimetype.equals("artist")) { in bindView()
417 } else if (mimetype.equals("album")) { in bindView()
435 } else if(mimetype.startsWith("audio/") || in bindView()
436 mimetype.equals("application/ogg") || in bindView()
437 mimetype.equals("application/x-ogg")) { in bindView()
/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.java376 String mimetype = cursor.getString(ContactIndexQuery.MIMETYPE); in buildAndInsertIndex() local
377 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype); in buildAndInsertIndex()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java81 public static final CharSequence getDisplayLabel(Context context, String mimetype, int type, in getDisplayLabel() argument
88 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel()
92 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel()
96 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel()
100 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel()
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
DContactFragment.java557 entry.mimetype = mimeType; in fromValues()
596 if (TypePrecedence.getTypePrecedence(mimetype, type) in collapseWith()
597 > TypePrecedence.getTypePrecedence(entry.mimetype, entry.type)) { in collapseWith()
628 if (!ContactsUtils.areDataEqual(context, mimetype, data, entry.mimetype, entry.data)) { in shouldCollapseWith()
632 if (!TextUtils.equals(mimetype, entry.mimetype) in shouldCollapseWith()
720 if (entry.mimetype.equals(Phone.CONTENT_ITEM_TYPE) in bindView()
721 || entry.mimetype.equals(Constants.MIME_SMS_ADDRESS)) { in bindView()
DContactEntryAdapter.java48 public String mimetype; field in ContactEntryAdapter.Entry
60 p.writeString(mimetype); in writeToParcel()
74 mimetype = p.readString(); in readFromParcel()
/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/group/
DSuggestedMemberListAdapter.java277 String mimetype = memberDataCursor.getString(MIMETYPE_COLUMN_INDEX); in performFiltering() local
278 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { in performFiltering()
282 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype) || in performFiltering()
283 Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in performFiltering()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAggregationSuggestionEngine.java452 String mimetype = mDataCursor.getString(DataQuery.MIMETYPE); in getSuggestions() local
453 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions()
460 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions()
467 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) { in getSuggestions()
472 } 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/tools/genfiles/
Dgenfiles.sh54 while read format mediatype mimetype data;
121 echo ignored: $format '|' $mediatype '|' $mimetype '|' $data
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java440 final String mimetype = (String) keys.next(); in loadEncodedContactEntity() local
443 final JSONObject obj = items.optJSONObject(mimetype); in loadEncodedContactEntity()
445 final JSONArray array = items.getJSONArray(mimetype); in loadEncodedContactEntity()
448 processOneRecord(rawContact, item, mimetype); in loadEncodedContactEntity()
451 processOneRecord(rawContact, obj, mimetype); in loadEncodedContactEntity()
461 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) in processOneRecord() argument
464 itemValues.put(Data.MIMETYPE, mimetype); in processOneRecord()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DDetailsHelper.java123 return context.getString(R.string.mimetype); in getDetailsName()

12