Home
last modified time | relevance | path

Searched refs:accountType (Results 1 – 25 of 152) sorted by relevance

1234567

/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountTypeProvider.java84 public List<AccountType> getAccountTypes(String accountType) { in getAccountTypes() argument
86 if (accountType == null) { in getAccountTypes()
87 AccountType type = mLocalAccountTypeFactory.getAccountType(accountType); in getAccountTypes()
95 List<AccountType> types = mCache.get(accountType); in getAccountTypes()
97 types = loadTypes(accountType); in getAccountTypes()
98 mCache.put(accountType, types); in getAccountTypes()
110 for (AccountType accountType : accountTypes) { in hasTypeWithDataset()
111 if (Objects.equal(accountType.dataSet, dataSet)) { in hasTypeWithDataset()
124 for (AccountType accountType : accountTypes) { in getType()
125 if (Objects.equal(accountType.dataSet, dataSet)) { in getType()
[all …]
DAccountTypeWithDataSet.java40 public final String accountType; field in AccountTypeWithDataSet
45 private AccountTypeWithDataSet(String accountType, String dataSet) { in AccountTypeWithDataSet() argument
46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType; in AccountTypeWithDataSet()
50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { in get() argument
51 return new AccountTypeWithDataSet(accountType, dataSet); in get()
64 args = new String[] {accountType}; in hasData()
67 args = new String[] {accountType, dataSet}; in hasData()
85 return Objects.equal(accountType, other.accountType) in equals()
91 return (accountType == null ? 0 : accountType.hashCode()) in hashCode()
97 return "[" + accountType + "/" + dataSet + "]"; in toString()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java120 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument
121 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType()
318 AuthenticatorDescription[] auths, String accountType) { in findAuthenticator() argument
320 if (accountType.equals(auth.type)) { in findAuthenticator()
435 final String type = sync.accountType; in loadAccountsInBackground()
442 AccountType accountType; in loadAccountsInBackground() local
444 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground()
446 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground()
448 accountType = new SamsungAccountType(mContext, auth.packageName, type); in loadAccountsInBackground()
452 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java65 public final String accountType; field in ContactListFilter
71 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, in ContactListFilter() argument
74 this.accountType = accountType; in ContactListFilter()
84 public static ContactListFilter createAccountFilter(String accountType, String accountName, in createAccountFilter() argument
86 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, in createAccountFilter()
90 public static ContactListFilter createGroupMembersFilter(String accountType, String accountName, in createGroupMembersFilter() argument
92 return new ContactListFilter(ContactListFilter.FILTER_TYPE_GROUP_MEMBERS, accountType, in createGroupMembersFilter()
166 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "") in toString()
183 res = accountType.compareTo(another.accountType); in compareTo()
194 if (accountType != null) { in hashCode()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java44 String accountType = source.readString();
46 return new ContactListFilter(filterType, accountType, accountName, dataSet, null);
67 public final String accountType; field in ContactListFilter
74 int filterType, String accountType, String accountName, String dataSet, Drawable icon) { in ContactListFilter() argument
76 this.accountType = accountType; 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()
105 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.accountType) in storeToPreferences()
134 String accountType = prefs.getString(KEY_ACCOUNT_TYPE, null); in restoreFromPreferences() local
136 return new ContactListFilter(filterType, accountType, accountName, dataSet, null); in restoreFromPreferences()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DChooseAccountPreferenceController.java89 for (String accountType : accountTypesFilter) { in initialize()
90 mAccountTypesFilter.add(accountType); in initialize()
137 final String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local
138 final CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated()
142 final List<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated()
154 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated()
159 new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated()
212 List<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType()
215 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
219 + sa.accountType); in getAuthoritiesForAccountType()
[all …]
DAccountPreferenceController.java484 final String accountType = accountTypes[i]; in getAccountTypePreferences() local
486 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences()
489 final CharSequence label = helper.getLabelForType(mContext, accountType); in getAccountTypePreferences()
493 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences()
494 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences()
497 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences()
498 final Drawable icon = helper.getDrawableForType(mContext, accountType); in getAccountTypePreferences()
520 accountType); in getAccountTypePreferences()
531 helper.preloadDrawableForType(mContext, accountType); in getAccountTypePreferences()
546 String accountType) { in accountTypeHasAnyRequestedAuthorities() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DChooseAccountPreferenceController.java89 for (String accountType : accountTypesFilter) { in initialize()
90 mAccountTypesFilter.add(accountType); in initialize()
137 final String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local
138 final CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated()
142 final List<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated()
154 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated()
159 new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated()
212 List<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType()
215 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType()
219 + sa.accountType); in getAuthoritiesForAccountType()
[all …]
DAccountPreferenceController.java484 final String accountType = accountTypes[i]; in getAccountTypePreferences() local
486 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences()
489 final CharSequence label = helper.getLabelForType(mContext, accountType); in getAccountTypePreferences()
493 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences()
494 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences()
497 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences()
498 final Drawable icon = helper.getDrawableForType(mContext, accountType); in getAccountTypePreferences()
520 accountType); in getAccountTypePreferences()
531 helper.preloadDrawableForType(mContext, accountType); in getAccountTypePreferences()
546 String accountType) { in accountTypeHasAnyRequestedAuthorities() argument
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DAccountTypeWithDataSet.java39 public final String accountType; field in AccountTypeWithDataSet
44 private AccountTypeWithDataSet(String accountType, String dataSet) { in AccountTypeWithDataSet() argument
45 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType; in AccountTypeWithDataSet()
49 public static AccountTypeWithDataSet get(String accountType, String dataSet) { in get() argument
50 return new AccountTypeWithDataSet(accountType, dataSet); in get()
63 args = new String[] {accountType}; in hasData()
66 args = new String[] {accountType, dataSet}; in hasData()
90 return Objects.equals(accountType, other.accountType) && Objects.equals(dataSet, other.dataSet); in equals()
95 return (accountType == null ? 0 : accountType.hashCode()) in hashCode()
101 return "[" + accountType + "/" + dataSet + "]"; in toString()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DChooseAccountPreferenceController.java169 String accountType = authenticatorDescription.type; in getAuthenticatorDescriptionPreferences() local
170 CharSequence label = mAuthenticatorHelper.getLabelForType(getContext(), accountType); in getAuthenticatorDescriptionPreferences()
171 Drawable icon = mAuthenticatorHelper.getDrawableForType(getContext(), accountType); in getAuthenticatorDescriptionPreferences()
174 mAuthenticatorHelper.getAuthoritiesForAccountType(accountType); in getAuthenticatorDescriptionPreferences()
184 || mAccountTypesFilter.contains(accountType)); in getAuthenticatorDescriptionPreferences()
188 || !mAccountTypesExclusionFilter.contains(accountType)); in getAuthenticatorDescriptionPreferences()
194 accountType, in getAuthenticatorDescriptionPreferences()
195 new AuthenticatorDescriptionPreference(getContext(), accountType, label, in getAuthenticatorDescriptionPreferences()
200 preferencesToRemove.remove(accountType); in getAuthenticatorDescriptionPreferences()
211 private boolean onAddAccount(String accountType) { in onAddAccount() argument
[all …]
DAccountListPreferenceController.java172 String accountType = accountTypes[i]; in getAccountPreferences() local
174 if (!accountTypeHasAnyRequestedAuthorities(accountType)) { in getAccountPreferences()
177 CharSequence label = mAuthenticatorHelper.getLabelForType(getContext(), accountType); in getAccountPreferences()
183 .getAccountsByTypeAsUser(accountType, mUserInfo.getUserHandle()); in getAccountPreferences()
184 Drawable icon = mAuthenticatorHelper.getDrawableForType(getContext(), accountType); in getAccountPreferences()
197 mAuthenticatorHelper.preloadDrawableForType(getContext(), accountType); in getAccountPreferences() local
228 private boolean accountTypeHasAnyRequestedAuthorities(String accountType) { in accountTypeHasAnyRequestedAuthorities() argument
234 mAuthenticatorHelper.getAuthoritiesForAccountType(accountType); in accountTypeHasAnyRequestedAuthorities()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DFakeDeviceAccountTypeFactory.java30 public int classifyAccount(String accountType) { in classifyAccount() argument
31 if (mDeviceAccountTypes.containsKey(accountType)) { in classifyAccount()
33 } else if (mSimAccountTypes.containsKey(accountType)) { in classifyAccount()
41 public AccountType getAccountType(String accountType) { in getAccountType() argument
42 final AccountType type = mDeviceAccountTypes.get(accountType); in getAccountType()
43 return type == null ? mSimAccountTypes.get(accountType) : type; in getAccountType()
55 mSimAccountTypes.put(type.accountType, type); in withSimTypes()
69 mDeviceAccountTypes.put(type.accountType, type); in withDeviceTypes()
DFakeAccountType.java54 accountType = type; in FakeAccountType()
77 public static FakeAccountType create(String accountType, String label) { in create() argument
79 result.accountType = accountType; in create()
84 public static FakeAccountType create(String accountType, String label, Drawable icon) { in create() argument
86 result.accountType = accountType; in create()
94 result.accountType = account.type; in create()
/packages/apps/UnifiedEmail/src/com/android/mail/photo/
DMailPhotoViewActivity.java53 final String accountType, final ConversationMessage msg, final int photoIndex) { in startMailPhotoViewActivity() argument
62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg)); in startMailPhotoViewActivity() local
71 final String accountType, final ConversationMessage msg, final String initialPhotoUri) { in startMailPhotoViewActivity() argument
73 buildMailPhotoViewActivityIntent(context, account, accountType, msg, in startMailPhotoViewActivity()
78 final Context context, final String account, final String accountType, in buildMailPhotoViewActivityIntent() argument
87 return wrapIntent(builder.build(), account, accountType, msg); in buildMailPhotoViewActivityIntent()
91 final Intent intent, final String account, final String accountType, in wrapIntent() argument
95 intent.putExtra(EXTRA_ACCOUNT_TYPE, accountType); in wrapIntent()
/packages/apps/Contacts/src/com/android/contacts/util/
DDeviceLocalAccountTypeFactory.java41 @DeviceLocalAccountTypeFactory.LocalAccountType int classifyAccount(String accountType); in classifyAccount() argument
43 AccountType getAccountType(String accountType); in getAccountType() argument
67 public int classifyAccount(String accountType) { in classifyAccount() argument
68 return accountType == null ? TYPE_DEVICE : TYPE_OTHER; in classifyAccount()
72 public AccountType getAccountType(String accountType) { in getAccountType() argument
73 if (accountType != null) { in getAccountType()
74 throw new IllegalArgumentException(accountType + " is not a device account type."); in getAccountType()
/packages/apps/Contacts/src/com/android/contacts/editor/
DRawContactDeltaComparator.java77 if (type1.accountType != null && type2.accountType == null) { in compare()
79 } else if (type1.accountType == null && type2.accountType != null) { in compare()
83 if (type1.accountType != null && type2.accountType != null) { in compare()
84 value = type1.accountType.compareTo(type2.accountType); in compare()
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java117 String accountType; field in SplitAggregateView.RawContactInfo
145 String thisAccount = accountType != null ? accountType : ""; in compareTo()
146 String thatAccount = another.accountType != null ? another.accountType : ""; in compareTo()
170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); in loadData()
254 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet); in getView() local
255 if (accountType != null) { in getView()
256 icon = accountType.getDisplayIcon(getContext()); in getView()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupMetaData.java49 public final String accountType; field in GroupMetaData
66 final AccountType accountType = accountTypeManager.getAccountType( in GroupMetaData() local
69 final boolean editable = accountType == null in GroupMetaData()
70 ? false : accountType.isGroupMembershipEditable(); in GroupMetaData()
74 this.accountType = cursor.getString(GroupMetaDataLoader.ACCOUNT_TYPE); in GroupMetaData()
91 accountType = source.readString(); in GroupMetaData()
105 dest.writeString(accountType); in writeToParcel()
132 .add("accountType", accountType) in toString()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAddAccountWithTypeActivity.java67 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onCreate() local
68 if (accountType != null) { in onCreate()
69 startAddAccount(accountType); in onCreate()
84 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local
85 startAddAccount(accountType); in onActivityResult()
97 private void startAddAccount(String accountType) { in startAddAccount() argument
99 accountType, in startAddAccount()
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactModifier.java112 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument
113 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists()
378 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty() local
380 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty()
397 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in hasChanges() local
399 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges()
413 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty() argument
417 for (DataKind kind : accountType.getSortedDataKinds()) { in trimEmpty()
452 private static boolean hasChanges(RawContactDelta state, AccountType accountType, in hasChanges() argument
454 for (DataKind kind : accountType.getSortedDataKinds()) { in hasChanges()
[all …]
/packages/apps/Email/provider_src/com/android/email/service/
DEmailServiceUtils.java186 public String accountType; field in EmailServiceUtils.EmailServiceInfo
224 sb.append(accountType); in toString()
324 return AccountManager.get(context).addAccount(info.accountType, null, null, options, null, in setupAccountManagerAccount()
430 final String accountType = protocolMap.get(hostAuth.mProtocol + "_type"); in updateAccountManagerType() local
433 moveCalendarData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local
434 moveContactsData(context.getContentResolver(), amName, oldType, accountType); in updateAccountManagerType() local
444 if (accountType != null && in updateAccountManagerType()
451 accountType), in updateAccountManagerType()
452 new android.accounts.Account(amName, accountType), in updateAccountManagerType()
461 if (accountType != null && in updateAccountManagerType()
[all …]
DAuthenticatorService.java56 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument
61 AuthenticatorService.this, accountType); in addAccount()
71 accountType); in addAccount()
104 b.putString(AccountManager.KEY_ACCOUNT_TYPE, accountType); in addAccount()
113 AuthenticatorService.this, accountType); in addAccount()
127 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPhotoPriorityResolver.java86 public synchronized int getPhotoPriority(String accountType) { in getPhotoPriority() argument
87 if (accountType == null) { in getPhotoPriority()
91 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority()
93 priority = resolvePhotoPriority(accountType); in getPhotoPriority()
94 mPhotoPriorities.put(accountType, priority); in getPhotoPriority()
102 private int resolvePhotoPriority(String accountType) { in resolvePhotoPriority() argument
106 if (accountType.equals(auth.type)) { in resolvePhotoPriority()
DMetadataEntryParser.java100 public RawContactInfo(String backupId, String accountType, String accountName, in RawContactInfo() argument
103 this.mAccountType = accountType; in RawContactInfo()
246 String accountType = uniqueContactJSON.getString(ACCOUNT_TYPE); in parseUniqueContact() local
247 if (ENUM_VALUE_FOR_GOOGLE_ACCOUNT.equals(accountType)) { in parseUniqueContact()
248 accountType = GOOGLE_ACCOUNT_TYPE; in parseUniqueContact()
249 } else if (ENUM_VALUE_FOR_CUSTOM_ACCOUNT.equals(accountType)) { in parseUniqueContact()
250 accountType = uniqueContactJSON.getString(CUSTOM_ACCOUNT_TYPE); in parseUniqueContact()
264 if (TextUtils.isEmpty(backupId) || TextUtils.isEmpty(accountType) in parseUniqueContact()
270 backupId, accountType, accountName, dataSet); in parseUniqueContact()

1234567