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()
DLegacyApiSupport.java610 Data.IS_PRIMARY in createViews()
1398 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parseOrganizationValues()
1419 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, in parsePhoneValues()
1436 ContactsDatabaseHelper.copyLongValue(mValues, Data.IS_PRIMARY, values, in parseContactMethodValues()
DContactsDatabaseHelper.java515 public static final String CONCRETE_IS_PRIMARY = Tables.DATA + "." + Data.IS_PRIMARY;
861 + Data.IS_PRIMARY + ","
882 public static final int IS_PRIMARY = 1; field
1369 Data.IS_PRIMARY + " INTEGER NOT NULL DEFAULT 0," + in onCreate()
1836 Data.IS_PRIMARY + ", " in createContactsViews()
5862 && c.getInt(RawContactNameQuery.IS_PRIMARY) == 0) { in updateRawContactDisplayName()
6060 " SET " + Data.IS_PRIMARY + "=(_id=?)" + in setIsPrimary()
/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.java130 Data.IS_PRIMARY,
1057 values.put(Data.IS_PRIMARY, 0); in clearPrimary()
1275 builder.withValue(Data.IS_PRIMARY, 1); in joinContacts()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSyncFragment.java60 private static final String IS_PRIMARY = "\"primary\""; field in SelectCalendarsSyncFragment
61 private static final String SORT_ORDER = IS_PRIMARY + " DESC," + Calendars.CALENDAR_DISPLAY_NAME
71 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY, };
DSelectVisibleCalendarsFragment.java46 private static final String IS_PRIMARY = "\"primary\""; field in SelectVisibleCalendarsFragment
59 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY,
DSelectSyncedCalendarsMultiAccountAdapter.java59 private static final String IS_PRIMARY = "\"primary\""; field in SelectSyncedCalendarsMultiAccountAdapter
60 private static final String CALENDARS_ORDERBY = IS_PRIMARY + " DESC,"
122 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY,
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/dataitem/
DDataItem.java128 Integer primary = mContentValues.getAsInteger(Data.IS_PRIMARY); in isPrimary()
219 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
224 mContentValues.put(Data.IS_PRIMARY, 1); in collapseWith()
/packages/apps/Dialer/src/com/android/dialer/database/
DDialerDatabaseHelper.java120 static final String IS_PRIMARY = "is_primary"; field
157 Data.IS_PRIMARY, // 13
263 + Tables.SMARTDIAL_TABLE + "." + SmartDialDbColumns.IS_PRIMARY + " DESC";
411 + SmartDialDbColumns.IS_PRIMARY + " INTEGER, " in setupTables()
771 SmartDialDbColumns.IS_PRIMARY + ", " + in insertUpdatedContactsAndNumberPrefix()
1022 SmartDialDbColumns.IS_PRIMARY + in updateSmartDialDatabase()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java582 values.put(Data.IS_PRIMARY, 1); in createName()
596 values.put(Data.IS_PRIMARY, 1); in createPhone()
612 values.put(Data.IS_PRIMARY, 1); in createEmail()
675 values.put(Data.IS_PRIMARY, 1); in setSuperPrimaryPhone()
DContactsProvider2Test.java401 Data.IS_PRIMARY, in testDataProjection()
489 Data.IS_PRIMARY, in testDistinctDataProjection()
571 Data.IS_PRIMARY, in testEntityProjection()
679 Data.IS_PRIMARY, in testRawEntityProjection()
1175 values.put(Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
1177 assertStoredValue(dataUri, Data.IS_PRIMARY, "1"); in testDataInsertAndUpdateHashId()
2982 assertStoredValue(dataUri, Data.IS_PRIMARY, 0); in testUpdateFromMetadataEntry()
2994 assertStoredValue(dataUri, Data.IS_PRIMARY, 1); in testUpdateFromMetadataEntry()
2996 assertStoredValue(dataUri2, Data.IS_PRIMARY, 0); in testUpdateFromMetadataEntry()
6378 values.put(Data.IS_PRIMARY, 1); in testDataCreateUpdateDeleteByMimeType()
[all …]
DBaseContactsProvider2Test.java246 values.put(Data.IS_PRIMARY, 1); in insertOrganization()
282 values.put(Data.IS_PRIMARY, 1); in insertPhoneNumber()
319 values.put(Data.IS_PRIMARY, 1); in insertEmail()
339 values.put(Data.IS_PRIMARY, 1); in insertSipAddress()
1670 values.put(Data.IS_PRIMARY, 1);
DContactsDatabaseHelperUpgradeTest.java280 new TableColumn(Data.IS_PRIMARY, INTEGER, true, "0"),
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
DContactUpdateUtils.java41 values.put(ContactsContract.Data.IS_PRIMARY, 1); in setSuperPrimary()
/packages/apps/Dialer/tests/src/com/android/dialer/database/
DDatabaseTestUtils.java50 Data.IS_PRIMARY, // 13 in constructNewContactCursor()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
DDataUtil.java93 values.put(Data.IS_PRIMARY, 1); in insertStructuredName()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java168 Data.IS_PRIMARY,
250 public static final int IS_PRIMARY = 47; field in ContactLoader.ContactQuery
728 cursorColumnToContentValues(cursor, cv, ContactQuery.IS_PRIMARY); in loadDataValues()
DValuesDelta.java165 final Long isPrimary = getAsLong(ContactsContract.Data.IS_PRIMARY); in isPrimary()
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java177 builder.withValue(Data.IS_PRIMARY, 1); in actuallyImportOneSimContact()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DContactLoaderTest.java337 Data.DATA_VERSION, Data.IS_PRIMARY, in fetchAllData()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDelta.java592 final Long isPrimary = getAsLong(Data.IS_PRIMARY); in isPrimary()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/
DDataItemTests.java85 mValues2.put(Data.IS_PRIMARY, 0); in testDataItemCollapsing_genericDataItemFields()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java3092 Calendars.IS_PRIMARY in testGetColumnIndex_IsPrimary()
3101 assertEquals(3, cursor.getColumnIndex(Calendars.IS_PRIMARY)); in testGetColumnIndex_IsPrimary()

12