Searched refs:accountType (Results 1 - 25 of 120) sorted by relevance

12345

/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/
H A DAccountTypeWithDataSet.java40 public final String accountType; field in class:AccountTypeWithDataSet
45 private AccountTypeWithDataSet(String accountType, String dataSet) { argument
46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType;
50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { argument
51 return new AccountTypeWithDataSet(accountType, dataSet);
64 args = new String[] {accountType};
67 args = new String[] {accountType, dataSet};
85 return Objects.equal(accountType, othe
[all...]
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAuthenticatorHelper.java49 public void preloadDrawableForType(final Context context, final String accountType) { argument
53 getDrawableForType(context, accountType);
61 * @param accountType the type of account
64 public Drawable getDrawableForType(Context context, final String accountType) { argument
67 if (mAccTypeIconCache.containsKey(accountType)) {
68 return mAccTypeIconCache.get(accountType);
71 if (mTypeToAuthDescription.containsKey(accountType)) {
73 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType);
77 mAccTypeIconCache.put(accountType, icon);
91 * @param accountType th
94 getLabelForType(Context context, final String accountType) argument
134 containsAccountType(String accountType) argument
138 getAccountTypeDescription(String accountType) argument
142 hasAccountPreferences(final String accountType) argument
[all...]
H A DChooseAccountActivity.java62 ProviderEntry(CharSequence providerName, String accountType) { argument
64 type = accountType;
90 for (String accountType : accountTypesFilter) {
91 mAccountTypesFilter.add(accountType);
113 String accountType = mAuthDescs[i].type;
114 CharSequence providerName = getLabelForType(accountType);
118 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType);
130 && !mAccountTypesFilter.contains(accountType)) {
134 mProviderList.add(new ProviderEntry(providerName, accountType));
174 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
194 getDrawableForType(final String accountType) argument
217 getLabelForType(final String accountType) argument
245 finishWithAccountType(String accountType) argument
[all...]
H A DProviderPreference.java35 Context context, String accountType, Drawable icon, CharSequence providerName) {
37 mAccountType = accountType;
34 ProviderPreference( Context context, String accountType, Drawable icon, CharSequence providerName) argument
H A DAccountPreferenceBase.java123 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
126 mAccountTypeToAuthorities.put(sa.accountType, authorities);
129 Log.d(TAG, "added authority " + sa.authority + " to accountType "
130 + sa.accountType);
140 * @param accountType the type of account
143 public PreferenceScreen addPreferencesForType(final String accountType, argument
146 if (mAuthenticatorHelper.containsAccountType(accountType)) {
149 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType);
169 protected Drawable getDrawableForType(final String accountType) { argument
170 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType);
173 getLabelForType(final String accountType) argument
[all...]
/packages/apps/Calendar/src/com/android/calendar/event/
H A DEventColorCache.java46 public void insertColor(String accountName, String accountType, int displayColor, argument
48 mColorKeyMap.put(createKey(accountName, accountType, displayColor), colorKey);
49 String key = createKey(accountName, accountType);
61 public int[] getColorArray(String accountName, String accountType) { argument
62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType));
76 public int getColorKey(String accountName, String accountType, int displayColor) { argument
77 return mColorKeyMap.get(createKey(accountName, accountType, displayColor));
96 private String createKey(String accountName, String accountType) { argument
99 .append(accountType)
103 private String createKey(String accountName, String accountType, in argument
[all...]
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
H A DContactListFilter.java51 private static final String KEY_ACCOUNT_TYPE = "filter.accountType";
55 public final String accountType; field in class:ContactListFilter
61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, argument
64 this.accountType = accountType;
74 public static ContactListFilter createAccountFilter(String accountType, String accountName, argument
76 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType,
103 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "")
116 res = accountType.compareTo(another.accountType);
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBookmarksLoader.java54 public BookmarksLoader(Context context, String accountType, String accountName) { argument
55 super(context, addAccount(Bookmarks.CONTENT_URI_DEFAULT_FOLDER, accountType, accountName),
57 mAccountType = accountType;
66 static Uri addAccount(Uri uri, String accountType, String accountName) { argument
67 return uri.buildUpon().appendQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE, accountType).
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DCalendarColorCache.java84 private void insert(String accountName, String accountType) { argument
85 mCache.add(generateKey(accountName, accountType));
91 public boolean hasColors(String accountName, String accountType) { argument
92 return mCache.contains(generateKey(accountName, accountType));
105 private String generateKey(String accountName, String accountType) { argument
107 return mStringBuffer.append(accountName).append(SEPARATOR).append(accountType).toString();
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
H A DAccountTypeManager.java125 public final AccountType getAccountType(String accountType, String dataSet) { argument
126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet));
150 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}.
410 final String type = sync.accountType;
417 AccountType accountType;
419 accountType = new GoogleAccountType(mContext, auth.packageName);
421 accountType = new ExchangeAccountType(mContext, auth.packageName, type);
426 accountType = new ExternalAccountType(mContext, auth.packageName, false);
428 if (!accountType.isInitialized()) {
429 if (accountType
542 addAccountType(AccountType accountType, Map<AccountTypeWithDataSet, AccountType> accountTypesByTypeAndDataSet, Map<String, List<AccountType>> accountTypesByType) argument
558 findAuthenticator(AuthenticatorDescription[] auths, String accountType) argument
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
H A DContactEditorUtilsTest.java50 "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));
100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType),
108 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2E
302 MockAccountType(String accountType, String dataSet, boolean areContactsWritable) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/
H A DGroupMetaData.java31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, argument
34 this.mAccountType = accountType;
/packages/apps/Contacts/src/com/android/contacts/group/
H A DGroupListItem.java31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, argument
34 mAccountType = accountType;
H A DGroupDetailDisplayUtils.java44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet);
51 label.setText(accountType.getViewGroupLabel(context));
58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context));
H A DGroupBrowseListAdapter.java120 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE);
137 accountType.equals(previousGroupAccountType) &&
143 return new GroupListItem(accountName, accountType, dataSet, groupId, title,
198 AccountType accountType = mAccountTypeManager.getAccountType(
200 viewCache.accountType.setText(accountType.getDisplayLabel(mContext).toString());
213 public final TextView accountType; field in class:GroupBrowseListAdapter.GroupListItemViewCache
223 accountType = (TextView) view.findViewById(R.id.account_type);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DIAccountService.aidl29 Bundle getConfigurationData(String accountType);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupCreationDialogFragment.java32 private static final String ARG_ACCOUNT_TYPE = "accountType";
45 FragmentManager fragmentManager, String accountType, String accountName,
49 args.putString(ARG_ACCOUNT_TYPE, accountType);
82 String accountType = arguments.getString(ARG_ACCOUNT_TYPE);
95 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel,
44 show( FragmentManager fragmentManager, String accountType, String accountName, String dataSet, OnGroupCreatedListener listener) argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DAccountWithDataSet.java34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { argument
36 mAccountType = emptyToNull(accountType);
44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) { argument
45 return new AccountWithDataSet(accountName, accountType, dataSet);
H A DPhotoPriorityResolver.java76 public synchronized int getPhotoPriority(String accountType) { argument
77 if (accountType == null) {
81 Integer priority = mPhotoPriorities.get(accountType);
83 priority = resolvePhotoPriority(accountType);
84 mPhotoPriorities.put(accountType, priority);
92 private int resolvePhotoPriority(String accountType) { argument
96 if (accountType.equals(auth.type)) {
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DSources.java119 mSources.put(source.accountType, source);
204 final String accountType = sync.accountType;
205 final AuthenticatorDescription auth = findAuthenticator(auths, accountType);
208 if (GoogleSource.ACCOUNT_TYPE.equals(accountType)) {
210 } else if (ExchangeSource.ACCOUNT_TYPE.equals(accountType)) {
214 Log.d(TAG, "Creating external source for type=" + accountType
220 source.accountType = auth.type;
236 String accountType) {
238 if (accountType
235 findAuthenticator(AuthenticatorDescription[] auths, String accountType) argument
274 getKindOrFallback(String accountType, String mimeType, Context context, int inflateLevel) argument
301 getInflatedSource(String accountType, int inflateLevel) argument
[all...]
/packages/apps/Browser/tests/src/com/android/browser/tests/
H A DBP2ProviderTests.java67 private void doTestIsValidParent(String accountName, String accountType) { argument
73 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType);
95 assertEquals(accountType, insertedAccountType);
113 assertEquals(accountType, insertedAccountType);
118 accountType = "com.google";
120 values.put(BrowserContract.Bookmarks.ACCOUNT_TYPE, accountType);
133 assertEquals(accountType, insertedAccountType);
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailUpdatesFragment.java64 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/
H A DSynchronousContactsProvider2.java162 public synchronized int getPhotoPriority(String accountType) {
163 if ("cupcake".equals(accountType)) {
166 if ("donut".equals(accountType)) {
169 if ("froyo".equals(accountType)) {
183 public boolean isWritableAccountWithDataSet(String accountType) { argument
184 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/tests/testauth/
H A DTestAuthenticator.java62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, argument
64 Log.v(TestauthConstants.LOG_TAG, "addAccount() type=" + accountType);
67 final Account account = new Account(newUniqueUserName(), accountType);
101 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
H A DLocalizedNameResolver.java56 public static String getAllContactsName(Context context, String accountType) { argument
58 if (accountType == null) return null;
60 return resolveAllContactsName(context, accountType);
66 private static String resolveAllContactsName(Context context, String accountType) { argument
70 if (accountType.equals(auth.type)) {

Completed in 1461 milliseconds

12345