Home
last modified time | relevance | path

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

1234

/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java66 public final String accountName; field in ContactListFilter
71 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, in ContactListFilter() argument
75 this.accountName = accountName; in ContactListFilter()
84 public static ContactListFilter createAccountFilter(String accountType, String accountName, in createAccountFilter() argument
87 accountName, dataSet, icon); in createAccountFilter()
90 public static ContactListFilter createGroupMembersFilter(String accountType, String accountName, in createGroupMembersFilter() argument
93 accountName, dataSet, /* icon */ null); in createGroupMembersFilter()
167 + " " + accountName; in toString()
178 int res = accountName.compareTo(another.accountName); in compareTo()
197 if (accountName != null) { in hashCode()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java43 String accountName = source.readString();
46 return new ContactListFilter(filterType, accountType, accountName, dataSet, null);
68 public final String accountName; field in ContactListFilter
74 int filterType, String accountType, String accountName, String dataSet, Drawable icon) { in ContactListFilter() argument
77 this.accountName = accountName; in ContactListFilter()
87 String accountType, String accountName, String dataSet, Drawable icon) { in createAccountFilter() argument
89 ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, accountName, dataSet, icon); in createAccountFilter()
104 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName) in storeToPreferences()
133 String accountName = prefs.getString(KEY_ACCOUNT_NAME, null); in restoreFromPreferences() local
136 return new ContactListFilter(filterType, accountType, accountName, dataSet, null); in restoreFromPreferences()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DSharedPreferenceUtil.java144 private static String buildSharedPrefsName(String accountName) { in buildSharedPrefsName() argument
145 return accountName + "-" + PREFERENCE_KEY_ACCOUNT_SYNC_OFF_DISMISSES; in buildSharedPrefsName()
148 public static int getNumOfDismissesforAccountSyncOff(Context context, String accountName) { in getNumOfDismissesforAccountSyncOff() argument
149 return getSharedPreferences(context).getInt(buildSharedPrefsName(accountName), 0); in getNumOfDismissesforAccountSyncOff()
152 public static void resetNumOfDismissesForAccountSyncOff(Context context, String accountName) { in resetNumOfDismissesForAccountSyncOff() argument
154 buildSharedPrefsName(accountName), 0); in resetNumOfDismissesForAccountSyncOff()
157 .putInt(buildSharedPrefsName(accountName), 0).apply(); in resetNumOfDismissesForAccountSyncOff()
161 public static void incNumOfDismissesForAccountSyncOff(Context context, String accountName) { in incNumOfDismissesForAccountSyncOff() argument
163 buildSharedPrefsName(accountName), 0); in incNumOfDismissesForAccountSyncOff()
165 .putInt(buildSharedPrefsName(accountName), value + 1).apply(); in incNumOfDismissesForAccountSyncOff()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DAdbHelpers.java43 final String accountName = args.getString("name"); in addTestAccount() local
44 if (accountName == null) { in addTestAccount()
49 new AccountsTestHelper(context).addTestAccount(accountName); in addTestAccount()
54 final String accountName = args.getString("name"); in removeTestAccount() local
55 if (accountName == null) { in removeTestAccount()
60 final AccountWithDataSet account = new AccountWithDataSet(accountName, in removeTestAccount()
/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/Contacts/src/com/android/contacts/group/
DGroupMetaData.java48 public final String accountName; field in GroupMetaData
73 this.accountName = cursor.getString(GroupMetaDataLoader.ACCOUNT_NAME); in GroupMetaData()
90 accountName = source.readString(); in GroupMetaData()
104 dest.writeString(accountName); in writeToParcel()
118 && !TextUtils.isEmpty(accountName) in isValid()
131 .add("accountName", accountName) in toString()
DGroupUtil.java77 String accountName = cursor.getString(GroupListLoader.ACCOUNT_NAME); in getGroupListItem() local
96 if (TextUtils.equals(accountName, previousGroupAccountName) in getGroupListItem()
103 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getGroupListItem()
173 intent.putExtra(UiIntentActions.GROUP_ACCOUNT_NAME, groupMetaData.accountName); in createPickMemberIntent()
300 public final int accountName; field in GroupUtil.GroupsProjection
313 accountName = cursor.getColumnIndex(Groups.ACCOUNT_NAME); in GroupsProjection()
328 accountName = list.indexOf(Groups.ACCOUNT_NAME); in GroupsProjection()
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DPhoneNumber.java87 @Nullable String label, boolean isPrimary, long id, String accountName, in newInstance() argument
91 return new PhoneNumber(i18nPhoneNumber, type, label, isPrimary, id, accountName, in newInstance()
96 boolean isPrimary, long id, String accountName, String accountType, int dataVersion) { in PhoneNumber() argument
102 mAccountName = accountName; in PhoneNumber()
237 String accountName = source.readString();
241 isPrimary, id, accountName, accountType, dataVersion);
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java118 public static Uri getAccountImageUri(String accountName) { in getAccountImageUri() argument
119 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
129 public static Uri getAccountImageUri(String accountName, Uri changeNotifyUri) { in getAccountImageUri() argument
130 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
151 String accountName = uri.getAuthority() + uri.getPath(); in getAccountName() local
152 return accountName; in getAccountName()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
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()
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()
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/Dialer/java/com/android/contacts/common/model/
DContactLoader.java154 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null); in loadEncodedContactEntity() local
156 if (accountName != null) { in loadEncodedContactEntity()
161 accountName, in loadEncodedContactEntity()
569 final String accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in loadDirectoryMetaData() local
584 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData()
599 final String accountName = rawContact.getAccountName(); in loadGroupMetaData() local
602 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData()
603 if (accountName != null && accountType != null && !accountsSeen.contains(accountKey)) { in loadGroupMetaData()
609 selectionArgs.add(accountName); in loadGroupMetaData()
635 final String accountName = cursor.getString(GroupQuery.ACCOUNT_NAME); in loadGroupMetaData() local
[all …]
/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/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactMetadataProviderTest.java549 private long insertMetadata(String accountName, String accountType, String dataSet, in insertMetadata() argument
552 accountName, accountType, dataSet, backupId, data, deleted)); in insertMetadata()
555 private ContentValues getMetadataContentValues(String accountName, String accountType, in getMetadataContentValues() argument
558 values.put(MetadataSync.ACCOUNT_NAME, accountName); in getMetadataContentValues()
571 private long insertMetadataSyncState(String accountName, String accountType, in insertMetadataSyncState() argument
574 getSyncStateValues(accountName, accountType, dataSet, state))); in insertMetadataSyncState()
577 private ContentValues getSyncStateValues(String accountName, String accountType, in getSyncStateValues() argument
580 values.put(MetadataSyncState.ACCOUNT_NAME, accountName); in getSyncStateValues()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java1921 String accountName = null; in handleInsertException() local
1926 accountName = account.name; in handleInsertException()
1930 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException()
2168 String accountName = getOwner(calendarId); in handleInsertException() local
2170 if (accountName != null) { in handleInsertException()
2177 " name=" + accountName + " to " + in handleInsertException()
2182 new String[] { String.valueOf(newEventId), accountName }); in handleInsertException()
2193 new String[] { String.valueOf(newEventId), accountName }, in handleInsertException()
2384 String accountName = null; in insertInTransactionInner() local
2387 accountName = account.name; in insertInTransactionInner()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DContactLoader.java390 final String accountName = json.optString(RawContacts.ACCOUNT_NAME, null); in loadEncodedContactEntity() local
392 if (accountName != null) { in loadEncodedContactEntity()
394 contact.setDirectoryMetaData(directoryName, null, accountName, accountType, in loadEncodedContactEntity()
716 final String accountName = cursor.getString(DirectoryQuery.ACCOUNT_NAME); in loadDirectoryMetaData() local
731 displayName, directoryType, accountType, accountName, exportSupport); in loadDirectoryMetaData()
743 public AccountKey(String accountName, String accountType, String dataSet) { in AccountKey() argument
744 mAccountName = accountName; in AccountKey()
775 final String accountName = rawContact.getAccountName(); in loadGroupMetaData() local
778 final AccountKey accountKey = new AccountKey(accountName, accountType, dataSet); in loadGroupMetaData()
779 if (accountName != null && accountType != null && in loadGroupMetaData()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DPickRawContactDialogFragment.java91 holder.accountName = (TextView) view.findViewById(R.id.account_name); in getView()
118 new AccountWithDataSet(rawContact.accountName, in getView()
125 accountDisplayLabel = rawContact.accountName; in getView()
130 holder.accountName.setText(accountDisplayLabel); in getView()
146 TextView accountName; field in PickRawContactDialogFragment.RawContactAccountListAdapter.RawContactViewHolder
DContactEditorUtils.java153 final String accountName = resultData.getStringExtra(AccountManager.KEY_ACCOUNT_NAME); in getCreatedAccount() local
156 if (TextUtils.isEmpty(accountType) || TextUtils.isEmpty(accountName)) return null; in getCreatedAccount()
158 return new AccountWithDataSet(accountName, accountType, null); in getCreatedAccount()
DPickRawContactLoader.java117 rawContact.accountName = rawContactCursor.getString(ACCOUNT_NAME); in loadInBackground()
279 public String accountName; field in PickRawContactLoader.RawContact
290 accountName = in.readString(); in RawContact()
306 dest.writeString(accountName); in writeToParcel()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncActivity.java38 String accountName = getIntent().getStringExtra(EXTRA_ACCOUNT); in createSettingsFragment() local
40 if (!TextUtils.isEmpty(accountName)) { in createSettingsFragment()
43 if (candidateAccount.name.equals(accountName)) { in createSettingsFragment()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DTestUtil.java55 String accountName, String accountType, String dataSet) { in maybeAddAccountWithDataSetQueryParameters() argument
56 if (accountName == null && accountType == null) { in maybeAddAccountWithDataSetQueryParameters()
60 .appendQueryParameter(RawContacts.ACCOUNT_NAME, accountName) in maybeAddAccountWithDataSetQueryParameters()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/accounts/
DAccountsChangedReceiverTests.java118 private void updateAccountName(String accountName) { in updateAccountName() argument
119 if (accountName == null) { in updateAccountName()
122 mPrefs.edit().putString(LocalSettingsConstants.PREF_ACCOUNT_NAME, accountName).apply(); in updateAccountName()
/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()

1234