Home
last modified time | relevance | path

Searched refs:accountName (Results 1 – 25 of 73) 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 …]
/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/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/
DEditorUiUtils.java121 String accountName, AccountType accountType) { in getLocalAccountInfo() argument
122 if (TextUtils.isEmpty(accountName)) { in getLocalAccountInfo()
128 accountName, in getLocalAccountInfo()
137 public static Pair<String,String> getAccountInfo(Context context, String accountName, in getAccountInfo() argument
144 if (TextUtils.isEmpty(accountName)) { in getAccountInfo()
151 context.getString(R.string.from_account_format, accountName); in getAccountInfo()
168 public static String getAccountInfoContentDescription(CharSequence accountName, in getAccountInfoContentDescription() argument
174 if (!TextUtils.isEmpty(accountName)) { in getAccountInfoContentDescription()
175 builder.append(accountName); in getAccountInfoContentDescription()
DCompactRawContactsEditorView.java165 final String accountName = rawContactDelta.getAccountName(); in getView() local
166 if (TextUtils.isEmpty(accountName)) { in getView()
170 text2.setText(accountName); in getView()
559 final String accountName = kindSectionData.getRawContactDelta().getAccountName(); in getPhotos() local
560 photo.accountName = accountName == null ? "" : accountName; in getPhotos()
818 final String accountName = TextUtils.isEmpty(accountInfo.first) in addAccountHeader() local
821 mAccountHeaderName.setText(accountName); in addAccountHeader()
841 EditorUiUtils.getAccountInfoContentDescription(accountName, selectorTitle)); in addAccountHeader()
/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/providers/ContactsProvider/src/com/android/providers/contacts/
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()
DContactLookupKey.java57 public static int getAccountHashCode(String accountTypeWithDataSet, String accountName) { in getAccountHashCode() argument
58 if (accountTypeWithDataSet == null || accountName == null) { in getAccountHashCode()
62 return (accountTypeWithDataSet.hashCode() ^ accountName.hashCode()) & 0xFFF; in getAccountHashCode()
66 String accountName, long rawContactId, String sourceId, in appendToLookupKey() argument
76 lookupKey.append(getAccountHashCode(accountTypeWithDataSet, accountName)); in appendToLookupKey()
DMetadataEntryParser.java100 public RawContactInfo(String backupId, String accountType, String accountName, in RawContactInfo() argument
104 this.mAccountName = accountName; in RawContactInfo()
245 final String accountName = uniqueContactJSON.getString(ACCOUNT_NAME); in parseUniqueContact() local
265 || TextUtils.isEmpty(accountName)) { in parseUniqueContact()
270 backupId, accountType, accountName, dataSet); in parseUniqueContact()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DGroupCreationDialogFragment.java46 FragmentManager fragmentManager, String accountType, String accountName, in show() argument
51 args.putString(ARG_ACCOUNT_NAME, accountName); in show()
84 String accountName = arguments.getString(ARG_ACCOUNT_NAME); in onCompleted() local
96 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel, in onCompleted()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DPersonalizationHelper.java45 final Context context, final Locale locale, @Nullable final String accountName) { in getUserHistoryDictionary() argument
47 if (accountName != null) { in getUserHistoryDictionary()
48 lookupStr += "." + accountName; in getUserHistoryDictionary()
64 context, locale, accountName); in getUserHistoryDictionary()
/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()
DGroupListItem.java31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, in GroupListItem() argument
33 mAccountName = accountName; in GroupListItem()
/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/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/
DAccountSyncActivity.java37 String accountName = getIntent().getStringExtra(EXTRA_ACCOUNT); in createSettingsFragment() local
39 if (!TextUtils.isEmpty(accountName)) { in createSettingsFragment()
42 if (candidateAccount.name.equals(accountName)) { in createSettingsFragment()
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
DAccountsChangedReceiverTests.java100 private void updateAccountName(String accountName) { in updateAccountName() argument
101 if (accountName == null) { in updateAccountName()
104 mPrefs.edit().putString(LocalSettingsConstants.PREF_ACCOUNT_NAME, accountName).apply(); in updateAccountName()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java420 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null); in loadEncodedContactEntity() local
422 if (accountName != null) { in loadEncodedContactEntity()
424 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity()
777 final String accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in loadDirectoryMetaData() local
792 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData()
804 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() argument
805 mAccountName = accountName; in AccountKey()
836 final String accountName = rawContact.getAccountName(); in loadGroupMetaData() local
839 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData()
840 if (accountName != null && accountType != null && in loadGroupMetaData()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactMetadataProviderTest.java552 private long insertMetadata(String accountName, String accountType, String dataSet, in insertMetadata() argument
555 accountName, accountType, dataSet, backupId, data, deleted)); in insertMetadata()
558 private ContentValues getMetadataContentValues(String accountName, String accountType, in getMetadataContentValues() argument
561 values.put(MetadataSync.ACCOUNT_NAME, accountName); in getMetadataContentValues()
574 private long insertMetadataSyncState(String accountName, String accountType, in insertMetadataSyncState() argument
577 getSyncStateValues(accountName, accountType, dataSet, state))); in insertMetadataSyncState()
580 private ContentValues getSyncStateValues(String accountName, String accountType, in getSyncStateValues() argument
583 values.put(MetadataSyncState.ACCOUNT_NAME, accountName); in getSyncStateValues()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1762 String accountName = null; in handleInsertException() local
1767 accountName = account.name; in handleInsertException()
1771 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException()
2009 String accountName = getOwner(calendarId); in handleInsertException() local
2011 if (accountName != null) { in handleInsertException()
2018 " name=" + accountName + " to " + in handleInsertException()
2023 new String[] { String.valueOf(newEventId), accountName }); in handleInsertException()
2034 new String[] { String.valueOf(newEventId), accountName }, in handleInsertException()
2157 String accountName = null; in insertInTransaction() local
2160 accountName = account.name; in insertInTransaction()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DAccountImageChangeObserver.java126 String accountName = UriUtils.getAccountName(imageUri); in registerChangeUriIfPresent() local
129 if (accountName != null && context != null) { in registerChangeUriIfPresent()
133 if (account.name.equals(accountName)) { in registerChangeUriIfPresent()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DIntentUtilities.java66 public static void setAccountName(Uri.Builder b, String accountName) { in setAccountName() argument
67 if (accountName != null) { in setAccountName()
68 b.appendQueryParameter(ACCOUNT_NAME_PARAM, accountName); in setAccountName()
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DGroupMetaData.java31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, in GroupMetaData() argument
33 this.mAccountName = accountName; in GroupMetaData()
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DContactsPreferences.java225 private void requestMetadataSyncForAccount(String accountName) { in requestMetadataSyncForAccount() argument
227 if (!TextUtils.isEmpty(accountName) && accountName.equals(account.name)) { in requestMetadataSyncForAccount()
240 if (TextUtils.isEmpty(accountName)) { in requestMetadataSyncForAccount()

123