Searched refs:mimetype (Results 1 - 25 of 26) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForCustomMimetype.java23 ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) {
24 super(context, dbHelper, aggregator, mimetype);
22 DataRowHandlerForCustomMimetype(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) argument
H A DDataRowHandlerForCommonDataKind.java35 ContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) {
36 super(context, dbHelper, aggregator, mimetype);
34 DataRowHandlerForCommonDataKind(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) argument
H A DDataRowHandler.java83 ContactAggregator aggregator, String mimetype) {
87 mMimetype = mimetype;
82 DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, ContactAggregator aggregator, String mimetype) argument
H A DSearchIndexManager.java316 String mimetype = cursor.getString(ContactIndexQuery.MIMETYPE);
317 DataRowHandler dataRowHandler = mContactsProvider.getDataRowHandler(mimetype);
H A DContactsDatabaseHelper.java213 + " ON (mimetypes.mimetype='" + GroupMembership.CONTENT_ITEM_TYPE + "' "
253 + "mimetypes.mimetype = '" + GroupMembership.CONTENT_ITEM_TYPE + "')"
490 public static final String MIMETYPE = "mimetype";
1006 DataColumns.MIMETYPE_ID + " INTEGER REFERENCES mimetype(_id) NOT NULL," +
1218 ActivitiesColumns.MIMETYPE_ID + " INTEGER REFERENCES mimetype(_id) NOT NULL," +
3283 final long mimetype = lookupMimeTypeId(db, GroupMembership.CONTENT_ITEM_TYPE);
3291 " WHERE mimetype_id=" + mimetype +
3856 * Convert a mimetype into an integer, using {@link Tables#MIMETYPES} for
3859 public long getMimeTypeId(String mimetype) { argument
3861 if (mMimetypeCache.containsKey(mimetype)) retur
3866 lookupMimeTypeId(String mimetype, SQLiteDatabase db) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DTypePrecedence.java78 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
80 * @param mimetype The mimetype of the data with which the type is associated.
85 public static int getTypePrecedence(String mimetype, int type) { argument
86 int[] typePrecedence = getTypePrecedenceList(mimetype);
100 private static int[] getTypePrecedenceList(String mimetype) { argument
101 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
103 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
105 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
107 } else if (mimetype
[all...]
H A DSplitAggregateView.java174 String mimetype = cursor.getString(SplitQuery.MIMETYPE);
175 if (StructuredName.CONTENT_ITEM_TYPE.equals(mimetype)) {
177 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
179 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
181 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DTypePrecedence.java71 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
73 * @param mimetype The mimetype of the data with which the type is associated.
78 public static int getTypePrecedence(String mimetype, int type) { argument
79 int[] typePrecedence = getTypePrecedenceList(mimetype);
93 private static int[] getTypePrecedenceList(String mimetype) { argument
94 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
96 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
98 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
100 } else if (mimetype
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DDownloadDrmHelper.java38 * @param mimetype Media Type to check
41 public static boolean isDrmMimeType(Context context, String mimetype) { argument
46 if (drmClient != null && mimetype != null && mimetype.length() > 0) {
47 result = drmClient.canHandle("", mimetype);
62 * @param mimetype Media type of the content
65 public static boolean isDrmConvertNeeded(String mimetype) { argument
66 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
H A DDownloadReceiver.java144 String mimetype =
153 mimetype = DownloadDrmHelper.getOriginalMimeType(context, filename, mimetype);
154 activityIntent.setDataAndType(path, mimetype);
159 Log.d(Constants.TAG, "no activity for " + mimetype, ex);
/packages/apps/HTMLViewer/src/com/android/htmlviewer/
H A DFileContentProvider.java45 // If the mimetype is not appended to the uri, then return an empty string
46 String mimetype = uri.getQuery();
47 return mimetype == null ? "" : mimetype;
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java69 public BluetoothOppShareInfo(int id, String uri, String hint, String filename, String mimetype, argument
76 mMimetype = mimetype;
H A DBluetoothOppUtility.java157 public static void openReceivedFile(Context context, String fileName, String mimetype, argument
159 if (fileName == null || mimetype == null) {
160 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
185 if (isRecognizedFileType(context, path, mimetype)) {
187 activityIntent.setDataAndType(path, mimetype);
191 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype);
194 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex);
209 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { argument
212 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype);
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DDownloadHandler.java55 * @param mimetype The mimetype of the content reported by the server
59 String userAgent, String contentDisposition, String mimetype,
69 intent.setDataAndType(Uri.parse(url), mimetype);
88 Log.d(LOGTAG, "activity not found for " + mimetype
99 mimetype, privateBrowsing);
139 * @param mimetype The mimetype of the content reported by the server
144 String mimetype, boolean privateBrowsing) {
147 contentDisposition, mimetype);
58 onDownloadStart(Activity activity, String url, String userAgent, String contentDisposition, String mimetype, boolean privateBrowsing) argument
142 onDownloadStartNoStream(Activity activity, String url, String userAgent, String contentDisposition, String mimetype, boolean privateBrowsing) argument
[all...]
H A DTab.java1412 String contentDisposition, String mimetype,
1415 mimetype, contentLength);
1609 String contentDisposition, String mimetype,
1612 contentDisposition, mimetype, contentLength);
/packages/apps/Music/src/com/android/music/
H A DQueryBrowserActivity.java322 MediaStore.Audio.Media.MIME_TYPE, // mimetype of audio file, or "artist" or "album"
389 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow(
392 if (mimetype == null) {
393 mimetype = "audio/";
395 if (mimetype.equals("artist")) {
415 } else if (mimetype.equals("album")) {
433 } else if(mimetype.startsWith("audio/") ||
434 mimetype.equals("application/ogg") ||
435 mimetype.equals("application/x-ogg")) {
/packages/apps/Contacts/src/com/android/contacts/group/
H A DSuggestedMemberListAdapter.java274 String mimetype = memberDataCursor.getString(MIMETYPE_COLUMN_INDEX);
275 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
279 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype) ||
280 Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java48 public String mimetype; field in class:ContactEntryAdapter.Entry
60 p.writeString(mimetype);
74 mimetype = p.readString();
H A DContactFragment.java557 entry.mimetype = mimeType;
596 if (TypePrecedence.getTypePrecedence(mimetype, type)
597 > TypePrecedence.getTypePrecedence(entry.mimetype, entry.type)) {
628 if (!ContactsUtils.areDataEqual(context, mimetype, data, entry.mimetype, entry.data)) {
632 if (!TextUtils.equals(mimetype, entry.mimetype)
720 if (entry.mimetype.equals(Phone.CONTENT_ITEM_TYPE)
721 || entry.mimetype.equals(Constants.MIME_SMS_ADDRESS)) {
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DAggregationSuggestionEngine.java401 String mimetype = mDataCursor.getString(DataQuery.MIMETYPE);
402 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
409 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
416 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) {
421 } else if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
H A DContactsUtils.java52 // Try finding the type and label for this mimetype
58 // Reset to phone mimetype so we generate a label for SMS case
81 public static final CharSequence getDisplayLabel(Context context, String mimetype, int type, argument
88 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) {
92 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) {
96 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimetype)) {
100 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimetype)) {
105 // Can't return display label for given mimetype.
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DDetailsHelper.java112 return context.getString(R.string.mimetype);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailFragment.java724 entry.intent.setDataAndType(entry.uri, entry.mimetype);
759 entry.mimetype = GroupMembership.MIMETYPE;
796 * done manually because phonetic name doesn't have a mimetype or action intent.
818 * attribution does not have a mimetype and the third-party entries don't have actually belong
1217 public String mimetype; field in class:ContactDetailFragment.DetailViewEntry
1254 entry.mimetype = mimeType;
1317 if (TypePrecedence.getTypePrecedence(mimetype, type)
1318 > TypePrecedence.getTypePrecedence(entry.mimetype, entry.type)) {
1350 if (!ContactsUtils.shouldCollapse(mimetype, data, entry.mimetype, entr
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DBaseContactsProvider2Test.java1147 String mimetype = c.getString(0);
1148 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) {
1151 mimetype = mimetype.substring(mimetype.indexOf('/') + 1);
1152 Log.i("Data ", String.format(" %-10s %s,%s,%s", mimetype,
/packages/apps/Browser/tests/src/com/android/browser/
H A DPopularUrlsTest.java277 String mimetype, long contentLength) {

Completed in 2121 milliseconds

12