Home
last modified time | relevance | path

Searched refs:accountName (Results 1 – 25 of 68) sorted by relevance

123

/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilter.java56 public final String accountName; field in ContactListFilter
61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, in ContactListFilter() argument
65 this.accountName = accountName; in ContactListFilter()
74 public static ContactListFilter createAccountFilter(String accountType, String accountName, in createAccountFilter() argument
77 accountName, dataSet, icon); in createAccountFilter()
104 + " " + accountName; in toString()
111 int res = accountName.compareTo(another.accountName); in compareTo()
129 code = code * 31 + accountName.hashCode(); in hashCode()
149 || !TextUtils.equals(accountName, otherFilter.accountName) in equals()
169 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName) in storeToPreferences()
[all …]
DCustomContactListFilterActivity.java255 public static GroupDelta fromSettings(ContentResolver resolver, String accountName, in fromSettings() argument
258 .appendQueryParameter(Settings.ACCOUNT_NAME, accountName) in fromSettings()
269 values.put(Settings.ACCOUNT_NAME, accountName); in fromSettings()
378 String accountName = this.getAsString(Settings.ACCOUNT_NAME); in buildDiff() local
386 selectionArgs = new String[] {accountName, accountType}; in buildDiff()
389 selectionArgs = new String[] {accountName, accountType, dataSet}; in buildDiff()
467 public AccountDisplay(ContentResolver resolver, String accountName, String accountType, in AccountDisplay() argument
469 mName = accountName; in AccountDisplay()
/packages/apps/Exchange/src/com/android/exchange/provider/
DExchangeDirectoryProvider.java140 GalContactRow(GalProjection projection, long contactId, String accountName, in GalContactRow() argument
156 put(RawContacts.ACCOUNT_NAME, accountName); in GalContactRow()
175 long contactId, String accountName, GalDisplayNameFields displayNameFields, in addEmailAddress() argument
179 galProjection, contactId, accountName, displayNameFields); in addEmailAddress()
188 … String accountName, GalDisplayNameFields displayNameFields, int type, String number) { in addPhoneRow() argument
191 projection, contactId, accountName, displayNameFields); in addPhoneRow()
200 long contactId, String accountName, GalDisplayNameFields displayNameFields, in addNameRow() argument
203 galProjection, contactId, accountName, displayNameFields); in addNameRow()
217 /*package*/ long getAccountIdByName(Context context, String accountName) { in getAccountIdByName() argument
218 Long accountId = mAccountIdMap.get(accountName); in getAccountIdByName()
[all …]
/packages/apps/Calendar/src/com/android/calendar/event/
DEventColorCache.java46 public void insertColor(String accountName, String accountType, int displayColor, in insertColor() argument
48 mColorKeyMap.put(createKey(accountName, accountType, displayColor), colorKey); in insertColor()
49 String key = createKey(accountName, accountType); in insertColor()
61 public int[] getColorArray(String accountName, String accountType) { in getColorArray() argument
62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType)); in getColorArray()
76 public int getColorKey(String accountName, String accountType, int displayColor) { in getColorKey() argument
77 return mColorKeyMap.get(createKey(accountName, accountType, displayColor)); in getColorKey()
96 private String createKey(String accountName, String accountType) { in createKey() argument
97 return new StringBuilder().append(accountName) in createKey()
103 private String createKey(String accountName, String accountType, int displayColor) { in createKey() argument
[all …]
/packages/apps/Email/src/com/android/email/
DEmailNotificationController.java460 final String accountName = account.getDisplayName(); in showPasswordExpiringNotificationSynchronous() local
462 mContext.getString(R.string.password_expire_warning_ticker_fmt, accountName); in showPasswordExpiringNotificationSynchronous()
464 showNotification(accountId, ticker, title, accountName, intent, in showPasswordExpiringNotificationSynchronous()
481 final String accountName = account.getDisplayName(); in showPasswordExpiredNotificationSynchronous() local
484 showNotification(accountId, ticker, title, accountName, intent, in showPasswordExpiredNotificationSynchronous()
504 String accountName = account.getDisplayName(); in showSecurityNeededNotification() local
506 mContext.getString(R.string.security_needed_ticker_fmt, accountName); in showSecurityNeededNotification()
508 showNotification(account.mId, ticker, title, accountName, intent, in showSecurityNeededNotification()
520 final String accountName = account.getDisplayName(); in showSecurityChangedNotification() local
522 mContext.getString(R.string.security_changed_ticker_fmt, accountName); in showSecurityChangedNotification()
[all …]
/packages/apps/Browser/tests/src/com/android/browser/tests/
DBP2ProviderTests.java67 private void doTestIsValidParent(String accountName, String accountType) { in doTestIsValidParent() argument
72 values.put(BrowserContract.Bookmarks.ACCOUNT_NAME, accountName); in doTestIsValidParent()
94 assertEquals(accountName, insertedAccountName); in doTestIsValidParent()
112 assertEquals(accountName, insertedAccountName); in doTestIsValidParent()
117 accountName = accountName + "@something.else"; in doTestIsValidParent()
119 values.put(BrowserContract.Bookmarks.ACCOUNT_NAME, accountName); in doTestIsValidParent()
132 assertEquals(accountName, insertedAccountName); in doTestIsValidParent()
/packages/apps/Browser/src/com/android/browser/provider/
DBrowserProvider2.java860 String accountName = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_NAME); in getSelectionWithAccounts() local
862 if (accountType != null && accountName != null) { in getSelectionWithAccounts()
863 if (!isNullAccount(accountType) && !isNullAccount(accountName)) { in getSelectionWithAccounts()
867 new String[] { accountType, accountName }); in getSelectionWithAccounts()
947 String accountName = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_NAME); in query() local
948 if (!isNullAccount(accountType) && !isNullAccount(accountName)) { in query()
985 args = new String[] {accountType, accountName, in query()
986 accountType, accountName}; in query()
1003 accountType, accountName, ChromeSyncColumns.FOLDER_NAME_OTHER_BOOKMARKS, in query()
1019 String accountName = uri.getQueryParameter(Bookmarks.PARAM_ACCOUNT_NAME); in query() local
[all …]
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1774 String accountName = null; in handleInsertException() local
1779 accountName = account.name; in handleInsertException()
1783 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException()
2021 String accountName = getOwner(calendarId); in handleInsertException() local
2023 if (accountName != null) { in handleInsertException()
2030 " name=" + accountName + " to " + in handleInsertException()
2035 new String[] { String.valueOf(newEventId), accountName }); in handleInsertException()
2046 new String[] { String.valueOf(newEventId), accountName }, in handleInsertException()
2169 String accountName = null; in insertInTransaction() local
2172 accountName = account.name; in insertInTransaction()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java402 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null); in loadEncodedContactEntity() local
404 if (accountName != null) { in loadEncodedContactEntity()
406 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity()
756 final String accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in loadDirectoryMetaData() local
771 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData()
783 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() argument
784 mAccountName = accountName; in AccountKey()
815 final String accountName = rawContact.getAccountName(); in loadGroupMetaData() local
818 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData()
819 if (accountName != null && accountType != null && in loadGroupMetaData()
[all …]
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java57 private GlobalDismissId(String accountName, String syncId, long startTime) { in GlobalDismissId() argument
59 if (accountName == null) { in GlobalDismissId()
64 mAccountName = accountName; in GlobalDismissId()
108 public LocalDismissId(String accountType, String accountName, long eventId, in LocalDismissId() argument
112 } else if (accountName == null) { in LocalDismissId()
117 mAccountName = accountName; in LocalDismissId()
311 String accountName = dismissId.mAccountName; in syncSenderDismissCache() local
314 data.putString(ACCOUNT_NAME, accountName); in syncSenderDismissCache()
316 cnb.send(accountName, syncId + ":" + startTime, data); in syncSenderDismissCache()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DCalendarColorCache.java84 private void insert(String accountName, String accountType) { in insert() argument
85 mCache.add(generateKey(accountName, accountType)); in insert()
91 public boolean hasColors(String accountName, String accountType) { in hasColors() argument
92 return mCache.contains(generateKey(accountName, accountType)); in hasColors()
105 private String generateKey(String accountName, String accountType) { in generateKey() argument
107 return mStringBuffer.append(accountName).append(SEPARATOR).append(accountType).toString(); in generateKey()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactEditorView.java193 String accountName = state.getAccountName(); in setState() local
194 if (TextUtils.isEmpty(accountName)) { in setState()
201 mAccountHeaderNameTextView.setText(accountName); in setState()
204 String accountName = state.getAccountName(); in setState() local
209 if (!TextUtils.isEmpty(accountName)) { in setState()
212 mContext.getString(R.string.from_account_format, accountName)); in setState()
366 String accountName = mState.getAccountName(); in getDefaultGroupId() local
373 if (name.equals(accountName) && type.equals(accountType) in getDefaultGroupId()
/packages/apps/Email/provider_src/com/android/email/activity/setup/
DAccountSecurity.java514 public static SecurityNeededDialog newInstance(String accountName) { in newInstance() argument
517 b.putString(BUNDLE_KEY_ACCOUNT_NAME, accountName); in newInstance()
524 final String accountName = getArguments().getString(BUNDLE_KEY_ACCOUNT_NAME); in onCreateDialog() local
531 b.setMessage(res.getString(R.string.account_security_dialog_content_fmt, accountName)); in onCreateDialog()
580 public static PasswordExpirationDialog newInstance(String accountName, boolean expired) { in newInstance() argument
583 b.putString(BUNDLE_KEY_ACCOUNT_NAME, accountName); in newInstance()
597 final String accountName = getArguments().getString(BUNDLE_KEY_ACCOUNT_NAME); in onCreateDialog() local
611 .setMessage(res.getString(contentId, accountName)) in onCreateDialog()
/packages/apps/Browser/src/com/android/browser/
DAddBookmarkPage.java153 account.accountType, account.accountName); in getUriForFolder()
408 setAccount(info.accountName, info.accountType);
419 && TextUtils.equals(info.lastUsedAccountName, info.accountName)
442 void setAccount(String accountName, String accountType) { in setAccount() argument
445 if (TextUtils.equals(account.accountName, accountName) in setAccount()
1030 String accountName, accountType; field in AddBookmarkPage.BookmarkAccount
1034 accountName = cursor.getString( in BookmarkAccount()
1040 mLabel = accountName; in BookmarkAccount()
1057 String accountName; field in AddBookmarkPage.EditBookmarkInfo
1109 info.accountName = c.getString(1); in loadInBackground()
DBookmarksLoader.java54 public BookmarksLoader(Context context, String accountType, String accountName) { in BookmarksLoader() argument
55 super(context, addAccount(Bookmarks.CONTENT_URI_DEFAULT_FOLDER, accountType, accountName), in BookmarksLoader()
58 mAccountName = accountName; in BookmarksLoader()
66 static Uri addAccount(Uri uri, String accountType, String accountName) { in addAccount() argument
68 appendQueryParameter(Bookmarks.PARAM_ACCOUNT_NAME, accountName).build(); in addAccount()
DBrowserBookmarksPage.java107 String accountName = args.getString(ACCOUNT_NAME); in onCreateLoader() local
109 accountType, accountName); in onCreateLoader()
122 String accountName = cursor.getString(0); in onLoadFinished() local
125 args.putString(ACCOUNT_NAME, accountName); in onLoadFinished()
132 expand = mState.getBoolean(accountName != null ? accountName in onLoadFinished()
135 mGrid.addAccount(accountName, adapter, expand); in onLoadFinished()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DUriUtils.java111 public static Uri getAccountImageUri(String accountName) { in getAccountImageUri() argument
112 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
121 public static Uri getAccountImageUri(String accountName, Uri changeNotifyUri) { in getAccountImageUri() argument
122 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
139 String accountName = uri.getAuthority() + uri.getPath(); in getAccountName() local
140 return accountName; in getAccountName()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupBrowseListAdapter.java119 String accountName = mCursor.getString(GroupListLoader.ACCOUNT_NAME); in getItem() local
136 if (accountName.equals(previousGroupAccountName) && in getItem()
143 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getItem()
201 viewCache.accountName.setText(entry.getAccountName()); in bindHeaderView()
214 public final TextView accountName; field in GroupBrowseListAdapter.GroupListItemViewCache
224 accountName = (TextView) view.findViewById(R.id.account_name); in GroupListItemViewCache()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DGoogleSource.java164 final String accountName = stateValues.getAsString(RawContacts.ACCOUNT_NAME); in attemptMyContactsMembership() local
166 attemptMyContactsMembership(state, accountName, accountType, context, true); in attemptMyContactsMembership()
180 final String accountName, final String accountType, Context context, in attemptMyContactsMembership() argument
187 new String[] {accountName, accountType}, null); in attemptMyContactsMembership()
217 newGroup.put(Groups.ACCOUNT_NAME, accountName); in attemptMyContactsMembership()
244 state, accountName, accountType, context, false); in attemptMyContactsMembership()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountsBrowseInfo.java44 AccountsBrowseInfo(Context context, String accountName) { in AccountsBrowseInfo() argument
46 mAccountName = accountName; in AccountsBrowseInfo()
71 private void updateMenuItems(String accountName) { in updateMenuItems() argument
76 .putExtra(AccountSettingsActivity.EXTRA_ACCOUNT, accountName); in updateMenuItems()
84 AccountSettingsActivity.EXTRA_ACCOUNT, accountName); in updateMenuItems()
/packages/apps/Exchange/src/com/android/exchange/service/
DAbstractSyncAdapterService.java110 public static Intent createAccountSettingsIntent(long accountId, String accountName) { in createAccountSettingsIntent() argument
114 IntentUtilities.setAccountName(builder, accountName); in createAccountSettingsIntent()
118 protected void showAuthNotification(long accountId, String accountName) { in showAuthNotification() argument
122 createAccountSettingsIntent(accountId, accountName), in showAuthNotification()
128 R.string.auth_error_notification_text, accountName)) in showAuthNotification()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java59 public static int getAccountHashCode(String accountTypeWithDataSet, String accountName) { in getAccountHashCode() argument
60 if (accountTypeWithDataSet == null || accountName == null) { in getAccountHashCode()
64 return (accountTypeWithDataSet.hashCode() ^ accountName.hashCode()) & 0xFFF; in getAccountHashCode()
68 String accountName, long rawContactId, String sourceId, in appendToLookupKey() argument
78 lookupKey.append(getAccountHashCode(accountTypeWithDataSet, accountName)); in appendToLookupKey()
DAccountWithDataSet.java34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { in AccountWithDataSet() argument
35 mAccountName = emptyToNull(accountName); in AccountWithDataSet()
44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) { in get() argument
45 return new AccountWithDataSet(accountName, accountType, dataSet); in get()
DContactsProvider2.java1304 String accountName; field in ContactsProvider2.DirectoryInfo
2606 String accountName = getQueryParameter(uri, RawContacts.ACCOUNT_NAME); in resolveAccount() local
2608 final boolean partialUri = TextUtils.isEmpty(accountName) ^ TextUtils.isEmpty(accountType); in resolveAccount()
2623 final boolean validUri = !TextUtils.isEmpty(accountName); in resolveAccount()
2628 final boolean accountMatch = TextUtils.equals(accountName, valueAccountName) in resolveAccount()
2636 values.put(RawContacts.ACCOUNT_NAME, accountName); in resolveAccount()
2639 accountName = valueAccountName; in resolveAccount()
2647 || !mAccount.name.equals(accountName) in resolveAccount()
2649 mAccount = new Account(accountName, accountType); in resolveAccount()
3132 String accountName = values.getAsString(Settings.ACCOUNT_NAME); in insertSettings() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/interactions/
DGroupCreationDialogFragment.java45 FragmentManager fragmentManager, String accountType, String accountName, in show() argument
50 args.putString(ARG_ACCOUNT_NAME, accountName); in show()
83 String accountName = arguments.getString(ARG_ACCOUNT_NAME); in onCompleted() local
95 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel, in onCompleted()

123