/packages/apps/Contacts/src/com/android/contacts/ |
D | TypePrecedence.java | 84 public static int getTypePrecedence(String mimetype, int type) { in getTypePrecedence() argument 85 int[] typePrecedence = getTypePrecedenceList(mimetype); in getTypePrecedence() 99 private static int[] getTypePrecedenceList(String mimetype) { in getTypePrecedenceList() argument 100 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList() 102 } else if (mimetype.equals(Constants.MIME_SMS_ADDRESS)) { 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(Organization.CONTENT_ITEM_TYPE)) { in getTypePrecedenceList()
|
D | SplitAggregateView.java | 170 String mimetype = cursor.getString(SplitQuery.MIMETYPE); in loadData() local 171 if (StructuredName.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 173 } else if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 175 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData() 177 } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimetype)) { in loadData()
|
D | ContactEntryAdapter.java | 50 public String mimetype; field in ContactEntryAdapter.Entry 62 p.writeString(mimetype); in writeToParcel() 76 mimetype = p.readString(); in readFromParcel()
|
D | ContactsUtils.java | 90 public static final CharSequence getDisplayLabel(Context context, String mimetype, int type, in getDisplayLabel() argument 97 if (Phone.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel() 101 } else if (Email.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel() 105 } else if (StructuredPostal.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel() 109 } else if (Organization.CONTENT_ITEM_TYPE.equals(mimetype)) { in getDisplayLabel()
|
D | ViewContactActivity.java | 572 if (entry.mimetype.equals(CommonDataKinds.Phone.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 578 } else if (entry.mimetype.equals(CommonDataKinds.Email.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 583 } else if (entry.mimetype.equals(CommonDataKinds.StructuredPostal.CONTENT_ITEM_TYPE)) { in onCreateContextMenu() 1115 entry.mimetype = mimeType; in fromValues() 1154 if (TypePrecedence.getTypePrecedence(mimetype, type) in collapseWith() 1155 > TypePrecedence.getTypePrecedence(entry.mimetype, entry.type)) { in collapseWith() 1186 if (!ContactsUtils.shouldCollapse(context, mimetype, data, entry.mimetype, in shouldCollapseWith() 1191 if (!TextUtils.equals(mimetype, entry.mimetype) in shouldCollapseWith() 1287 if (entry.mimetype.equals(Phone.CONTENT_ITEM_TYPE) in bindView() 1288 || entry.mimetype.equals(Constants.MIME_SMS_ADDRESS)) { in bindView()
|
/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/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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppUtility.java | 157 public static void openReceivedFile(Context context, String fileName, String mimetype, in openReceivedFile() argument 159 if (fileName == null || mimetype == null) { in openReceivedFile() 185 if (isRecognizedFileType(context, path, mimetype)) { in openReceivedFile() 187 activityIntent.setDataAndType(path, mimetype); in openReceivedFile() 191 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype); in openReceivedFile() 194 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex); in openReceivedFile() 209 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { in isRecognizedFileType() argument 212 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype); in isRecognizedFileType() 215 mimetypeIntent.setDataAndType(fileUri, mimetype); in isRecognizedFileType() 220 if (D) Log.d(TAG, "NO application to handle MIME type " + mimetype); in isRecognizedFileType()
|
D | BluetoothOppShareInfo.java | 69 public BluetoothOppShareInfo(int id, String uri, String hint, String filename, String mimetype, in BluetoothOppShareInfo() argument 76 mMimetype = mimetype; in BluetoothOppShareInfo()
|
/packages/apps/HTMLViewer/src/com/android/htmlviewer/ |
D | FileContentProvider.java | 46 String mimetype = uri.getQuery(); in getType() local 47 return mimetype == null ? "" : mimetype; in getType()
|
/packages/apps/Music/src/com/android/music/ |
D | QueryBrowserActivity.java | 389 String mimetype = cursor.getString(cursor.getColumnIndexOrThrow( in bindView() local 392 if (mimetype == null) { in bindView() 393 mimetype = "audio/"; in bindView() 395 if (mimetype.equals("artist")) { in bindView() 415 } else if (mimetype.equals("album")) { in bindView() 433 } else if(mimetype.startsWith("audio/") || in bindView() 434 mimetype.equals("application/ogg") || in bindView() 435 mimetype.equals("application/x-ogg")) { in bindView()
|
/packages/apps/Browser/src/com/android/browser/ |
D | OpenDownloadReceiver.java | 50 String mimetype = cursor.getString(2); in onReceive() local 62 launchIntent.setDataAndType(path, mimetype); in onReceive()
|
D | Tab.java | 1346 String contentDisposition, String mimetype, in Tab() 1349 mimetype, contentLength); in Tab() 1470 String contentDisposition, String mimetype, in createSubWindow() 1473 contentDisposition, mimetype, contentLength); in createSubWindow()
|
D | BrowserActivity.java | 2846 String contentDisposition, String mimetype, long contentLength) { in onDownloadStart() argument 2855 intent.setDataAndType(Uri.parse(url), mimetype); in onDownloadStart() local 2873 Log.d(LOGTAG, "activity not found for " + mimetype in onDownloadStart() 2883 onDownloadStartNoStream(url, userAgent, contentDisposition, mimetype, contentLength); in onDownloadStart() 2926 String contentDisposition, String mimetype, long contentLength) { in onDownloadStartNoStream() argument 2929 contentDisposition, mimetype); in onDownloadStartNoStream() 2982 values.put(Downloads.Impl.COLUMN_MIME_TYPE, mimetype); in onDownloadStartNoStream() 2988 if (mimetype == null) { in onDownloadStartNoStream()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadReceiver.java | 133 String mimetype = in openDownload() local 142 activityIntent.setDataAndType(path, mimetype); in openDownload() 147 Log.d(Constants.TAG, "no activity for " + mimetype, ex); in openDownload()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 397 long mimetype = c.getLong(SearchSuggestionQuery.MIMETYPE_ID); in buildCursorForSearchSuggestions() local 398 if (mimetype == mMimeTypeIdStructuredName) { in buildCursorForSearchSuggestions() 400 } else if (mimetype == mMimeTypeIdOrganization) { in buildCursorForSearchSuggestions() 404 } else if (mimetype == mMimeTypeIdEmail) { in buildCursorForSearchSuggestions() 408 } else if (mimetype == mMimeTypeIdPhone) { in buildCursorForSearchSuggestions()
|
D | ContactsDatabaseHelper.java | 2659 public long getMimeTypeId(String mimetype) { in getMimeTypeId() argument 2662 return getMimeTypeIdNoDbCheck(mimetype); in getMimeTypeId() 2665 private long getMimeTypeIdNoDbCheck(String mimetype) { in getMimeTypeIdNoDbCheck() argument 2666 return getCachedId(mMimetypeQuery, mMimetypeInsert, mimetype, mMimetypeCache); in getMimeTypeIdNoDbCheck() 2678 String mimetype = mDataMimetypeQuery.simpleQueryForString(); in getDataMimeType() local 2679 return mimetype; in getDataMimeType() 2695 String mimetype = mActivitiesMimetypeQuery.simpleQueryForString(); in getActivityMimeType() local 2696 return mimetype; in getActivityMimeType()
|
D | ContactsProvider2.java | 983 public DataRowHandler(String mimetype) { in DataRowHandler() argument 984 mMimetype = mimetype; in DataRowHandler() 1149 public CustomDataRowHandler(String mimetype) { in CustomDataRowHandler() argument 1150 super(mimetype); in CustomDataRowHandler() 1350 public CommonDataRowHandler(String mimetype, String typeColumn, String labelColumn) { in CommonDataRowHandler() argument 1351 super(mimetype); in CommonDataRowHandler()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | BaseContactsProvider2Test.java | 867 String mimetype = c.getString(0); in dumpData() local 868 if (Photo.CONTENT_ITEM_TYPE.equals(mimetype)) { in dumpData() 871 mimetype = mimetype.substring(mimetype.indexOf('/') + 1); in dumpData() 872 Log.i("Data ", String.format(" %-10s %s,%s,%s", mimetype, in dumpData()
|
/packages/apps/Browser/tests/src/com/android/browser/ |
D | PopularUrlsTest.java | 256 String mimetype, long contentLength) { in setUpBrowser()
|