/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListFilter.java | 55 public final String accountType; field in ContactListFilter 61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, in ContactListFilter() argument 64 this.accountType = accountType; in ContactListFilter() 74 public static ContactListFilter createAccountFilter(String accountType, String accountName, in createAccountFilter() argument 76 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, in createAccountFilter() 103 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "") in toString() 116 res = accountType.compareTo(another.accountType); in compareTo() 127 if (accountType != null) { in hashCode() 128 code = code * 31 + accountType.hashCode(); in hashCode() 150 || !TextUtils.equals(accountType, otherFilter.accountType) in equals() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 125 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument 126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType() 405 final String type = sync.accountType; in loadAccountsInBackground() 412 AccountType accountType; in loadAccountsInBackground() local 414 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground() 416 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 419 accountType = new SamsungAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 423 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground() 425 if (!accountType.isInitialized()) { in loadAccountsInBackground() 426 if (accountType.isEmbedded()) { in loadAccountsInBackground() [all …]
|
D | RawContactModifier.java | 114 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument 115 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() 380 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty() local 382 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty() 399 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in hasChanges() local 401 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges() 415 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty() argument 419 for (DataKind kind : accountType.getSortedDataKinds()) { in trimEmpty() 454 private static boolean hasChanges(RawContactDelta state, AccountType accountType, in hasChanges() argument 456 for (DataKind kind : accountType.getSortedDataKinds()) { in hasChanges() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | ChooseAccountActivity.java | 79 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument 81 type = accountType; in ProviderEntry() 111 for (String accountType : accountTypesFilter) { in onCreate() 112 mAccountTypesFilter.add(accountType); in onCreate() 138 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local 139 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated() 143 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated() 155 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated() 159 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated() 211 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() [all …]
|
D | AccountPreferenceBase.java | 141 public PreferenceScreen addPreferencesForType(final String accountType, in addPreferencesForType() argument 144 if (mAuthenticatorHelper.containsAccountType(accountType)) { in addPreferencesForType() 147 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType() 178 protected Drawable getDrawableForType(final String accountType) { in getDrawableForType() argument 179 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType); in getDrawableForType() 182 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument 183 return mAuthenticatorHelper.getLabelForType(getActivity(), accountType); in getLabelForType()
|
D | AccountSettings.java | 433 final String accountType = accountTypes[i]; in getAccountTypePreferences() local 435 if (!accountTypeHasAnyRequestedAuthorities(helper, accountType)) { in getAccountTypePreferences() 438 final CharSequence label = helper.getLabelForType(getActivity(), accountType); in getAccountTypePreferences() 442 final String titleResPackageName = helper.getPackageForType(accountType); in getAccountTypePreferences() 443 final int titleResId = helper.getLabelIdForType(accountType); in getAccountTypePreferences() 446 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences() 448 && !helper.hasAccountPreferences(accountType); in getAccountTypePreferences() 459 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() 462 fragmentArguments.putString(ManageAccountsSettings.KEY_ACCOUNT_TYPE, accountType); in getAccountTypePreferences() 470 helper.getDrawableForType(getActivity(), accountType))); in getAccountTypePreferences() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
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/Calendar/src/com/android/calendar/event/ |
D | EventColorCache.java | 46 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 99 .append(accountType) in createKey() 103 private String createKey(String accountName, String accountType, int displayColor) { in createKey() argument [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
D | ContactEditorUtilsTest.java | 50 "a", TYPE1.accountType, TYPE1.dataSet); 52 "b", TYPE1.accountType, TYPE1.dataSet); 55 "a", TYPE2.accountType, TYPE2.dataSet); 57 "a", TYPE2EX.accountType, TYPE2EX.dataSet); 60 "c", TYPE3.accountType, TYPE3.dataSet); 94 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types)); in testGetWritableAccountTypeStrings() 100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType), in testGetWritableAccountTypeStrings() 108 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2EX.accountType), in testGetWritableAccountTypeStrings() 312 public MockAccountType(String accountType, String dataSet, boolean areContactsWritable) { in MockAccountType() argument 313 this.accountType = accountType; in MockAccountType()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | Sources.java | 119 mSources.put(source.accountType, source); in addSource() 204 final String accountType = sync.accountType; in queryAccounts() local 205 final AuthenticatorDescription auth = findAuthenticator(auths, accountType); in queryAccounts() 208 if (GoogleSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts() 210 } else if (ExchangeSource.ACCOUNT_TYPE.equals(accountType)) { in queryAccounts() 214 Log.d(TAG, "Creating external source for type=" + accountType in queryAccounts() 220 source.accountType = auth.type; in queryAccounts() 236 String accountType) { in findAuthenticator() argument 238 if (accountType.equals(auth.type)) { in findAuthenticator() 274 public DataKind getKindOrFallback(String accountType, String mimeType, Context context, in getKindOrFallback() argument [all …]
|
D | GoogleSource.java | 46 this.accountType = ACCOUNT_TYPE; in GoogleSource() 165 final String accountType = stateValues.getAsString(RawContacts.ACCOUNT_TYPE); 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() 218 newGroup.put(Groups.ACCOUNT_TYPE, accountType); in attemptMyContactsMembership() 244 state, accountName, accountType, context, false); in attemptMyContactsMembership()
|
/packages/apps/UnifiedEmail/src/com/android/mail/photo/ |
D | MailPhotoViewActivity.java | 53 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/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()
|
D | EditorUiUtils.java | 121 String accountName, AccountType accountType) { in getLocalAccountInfo() argument 130 accountType.getDisplayLabel(context))); in getLocalAccountInfo() 138 AccountType accountType) { in getAccountInfo() argument 139 CharSequence accountTypeDisplayLabel = accountType.getDisplayLabel(context); in getAccountInfo() 153 if (GoogleAccountType.ACCOUNT_TYPE.equals(accountType.accountType) in getAccountInfo() 154 && accountType.dataSet == null) { in getAccountInfo() 169 CharSequence accountType) { in getAccountInfoContentDescription() argument 171 if (!TextUtils.isEmpty(accountType)) { in getAccountInfoContentDescription() 172 builder.append(accountType).append('\n'); in getAccountInfoContentDescription()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AddAccountWithTypeActivity.java | 65 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); in onCreate() local 66 if (accountType != null) { in onCreate() 67 startAddAccount(accountType); in onCreate() 79 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE); in onActivityResult() local 80 startAddAccount(accountType); in onActivityResult() 92 private void startAddAccount(String accountType) { in startAddAccount() argument 94 accountType, in startAddAccount()
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | CalendarColorCache.java | 84 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()
|
D | SelectSyncedCalendarsMultiAccountAdapter.java | 303 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument 305 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 307 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() 311 Log.w(TAG, "No label for account type " + ", type " + accountType); in getLabelForType() 323 final String accountType = cursor.getString(ACCOUNT_TYPE_COLUMN); in bindChildView() local 327 colorSquare.setEnabled(mCache.hasColors(accountName, accountType)); in bindChildView() 347 if (!mCache.hasColors(accountName, accountType)) { in bindChildView() 392 String accountType = cursor.getString(accountTypeColumn); in bindGroupView() local 393 CharSequence accountLabel = getLabelForType(accountType); in bindGroupView() 405 String accountType = groupCursor.getString(accountTypeColumn); in getChildrenCursor() local [all …]
|
/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/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoPriorityResolver.java | 89 public synchronized int getPhotoPriority(String accountType) { in getPhotoPriority() argument 90 if (accountType == null) { in getPhotoPriority() 94 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority() 96 priority = resolvePhotoPriority(accountType); in getPhotoPriority() 97 mPhotoPriorities.put(accountType, priority); in getPhotoPriority() 105 private int resolvePhotoPriority(String accountType) { in resolvePhotoPriority() argument 109 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/apps/Email/provider_src/com/android/email/service/ |
D | EmailServiceUtils.java | 186 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 …]
|
D | AuthenticatorService.java | 56 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/apps/Contacts/src/com/android/contacts/group/ |
D | GroupBrowseListAdapter.java | 120 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE); in getItem() local 137 accountType.equals(previousGroupAccountType) && in getItem() 143 return new GroupListItem(accountName, accountType, dataSet, groupId, title, in getItem() 198 AccountType accountType = mAccountTypeManager.getAccountType( in bindHeaderView() local 200 viewCache.accountType.setText(accountType.getDisplayLabel(mContext)); in bindHeaderView() 213 public final TextView accountType; field in GroupBrowseListAdapter.GroupListItemViewCache 223 accountType = (TextView) view.findViewById(R.id.account_type); in GroupListItemViewCache()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SynchronousContactsProvider2.java | 169 public synchronized int getPhotoPriority(String accountType) { in createPhotoPriorityResolver() 170 if ("cupcake".equals(accountType)) { in createPhotoPriorityResolver() 173 if ("donut".equals(accountType)) { in createPhotoPriorityResolver() 176 if ("froyo".equals(accountType)) { in createPhotoPriorityResolver() 190 public boolean isWritableAccountWithDataSet(String accountType) { 191 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | LocalizedNameResolver.java | 52 public static String getAllContactsName(Context context, String accountType) { in getAllContactsName() argument 54 if (accountType == null) return null; in getAllContactsName() 56 return resolveAllContactsName(context, accountType); in getAllContactsName() 62 private static String resolveAllContactsName(Context context, String accountType) { in resolveAllContactsName() argument 66 if (accountType.equals(auth.type)) { in resolveAllContactsName()
|