Home
last modified time | relevance | path

Searched refs:IS_PRIMARY (Results 1 – 25 of 28) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java51 Data.IS_PRIMARY,
59 Data.IS_PRIMARY,
66 public static final int IS_PRIMARY = 3; field
119 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert()
255 final boolean hasPrimary = values.getAsInteger(Data.IS_PRIMARY) != null; in handlePrimaryAndSuperPrimary()
267 values.getAsInteger(Data.IS_PRIMARY) == 0; in handlePrimaryAndSuperPrimary()
274 final String[] cols = new String[] { Data.IS_PRIMARY, Data.IS_SUPER_PRIMARY }; in handlePrimaryAndSuperPrimary()
295 values.getAsInteger(Data.IS_PRIMARY) != 0; in handlePrimaryAndSuperPrimary()
315 values.remove(Data.IS_PRIMARY); in handlePrimaryAndSuperPrimary()
321 boolean primary = c.getInt(DataDeleteQuery.IS_PRIMARY) != 0; in delete()
DMetadataEntryParser.java54 private final static String IS_PRIMARY = "is_primary"; field in MetadataEntryParser
207 final boolean isPrimary = fieldDataPrefs.getBoolean(IS_PRIMARY); in parseDataToMetaDataEntry()
DContactsDatabaseHelper.java549 public static final String CONCRETE_IS_PRIMARY = Tables.DATA + "." + Data.IS_PRIMARY;
842 + Data.IS_PRIMARY + ","
863 public static final int IS_PRIMARY = 1; field
1422 Data.IS_PRIMARY + " INTEGER NOT NULL DEFAULT 0," + in onCreate()
1906 Data.IS_PRIMARY + ", " in createContactsViews()
4620 && c.getInt(RawContactNameQuery.IS_PRIMARY) == 0) { in updateRawContactDisplayName()
4815 " SET " + Data.IS_PRIMARY + "=(_id=?)" + in setIsPrimary()
DLegacyApiSupport.java581 Data.IS_PRIMARY in createViews()
1337 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parseOrganizationValues()
1358 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parsePhoneValues()
1375 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, values, in parseContactMethodValues()
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java58 Data.IS_PRIMARY, StructuredName.DISPLAY_NAME, Nickname.NAME, Email.DATA,
66 int IS_PRIMARY = 4; field
199 if (info.nickname == null || cursor.getInt(SplitQuery.IS_PRIMARY) != 0) { in loadNickname()
205 if (info.email == null || cursor.getInt(SplitQuery.IS_PRIMARY) != 0) { in loadEmail()
211 if (info.phone == null || cursor.getInt(SplitQuery.IS_PRIMARY) != 0) { in loadPhoneNumber()
DContactSaveService.java172 Data.IS_PRIMARY,
1165 values.put(Data.IS_PRIMARY, 0); in clearPrimary()
1589 builder.withValue(Data.IS_PRIMARY, 1); in joinContacts()
/packages/apps/Contacts/src/com/android/contacts/model/dataitem/
DDataItem.java128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
212 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
217 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
/packages/apps/Dialer/java/com/android/contacts/common/model/dataitem/
DDataItem.java121 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
211 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
216 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java145 + SmartDialDbColumns.IS_PRIMARY in setupTables()
529 + SmartDialDbColumns.IS_PRIMARY in insertUpdatedContactsAndNumberPrefix()
843 + SmartDialDbColumns.IS_PRIMARY in updateSmartDialDatabase()
1050 String IS_PRIMARY = "is_primary"; field
1093 Data.IS_PRIMARY, // 13
1231 + SmartDialDbColumns.IS_PRIMARY
/packages/providers/CalendarProvider/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelper.java73 CALENDARS_TABLE_WHITELIST.add(CalendarContract.Calendars.IS_PRIMARY);
89 EVENTS_TABLE_WHITELIST.add(CalendarContract.Calendars.IS_PRIMARY);
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java641 values.put(Data.IS_PRIMARY, 1); in createName()
655 values.put(Data.IS_PRIMARY, 1); in createPhone()
671 values.put(Data.IS_PRIMARY, 1); in createEmail()
734 values.put(Data.IS_PRIMARY, 1); in setSuperPrimaryPhone()
DContactsProvider2Test.java402 Data.IS_PRIMARY, in testDataProjection()
492 Data.IS_PRIMARY, in testDistinctDataProjection()
576 Data.IS_PRIMARY, in testEntityProjection()
686 Data.IS_PRIMARY, in testRawEntityProjection()
1210 values.put(Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
1212 assertStoredValue(dataUri, Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
2945 assertStoredValue(dataUri, Data.IS_PRIMARY, 0); in testUpdateFromMetadataEntry()
2957 assertStoredValue(dataUri, Data.IS_PRIMARY, 1); in testUpdateFromMetadataEntry()
2959 assertStoredValue(dataUri2, Data.IS_PRIMARY, 0); in testUpdateFromMetadataEntry()
6348 values.put(Data.IS_PRIMARY, 1); in testDataCreateUpdateDeleteByMimeType()
[all …]
DBaseContactsProvider2Test.java254 values.put(Data.IS_PRIMARY, 1); in insertOrganization()
290 values.put(Data.IS_PRIMARY, 1); in insertPhoneNumber()
327 values.put(Data.IS_PRIMARY, 1); in insertEmail()
347 values.put(Data.IS_PRIMARY, 1); in insertSipAddress()
1697 values.put(Data.IS_PRIMARY, 1); in insertPhone()
/packages/apps/Dialer/java/com/android/contacts/common/database/
DContactUpdateUtils.java39 values.put(ContactsContract.Data.IS_PRIMARY, 1); in setSuperPrimary()
/packages/apps/Contacts/src/com/android/contacts/database/
DContactUpdateUtils.java41 values.put(ContactsContract.Data.IS_PRIMARY, 1); in setSuperPrimary()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java517 cursorColumnToContentValues(cursor, cv, ContactQuery.IS_PRIMARY); in loadDataValues()
836 public static final int IS_PRIMARY = 47; field in ContactLoader.ContactQuery
903 Data.IS_PRIMARY,
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java167 Data.IS_PRIMARY,
246 public static final int IS_PRIMARY = 47; field in ContactLoader.ContactQuery
669 cursorColumnToContentValues(cursor, cv, ContactQuery.IS_PRIMARY); in loadDataValues()
DValuesDelta.java167 final Long isPrimary = getAsLong(ContactsContract.Data.IS_PRIMARY); in isPrimary()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDataUtil.java92 values.put(Data.IS_PRIMARY, 1); in insertStructuredName()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java3194 Calendars.IS_PRIMARY in testGetColumnIndex_IsPrimary()
3203 assertEquals(3, cursor.getColumnIndex(Calendars.IS_PRIMARY)); in testGetColumnIndex_IsPrimary()
3224 Calendars.IS_PRIMARY in testGetIsPrimary_ForEvents()
3227 "((" + Calendars.IS_PRIMARY + " = ? OR " + Calendars.ACCOUNT_NAME + " = ?))"; in testGetIsPrimary_ForEvents()
3236 assertEquals(1, cursor.getInt(cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testGetIsPrimary_ForEvents()
3257 Calendars.IS_PRIMARY in testGetIsNotPrimary_ForEvents()
3268 assertEquals(0, cursor.getInt(cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testGetIsNotPrimary_ForEvents()
3473 cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testEnterpriseEventsProjectionCalibration()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java455 Calendars.IS_PRIMARY + "= 1"
4976 sCalendarsProjectionMap.put(Calendars.IS_PRIMARY, in sCalendarsProjectionMap.put() argument
4977 "COALESCE(" + Calendars.IS_PRIMARY + ", " in sCalendarsProjectionMap.put() argument
4979 + Calendars.IS_PRIMARY); in sCalendarsProjectionMap.put()
5063 sEventsProjectionMap.put(Calendars.IS_PRIMARY, in sEventsProjectionMap.put() argument
5064 "COALESCE(" + Calendars.IS_PRIMARY + ", " in sEventsProjectionMap.put() argument
5066 + Calendars.IS_PRIMARY); in sEventsProjectionMap.put()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DTelecomUtils.java340 values.put(ContactsContract.Data.IS_PRIMARY, 1); in setAsPrimaryPhoneNumber()
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java176 builder.withValue(Data.IS_PRIMARY, 1); in actuallyImportOneSimContact()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java331 Data.DATA_VERSION, Data.IS_PRIMARY, in fetchAllData()
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java81 mValues2.put(Data.IS_PRIMARY, 0); in testDataItemCollapsing_genericDataItemFields()

12