Home
last modified time | relevance | path

Searched refs:Data (Results 1 – 25 of 121) sorted by relevance

12345

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java28 import android.provider.ContactsContract.Data;
42 Data.DATA1, Data.DATA2};
50 Data.RAW_CONTACT_ID,
51 Data.IS_PRIMARY,
52 Data.DATA1,
56 Data._ID,
58 Data.RAW_CONTACT_ID,
59 Data.IS_PRIMARY,
60 Data.DATA1,
71 String[] COLUMNS = { Data._ID, Data.RAW_CONTACT_ID, Data.MIMETYPE };
[all …]
DContactsDatabaseHelper.java68 import android.provider.ContactsContract.Data;
520 + Data.RAW_CONTACT_ID;
524 public static final String CONCRETE_DATA1 = Tables.DATA + "." + Data.DATA1;
525 public static final String CONCRETE_DATA2 = Tables.DATA + "." + Data.DATA2;
526 public static final String CONCRETE_DATA3 = Tables.DATA + "." + Data.DATA3;
527 public static final String CONCRETE_DATA4 = Tables.DATA + "." + Data.DATA4;
528 public static final String CONCRETE_DATA5 = Tables.DATA + "." + Data.DATA5;
529 public static final String CONCRETE_DATA6 = Tables.DATA + "." + Data.DATA6;
530 public static final String CONCRETE_DATA7 = Tables.DATA + "." + Data.DATA7;
531 public static final String CONCRETE_DATA8 = Tables.DATA + "." + Data.DATA8;
[all …]
DLegacyApiSupport.java47 import android.provider.ContactsContract.Data;
176 "(CASE WHEN " + Data.MIMETYPE + "='" + Im.CONTENT_ITEM_TYPE + "'"
239 public static final String PHOTO_DATA_ID = Data.DATA1;
240 public static final String LOCAL_VERSION = Data.DATA2;
241 public static final String DOWNLOAD_REQUIRED = Data.DATA3;
242 public static final String EXISTS_ON_SERVER = Data.DATA4;
243 public static final String SYNC_ERROR = Data.DATA5;
503 " WHERE " + Data._ID + "=?"); in LegacyApiSupport()
506 "SELECT " + Data.RAW_CONTACT_ID + in LegacyApiSupport()
508 " WHERE " + Data._ID + "=?"); in LegacyApiSupport()
[all …]
DSearchIndexManager.java26 import android.provider.ContactsContract.Data;
59 Data.CONTACT_ID,
61 Data.DATA1, Data.DATA2, Data.DATA3, Data.DATA4, Data.DATA5,
62 Data.DATA6, Data.DATA7, Data.DATA8, Data.DATA9, Data.DATA10, Data.DATA11,
63 Data.DATA12, Data.DATA13, Data.DATA14
343 mSb.append(Data.CONTACT_ID + ", "); in buildAndInsertIndex()
357 mSb.append(" END), " + Data.IS_SUPER_PRIMARY + ", " + DataColumns.CONCRETE_ID); in buildAndInsertIndex()
DContactsProvider2.java88 import android.provider.ContactsContract.Data;
451 INSERT_URI_ID_VALUE_MAP.put(DATA, Data.RAW_CONTACT_ID); in INSERT_URI_ID_VALUE_MAP.put()
452 INSERT_URI_ID_VALUE_MAP.put(RAW_CONTACTS_ID_DATA, Data.RAW_CONTACT_ID); in INSERT_URI_ID_VALUE_MAP.put()
640 + Data.IS_SUPER_PRIMARY + " DESC, "
644 + Data.CONTACT_ID + ", "
645 + Data.IS_PRIMARY + " DESC";
661 Data._ID,
662 Data.RAW_CONTACT_ID,
663 Data.NAME_RAW_CONTACT_ID,
742 .add(Data.DATA1)
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java31 import android.provider.ContactsContract.Contacts.Data;
63 mValues1.put(Data._ID, 1); in setUp()
64 mValues2.put(Data._ID, 2); in setUp()
65 mValues3.put(Data._ID, 3); in setUp()
66 mValues4.put(Data._ID, 4); in setUp()
83 mValues1.put(Data.IS_SUPER_PRIMARY, 1); in testDataItemCollapsing_genericDataItemFields()
84 mValues2.put(Data.IS_PRIMARY, 0); in testDataItemCollapsing_genericDataItemFields()
97 kind.typeColumn = Data.DATA2; in testDataItemCollapsing_genericDataItemFields()
116 mValues1.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
117 mValues2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java52 import android.provider.ContactsContract.Data;
398 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection()
399 Data._ID, in testDataProjection()
400 Data.RAW_CONTACT_ID, in testDataProjection()
401 Data.HASH_ID, in testDataProjection()
402 Data.DATA_VERSION, in testDataProjection()
403 Data.IS_PRIMARY, in testDataProjection()
404 Data.IS_SUPER_PRIMARY, in testDataProjection()
405 Data.RES_PACKAGE, in testDataProjection()
406 Data.MIMETYPE, in testDataProjection()
[all …]
DBaseContactsProvider2Test.java52 import android.provider.ContactsContract.Data;
250 values.put(Data.RAW_CONTACT_ID, rawContactId); in insertOrganization()
251 values.put(Data.MIMETYPE, Organization.CONTENT_ITEM_TYPE); in insertOrganization()
254 values.put(Data.IS_PRIMARY, 1); in insertOrganization()
257 values.put(Data.IS_SUPER_PRIMARY, 1); in insertOrganization()
260 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization()
285 values.put(Data.RAW_CONTACT_ID, rawContactId); in insertPhoneNumber()
286 values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in insertPhoneNumber()
290 values.put(Data.IS_PRIMARY, 1); in insertPhoneNumber()
293 values.put(Data.IS_SUPER_PRIMARY, 1); in insertPhoneNumber()
[all …]
DContactsActor.java57 import android.provider.ContactsContract.Data;
596 values.put(Data.RAW_CONTACT_ID, contactId); in createName()
597 values.put(Data.IS_PRIMARY, 1); in createName()
598 values.put(Data.IS_SUPER_PRIMARY, 1); in createName()
599 values.put(Data.MIMETYPE, CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); in createName()
602 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createName()
610 values.put(Data.RAW_CONTACT_ID, contactId); in createPhone()
611 values.put(Data.IS_PRIMARY, 1); in createPhone()
612 values.put(Data.IS_SUPER_PRIMARY, 1); in createPhone()
613 values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in createPhone()
[all …]
DContactsDatabaseHelperUpgradeTest.java29 import android.provider.ContactsContract.Data;
350 new TableColumn(Data._ID, INTEGER, false, null),
353 new TableColumn(Data.RAW_CONTACT_ID, INTEGER, true, null),
354 new TableColumn(Data.HASH_ID, TEXT, false, null),
355 new TableColumn(Data.IS_READ_ONLY, INTEGER, true, "0"),
356 new TableColumn(Data.IS_PRIMARY, INTEGER, true, "0"),
357 new TableColumn(Data.IS_SUPER_PRIMARY, INTEGER, true, "0"),
358 new TableColumn(Data.DATA_VERSION, INTEGER, true, "0"),
359 new TableColumn(Data.DATA1, TEXT, false, null),
360 new TableColumn(Data.DATA2, TEXT, false, null),
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java25 import android.provider.ContactsContract.Data;
331 Data.DATA1, Data.DATA2, Data.DATA3, Data.DATA4, Data.DATA5, in fetchAllData()
332 Data.DATA6, Data.DATA7, Data.DATA8, Data.DATA9, Data.DATA10, in fetchAllData()
333 Data.DATA11, Data.DATA12, Data.DATA13, Data.DATA14, Data.DATA15, in fetchAllData()
334 Data.SYNC1, Data.SYNC2, Data.SYNC3, Data.SYNC4, in fetchAllData()
335 Data.DATA_VERSION, Data.IS_PRIMARY, in fetchAllData()
336 Data.IS_SUPER_PRIMARY, Data.MIMETYPE, in fetchAllData()
340 Data.PRESENCE, Data.CHAT_CAPABILITY, in fetchAllData()
341 Data.STATUS, Data.STATUS_RES_PACKAGE, Data.STATUS_ICON, in fetchAllData()
342 Data.STATUS_LABEL, Data.STATUS_TIMESTAMP, in fetchAllData()
[all …]
DRawContactModifierTests.java29 import android.provider.ContactsContract.Data;
397 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptySingle()
434 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimEmptySpaces()
460 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid()
469 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid()
482 before.put(Data._ID, TEST_ID); in testTrimEmptyUntouched()
483 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyUntouched()
505 before.put(Data._ID, TEST_ID); in testTrimEmptyAfterUpdate()
506 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyAfterUpdate()
532 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate()
[all …]
DRawContactDeltaListTests.java27 import android.provider.ContactsContract.Data;
146 values.put(Data._ID, phoneId); in buildPhone()
147 values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in buildPhone()
155 values.put(Data._ID, emailId); in buildEmail()
156 values.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in buildEmail()
256 insertValues.put(Data.RAW_CONTACT_ID, rawContactId); in buildDataInsert()
390 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
398 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert()
415 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete()
424 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete()
[all …]
DRawContactDeltaTests.java25 import android.provider.ContactsContract.Data;
69 phone.put(Data._ID, phoneId); in getRawContact()
70 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in getRawContact()
102 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testParcelChangesInsert()
142 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffDelete()
149 final BuilderWrapper builderWrapper = values.buildDiffWrapper(Data.CONTENT_URI); in testValuesDiffDelete()
178 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testEntityDiffNoneInsert()
202 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert()
221 phone.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testEntityDiffUpdateInsert()
251 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java34 import android.provider.ContactsContract.Data;
174 values.put(Data._ID, -1); in loadEncodedContactEntity()
175 values.put(Data.CONTACT_ID, -1); in loadEncodedContactEntity()
203 itemValues.put(Data.MIMETYPE, mimetype); in processOneRecord()
204 itemValues.put(Data._ID, -1); in processOneRecord()
495 cv.put(Data._ID, cursor.getLong(ContactQuery.DATA_ID)); in loadDataValues()
881 Data.DATA1,
882 Data.DATA2,
883 Data.DATA3,
884 Data.DATA4,
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java34 import android.provider.ContactsContract.Data;
152 Data.DATA1,
153 Data.DATA2,
154 Data.DATA3,
155 Data.DATA4,
156 Data.DATA5,
157 Data.DATA6,
158 Data.DATA7,
159 Data.DATA8,
160 Data.DATA9,
[all …]
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMembersAdapter.java25 import android.provider.ContactsContract.Data;
41 Data.CONTACT_ID,
42 Data.RAW_CONTACT_ID,
43 Data.PHOTO_ID,
44 Data.LOOKUP_KEY,
45 Data.CONTACT_PRESENCE,
46 Data.CONTACT_STATUS,
47 Data.DISPLAY_NAME_PRIMARY,
51 Data.CONTACT_ID,
52 Data.RAW_CONTACT_ID,
[all …]
/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java45 import android.provider.ContactsContract.Data;
171 Data.MIMETYPE,
172 Data.IS_PRIMARY,
173 Data.DATA1,
174 Data.DATA2,
175 Data.DATA3,
176 Data.DATA4,
177 Data.DATA5,
178 Data.DATA6,
179 Data.DATA7,
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java36 import android.provider.ContactsContract.Contacts.Data;
57 final String mimeType = values.getAsString(Data.MIMETYPE); in createFrom()
99 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId()
103 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); in setRawContactId()
108 return mContentValues.getAsLong(Data._ID); in getId()
113 return mContentValues.getAsString(Data.MIMETYPE); in getMimeType()
117 mContentValues.put(Data.MIMETYPE, mimeType); in setMimeType()
121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
126 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary()
149 return mContentValues.getAsInteger(Data.CARRIER_PRESENCE); in getCarrierPresence()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java36 import android.provider.ContactsContract.Contacts.Data;
60 final String mimeType = values.getAsString(Data.MIMETYPE); in createFrom()
104 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); in setRawContactId()
108 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId()
115 return mContentValues.getAsLong(Data._ID); in getId()
122 return mContentValues.getAsString(Data.MIMETYPE); in getMimeType()
126 mContentValues.put(Data.MIMETYPE, mimeType); in setMimeType()
130 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
135 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary()
157 final Integer value = mContentValues.getAsInteger(Data.CARRIER_PRESENCE); in getCarrierPresence()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DHistoryEvaluator.java31 private final ArrayList<Data> mStrokes = new ArrayList<>();
32 private final ArrayList<Data> mGestureWeights = new ArrayList<>();
41 mStrokes.add(new Data(evaluation)); in addStroke()
46 mGestureWeights.add(new Data(evaluation)); in addGesture()
54 private float weightedAverage(ArrayList<Data> list) { in weightedAverage()
59 Data data = list.get(i); in weightedAverage()
86 private void decayValue(ArrayList<Data> list, float factor) { in decayValue()
106 private static class Data { class in HistoryEvaluator
110 public Data(float evaluation) { in Data() method in HistoryEvaluator.Data
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java23 import android.provider.ContactsContract.Data;
54 final boolean hasStatus = !isNull(cursor, Data.STATUS); in possibleUpdate()
55 final boolean hasTimestamp = !isNull(cursor, Data.STATUS_TIMESTAMP); in possibleUpdate()
64 final long newTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); in possibleUpdate()
75 mPresence = getInt(cursor, Data.PRESENCE, -1); in fromCursor()
76 mStatus = getString(cursor, Data.STATUS); in fromCursor()
77 mTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); in fromCursor()
78 mResPackage = getString(cursor, Data.STATUS_RES_PACKAGE); in fromCursor()
79 mIconRes = getInt(cursor, Data.STATUS_ICON, -1); in fromCursor()
80 mLabelRes = getInt(cursor, Data.STATUS_LABEL, -1); in fromCursor()
/packages/apps/Contacts/src/com/android/contacts/util/
DDataStatus.java23 import android.provider.ContactsContract.Data;
56 final boolean hasStatus = !isNull(cursor, Data.STATUS); in possibleUpdate()
57 final boolean hasTimestamp = !isNull(cursor, Data.STATUS_TIMESTAMP); in possibleUpdate()
66 final long newTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); in possibleUpdate()
77 mPresence = getInt(cursor, Data.PRESENCE, -1); in fromCursor()
78 mStatus = getString(cursor, Data.STATUS); in fromCursor()
79 mTimestamp = getLong(cursor, Data.STATUS_TIMESTAMP, -1); in fromCursor()
80 mResPackage = getString(cursor, Data.STATUS_RES_PACKAGE); in fromCursor()
81 mIconRes = getInt(cursor, Data.STATUS_ICON, -1); in fromCursor()
82 mLabelRes = getInt(cursor, Data.STATUS_LABEL, -1); in fromCursor()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DBluetoothPbapUtils.java34 import android.provider.ContactsContract.Data;
297 String[] projection = {Data.CONTACT_ID, Data.DATA1, Data.MIMETYPE}; in loadAllContacts()
340 String[] dataProjection = {Data.CONTACT_ID, Data.DATA1, Data.MIMETYPE}; in updateSecondaryVersionCounter()
342 String whereClause = Data.CONTACT_ID + "=?"; in updateSecondaryVersionCounter()
371 Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
380 dataCursor.getString(dataCursor.getColumnIndex(Data.MIMETYPE)))) in updateSecondaryVersionCounter()
400 Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
407 int indexData = dataCursor.getColumnIndex(Data.DATA1); in updateSecondaryVersionCounter()
408 int indexMimeType = dataCursor.getColumnIndex(Data.MIMETYPE); in updateSecondaryVersionCounter()
505 Data.CONTENT_URI, projection, whereClause, selectionArgs, null); in fetchAndSetContacts()
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorContacts.java143 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
144 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
146 ContactsContract.Data.MIMETYPE, in addContact()
155 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
156 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
158 ContactsContract.Data.MIMETYPE, in addContact()
168 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
169 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
171 ContactsContract.Data.MIMETYPE, in addContact()
181 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
[all …]

12345