/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AuthenticatorHelper.java | 53 public Drawable getDrawableForType(Context context, final String accountType) { in getDrawableForType() argument 55 if (mAccTypeIconCache.containsKey(accountType)) { in getDrawableForType() 56 return mAccTypeIconCache.get(accountType); in getDrawableForType() 58 if (mTypeToAuthDescription.containsKey(accountType)) { in getDrawableForType() 60 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() 63 mAccTypeIconCache.put(accountType, icon); in getDrawableForType() 79 public CharSequence getLabelForType(Context context, final String accountType) { in getLabelForType() argument 81 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 83 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() 87 Log.w(TAG, "No label name for account type " + accountType); in getLabelForType() [all …]
|
D | ChooseAccountActivity.java | 62 ProviderEntry(CharSequence providerName, String accountType) { in ProviderEntry() argument 64 type = accountType; in ProviderEntry() 90 for (String accountType : accountTypesFilter) { in onCreate() 91 mAccountTypesFilter.add(accountType); in onCreate() 113 String accountType = mAuthDescs[i].type; in onAuthDescriptionsUpdated() local 114 CharSequence providerName = getLabelForType(accountType); in onAuthDescriptionsUpdated() 118 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType); in onAuthDescriptionsUpdated() 130 && !mAccountTypesFilter.contains(accountType)) { in onAuthDescriptionsUpdated() 134 mProviderList.add(new ProviderEntry(providerName, accountType)); in onAuthDescriptionsUpdated() 174 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() [all …]
|
D | AccountPreferenceBase.java | 123 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType); in getAuthoritiesForAccountType() 126 mAccountTypeToAuthorities.put(sa.accountType, authorities); in getAuthoritiesForAccountType() 130 + sa.accountType); in getAuthoritiesForAccountType() 143 public PreferenceScreen addPreferencesForType(final String accountType, in addPreferencesForType() argument 146 if (mAuthenticatorHelper.containsAccountType(accountType)) { in addPreferencesForType() 149 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType() 169 protected Drawable getDrawableForType(final String accountType) { in getDrawableForType() argument 170 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType); in getDrawableForType() 173 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument 174 return mAuthenticatorHelper.getLabelForType(getActivity(), accountType); in getLabelForType()
|
/packages/apps/Contacts/src/com/android/contacts/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/Contacts/src/com/android/contacts/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 …]
|
D | ContactListFilterView.java | 82 mAccountType = (TextView) findViewById(R.id.accountType); in bindView() 123 final AccountType accountType = in bindView() local 124 accountTypes.getAccountType(mFilter.accountType, mFilter.dataSet); in bindView() 126 mAccountType.setText(accountType.getDisplayLabel(getContext())); in bindView()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | AccountTypeManager.java | 115 public final AccountType getAccountType(String accountType, String dataSet) { in getAccountType() argument 116 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); in getAccountType() 143 public DataKind getKindOrFallback(String accountType, String dataSet, String mimeType) { in getKindOrFallback() argument 144 final AccountType type = getAccountType(accountType, dataSet); in getKindOrFallback() 403 final String type = sync.accountType; in loadAccountsInBackground() 410 AccountType accountType; in loadAccountsInBackground() local 412 accountType = new GoogleAccountType(mContext, auth.packageName); in loadAccountsInBackground() 414 accountType = new ExchangeAccountType(mContext, auth.packageName, type); in loadAccountsInBackground() 419 accountType = new ExternalAccountType(mContext, auth.packageName, false); in loadAccountsInBackground() 421 if (!accountType.isInitialized()) { in loadAccountsInBackground() [all …]
|
D | RawContactModifier.java | 113 RawContactDelta state, AccountType accountType, String mimeType) { in ensureKindExists() argument 114 final DataKind kind = accountType.getKindForMimetype(mimeType); in ensureKindExists() 394 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in trimEmpty() local 396 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in trimEmpty() 408 final String accountType = values.getAsString(RawContacts.ACCOUNT_TYPE); in hasChanges() local 410 final AccountType type = accountTypes.getAccountType(accountType, dataSet); in hasChanges() 424 public static void trimEmpty(RawContactDelta state, AccountType accountType) { in trimEmpty() argument 428 for (DataKind kind : accountType.getSortedDataKinds()) { in trimEmpty() 463 private static boolean hasChanges(RawContactDelta state, AccountType accountType) { in hasChanges() argument 464 for (DataKind kind : accountType.getSortedDataKinds()) { in hasChanges() [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() 302 public MockAccountType(String accountType, String dataSet, boolean areContactsWritable) { in MockAccountType() argument 303 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/Browser/src/com/android/browser/ |
D | BookmarksLoader.java | 54 public BookmarksLoader(Context context, String accountType, String accountName) { in BookmarksLoader() argument 55 super(context, addAccount(Bookmarks.CONTENT_URI_DEFAULT_FOLDER, accountType, accountName), in BookmarksLoader() 57 mAccountType = accountType; in BookmarksLoader() 66 static Uri addAccount(Uri uri, String accountType, String accountName) { in addAccount() argument 67 return uri.buildUpon().appendQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE, accountType). in addAccount()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | PhotoPriorityResolver.java | 76 public synchronized int getPhotoPriority(String accountType) { in getPhotoPriority() argument 77 if (accountType == null) { in getPhotoPriority() 81 Integer priority = mPhotoPriorities.get(accountType); in getPhotoPriority() 83 priority = resolvePhotoPriority(accountType); in getPhotoPriority() 84 mPhotoPriorities.put(accountType, priority); in getPhotoPriority() 92 private int resolvePhotoPriority(String accountType) { in resolvePhotoPriority() argument 96 if (accountType.equals(auth.type)) { in resolvePhotoPriority()
|
D | AccountWithDataSet.java | 34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { in AccountWithDataSet() argument 36 mAccountType = emptyToNull(accountType); 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()
|
/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() 167 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); in loadData() 251 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet); in getView() local 252 if (accountType != null) { in getView() 253 icon = accountType.getDisplayIcon(getContext()); in getView()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/ |
D | StreamItemPopulatorActivity.java | 166 String accountType = null; in onResume() local 182 accountType = c.getString(1); in onResume() 188 addStreamItemsToRawContact(rawContactId, accountType, accountName); in onResume() 212 private void addStreamItemsToRawContact(long rawContactId, String accountType, in addStreamItemsToRawContact() argument 220 ContentValues streamItemValues = buildStreamItemValues(accountType, accountName); in addStreamItemsToRawContact() 235 buildStreamItemPhotoValues(j, accountType, accountName); in addStreamItemsToRawContact() 255 private ContentValues buildStreamItemValues(String accountType, String accountName) { 281 values.put(RawContacts.ACCOUNT_TYPE, accountType); 286 private ContentValues buildStreamItemPhotoValues(int index, String accountType, 292 values.put(RawContacts.ACCOUNT_TYPE, accountType);
|
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
D | BP2ProviderTests.java | 67 private void doTestIsValidParent(String accountName, String accountType) { in doTestIsValidParent() argument 73 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType); in doTestIsValidParent() 95 assertEquals(accountType, insertedAccountType); in doTestIsValidParent() 113 assertEquals(accountType, insertedAccountType); in doTestIsValidParent() 118 accountType = "com.google"; in doTestIsValidParent() 120 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType); in doTestIsValidParent() 133 assertEquals(accountType, insertedAccountType); in doTestIsValidParent()
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
D | ContactDetailUpdatesFragment.java | 64 final AccountType accountType = getAccountTypeForStreamItemEntry(streamItemEntry); 69 intent.setClassName(accountType.syncAdapterPackageName, 70 accountType.getViewStreamItemActivity()); 83 final AccountType accountType = getAccountTypeForStreamItemEntry(tag.streamItem); 86 intent.setClassName(accountType.syncAdapterPackageName, 87 accountType.getViewStreamItemPhotoActivity());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SynchronousContactsProvider2.java | 162 public synchronized int getPhotoPriority(String accountType) { in createPhotoPriorityResolver() 163 if ("cupcake".equals(accountType)) { in createPhotoPriorityResolver() 166 if ("donut".equals(accountType)) { in createPhotoPriorityResolver() 169 if ("froyo".equals(accountType)) { in createPhotoPriorityResolver() 183 public boolean isWritableAccountWithDataSet(String accountType) { 184 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
|
/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).toString()); in bindHeaderView() 213 public final TextView accountType; field in GroupBrowseListAdapter.GroupListItemViewCache 223 accountType = (TextView) view.findViewById(R.id.account_type); in GroupListItemViewCache()
|
D | GroupDetailDisplayUtils.java | 44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); in bindGroupSourceView() local 51 label.setText(accountType.getViewGroupLabel(context)); in bindGroupSourceView() 58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context)); in bindGroupSourceView()
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
D | SelectSyncedCalendarsMultiAccountAdapter.java | 267 protected CharSequence getLabelForType(final String accountType) { in getLabelForType() argument 269 if (mTypeToAuthDescription.containsKey(accountType)) { in getLabelForType() 271 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() 275 Log.w(TAG, "No label for account type " + ", type " + accountType); in getLabelForType() 318 String accountType = cursor.getString(accountTypeColumn); in bindGroupView() local 319 CharSequence accountLabel = getLabelForType(accountType); in bindGroupView() 331 String accountType = groupCursor.getString(accountTypeColumn); in getChildrenCursor() local 333 Cursor childCursor = mChildrenCursors.get(accountType + "#" + account); in getChildrenCursor() 334 new RefreshCalendars(groupCursor.getPosition(), account, accountType).run(); in getChildrenCursor() 356 public RefreshCalendars(int token, String account, String accountType) { in RefreshCalendars() argument [all …]
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | GroupCreationDialogFragment.java | 45 FragmentManager fragmentManager, String accountType, String accountName, in show() argument 49 args.putString(ARG_ACCOUNT_TYPE, accountType); in show() 82 String accountType = arguments.getString(ARG_ACCOUNT_TYPE); in onCompleted() local 95 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel, in onCompleted()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | LocalizedNameResolver.java | 56 public static String getAllContactsName(Context context, String accountType) { in getAllContactsName() argument 58 if (accountType == null) return null; in getAllContactsName() 60 return resolveAllContactsName(context, accountType); in getAllContactsName() 66 private static String resolveAllContactsName(Context context, String accountType) { in resolveAllContactsName() argument 70 if (accountType.equals(auth.type)) { in resolveAllContactsName()
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
D | TestAuthenticator.java | 62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() argument 64 Log.v(TestauthConstants.LOG_TAG, "addAccount() type=" + accountType); in addAccount() 67 final Account account = new Account(newUniqueUserName(), accountType); in addAccount() 101 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() argument
|