/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
AccountTypeWithDataSet.java | 40 public final String accountType; 45 private AccountTypeWithDataSet(String accountType, String dataSet) { 46 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType; 50 public static AccountTypeWithDataSet get(String accountType, String dataSet) { 51 return new AccountTypeWithDataSet(accountType, dataSet); 64 args = new String[] {accountType}; 67 args = new String[] {accountType, dataSet}; 85 return Objects.equal(accountType, other.accountType [all...] |
/frameworks/base/core/java/android/content/ |
SyncAdapterType.java | 29 public final String accountType; 37 public SyncAdapterType(String authority, String accountType, boolean userVisible, 42 if (TextUtils.isEmpty(accountType)) { 43 throw new IllegalArgumentException("the accountType must not be empty: " + accountType); 46 this.accountType = accountType; 56 public SyncAdapterType(String authority, String accountType, boolean userVisible, 64 if (TextUtils.isEmpty(accountType)) { 65 throw new IllegalArgumentException("the accountType must not be empty: " + accountType) [all...] |
SyncAdaptersCache.java | 53 final String accountType = 55 if (authority == null || accountType == null) { 72 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, 82 out.attribute(null, "accountType", item.accountType); 88 final String accountType = parser.getAttributeValue(null, "accountType"); 89 return SyncAdapterType.newKey(authority, accountType);
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
AuthenticatorHelper.java | 49 public void preloadDrawableForType(final Context context, final String accountType) { 53 getDrawableForType(context, accountType); 61 * @param accountType the type of account 64 public Drawable getDrawableForType(Context context, final String accountType) { 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 the type of accoun [all...] |
ChooseAccountActivity.java | 62 ProviderEntry(CharSequence providerName, String accountType) { 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); [all...] |
ProviderPreference.java | 35 Context context, String accountType, Drawable icon, CharSequence providerName) { 37 mAccountType = accountType;
|
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, 146 if (mAuthenticatorHelper.containsAccountType(accountType)) { 149 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); 169 protected Drawable getDrawableForType(final String accountType) { 170 return mAuthenticatorHelper.getDrawableForType(getActivity(), accountType); [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EventColorCache.java | 46 public void insertColor(String accountName, String accountType, int displayColor, 48 mColorKeyMap.put(createKey(accountName, accountType, displayColor), colorKey); 49 String key = createKey(accountName, accountType); 61 public int[] getColorArray(String accountName, String accountType) { 62 ArrayList<Integer> colors = mColorPaletteMap.get(createKey(accountName, accountType)); 76 public int getColorKey(String accountName, String accountType, int displayColor) { 77 return mColorKeyMap.get(createKey(accountName, accountType, displayColor)); 96 private String createKey(String accountName, String accountType) { 99 .append(accountType) 103 private String createKey(String accountName, String accountType, int displayColor) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
ContactListFilter.java | 51 private static final String KEY_ACCOUNT_TYPE = "filter.accountType"; 55 public final String accountType; 61 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet, 64 this.accountType = accountType; 74 public static ContactListFilter createAccountFilter(String accountType, String accountName, 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/ |
BookmarksLoader.java | 54 public BookmarksLoader(Context context, String accountType, String accountName) { 55 super(context, addAccount(Bookmarks.CONTENT_URI_DEFAULT_FOLDER, accountType, accountName), 57 mAccountType = accountType; 66 static Uri addAccount(Uri uri, String accountType, String accountName) { 67 return uri.buildUpon().appendQueryParameter(Bookmarks.PARAM_ACCOUNT_TYPE, accountType).
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
CalendarColorCache.java | 84 private void insert(String accountName, String accountType) { 85 mCache.add(generateKey(accountName, accountType)); 91 public boolean hasColors(String accountName, String accountType) { 92 return mCache.contains(generateKey(accountName, accountType)); 105 private String generateKey(String accountName, String accountType) { 107 return mStringBuffer.append(accountName).append(SEPARATOR).append(accountType).toString();
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
AccountTypeManager.java | 47 import com.android.contacts.common.model.account.AccountType; 74 * Singleton holder for all parsed {@link AccountType} available on the 123 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet); 125 public final AccountType getAccountType(String accountType, String dataSet) { 126 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet)); 129 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) { 134 * @return Unmodifiable map from {@link AccountTypeWithDataSet}s to {@link AccountType}s 146 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes(); 150 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType} [all...] |
/frameworks/base/core/java/android/accounts/ |
IAccountManager.aidl | 33 Account[] getAccounts(String accountType); 36 Account[] getAccountsAsUser(String accountType, int userId); 38 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType, in String[] features); 41 void invalidateAuthToken(String accountType, String authToken); 52 void addAccount(in IAccountManagerResponse response, String accountType, 57 void editProperties(in IAccountManagerResponse response, String accountType, 61 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType,
|
/packages/apps/Contacts/tests/src/com/android/contacts/editor/ |
ContactEditorUtilsTest.java | 23 import com.android.contacts.common.model.account.AccountType; 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); 65 mAccountTypes = new MockAccountTypeManager(new AccountType[] {}, 73 private void setAccountTypes(AccountType... types) { 94 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType), Sets.newHashSet(types)); 100 MoreAsserts.assertEquals(Sets.newHashSet(TYPE1.accountType, TYPE2EX.accountType) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupListItem.java | 31 public GroupListItem(String accountName, String accountType, String dataSet, long groupId, 34 mAccountType = accountType;
|
GroupDetailDisplayUtils.java | 27 import com.android.contacts.common.model.account.AccountType; 44 AccountType accountType = accountTypeManager.getAccountType(accountTypeString, dataSet); 51 label.setText(accountType.getViewGroupLabel(context)); 58 accountIcon.setImageDrawable(accountType.getDisplayIcon(context));
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GroupMetaData.java | 31 public GroupMetaData(String accountName, String accountType, String dataSet, long groupId, 34 this.mAccountType = accountType;
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
IAccountService.aidl | 29 Bundle getConfigurationData(String accountType);
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
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,
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
AccountWithDataSet.java | 34 public AccountWithDataSet(String accountName, String accountType, String dataSet) { 36 mAccountType = emptyToNull(accountType); 44 public static AccountWithDataSet get(String accountName, String accountType, String dataSet) { 45 return new AccountWithDataSet(accountName, accountType, dataSet);
|
PhotoPriorityResolver.java | 76 public synchronized int getPhotoPriority(String accountType) { 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) { 96 if (accountType.equals(auth.type)) {
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
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.equals(auth.type)) [all...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2ProviderTests.java | 67 private void doTestIsValidParent(String accountName, String accountType) { 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/ |
ContactDetailUpdatesFragment.java | 37 import com.android.contacts.common.model.account.AccountType; 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()); 92 private AccountType getAccountTypeForStreamItemEntry(StreamItemEntry streamItemEntry) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
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) { 184 return !READ_ONLY_ACCOUNT_TYPE.equals(accountType);
|