Home
last modified time | relevance | path

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

123

/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/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DInMemoryPhoneBook.java170 public Contact lookupContactByKey(String lookupKey, @Nullable String accountName) { in lookupContactByKey() argument
178 if (mLookupKeyContactMap.containsKey(accountName)) { in lookupContactByKey()
179 return mLookupKeyContactMap.get(accountName).get(lookupKey); in lookupContactByKey()
219 String accountName = cursor.getString(accountNameColumn); in onCursorLoaded() local
222 if (!contactMap.containsKey(accountName)) { in onCursorLoaded()
223 contactMap.put(accountName, new HashMap<>()); in onCursorLoaded()
226 Map<String, Contact> subMap = contactMap.get(accountName); in onCursorLoaded()
DPhoneNumber.java95 @Nullable String label, boolean isPrimary, long id, String accountName, in newInstance() argument
99 return new PhoneNumber(i18nPhoneNumber, type, label, isPrimary, id, accountName, in newInstance()
104 boolean isPrimary, long id, String accountName, String accountType, int dataVersion) { in PhoneNumber() argument
110 mAccountName = TextUtils.emptyIfNull(accountName); in PhoneNumber()
259 String accountName = source.readString();
263 isPrimary, id, accountName, accountType, dataVersion);
/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/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.java111 public RawContactInfo(String backupId, String accountType, String accountName, in RawContactInfo() argument
115 this.mAccountName = accountName; in RawContactInfo()
265 final String accountName = uniqueContactJSON.getString(ACCOUNT_NAME); in parseUniqueContact() local
285 || TextUtils.isEmpty(accountName)) { in parseUniqueContact()
290 backupId, accountType, accountName, dataSet); in parseUniqueContact()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DUriUtils.java127 public static Uri getAccountImageUri(String accountName) { in getAccountImageUri() argument
128 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
138 public static Uri getAccountImageUri(String accountName, Uri changeNotifyUri) { in getAccountImageUri() argument
139 Uri uri = Uri.parse(SCHEME_ACCOUNT_IMAGE + SCHEME_DELIMITER + accountName); in getAccountImageUri()
160 String accountName = uri.getAuthority() + uri.getPath(); in getAccountName() local
161 return accountName; in getAccountName()
/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/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.java1923 String accountName = null; in handleInsertException() local
1928 accountName = account.name; in handleInsertException()
1932 verifyColorExists(accountName, accountType, color_index, Colors.TYPE_EVENT); in handleInsertException()
2170 String accountName = getOwner(calendarId); in handleInsertException() local
2172 if (accountName != null) { in handleInsertException()
2179 " name=" + accountName + " to " + in handleInsertException()
2184 new String[] { String.valueOf(newEventId), accountName }); in handleInsertException()
2195 new String[] { String.valueOf(newEventId), accountName }, in handleInsertException()
2386 String accountName = null; in insertInTransactionInner() local
2389 accountName = account.name; in insertInTransactionInner()
[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/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/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/services/Car/tests/BugReportApp/libs/
Dgoogle-api-client-android-1.30.2.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceControllerTest.java170 private void addAccountAndDescription(int profileId, String accountName) { in addAccountAndDescription() argument
171 String type = accountName + "_type"; in addAccountAndDescription()
172 getShadowAccountManager().addAccountAsUser(profileId, new Account(accountName, type)); in addAccountAndDescription()

123