Home
last modified time | relevance | path

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

123456

/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.java70 import android.provider.ContactsContract.Data;
530 + Data.RAW_CONTACT_ID;
534 public static final String CONCRETE_DATA1 = Tables.DATA + "." + Data.DATA1;
535 public static final String CONCRETE_DATA2 = Tables.DATA + "." + Data.DATA2;
536 public static final String CONCRETE_DATA3 = Tables.DATA + "." + Data.DATA3;
537 public static final String CONCRETE_DATA4 = Tables.DATA + "." + Data.DATA4;
538 public static final String CONCRETE_DATA5 = Tables.DATA + "." + Data.DATA5;
539 public static final String CONCRETE_DATA6 = Tables.DATA + "." + Data.DATA6;
540 public static final String CONCRETE_DATA7 = Tables.DATA + "." + Data.DATA7;
541 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;
62 Data.CONTACT_ID,
64 Data.DATA1, Data.DATA2, Data.DATA3, Data.DATA4, Data.DATA5,
65 Data.DATA6, Data.DATA7, Data.DATA8, Data.DATA9, Data.DATA10, Data.DATA11,
66 Data.DATA12, Data.DATA13, Data.DATA14
347 mSb.append(Data.CONTACT_ID + ", "); in buildAndInsertIndex()
361 mSb.append(" END), " + Data.IS_SUPER_PRIMARY + ", " + DataColumns.CONCRETE_ID); in buildAndInsertIndex()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DProjections.java20 import android.provider.ContactsContract.Data;
66 Data._ID, // 0
70 Data.DISPLAY_NAME_ALTERNATIVE, // 4
71 Data.PHOTO_ID, // 5
72 Data.PHOTO_THUMBNAIL_URI, // 6
73 Data.LOOKUP_KEY, // 7
74 Data.CARRIER_PRESENCE, // 8
75 Data.CONTACT_ID, // 9
76 Data.SORT_KEY_PRIMARY, // 11
77 Data.SORT_KEY_ALTERNATIVE, // 12
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java31 import android.provider.ContactsContract.Contacts.Data;
60 mValues1.put(Data._ID, 1); in setUp()
61 mValues2.put(Data._ID, 2); in setUp()
62 mValues3.put(Data._ID, 3); in setUp()
63 mValues4.put(Data._ID, 4); in setUp()
80 mValues1.put(Data.IS_SUPER_PRIMARY, 1); in testDataItemCollapsing_genericDataItemFields()
81 mValues2.put(Data.IS_PRIMARY, 0); in testDataItemCollapsing_genericDataItemFields()
88 kind.typeColumn = Data.DATA2; in testDataItemCollapsing_genericDataItemFields()
105 mValues1.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
106 mValues2.put(Data.MIMETYPE, Email.CONTENT_ITEM_TYPE); in testDataItemCollapsing_email()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java25 import android.provider.ContactsContract.Data;
327 Data.DATA1, Data.DATA2, Data.DATA3, Data.DATA4, Data.DATA5, in fetchAllData()
328 Data.DATA6, Data.DATA7, Data.DATA8, Data.DATA9, Data.DATA10, in fetchAllData()
329 Data.DATA11, Data.DATA12, Data.DATA13, Data.DATA14, Data.DATA15, in fetchAllData()
330 Data.SYNC1, Data.SYNC2, Data.SYNC3, Data.SYNC4, in fetchAllData()
331 Data.DATA_VERSION, Data.IS_PRIMARY, in fetchAllData()
332 Data.IS_SUPER_PRIMARY, Data.MIMETYPE, in fetchAllData()
336 Data.PRESENCE, Data.CHAT_CAPABILITY, in fetchAllData()
337 Data.STATUS, Data.STATUS_RES_PACKAGE, Data.STATUS_ICON, in fetchAllData()
338 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
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 …]
DContactsProvider2Test.java51 import android.provider.ContactsContract.Data;
423 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection()
424 Data._ID, in testDataProjection()
425 Data.RAW_CONTACT_ID, in testDataProjection()
426 Data.HASH_ID, in testDataProjection()
427 Data.DATA_VERSION, in testDataProjection()
428 Data.IS_PRIMARY, in testDataProjection()
429 Data.IS_SUPER_PRIMARY, in testDataProjection()
430 Data.RES_PACKAGE, in testDataProjection()
431 Data.MIMETYPE, in testDataProjection()
[all …]
DContactsDatabaseHelperUpgradeTest.java28 import android.provider.ContactsContract.Data;
341 new TableColumn(Data._ID, INTEGER, false, null),
344 new TableColumn(Data.RAW_CONTACT_ID, INTEGER, true, null),
345 new TableColumn(Data.HASH_ID, TEXT, false, null),
346 new TableColumn(Data.IS_READ_ONLY, INTEGER, true, "0"),
347 new TableColumn(Data.IS_PRIMARY, INTEGER, true, "0"),
348 new TableColumn(Data.IS_SUPER_PRIMARY, INTEGER, true, "0"),
349 new TableColumn(Data.DATA_VERSION, INTEGER, true, "0"),
350 new TableColumn(Data.DATA1, TEXT, false, null),
351 new TableColumn(Data.DATA2, TEXT, false, null),
[all …]
DContactsActor.java59 import android.provider.ContactsContract.Data;
659 values.put(Data.RAW_CONTACT_ID, contactId); in createName()
660 values.put(Data.IS_PRIMARY, 1); in createName()
661 values.put(Data.IS_SUPER_PRIMARY, 1); in createName()
662 values.put(Data.MIMETYPE, CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE); in createName()
665 contactId), RawContacts.Data.CONTENT_DIRECTORY); in createName()
673 values.put(Data.RAW_CONTACT_ID, contactId); in createPhone()
674 values.put(Data.IS_PRIMARY, 1); in createPhone()
675 values.put(Data.IS_SUPER_PRIMARY, 1); in createPhone()
676 values.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in createPhone()
[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/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()
883 Data.DATA1,
884 Data.DATA2,
885 Data.DATA3,
886 Data.DATA4,
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java35 import android.provider.ContactsContract.Data;
147 Data.DATA1,
148 Data.DATA2,
149 Data.DATA3,
150 Data.DATA4,
151 Data.DATA5,
152 Data.DATA6,
153 Data.DATA7,
154 Data.DATA8,
155 Data.DATA9,
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/audio/
DAudioMetrics.java32 private Data mData = new Data();
37 public static class Data { class in AudioMetrics
43 public Data() { in Data() method in AudioMetrics.Data
46 public Data(Data data) { in Data() method in AudioMetrics.Data
56 void onUpdateMetrics(AudioMetrics.Data data); in onUpdateMetrics()
68 mData = new Data(); in start()
79 mData = new Data(mData); in startedReading()
90 mData = new Data(mData); in receivedValidAudio()
97 mData = new Data(mData); in setEmptyAudioDurationMs()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java36 import android.provider.ContactsContract.Contacts.Data;
58 final String mimeType = values.getAsString(Data.MIMETYPE); in createFrom()
102 mContentValues.put(Data.RAW_CONTACT_ID, rawContactId); in setRawContactId()
106 return mContentValues.getAsLong(Data.RAW_CONTACT_ID); in getRawContactId()
113 return mContentValues.getAsLong(Data._ID); in getId()
120 return mContentValues.getAsString(Data.MIMETYPE); in getMimeType()
124 mContentValues.put(Data.MIMETYPE, mimeType); in setMimeType()
128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
133 Integer superPrimary = mContentValues.getAsInteger(Data.IS_SUPER_PRIMARY); in isSuperPrimary()
155 final Integer value = mContentValues.getAsInteger(Data.CARRIER_PRESENCE); in getCarrierPresence()
[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/Dialer/java/com/android/incallui/answer/impl/classifier/
DHistoryEvaluator.java30 private final ArrayList<Data> strokes = new ArrayList<>();
31 private final ArrayList<Data> gestureWeights = new ArrayList<>();
40 strokes.add(new Data(evaluation)); in addStroke()
45 gestureWeights.add(new Data(evaluation)); in addGesture()
53 private float weightedAverage(ArrayList<Data> list) { in weightedAverage()
58 Data data = list.get(i); in weightedAverage()
85 private void decayValue(ArrayList<Data> list, float factor) { in decayValue()
105 private static class Data { class in HistoryEvaluator
109 public Data(float evaluation) { in Data() method in HistoryEvaluator.Data
/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.java32 import android.provider.ContactsContract.Data;
207 String[] projection = {Data.CONTACT_ID, Data.DATA1, Data.MIMETYPE}; in loadAllContacts()
246 String[] dataProjection = {Data.CONTACT_ID, Data.DATA1, Data.MIMETYPE}; in updateSecondaryVersionCounter()
248 String whereClause = Data.CONTACT_ID + "=?"; in updateSecondaryVersionCounter()
279 .query(Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
288 dataCursor.getString(dataCursor.getColumnIndex(Data.MIMETYPE)))) { in updateSecondaryVersionCounter()
309 .query(Data.CONTENT_URI, dataProjection, whereClause, selectionArgs, null); in updateSecondaryVersionCounter()
316 int indexData = dataCursor.getColumnIndex(Data.DATA1); in updateSecondaryVersionCounter()
317 int indexMimeType = dataCursor.getColumnIndex(Data.MIMETYPE); in updateSecondaryVersionCounter()
413 .query(Data.CONTENT_URI, projection, whereClause, selectionArgs, null); in fetchAndSetContacts()
[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/dialer/databasepopulator/
DContactsPopulator.java201 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
202 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
204 ContactsContract.Data.MIMETYPE, in addContact()
213 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
214 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
216 ContactsContract.Data.MIMETYPE, in addContact()
226 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
227 .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, index) in addContact()
229 ContactsContract.Data.MIMETYPE, in addContact()
239 ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in addContact()
[all …]

123456