HomeSort by relevance Sort by last modified time
    Searched full:accounttype (Results 1 - 25 of 252) sorted by null

1 2 3 4 5 6 7 8 91011

  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
MockAccountTypeManager.java 19 import com.android.contacts.common.model.account.AccountType;
36 public AccountType[] mTypes;
39 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) {
45 public AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet) {
46 // Add fallback accountType to mimic the behavior of AccountTypeManagerImpl
47 AccountType mFallbackAccountType = new BaseAccountType() {
53 mFallbackAccountType.accountType = "fallback";
54 for (AccountType type : mTypes) {
55 if (Objects.equal(accountTypeWithDataSet.accountType, type.accountType)
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
AuthenticatorHelper.java 50 * @param accountType the type of account
53 public Drawable getDrawableForType(Context context, final String accountType) {
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) {
81 if (mTypeToAuthDescription.containsKey(accountType)) {
    [all...]
AddAccountWithTypeActivity.java 71 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE);
72 if (accountType != null) {
73 startAddAccount(accountType);
85 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE);
86 startAddAccount(accountType);
98 private void startAddAccount(String accountType) {
100 accountType,
  /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 86 public void preloadDrawableForType(final Context context, final String accountType) {
90 getDrawableForType(context, accountType);
98 * @param accountType the type of account
101 public Drawable getDrawableForType(Context context, final String accountType) {
104 if (mAccTypeIconCache.containsKey(accountType)) {
105 return mAccTypeIconCache.get(accountType);
108 if (mTypeToAuthDescription.containsKey(accountType)) {
110 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType);
116 mAccTypeIconCache.put(accountType, icon);
130 * @param accountType the type of accoun
    [all...]
ChooseAccountActivity.java 75 ProviderEntry(CharSequence providerName, String accountType) {
77 type = accountType;
103 for (String accountType : accountTypesFilter) {
104 mAccountTypesFilter.add(accountType);
130 String accountType = mAuthDescs[i].type;
131 CharSequence providerName = getLabelForType(accountType);
135 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType);
147 && !mAccountTypesFilter.contains(accountType)) {
151 mProviderList.add(new ProviderEntry(providerName, accountType));
192 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/model/
AccountTypeManager.java 46 import com.android.contacts.common.model.account.AccountType;
73 * Singleton holder for all parsed {@link AccountType} available on the
122 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet);
124 public final AccountType getAccountType(String accountType, String dataSet) {
125 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet));
128 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) {
133 * @return Unmodifiable map from {@link AccountTypeWithDataSet}s to {@link AccountType}s
145 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes();
149 * {@link AccountType#accountType}, {@link AccountType#dataSet}, and {@link DataKind#mimeType}
    [all...]
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/
AccountTypeTest.java 26 * Test case for {@link AccountType}.
41 assertEquals(DEFAULT, AccountType.getResourceText(c, null, -1, DEFAULT));
44 assertEquals(DEFAULT, AccountType.getResourceText(c, packageName, -1, DEFAULT));
49 AccountType.getResourceText(c, packageName, externalResID, DEFAULT));
54 AccountType.getResourceText(c, null, internalResId, DEFAULT));
58 * Verify if {@link AccountType#getInviteContactActionLabel} correctly gets the resource ID
59 * from {@link AccountType#getInviteContactActionResId}
67 AccountType accountType = new AccountType() {
    [all...]
  /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...]
  /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...]
ContactListFilterView.java 30 import com.android.contacts.common.model.account.AccountType;
82 mAccountType = (TextView) findViewById(R.id.accountType);
123 final AccountType accountType =
124 accountTypes.getAccountType(mFilter.accountType, mFilter.dataSet);
126 mAccountType.setText(accountType.getDisplayLabel(getContext()));
  /packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
AccountTypeManagerTest.java 23 import com.android.contacts.common.model.account.AccountType;
46 final AccountType typeA = new MockAccountType("type1", null, null);
47 final AccountType typeB = new MockAccountType("type1", "minus", null);
48 final AccountType typeC = new MockAccountType("type2", null, "c");
49 final AccountType typeD = new MockAccountType("type2", "minus", "d");
58 Map<AccountTypeWithDataSet, AccountType> types =
129 private static AccountWithDataSet createAccountWithDataSet(String name, AccountType type) {
130 return new AccountWithDataSet(name, type.accountType, type.dataSet);
134 * Array of {@link AccountType} -> {@link Map}
136 private static Map<AccountTypeWithDataSet, AccountType> buildAccountTypes(AccountType... types)
    [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);
47 void invalidateAuthToken(String accountType, String authToken);
58 void addAccount(in IAccountManagerResponse response, String accountType,
61 void addAccountAsUser(in IAccountManagerResponse response, String accountType,
66 void editProperties(in IAccountManagerResponse response, String accountType,
70 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType,
  /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/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/Contacts/src/com/android/contacts/group/
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/UnifiedEmail/src/com/android/mail/photo/
MailPhotoViewActivity.java 48 * @param accountType The type of the account.
53 final String accountType, final ConversationMessage msg, final int photoIndex) {
62 context.startActivity(wrapIntent(builder.build(), account, accountType, msg));
71 final String accountType, final ConversationMessage msg, final String initialPhotoUri) {
73 buildMailPhotoViewActivityIntent(context, account, accountType, msg,
78 final Context context, final String account, final String accountType,
87 return wrapIntent(builder.build(), account, accountType, msg);
91 final Intent intent, final String account, final String accountType,
95 intent.putExtra(EXTRA_ACCOUNT_TYPE, 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/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();
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AccountManagerTest.java 29 private String accountType;
38 accountType = "accountType";
46 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
56 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
66 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
76 accountManager.invalidateAuthToken(accountType, null);
82 accountManager.getAuthTokenByFeatures(accountType, authTokenType, features, activity, null, null, null, null);
  /external/chromium_org/chrome/android/shell/res/xml/
syncadapter.xml 7 android:accountType="com.google"
  /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/apps/ContactsCommon/tests/src/com/android/contacts/common/
RawContactModifierTests.java 47 import com.android.contacts.common.model.account.AccountType;
48 import com.android.contacts.common.model.account.AccountType.EditType;
61 * Tests for {@link RawContactModifier} to verify that {@link AccountType}
87 public static class MockContactsSource extends AccountType {
91 this.accountType = TEST_ACCOUNT_TYPE;
155 * Build a {@link AccountType} that has various odd constraints for
158 protected AccountType getAccountType() {
165 protected AccountTypeManager getAccountTypes(AccountType... types) {
207 final AccountType source = getAccountType();
252 final AccountType source = getAccountType()
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionView.java 33 import com.android.contacts.common.model.account.AccountType;
120 String accountType = rawContact.accountType;
122 if (accountType == null) {
125 AccountType type = accountTypes.getAccountType(accountType, dataSet);

Completed in 863 milliseconds

1 2 3 4 5 6 7 8 91011