Home
last modified time | relevance | path

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

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DDataRowHandler.java55 Data.IS_PRIMARY,
63 Data.IS_PRIMARY,
70 public static final int IS_PRIMARY = 3; field
123 final Integer primary = values.getAsInteger(Data.IS_PRIMARY); in insert()
256 final boolean hasPrimary = values.getAsInteger(Data.IS_PRIMARY) != null; in handlePrimaryAndSuperPrimary()
266 values.getAsInteger(Data.IS_PRIMARY) == 0; in handlePrimaryAndSuperPrimary()
273 final String[] cols = new String[] { Data.IS_PRIMARY, Data.IS_SUPER_PRIMARY }; in handlePrimaryAndSuperPrimary()
294 values.getAsInteger(Data.IS_PRIMARY) != 0; in handlePrimaryAndSuperPrimary()
314 values.remove(Data.IS_PRIMARY); in handlePrimaryAndSuperPrimary()
320 boolean primary = c.getInt(DataDeleteQuery.IS_PRIMARY) != 0; in delete()
DContactsDatabaseHelper.java561 public static final String CONCRETE_IS_PRIMARY = Tables.DATA + "." + Data.IS_PRIMARY;
836 + Data.IS_PRIMARY + ","
857 public static final int IS_PRIMARY = 1; field
1423 Data.IS_PRIMARY + " INTEGER NOT NULL DEFAULT 0," + in onCreate()
1857 Data.IS_PRIMARY + ", " in createContactsViews()
4843 && c.getInt(RawContactNameQuery.IS_PRIMARY) == 0) { in updateRawContactDisplayName()
5044 " SET " + Data.IS_PRIMARY + "=(_id=?)" + in setIsPrimary()
DLegacyApiSupport.java583 Data.IS_PRIMARY in createViews()
1339 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parseOrganizationValues()
1360 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parsePhoneValues()
1377 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.java176 Data.IS_PRIMARY,
1169 values.put(Data.IS_PRIMARY, 0); in clearPrimary()
1597 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/providers/CalendarProvider/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelper.java73 CALENDARS_TABLE_ALLOWED_LIST.add(CalendarContract.Calendars.IS_PRIMARY);
89 EVENTS_TABLE_ALLOWED_LIST.add(CalendarContract.Calendars.IS_PRIMARY);
/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/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DFakeContactsProvider.java90 + Data.IS_PRIMARY
159 values.put(Data.IS_PRIMARY, calculateIsPrimary(contactId)); in addEmail()
176 values.put(Data.IS_PRIMARY, calculateIsPrimary(contactId)); in addPhone()
187 values.put(Data.IS_PRIMARY, calculateIsPrimary(contactId)); in addStructuredPostal()
/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/database/
DContactUpdateUtils.java39 values.put(ContactsContract.Data.IS_PRIMARY, 1); in setSuperPrimary()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java694 values.put(Data.IS_PRIMARY, 1); in createName()
708 values.put(Data.IS_PRIMARY, 1); in createPhone()
724 values.put(Data.IS_PRIMARY, 1); in createEmail()
787 values.put(Data.IS_PRIMARY, 1); in setSuperPrimaryPhone()
DContactsProvider2Test.java647 Data.IS_PRIMARY, in testDataProjection()
737 Data.IS_PRIMARY, in testDistinctDataProjection()
821 Data.IS_PRIMARY, in testEntityProjection()
931 Data.IS_PRIMARY, in testRawEntityProjection()
1455 values.put(Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
1457 assertStoredValue(dataUri, Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
6385 values.put(Data.IS_PRIMARY, 1); in testDataCreateUpdateDeleteByMimeType()
6411 values.put(Data.IS_PRIMARY, 0); in testDataCreateUpdateDeleteByMimeType()
6981 assertStoredValue(mailUri11, Data.IS_PRIMARY, 1); in testMarkAsMetadataDirtyForDataPrimarySettingInsert()
6991 assertStoredValue(mailUri1, Data.IS_PRIMARY, 0); in testMarkAsMetadataDirtyForDataPrimarySettingUpdate()
[all …]
DBaseContactsProvider2Test.java272 values.put(Data.IS_PRIMARY, 1); in insertOrganization()
308 values.put(Data.IS_PRIMARY, 1); in insertPhoneNumber()
345 values.put(Data.IS_PRIMARY, 1); in insertEmail()
365 values.put(Data.IS_PRIMARY, 1); in insertSipAddress()
1795 values.put(Data.IS_PRIMARY, 1); in insertPhone()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDataUtil.java92 values.put(Data.IS_PRIMARY, 1); in insertStructuredName()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DContactLoader.java518 cursorColumnToContentValues(cursor, cv, ContactQuery.IS_PRIMARY); in loadDataValues()
841 public static final int IS_PRIMARY = 47; field in ContactLoader.ContactQuery
908 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/apps/Contacts/src/com/android/contacts/sdn/
DSdnProvider.kt222 Data.IS_PRIMARY -> 1 in <lambda>()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java3213 Calendars.IS_PRIMARY in testGetColumnIndex_IsPrimary()
3222 assertEquals(3, cursor.getColumnIndex(Calendars.IS_PRIMARY)); in testGetColumnIndex_IsPrimary()
3243 Calendars.IS_PRIMARY in testGetIsPrimary_ForEvents()
3246 "((" + Calendars.IS_PRIMARY + " = ? OR " + Calendars.ACCOUNT_NAME + " = ?))"; in testGetIsPrimary_ForEvents()
3255 assertEquals(1, cursor.getInt(cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testGetIsPrimary_ForEvents()
3276 Calendars.IS_PRIMARY in testGetIsNotPrimary_ForEvents()
3287 assertEquals(0, cursor.getInt(cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testGetIsNotPrimary_ForEvents()
3492 cursor.getColumnIndex(Calendars.IS_PRIMARY))); in testEnterpriseEventsProjectionCalibration()
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java176 builder.withValue(Data.IS_PRIMARY, 1); in actuallyImportOneSimContact()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsIndexerImpl.java79 + ContactsContract.Data.IS_PRIMARY
DContactDataHandler.java195 columns.add(Data.IS_PRIMARY); in addNeededColumns()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DContactLoaderTest.java336 Data.DATA_VERSION, Data.IS_PRIMARY, in fetchAllData()

12