Searched defs:mimetype (Results 1 - 16 of 16) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDataRowHandlerForCustomMimetype.java24 AbstractContactAggregator aggregator, String mimetype) {
25 super(context, dbHelper, aggregator, mimetype);
23 DataRowHandlerForCustomMimetype(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype) argument
H A DDataRowHandlerForCommonDataKind.java36 AbstractContactAggregator aggregator, String mimetype, String typeColumn,
38 super(context, dbHelper, aggregator, mimetype);
35 DataRowHandlerForCommonDataKind(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype, String typeColumn, String labelColumn) argument
H A DDataRowHandler.java87 AbstractContactAggregator aggregator, String mimetype) {
91 mMimetype = mimetype;
86 DataRowHandler(Context context, ContactsDatabaseHelper dbHelper, AbstractContactAggregator aggregator, String mimetype) argument
/packages/apps/Contacts/src/com/android/contacts/
H A DTypePrecedence.java79 * Returns the precedence (1 being the highest) of a type in the context of it's mimetype.
81 * @param mimetype The mimetype of the data with which the type is associated.
86 public static int getTypePrecedence(String mimetype, int type) { argument
87 int[] typePrecedence = getTypePrecedenceList(mimetype);
101 private static int[] getTypePrecedenceList(String mimetype) { argument
102 if (mimetype.equals(Phone.CONTENT_ITEM_TYPE)) {
104 } else if (mimetype.equals(Email.CONTENT_ITEM_TYPE)) {
106 } else if (mimetype.equals(StructuredPostal.CONTENT_ITEM_TYPE)) {
108 } else if (mimetype
[all...]
/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 of the content
41 public static boolean isDrmConvertNeeded(String mimetype) { argument
42 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
/packages/apps/Messaging/src/com/android/messaging/mmslib/util/
H A DDownloadDrmHelper.java39 * @param mimetype Media Type to check
42 public static boolean isDrmMimeType(Context context, String mimetype) { argument
47 if (drmClient != null && mimetype != null && mimetype.length() > 0) {
48 result = drmClient.canHandle("", mimetype);
63 * @param mimetype Media type of the content
66 public static boolean isDrmConvertNeeded(String mimetype) { argument
67 return MIMETYPE_DRM_MESSAGE.equals(mimetype);
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
H A DBluetoothOppShareInfo.java71 public BluetoothOppShareInfo(int id, Uri uri, String hint, String filename, String mimetype, argument
78 mMimetype = mimetype;
H A DBluetoothOppUtility.java176 public static void openReceivedFile(Context context, String fileName, String mimetype, argument
178 if (fileName == null || mimetype == null) {
179 Log.e(TAG, "ERROR: Para fileName ==null, or mimetype == null");
214 if (isRecognizedFileType(context, path, mimetype)) {
216 activityIntent.setDataAndTypeAndNormalize(path, mimetype);
226 if (V) Log.d(TAG, "ACTION_VIEW intent sent out: " + path + " / " + mimetype);
229 if (V) Log.d(TAG, "no activity for handling ACTION_VIEW intent: " + mimetype, ex);
244 public static boolean isRecognizedFileType(Context context, Uri fileUri, String mimetype) { argument
247 if (D) Log.d(TAG, "RecognizedFileType() fileUri: " + fileUri + " mimetype: " + mimetype);
[all...]
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEditorUiUtils.java73 // Generally there should be a layout mapped to each existing DataKind mimetype but lots of
99 * Fetches a layout for a given mimetype.
101 * @param mimetype The mime type (e.g. StructuredName.CONTENT_ITEM_TYPE)
104 public static int getLayoutResourceId(String mimetype) { argument
105 final Integer id = mimetypeLayoutMap.get(mimetype);
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/ffmpeg/
H A DFfmpegDecoderService.java149 public void resetDecoderState(String mimetype) { argument
150 mDecoder.resetDecoderState(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();
/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/Contacts/src/com/android/contacts/model/
H A DContactLoader.java420 final String mimetype = (String) keys.next();
423 final JSONObject obj = items.optJSONObject(mimetype);
425 final JSONArray array = items.getJSONArray(mimetype);
428 processOneRecord(rawContact, item, mimetype);
431 processOneRecord(rawContact, obj, mimetype);
441 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) argument
444 itemValues.put(Data.MIMETYPE, mimetype);
/packages/apps/Dialer/java/com/android/contacts/common/model/
H A DContactLoader.java181 final String mimetype = (String) keys.next();
184 final JSONObject obj = items.optJSONObject(mimetype);
186 final JSONArray array = items.getJSONArray(mimetype);
189 processOneRecord(rawContact, item, mimetype);
192 processOneRecord(rawContact, obj, mimetype);
200 private static void processOneRecord(RawContact rawContact, JSONObject item, String mimetype) argument
203 itemValues.put(Data.MIMETYPE, mimetype);
/packages/providers/ContactsProvider/tests/assets/upgradeTest/
H A Dcontacts2_1108.sql22 CREATE TABLE mimetypes (_id INTEGER PRIMARY KEY AUTOINCREMENT,mimetype TEXT NOT NULL);
34 CREATE TABLE data (_id INTEGER PRIMARY KEY AUTOINCREMENT,package_id INTEGER REFERENCES package(_id),mimetype_id INTEGER REFERENCES mimetype(_id) NOT NULL,raw_contact_id INTEGER REFERENCES raw_contacts(_id) NOT NULL,hash_id TEXT,is_read_only INTEGER NOT NULL DEFAULT 0,is_primary INTEGER NOT NULL DEFAULT 0,is_super_primary INTEGER NOT NULL DEFAULT 0,data_version INTEGER NOT NULL DEFAULT 0,data1 TEXT,data2 TEXT,data3 TEXT,data4 TEXT,data5 TEXT,data6 TEXT,data7 TEXT,data8 TEXT,data9 TEXT,data10 TEXT,data11 TEXT,data12 TEXT,data13 TEXT,data14 TEXT,data15 TEXT,data_sync1 TEXT, data_sync2 TEXT, data_sync3 TEXT, data_sync4 TEXT, carrier_presence INTEGER NOT NULL DEFAULT 0 );
124 CREATE UNIQUE INDEX mime_type ON mimetypes (mimetype);
139 CREATE VIEW view_data AS SELECT data._id AS _id,hash_id, raw_contact_id, raw_contacts.contact_id AS contact_id, raw_contacts.account_id,accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS data_set,(CASE WHEN accounts.data_set IS NULL THEN accounts.account_type ELSE accounts.account_type||'/'||accounts.data_set END) AS account_type_and_data_set,raw_contacts.sourceid AS sourceid,raw_contacts.backup_id AS backup_id,raw_contacts.version AS version,raw_contacts.dirty AS dirty,raw_contacts.sync1 AS sync1,raw_contacts.sync2 AS sync2,raw_contacts.sync3 AS sync3,raw_contacts.sync4 AS sync4, is_primary, is_super_primary, data_version, data.package_id,package AS res_package,data.mimetype_id,mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14, data15, carrier_presence, data_sync1, data_sync2, data_sync3, data_sync4, contacts.custom_ringtone AS custom_ringtone,contacts.send_to_voicemail AS send_to_voicemail,contacts.last_time_contacted AS last_time_contacted,contacts.times_contacted AS times_contacted,contacts.starred AS starred,contacts.pinned AS pinned, name_raw_contact.display_name_source AS display_name_source, name_raw_contact.display_name AS display_name, name_raw_contact.display_name_alt AS display_name_alt, name_raw_contact.phonetic_name AS phonetic_name, name_raw_contact.phonetic_name_style AS phonetic_name_style, name_raw_contact.sort_key AS sort_key, name_raw_contact.phonebook_label AS phonebook_label, name_raw_contact.phonebook_bucket AS phonebook_bucket, name_raw_contact.sort_key_alt AS sort_key_alt, name_raw_contact.phonebook_label_alt AS phonebook_label_alt, name_raw_contact.phonebook_bucket_alt AS phonebook_bucket_alt, has_phone_number, name_raw_contact_id, lookup, photo_id, photo_file_id, CAST(EXISTS (SELECT _id FROM visible_contacts WHERE contacts._id=visible_contacts._id) AS INTEGER) AS in_visible_group, CAST(EXISTS (SELECT _id FROM default_directory WHERE contacts._id=default_directory._id) AS INTEGER) AS in_default_directory, status_update_id, contacts.contact_last_updated_timestamp, (CASE WHEN photo_file_id IS NULL THEN (CASE WHEN photo_id IS NULL OR photo_id=0 THEN NULL ELSE 'content://com.android.contacts/contacts/'||raw_contacts.contact_id|| '/photo' END) ELSE 'content://com.android.contacts/display_photo/'||photo_file_id END) AS photo_uri, (CASE WHEN photo_id IS NULL OR photo_id=0 THEN NULL ELSE 'content://com.android.contacts/contacts/'||raw_contacts.contact_id|| '/photo' END) AS photo_thumb_uri, 0 AS raw_contact_is_user_profile, groups.sourceid AS group_sourceid FROM data JOIN mimetypes ON (data.mimetype_id=mimetypes._id) JOIN raw_contacts ON (data.raw_contact_id=raw_contacts._id) JOIN accounts ON (raw_contacts.account_id=accounts._id) JOIN contacts ON (raw_contacts.contact_id=contacts._id) JOIN raw_contacts AS name_raw_contact ON(name_raw_contact_id=name_raw_contact._id) LEFT OUTER JOIN packages ON (data.package_id=packages._id) LEFT OUTER JOIN groups ON (mimetypes.mimetype='vnd.android.cursor.item/group_membership' AND groups._id=data.data1); variable
142 CREATE VIEW view_raw_entities AS SELECT contact_id, raw_contacts.deleted AS deleted,raw_contacts.metadata_dirty, is_primary, is_super_primary, data_version, data.package_id,package AS res_package,data.mimetype_id,mimetype AS mimetype, is_read_only, data1, data2, data3, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13, data14, data15, carrier_presence, data_sync1, data_sync2, data_sync3, data_sync4, raw_contacts.account_id,accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS data_set,(CASE WHEN accounts.data_set IS NULL THEN accounts.account_type ELSE accounts.account_type||'/'||accounts.data_set END) AS account_type_and_data_set,raw_contacts.sourceid AS sourceid,raw_contacts.backup_id AS backup_id,raw_contacts.version AS version,raw_contacts.dirty AS dirty,raw_contacts.sync1 AS sync1,raw_contacts.sync2 AS sync2,raw_contacts.sync3 AS sync3,raw_contacts.sync4 AS sync4, data_sync1, data_sync2, data_sync3, data_sync4, raw_contacts._id AS _id, data._id AS data_id,raw_contacts.starred AS starred,0 AS raw_contact_is_user_profile,groups.sourceid AS group_sourceid FROM raw_contacts JOIN accounts ON (raw_contacts.account_id=accounts._id) LEFT OUTER JOIN data ON (data.raw_contact_id=raw_contacts._id) LEFT OUTER JOIN packages ON (data.package_id=packages._id) LEFT OUTER JOIN mimetypes ON (data.mimetype_id=mimetypes._id) LEFT OUTER JOIN groups ON (mimetypes.mimetype='vnd.android.cursor.item/group_membership' AND groups._id=data.data1);
143 CREATE VIEW view_entities AS SELECT raw_contacts.contact_id AS _id, raw_contacts.contact_id AS contact_id, raw_contacts.deleted AS deleted,raw_contacts.metadata_dirty, is_primary, is_super_primary, data_version, data.package_id,package AS res_package,data.mimetype_id,mimetype A
[all...]

Completed in 352 milliseconds