/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactMetadataProviderTest.java | 87 private static String SELECTION_BY_TEST_ACCOUNT1 = MetadataSync.ACCOUNT_NAME + "='" + 91 private static String SELECTION_BY_TEST_ACCOUNT2 = MetadataSync.ACCOUNT_NAME + "='" + 161 newValues.put(MetadataSync.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testFailOnInsertMetadataForSameAccountIdAndBackupId() 186 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertAndUpdateMetadataSync() 210 insertedValues.put(MetadataSync.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertAndUpdateMetadataSync() 221 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertAndUpdateMetadataSync() 246 updatedValues.put(MetadataSync.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertAndUpdateMetadataSync() 254 assertStoredValue(rawContactUri, RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertAndUpdateMetadataSync() 283 insertedValues.put(MetadataSync.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testInsertMetadata() 311 newValues.put(MetadataSync.ACCOUNT_NAME, TEST_ACCOUNT_NAME1); in testFailUpdateDeletedMetadata() [all …]
|
D | GroupsTest.java | 316 values.put(Settings.ACCOUNT_NAME, sTestAccount.name); in testUngroupedVisible() 325 mResolver.update(Settings.CONTENT_URI, values, Settings.ACCOUNT_NAME + "=? AND " in testUngroupedVisible() 372 values.put(Settings.ACCOUNT_NAME, sTestAccount.name); in testMultipleSourcesVisible() 382 values.put(Settings.ACCOUNT_NAME, sSecondAccount.name); in testMultipleSourcesVisible()
|
D | ContactDirectoryManagerTest.java | 73 new String[] { Directory.ACCOUNT_NAME, Directory.ACCOUNT_TYPE, in createResponseCursor() 98 uri.getQueryParameter(RawContacts.ACCOUNT_NAME), in query() 178 /* order by=*/ Directory.DIRECTORY_AUTHORITY + "," + Directory.ACCOUNT_NAME + in testScanAllProviders() 622 row[cursor.getColumnIndex(Directory.ACCOUNT_NAME)] = accountName; in addDirectoryRow() 638 values.put(Directory.ACCOUNT_NAME, accountName); in assertDirectoryRow()
|
D | DirectoryTest.java | 55 values.putNull(Directory.ACCOUNT_NAME); in testDefaultDirectory() 71 values.putNull(Directory.ACCOUNT_NAME); in testInvisibleLocalDirectory()
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
D | EditorUiUtilsTest.java | 38 private static final String ACCOUNT_NAME = "somebody@lunkedin.com"; field in EditorUiUtilsTest 72 ACCOUNT_NAME, new MockAccountType(DISPLAY_LABEL)); in testGetProfileAccountInfo_AccountName() 75 assertEquals(ACCOUNT_NAME, pair.first); in testGetProfileAccountInfo_AccountName() 92 ACCOUNT_NAME, new MockAccountType(DISPLAY_LABEL)); in testGetAccountInfo_AccountName_DisplayLabel() 95 assertEquals(getContext().getString(R.string.from_account_format, ACCOUNT_NAME), in testGetAccountInfo_AccountName_DisplayLabel() 117 ACCOUNT_NAME, new MockAccountType(/* displayLabel =*/ null)); in testGetAccountInfo_AccountName_NoDisplayLabel() 120 assertEquals(getContext().getString(R.string.from_account_format, ACCOUNT_NAME), in testGetAccountInfo_AccountName_NoDisplayLabel()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | GroupListLoader.java | 32 Groups.ACCOUNT_NAME, 40 public final static int ACCOUNT_NAME = 0; field in GroupListLoader 51 + Groups.ACCOUNT_NAME + " NOT NULL AND " + Groups.AUTO_ADD + "=0 AND " + in GroupListLoader() 53 Groups.ACCOUNT_TYPE + ", " + Groups.ACCOUNT_NAME + ", " + Groups.DATA_SET + ", " + in GroupListLoader()
|
D | GroupMetaDataLoader.java | 30 Groups.ACCOUNT_NAME, 41 public final static int ACCOUNT_NAME = 0; field in GroupMetaDataLoader 53 + Groups.ACCOUNT_NAME + " NOT NULL", null, null); in GroupMetaDataLoader()
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectCalendarsSyncFragment.java | 57 private static final String SELECTION = Calendars.ACCOUNT_NAME + "=? AND " 69 Calendars.ACCOUNT_NAME, 71 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY, }; 93 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in SelectCalendarsSyncFragment() 149 if (bundle != null && bundle.containsKey(Calendars.ACCOUNT_NAME) in onAttach() 151 mAccount = new Account(bundle.getString(Calendars.ACCOUNT_NAME), in onAttach()
|
D | SelectVisibleCalendarsFragment.java | 52 Calendars.ACCOUNT_NAME, 59 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY, 152 SELECTION_ARGS, Calendars.ACCOUNT_NAME); in onResume() 175 SELECTION_ARGS, Calendars.ACCOUNT_NAME); in eventsChanged()
|
D | SelectSyncedCalendarsMultiAccountActivity.java | 46 Calendars.ACCOUNT_NAME, 47 Calendars.ACCOUNT_TYPE + " || " + Calendars.ACCOUNT_NAME + " AS " + 101 Calendars.ACCOUNT_NAME /*sort order*/); in onResume()
|
D | SelectSyncedCalendarsMultiAccountAdapter.java | 62 private static final String ACCOUNT_SELECTION = Calendars.ACCOUNT_NAME + "=?" 116 Calendars.ACCOUNT_NAME, 122 "(" + Calendars.ACCOUNT_NAME + "=" + Calendars.OWNER_ACCOUNT + ") AS " + IS_PRIMARY, 389 int accountColumn = cursor.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); in bindGroupView() 402 int accountColumn = groupCursor.getColumnIndexOrThrow(Calendars.ACCOUNT_NAME); in getChildrenCursor()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | SelectAccountActivity.java | 35 public static final String ACCOUNT_NAME = "account_name"; field in SelectAccountActivity 69 intent.putExtra(ACCOUNT_NAME, account.name); in onCreate() 88 intent.putExtra(ACCOUNT_NAME, account.name); in onCreate()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | GlobalDismissManager.java | 186 Calendars.ACCOUNT_NAME, 193 public static final String ACCOUNT_NAME = KEY_PREFIX + "account_name"; field in GlobalDismissManager 314 data.putString(ACCOUNT_NAME, accountName); in syncSenderDismissCache() 388 .appendQueryParameter(Calendars.ACCOUNT_NAME, account) in asSync() 458 int account_name_idx = calendarCursor.getColumnIndex(Calendars.ACCOUNT_NAME); in lookupCalendarToAccountMap() 532 if (intent.hasExtra(SYNC_ID) && intent.hasExtra(ACCOUNT_NAME) in onReceive() 536 intent.getStringExtra(ACCOUNT_NAME), in onReceive()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | ContactLoader.java | 135 RawContacts.ACCOUNT_NAME, 217 public static final int ACCOUNT_NAME = 15; field in ContactLoader.ContactQuery 283 Directory.ACCOUNT_NAME, 291 public static final int ACCOUNT_NAME = 4; field in ContactLoader.DirectoryQuery 297 Groups.ACCOUNT_NAME, 306 public static final int ACCOUNT_NAME = 0; field in ContactLoader.GroupQuery 420 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null); in loadEncodedContactEntity() 683 cursorColumnToContentValues(cursor, cv, ContactQuery.ACCOUNT_NAME); in loadRawContactValues() 777 final String accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in loadDirectoryMetaData() 847 "(" + Groups.ACCOUNT_NAME + "=? AND " + Groups.ACCOUNT_TYPE + "=?"); in loadGroupMetaData() [all …]
|
D | RawContact.java | 207 return getValues().getAsString(RawContacts.ACCOUNT_NAME); in getAccountName() 276 values.putNull(RawContacts.ACCOUNT_NAME); in setAccount() 284 values.put(RawContacts.ACCOUNT_NAME, accountName); in setAccount()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactDirectoryManager.java | 82 Directory.ACCOUNT_NAME, 91 public static final int ACCOUNT_NAME = 0; field in ContactDirectoryManager.DirectoryQuery 251 + Directory.ACCOUNT_NAME + "=? AND " in scanAllPackages() 425 info.accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in queryDirectoriesForAuthority() 494 values.put(Directory.ACCOUNT_NAME, info.accountName); in updateDirectories() 509 + Directory.ACCOUNT_NAME + "=? AND " + Directory.ACCOUNT_TYPE + "=?", in updateDirectories()
|
D | ContactMetadataProvider.java | 76 .add(MetadataSync.ACCOUNT_NAME) 85 .add(MetadataSyncState.ACCOUNT_NAME) 407 String accountName = values.getAsString(MetadataSync.ACCOUNT_NAME); in replaceAccountInfoByAccountId() 428 values.remove(MetadataSync.ACCOUNT_NAME); in replaceAccountInfoByAccountId()
|
D | ContactsProvider2.java | 526 public static final int ACCOUNT_NAME = 2; field 546 int ACCOUNT_NAME = 3; field 671 RawContacts.ACCOUNT_NAME, 731 .add(RawContacts.ACCOUNT_NAME) 1009 .add(Groups.ACCOUNT_NAME) 1067 .add(Settings.ACCOUNT_NAME) 1135 .add(StreamItems.ACCOUNT_NAME) 1178 .add(Directory.ACCOUNT_NAME) 2779 String accountName = getQueryParameter(uri, RawContacts.ACCOUNT_NAME); in resolveAccount() 2783 String valueAccountName = values.getAsString(RawContacts.ACCOUNT_NAME); in resolveAccount() [all …]
|
D | LegacyApiSupport.java | 925 mValues.put(Groups.ACCOUNT_NAME, mAccount.name); in insertGroup() 1270 selection = Settings.ACCOUNT_NAME + "=?" in updateSettings() 1275 selection = Settings.ACCOUNT_NAME + " IS NULL" in updateSettings() 1282 mValues.put(Settings.ACCOUNT_NAME, accountName); in updateSettings() 1309 + ContactsContract.Settings.ACCOUNT_NAME + "," 1313 " ON (" + ContactsContract.Settings.ACCOUNT_NAME + "=" 1324 int ACCOUNT_NAME = 0; field 1337 String accountName = cursor.getString(SettingsMatchQuery.ACCOUNT_NAME); in copySettingsToLegacySettings() 1369 mValues.put(RawContacts.ACCOUNT_NAME, mAccount.name); in parsePeopleValues() 1935 sb.append(RawContacts.ACCOUNT_NAME + "="); in appendRawContactsAccount() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/ |
D | TestUtil.java | 50 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name) in maybeAddAccountQueryParameters() 61 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.getAccountName()) in maybeAddAccountWithDataSetQueryParameters()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/ |
D | TestSyncAdapter.java | 56 values.put(RawContacts.ACCOUNT_NAME, account.name); in onPerformSync() 59 RawContacts.ACCOUNT_NAME + " IS NULL AND " + RawContacts.ACCOUNT_TYPE + " IS NULL", in onPerformSync()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 96 private static final String ACCOUNT_SELECTION_PREFIX = Calendars.ACCOUNT_NAME + "=? AND " 120 Colors.ACCOUNT_NAME, 132 private static final String COLOR_FULL_SELECTION = Colors.ACCOUNT_NAME + "=? AND " 136 private static final String GENERIC_ACCOUNT_NAME = Calendars.ACCOUNT_NAME; 204 private static final String SQL_WHERE_CALENDAR_COLOR = Calendars.ACCOUNT_NAME + "=? AND " 208 + Tables.CALENDARS + " WHERE " + Events.ACCOUNT_NAME + "=? AND " + Events.ACCOUNT_TYPE 245 " WHERE " + Calendars.ACCOUNT_NAME + "=? AND " + 249 + Calendars.ACCOUNT_NAME + "=? AND " + Calendars.ACCOUNT_TYPE + "=?"; 374 CalendarContract.EventsEntity.ACCOUNT_NAME, 870 selection = appendAccountToSelection(uri, selection, Calendars.ACCOUNT_NAME, in queryInternal() [all …]
|
D | CalendarDatabaseHelper.java | 206 + Colors.ACCOUNT_NAME + "=" + "new." + Calendars.ACCOUNT_NAME + " AND " 220 + Colors.ACCOUNT_NAME + "=" + "(SELECT " + Calendars.ACCOUNT_NAME + " FROM " 370 + SyncStateContract.Columns.ACCOUNT_NAME + "," in upgradeSyncState() 751 CalendarContract.Colors.ACCOUNT_NAME + " TEXT NOT NULL," + in createColorsTable() 768 Calendars.ACCOUNT_NAME + " TEXT," + in createCalendarsTable() 1564 + " WHERE " + Colors.ACCOUNT_NAME + "=" + "new." + Calendars.ACCOUNT_NAME + " AND " in upgradeToVersion400() 1577 + Colors.ACCOUNT_NAME + "=" + "(SELECT " + Calendars.ACCOUNT_NAME + " FROM " in upgradeToVersion400() 3221 + Tables.CALENDARS + "." + Calendars.ACCOUNT_NAME in createEventsView() 3222 + " AS " + CalendarContract.Events.ACCOUNT_NAME + "," in createEventsView()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | GoogleSource.java | 164 final String accountName = stateValues.getAsString(RawContacts.ACCOUNT_NAME); in attemptMyContactsMembership() 186 Groups.ACCOUNT_NAME + " =? AND " + Groups.ACCOUNT_TYPE + " =?", in attemptMyContactsMembership() 217 newGroup.put(Groups.ACCOUNT_NAME, accountName); in attemptMyContactsMembership()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarColorPickerDialog.java | 49 Calendars.ACCOUNT_NAME, 63 static final String COLORS_WHERE = Colors.ACCOUNT_NAME + "=? AND " + Colors.ACCOUNT_TYPE +
|