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

12345

/packages/apps/Contacts/src/com/android/contacts/model/
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...]
H A DAccountTypeManager.java109 public final AccountType getAccountType(String accountType, String dataSet) { argument
110 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet));
134 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}.
137 public DataKind getKindOrFallback(String accountType, String dataSet, String mimeType) { argument
138 final AccountType type = getAccountType(accountType, dataSet);
397 final String type = sync.accountType;
404 AccountType accountType;
406 accountType = new GoogleAccountType(mContext, auth.packageName);
408 accountType = new ExchangeAccountType(mContext, auth.packageName);
413 accountType
536 addAccountType(AccountType accountType, Map<AccountTypeWithDataSet, AccountType> accountTypesByTypeAndDataSet, Map<String, List<AccountType>> accountTypesByType) argument
552 findAuthenticator(AuthenticatorDescription[] auths, String accountType) argument
585 getKindOrFallback(String accountType, String dataSet, String mimeType) argument
[all...]
/packages/apps/Settings/src/com/android/settings/accounts/
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.java111 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
114 mAccountTypeToAuthorities.put(sa.accountType, authorities);
117 Log.d(TAG, "added authority " + sa.authority + " to accountType "
118 + sa.accountType);
128 * @param accountType the type of account
131 protected Drawable getDrawableForType(final String accountType) { argument
133 if (mTypeToAuthDescription.containsKey(accountType)) {
135 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType);
140 Log.w(TAG, "No icon name for account type " + accountType);
143 Log.w(TAG, "No icon resource for account type " + accountType);
154 getLabelForType(final String accountType) argument
175 addPreferencesForType(final String accountType) argument
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactListFilter.java49 private static final String KEY_ACCOUNT_TYPE = "filter.accountType";
53 public final String accountType; field in class:ContactListFilter
59 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, argument
62 this.accountType = accountType;
72 public static ContactListFilter createAccountFilter(String accountType, String accountName, argument
74 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType,
101 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "")
114 res = accountType.compareTo(another.accountType);
[all...]
/packages/apps/Browser/src/com/android/browser/
H A DBookmarksLoader.java55 public BookmarksLoader(Context context, String accountType, String accountName) { argument
56 super(context, addAccount(Bookmarks.CONTENT_URI_DEFAULT_FOLDER, accountType, accountName),
58 mAccountType = accountType;
67 static Uri addAccount(Uri uri, String accountType, String accountName) { argument
68 return uri.buildUpon().appendQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE, accountType).
/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";
37 FragmentManager fragmentManager, String accountType, String accountName,
41 args.putString(ARG_ACCOUNT_TYPE, accountType);
60 String accountType = arguments.getString(ARG_ACCOUNT_TYPE);
66 new AccountWithDataSet(accountName, accountType, dataSet), groupLabel,
36 show( FragmentManager fragmentManager, String accountType, String accountName, String dataSet) argument
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
H A DContactEditorUtilsTest.java52 "a", TYPE1.accountType, TYPE1.dataSet);
54 "b", TYPE1.accountType, TYPE1.dataSet);
57 "a", TYPE2.accountType, TYPE2.dataSet);
59 "a", TYPE2EX.accountType, TYPE2EX.dataSet);
62 "c", TYPE3.accountType, TYPE3.dataSet);
96 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types));
102 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType),
110 Sets.newHashSet(TYPE1.accountType, TYPE2.accountType, TYPE2E
304 MockAccountType(String accountType, String dataSet, boolean areContactsWritable) argument
[all...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DSynchronousContactsProvider2.java137 public synchronized int getPhotoPriority(String accountType) {
138 if ("cupcake".equals(accountType)) {
141 if ("donut".equals(accountType)) {
144 if ("froyo".equals(accountType)) {
158 protected boolean isWritableAccountWithDataSet(String accountType) { argument
159 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
/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;
H A DSplitAggregateView.java120 String accountType; field in class:SplitAggregateView.RawContactInfo
148 String thisAccount = accountType != null ? accountType : "";
149 String thatAccount = another.accountType != null ? another.accountType : "";
170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE);
254 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet);
255 if (accountType != null) {
256 icon = accountType
[all...]
/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.java121 String accountType = mCursor.getString(GroupListLoader.ACCOUNT_TYPE);
138 accountType.equals(previousGroupAccountType) &&
144 return new GroupListItem(accountName, accountType, dataSet, groupId, title,
199 AccountType accountType = mAccountTypeManager.getAccountType(
201 viewCache.accountType.setText(accountType.getDisplayLabel(mContext).toString());
214 public final TextView accountType; field in class:GroupBrowseListAdapter.GroupListItemViewCache
224 accountType = (TextView) view.findViewById(R.id.account_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/providers/ContactsProvider/src/com/android/providers/contacts/
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)) {
H A DAccountWithDataSet.java29 public AccountWithDataSet(String accountName, String accountType, String dataSet) { argument
31 mAccountType = accountType;
/packages/apps/Contacts/src/com/android/contacts/detail/
H A DContactDetailUpdatesFragment.java79 final AccountType accountType = getAccountTypeForStreamItemEntry(streamItemEntry);
84 intent.setClassName(accountType.resPackageName,
85 accountType.getViewStreamItemActivity());
98 final AccountType accountType = getAccountTypeForStreamItemEntry(tag.streamItem);
101 intent.setClassName(accountType.resPackageName,
102 accountType.getViewStreamItemPhotoActivity());
H A DStreamItemAdapter.java103 final AccountType accountType =
110 (accountType.getViewStreamItemPhotoActivity() == null) ? null : mPhotoClickListener
116 if (accountType.getViewStreamItemActivity() != null) {
/packages/apps/Contacts/tests/src/com/android/contacts/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/Contacts/src/com/android/contacts/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)) {
/packages/apps/Contacts/tests/src/com/android/contacts/tests/streamitems/
H A DStreamItemPopulatorActivity.java166 String accountType = null;
182 accountType = c.getString(1);
188 addStreamItemsToRawContact(rawContactId, accountType, accountName);
212 private void addStreamItemsToRawContact(long rawContactId, String accountType, argument
220 ContentValues streamItemValues = buildStreamItemValues(accountType, accountName);
235 buildStreamItemPhotoValues(j, accountType, accountName);
255 private ContentValues buildStreamItemValues(String accountType, String accountName) { argument
281 values.put(RawContacts.ACCOUNT_TYPE, accountType);
286 private ContentValues buildStreamItemPhotoValues(int index, String accountType, argument
292 values.put(RawContacts.ACCOUNT_TYPE, accountType);
[all...]

Completed in 2668 milliseconds

12345