/packages/apps/Contacts/src/com/android/contacts/model/account/ |
D | AccountTypeProvider.java | 84 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 …]
|
D | AccountTypeWithDataSet.java | 40 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/ |
D | AccountTypeManager.java | 120 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/ |
D | ContactListFilter.java | 65 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 …]
|
D | MultiSelectContactsListFragment.java | 342 final AccountType accountType = accountTypeManager.getAccountType( in bindListHeader() local 348 final String headerText = shouldShowAccountName(accountType) in bindListHeader() 358 final Drawable icon = accountType != null ? accountType.getDisplayIcon(context) : null; in bindListHeader() 365 if (accountType instanceof GoogleAccountType) { in bindListHeader() 394 private boolean shouldShowAccountName(AccountType accountType) { in shouldShowAccountName() argument 395 return (accountType.isGroupMembershipEditable() && this instanceof GroupMembersFragment) in shouldShowAccountName() 396 || GoogleAccountType.ACCOUNT_TYPE.equals(accountType.accountType); in shouldShowAccountName()
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | ContactListFilter.java | 44 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/ |
D | ChooseAccountPreferenceController.java | 89 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 …]
|
D | AccountPreferenceController.java | 484 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/ |
D | ChooseAccountPreferenceController.java | 89 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 …]
|
D | AccountPreferenceController.java | 484 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/ |
D | AccountTypeWithDataSet.java | 39 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/ |
D | ChooseAccountPreferenceController.java | 182 String accountType = authenticatorDescription.type; in getAuthenticatorDescriptionPreferences() local 183 CharSequence label = mAuthenticatorHelper.getLabelForType(getContext(), accountType); in getAuthenticatorDescriptionPreferences() 184 Drawable icon = mAuthenticatorHelper.getDrawableForType(getContext(), accountType); in getAuthenticatorDescriptionPreferences() 187 mAuthenticatorHelper.getAuthoritiesForAccountType(accountType); in getAuthenticatorDescriptionPreferences() 197 || mAccountTypesFilter.contains(accountType)); in getAuthenticatorDescriptionPreferences() 201 || !mAccountTypesExclusionFilter.contains(accountType)); in getAuthenticatorDescriptionPreferences() 207 accountType, in getAuthenticatorDescriptionPreferences() 208 new AuthenticatorDescriptionPreference(getContext(), accountType, label, in getAuthenticatorDescriptionPreferences() 213 preferencesToRemove.remove(accountType); in getAuthenticatorDescriptionPreferences() 224 private boolean onAddAccount(String accountType) { in onAddAccount() argument [all …]
|
D | AccountListPreferenceController.java | 180 String accountType = accountTypes[i]; in getAccountPreferences() local 182 if (!accountTypeHasAnyRequestedAuthorities(accountType)) { in getAccountPreferences() 185 CharSequence label = mAuthenticatorHelper.getLabelForType(getContext(), accountType); in getAccountPreferences() 191 .getAccountsByTypeAsUser(accountType, mUserInfo.getUserHandle()); in getAccountPreferences() 192 Drawable icon = mAuthenticatorHelper.getDrawableForType(getContext(), accountType); in getAccountPreferences() 205 mAuthenticatorHelper.preloadDrawableForType(getContext(), accountType); in getAccountPreferences() local 236 private boolean accountTypeHasAnyRequestedAuthorities(String accountType) { in accountTypeHasAnyRequestedAuthorities() argument 242 mAuthenticatorHelper.getAuthoritiesForAccountType(accountType); in accountTypeHasAnyRequestedAuthorities()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | FakeDeviceAccountTypeFactory.java | 30 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()
|
D | FakeAccountType.java | 54 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/Contacts/src/com/android/contacts/util/ |
D | DeviceLocalAccountTypeFactory.java | 41 @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/ |
D | RawContactDeltaComparator.java | 77 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/ |
D | SplitAggregateView.java | 117 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/ |
D | GroupMetaData.java | 49 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()
|
D | GroupUtil.java | 78 String accountType = cursor.getString(GroupListLoader.ACCOUNT_TYPE); in getGroupListItem() local 97 && TextUtils.equals(accountType, previousGroupAccountType) in getGroupListItem() 103 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getGroupListItem() 174 intent.putExtra(UiIntentActions.GROUP_ACCOUNT_TYPE, groupMetaData.accountType); in createPickMemberIntent() 301 public final int accountType; field in GroupUtil.GroupsProjection 314 accountType = cursor.getColumnIndex(Groups.ACCOUNT_TYPE); in GroupsProjection() 329 accountType = list.indexOf(Groups.ACCOUNT_TYPE); in GroupsProjection() 354 if (accountType == -1 || isReadOnly == -1 || in isEmptyFFCGroup() 358 return GoogleAccountType.ACCOUNT_TYPE.equals(cursor.getString(accountType)) in isEmptyFFCGroup()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AddAccountWithTypeActivity.java | 67 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/ |
D | RawContactModifier.java | 112 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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoPriorityResolver.java | 86 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()
|
D | MetadataEntryParser.java | 100 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()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SynchronousContactsProvider2.java | 167 public synchronized int getPhotoPriority(String accountType) { in createPhotoPriorityResolver() 168 if ("cupcake".equals(accountType)) { in createPhotoPriorityResolver() 171 if ("donut".equals(accountType)) { in createPhotoPriorityResolver() 174 if ("froyo".equals(accountType)) { in createPhotoPriorityResolver() 188 public boolean isWritableAccountWithDataSet(String accountType) { 189 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
|