/packages/apps/Contacts/src/com/android/contacts/model/account/ |
H A D | AccountTypeWithDataSet.java | 40 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 D | AuthenticatorHelper.java | 50 * @param accountType the type of account 53 public Drawable getDrawableForType(Context context, final String accountType) { argument 55 if (mAccTypeIconCache.containsKey(accountType)) { 56 return mAccTypeIconCache.get(accountType); 58 if (mTypeToAuthDescription.containsKey(accountType)) { 60 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); 63 mAccTypeIconCache.put(accountType, icon); 76 * @param accountType the type of account 79 public CharSequence getLabelForType(Context context, final String accountType) { argument 81 if (mTypeToAuthDescription.containsKey(accountType)) { 119 containsAccountType(String accountType) argument 123 getAccountTypeDescription(String accountType) argument 127 hasAccountPreferences(final String accountType) argument [all...] |
H A D | ChooseAccountActivity.java | 62 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 D | ProviderPreference.java | 35 Context context, String accountType, Drawable icon, CharSequence providerName) { 37 mAccountType = accountType; 34 ProviderPreference( Context context, String accountType, Drawable icon, CharSequence providerName) argument
|
H A D | AccountPreferenceBase.java | 123 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/Contacts/src/com/android/contacts/list/ |
H A D | ContactListFilter.java | 51 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 D | BookmarksLoader.java | 54 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/Email/emailcommon/src/com/android/emailcommon/service/ |
H A D | IAccountService.aidl | 29 Bundle getConfigurationData(String accountType);
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
H A D | AccountTypeManager.java | 115 public final AccountType getAccountType(String accountType, String dataSet) { argument 116 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); 140 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}. 143 public DataKind getKindOrFallback(String accountType, String dataSet, String mimeType) { argument 144 final AccountType type = getAccountType(accountType, dataSet); 403 final String type = sync.accountType; 410 AccountType accountType; 412 accountType = new GoogleAccountType(mContext, auth.packageName); 414 accountType = new ExchangeAccountType(mContext, auth.packageName, type); 419 accountType 542 addAccountType(AccountType accountType, Map<AccountTypeWithDataSet, AccountType> accountTypesByTypeAndDataSet, Map<String, List<AccountType>> accountTypesByType) argument 558 findAuthenticator(AuthenticatorDescription[] auths, String accountType) argument 591 getKindOrFallback(String accountType, String dataSet, String mimeType) argument [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
H A 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)); 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 D | GroupMetaData.java | 31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, argument 34 this.mAccountType = accountType;
|
H A D | SplitAggregateView.java | 117 String accountType; field in class:SplitAggregateView.RawContactInfo 145 String thisAccount = accountType != null ? accountType : ""; 146 String thatAccount = another.accountType != null ? another.accountType : ""; 167 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE); 251 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet); 252 if (accountType != null) { 253 icon = accountType [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | GroupListItem.java | 31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, argument 34 mAccountType = accountType;
|
H A D | GroupDetailDisplayUtils.java | 44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); 51 label.setText(accountType.getViewGroupLabel(context)); 58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context));
|
H A D | GroupBrowseListAdapter.java | 120 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/Contacts/src/com/android/contacts/interactions/ |
H A D | GroupCreationDialogFragment.java | 32 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 D | AccountWithDataSet.java | 34 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 D | PhotoPriorityResolver.java | 76 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 D | Sources.java | 119 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 D | BP2ProviderTests.java | 67 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 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/ |
H A D | SynchronousContactsProvider2.java | 162 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/Contacts/tests/src/com/android/contacts/tests/testauth/ |
H A D | TestAuthenticator.java | 62 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 D | LocalizedNameResolver.java | 56 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 D | StreamItemPopulatorActivity.java | 166 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...] |