/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactMetadataProviderTest.java | 88 TEST_ACCOUNT_NAME1 + "' AND " + MetadataSync.ACCOUNT_TYPE + "='" + TEST_ACCOUNT_TYPE1 + 92 TEST_ACCOUNT_NAME2 + "' AND " + MetadataSync.ACCOUNT_TYPE + "='" + TEST_ACCOUNT_TYPE2 + 161 newValues.put(MetadataSync.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testFailOnInsertMetadataForSameAccountIdAndBackupId() 184 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertAndUpdateMetadataSync() 208 insertedValues.put(MetadataSync.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertAndUpdateMetadataSync() 219 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertAndUpdateMetadataSync() 244 updatedValues.put(MetadataSync.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertAndUpdateMetadataSync() 252 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertAndUpdateMetadataSync() 281 insertedValues.put(MetadataSync.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testInsertMetadata() 311 newValues.put(MetadataSync.ACCOUNT_TYPE, TEST_ACCOUNT_TYPE1); in testFailUpdateDeletedMetadata() [all …]
|
D | GroupsTest.java | 317 values.put(Settings.ACCOUNT_TYPE, sTestAccount.type); in testUngroupedVisible() 326 + Settings.ACCOUNT_TYPE + "=?", new String[] { in testUngroupedVisible() 373 values.put(Settings.ACCOUNT_TYPE, sTestAccount.type); in testMultipleSourcesVisible() 383 values.put(Settings.ACCOUNT_TYPE, sSecondAccount.type); in testMultipleSourcesVisible()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | AccountTypeManagerTest.java | 54 ACCOUNTS[0] = new Account("name1", GoogleAccountType.ACCOUNT_TYPE); 55 ACCOUNTS[1] = new Account("name2", GoogleAccountType.ACCOUNT_TYPE); 100 getDefaultAccountPreference("name1", GoogleAccountType.ACCOUNT_TYPE)); in testGetDefaultAccount_NoAccounts_DefaultPreferenceSet() 112 getDefaultAccountPreference("name2", GoogleAccountType.ACCOUNT_TYPE)); in testGetDefaultAccount_DefaultAccountPreferenceSet() 126 getDefaultAccountPreference("name4",GoogleAccountType.ACCOUNT_TYPE)); in testGetDefaultAccount_DefaultAccountPreferenceSet_UnknownName()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceControllerTest.java | 76 private static final String ACCOUNT_TYPE = "com.acct1"; field in AccountSyncDetailsPreferenceControllerTest 79 private final Account mAccount = new Account("acct1", ACCOUNT_TYPE); 128 ACCOUNT_TYPE, /* userVisible */ false, /* supportsUploading */ true); in refreshUi_syncAdapterIsNotVisible_shouldNotBeShown() 141 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown() 156 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown() 173 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown() 198 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in refreshUi_providerLabelShouldBeSet() 520 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in setUpVisibleSyncAdapters()
|
D | AccountDetailsPreferenceControllerTest.java | 53 private static final String ACCOUNT_TYPE = "com.acct"; field in AccountDetailsPreferenceControllerTest 54 private final Account mAccount = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); 117 addAuthenticator(/* type= */ ACCOUNT_TYPE, /* labelRes= */ in refreshUi_shouldSetIcon()
|
D | AccountDetailsWithSyncStatusPreferenceControllerTest.java | 59 private static final String ACCOUNT_TYPE = "com.acct"; field in AccountDetailsWithSyncStatusPreferenceControllerTest 60 private final Account mAccount = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); 147 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in setUpVisibleSyncAdapters()
|
D | AccountSyncDetailsFragmentTest.java | 62 private static final String ACCOUNT_TYPE = "com.acct1"; field in AccountSyncDetailsFragmentTest 66 private final Account mAccount = new Account("Name", ACCOUNT_TYPE); 206 ACCOUNT_TYPE, /* userVisible */ true, /* supportsUploading */ true); in setUpSyncAdapters()
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | ContactLoader.java | 157 final String accountType = json.getString(RawContacts.ACCOUNT_TYPE); in loadEncodedContactEntity() 475 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues() 568 final String accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in loadDirectoryMetaData() 608 selection.append("(" + Groups.ACCOUNT_NAME + "=? AND " + Groups.ACCOUNT_TYPE + "=?"); in loadGroupMetaData() 636 final String accountType = cursor.getString(GroupQuery.ACCOUNT_TYPE); in loadGroupMetaData() 805 public static final int ACCOUNT_TYPE = 16; field in ContactLoader.ContactQuery 872 RawContacts.ACCOUNT_TYPE, 936 public static final int ACCOUNT_TYPE = 3; field in ContactLoader.DirectoryQuery 944 Directory.ACCOUNT_TYPE, 953 public static final int ACCOUNT_TYPE = 1; field in ContactLoader.GroupQuery [all …]
|
D | RawContact.java | 131 return getValues().getAsString(RawContacts.ACCOUNT_TYPE); in getAccountTypeString() 190 values.putNull(RawContacts.ACCOUNT_TYPE); in setAccount() 198 values.put(RawContacts.ACCOUNT_TYPE, accountType); in setAccount()
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
D | GroupUtil.java | 50 Groups.ACCOUNT_TYPE + " NOT NULL AND " + Groups.ACCOUNT_NAME + " NOT NULL AND " 78 String accountType = cursor.getString(GroupListLoader.ACCOUNT_TYPE); in getGroupListItem() 93 String previousGroupAccountType = cursor.getString(GroupListLoader.ACCOUNT_TYPE); in getGroupListItem() 314 accountType = cursor.getColumnIndex(Groups.ACCOUNT_TYPE); in GroupsProjection() 329 accountType = list.indexOf(Groups.ACCOUNT_TYPE); in GroupsProjection() 358 return GoogleAccountType.ACCOUNT_TYPE.equals(cursor.getString(accountType)) in isEmptyFFCGroup()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | SelectAccountActivity.java | 36 public static final String ACCOUNT_TYPE = "account_type"; field in SelectAccountActivity 70 intent.putExtra(ACCOUNT_TYPE, account.type); in onCreate() 89 intent.putExtra(ACCOUNT_TYPE, account.type); in onCreate()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactDirectoryManager.java | 86 Directory.ACCOUNT_TYPE, 95 public static final int ACCOUNT_TYPE = 1; field in ContactDirectoryManager.DirectoryQuery 314 + Directory.ACCOUNT_TYPE + "=?)"; in scanAllPackages() 492 info.accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in queryDirectoriesForAuthority() 561 values.put(Directory.ACCOUNT_TYPE, info.accountType); in updateDirectories() 575 + Directory.ACCOUNT_NAME + "=? AND " + Directory.ACCOUNT_TYPE + "=?", in updateDirectories()
|
D | ContactMetadataProvider.java | 75 .add(MetadataSync.ACCOUNT_TYPE) 84 .add(MetadataSyncState.ACCOUNT_TYPE) 408 String accountType = values.getAsString(MetadataSync.ACCOUNT_TYPE); in replaceAccountInfoByAccountId() 429 values.remove(MetadataSync.ACCOUNT_TYPE); in replaceAccountInfoByAccountId()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 110 + Calendars.ACCOUNT_TYPE + "=?"; 134 Colors.ACCOUNT_TYPE, 146 + Colors.ACCOUNT_TYPE + "=? AND " + Colors.COLOR_TYPE + "=? AND " + Colors.COLOR_KEY 150 private static final String GENERIC_ACCOUNT_TYPE = Calendars.ACCOUNT_TYPE; 220 + Calendars.ACCOUNT_TYPE + "=? AND " + Calendars.CALENDAR_COLOR_KEY + "=?"; 223 + Tables.CALENDARS + " WHERE " + Events.ACCOUNT_NAME + "=? AND " + Events.ACCOUNT_TYPE 261 Calendars.ACCOUNT_TYPE + "=?"; 264 + Calendars.ACCOUNT_NAME + "=? AND " + Calendars.ACCOUNT_TYPE + "=?"; 390 CalendarContract.EventsEntity.ACCOUNT_TYPE); 1007 Calendars.ACCOUNT_TYPE); in queryInternal() [all …]
|
D | CalendarDatabaseHelper.java | 207 + Colors.ACCOUNT_TYPE + "=" + "new." + Calendars.ACCOUNT_TYPE + " AND " 222 + ") AND " + Colors.ACCOUNT_TYPE + "=" + "(SELECT " + Calendars.ACCOUNT_TYPE + " FROM " 371 + SyncStateContract.Columns.ACCOUNT_TYPE + "," in upgradeSyncState() 752 CalendarContract.Colors.ACCOUNT_TYPE + " TEXT NOT NULL," + in createColorsTable() 769 Calendars.ACCOUNT_TYPE + " TEXT," + in createCalendarsTable() 1570 + Colors.ACCOUNT_TYPE + "=" + "new." + Calendars.ACCOUNT_TYPE + " AND " in upgradeToVersion400() 1584 + ") AND " + Colors.ACCOUNT_TYPE + "=" + "(SELECT " + Calendars.ACCOUNT_TYPE in upgradeToVersion400() 3228 + Tables.CALENDARS + "." + Calendars.ACCOUNT_TYPE in createEventsView() 3229 + " AS " + CalendarContract.Events.ACCOUNT_TYPE + "," in createEventsView()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | Cp2DeviceLocalAccountLocator.java | 47 ContactsContract.RawContacts.ACCOUNT_NAME, ContactsContract.RawContacts.ACCOUNT_TYPE, 121 .append(ContactsContract.RawContacts.ACCOUNT_TYPE).append(" IS NULL"); in getSelection() 125 sb.append(" OR ").append(ContactsContract.RawContacts.ACCOUNT_TYPE).append(" NOT IN ("); in getSelection()
|
D | ContactLoader.java | 135 RawContacts.ACCOUNT_TYPE, 214 public static final int ACCOUNT_TYPE = 16; field in ContactLoader.ContactQuery 276 Directory.ACCOUNT_TYPE, 284 public static final int ACCOUNT_TYPE = 3; field in ContactLoader.DirectoryQuery 393 final String accountType = json.getString(RawContacts.ACCOUNT_TYPE); in loadEncodedContactEntity() 625 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_TYPE); in loadRawContactValues() 715 final String accountType = cursor.getString(DirectoryQuery.ACCOUNT_TYPE); in loadDirectoryMetaData() 786 "(" + Groups.ACCOUNT_NAME + "=? AND " + Groups.ACCOUNT_TYPE + "=?"); in loadGroupMetaData()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactListFilter.java | 341 uriBuilder.appendQueryParameter(RawContacts.ACCOUNT_TYPE, accountType); in addAccountQueryParameterToUrl() 417 if (GoogleAccountType.ACCOUNT_TYPE.equals(account.type) in isSyncable() 447 if (GoogleAccountType.ACCOUNT_TYPE.equals(account.type) in getSyncableAccounts() 462 return GoogleAccountType.ACCOUNT_TYPE.equals(accountType) && dataSet == null; in isGoogleAccountType()
|
D | CustomContactListFilterActivity.java | 176 .appendQueryParameter(Groups.ACCOUNT_TYPE, account.type); in createAccountSet() 258 .appendQueryParameter(Settings.ACCOUNT_TYPE, accountType); 269 values.put(Settings.ACCOUNT_TYPE, accountType); 332 return (mBefore == null ? mAfter : mBefore).getAsString(Settings.ACCOUNT_TYPE); 379 String accountType = this.getAsString(Settings.ACCOUNT_TYPE); 382 + Settings.ACCOUNT_TYPE + "=?"); 735 if (GoogleAccountType.ACCOUNT_TYPE.equals(account.mType) && account.mDataSet == null) {
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | GroupListLoader.java | 34 Groups.ACCOUNT_TYPE, 44 public final static int ACCOUNT_TYPE = 1; field in GroupListLoader
|
D | GroupMetaDataLoader.java | 33 Groups.ACCOUNT_TYPE, 44 public final static int ACCOUNT_TYPE = 1; field in GroupMetaDataLoader
|
D | SplitAggregateView.java | 57 Data.MIMETYPE, RawContacts.ACCOUNT_TYPE, RawContacts.DATA_SET, Data.RAW_CONTACT_ID, 63 int ACCOUNT_TYPE = 1; field 170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); in loadData()
|
/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountWithDataSet.java | 61 public static final String LOCAL_ACCOUNT_SELECTION = RawContacts.ACCOUNT_TYPE + " IS NULL AND " 134 RawContacts.ACCOUNT_TYPE + " = ?" + " AND " + RawContacts.ACCOUNT_NAME + " = ?"; in hasData() 201 .withValue(RawContacts.ACCOUNT_TYPE, type); in newRawContactOperation()
|
/packages/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceUtils.java | 495 .appendQueryParameter(Calendars.ACCOUNT_TYPE, oldType) in moveCalendarData() 500 values.put(CalendarContract.Calendars.ACCOUNT_TYPE, newType); in moveCalendarData() 502 Calendars.ACCOUNT_NAME + "=? AND " + Calendars.ACCOUNT_TYPE + "=?", in moveCalendarData() 511 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, oldType) in moveContactsData() 516 values.put(CalendarContract.Calendars.ACCOUNT_TYPE, newType); in moveContactsData() 683 .appendQueryParameter(Calendars.ACCOUNT_TYPE, accountType).build(); in asCalendarSyncAdapter()
|
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/ |
D | TestUtil.java | 50 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type) in maybeAddAccountQueryParameters() 61 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, accountType) in maybeAddAccountWithDataSetQueryParameters()
|