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

1 2 3 4 5 6 7 8 91011>>

  /packages/apps/Contacts/tests/src/com/android/contacts/tests/
FakeDeviceAccountTypeFactory.java 18 import com.android.contacts.model.account.AccountType;
26 private final Map<String, AccountType> mDeviceAccountTypes = new HashMap<>();
27 private final Map<String, AccountType> mSimAccountTypes = new HashMap<>();
30 public int classifyAccount(String accountType) {
31 if (mDeviceAccountTypes.containsKey(accountType)) {
33 } else if (mSimAccountTypes.containsKey(accountType)) {
41 public AccountType getAccountType(String accountType) {
42 final AccountType type = mDeviceAccountTypes.get(accountType);
    [all...]
FakeAccountType.java 24 import com.android.contacts.model.account.AccountType;
27 public class FakeAccountType extends AccountType {
54 accountType = type;
77 public static FakeAccountType create(String accountType, String label) {
79 result.accountType = accountType;
84 public static FakeAccountType create(String accountType, String label, Drawable icon) {
86 result.accountType = accountType;
92 public static AccountType create(AccountWithDataSet account, String label, Drawable icon)
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AuthenticatorDescriptionTest.java 9 private String accountType = "com.my.auth";
15 desc = new AuthenticatorDescription(accountType, packageName, 1, 1, 1, 1, true);
28 new AuthenticatorDescription(accountType, null, 1, 1, 1, 1);
35 new AuthenticatorDescription(accountType, packageName, -1, 0, -1, 1);
36 new AuthenticatorDescription(accountType, packageName, -1, 0, -1, 1, true);
45 AuthenticatorDescription desc = AuthenticatorDescription.newKey(accountType);
46 assertEquals(desc.type, accountType);
  /packages/apps/Contacts/src/com/android/contacts/model/account/
AccountTypeProvider.java 44 * Provides access to {@link AccountType}s with contact data
57 private final ConcurrentMap<String, List<AccountType>> mCache = new ConcurrentHashMap<>();
79 * <p>There are many {@link AccountType}s for each accountType because {@AccountType} includes
84 public List<AccountType> getAccountTypes(String accountType) {
86 if (accountType == null) {
87 AccountType type = mLocalAccountTypeFactory.getAccountType(accountType);
    [all...]
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...]
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
EditPropertiesTx.java 23 public final String accountType;
27 accountType = in.readString();
32 String accountType,
34 this.accountType = accountType;
45 out.writeString(accountType);
AddAccountTx.java 26 public final String accountType;
33 accountType = in.readString();
41 String accountType,
46 this.accountType = accountType;
64 out.writeString(accountType);
StartAddAccountSessionTx.java 26 public final String accountType;
32 accountType = in.readString();
39 String accountType,
43 this.accountType = accountType;
60 out.writeString(accountType);
  /packages/apps/Contacts/src/com/android/contacts/util/
DeviceLocalAccountTypeFactory.java 21 import com.android.contacts.model.account.AccountType;
41 @DeviceLocalAccountTypeFactory.LocalAccountType int classifyAccount(String accountType);
43 AccountType getAccountType(String accountType);
67 public int classifyAccount(String accountType) {
68 return accountType == null ? TYPE_DEVICE : TYPE_OTHER;
72 public AccountType getAccountType(String accountType) {
73 if (accountType != null) {
74 throw new IllegalArgumentException(accountType + " is not a device account type.")
    [all...]
  /frameworks/base/core/java/android/content/
SyncAdapterType.java 30 public final String accountType;
39 public SyncAdapterType(String authority, String accountType, boolean userVisible,
44 if (TextUtils.isEmpty(accountType)) {
45 throw new IllegalArgumentException("the accountType must not be empty: " + accountType);
48 this.accountType = accountType;
59 public SyncAdapterType(String authority, String accountType, boolean userVisible,
68 if (TextUtils.isEmpty(accountType)) {
69 throw new IllegalArgumentException("the accountType must not be empty: " + accountType)
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/accounts/
AuthenticatorHelper.java 79 public void preloadDrawableForType(final Context context, final String accountType) {
83 getDrawableForType(context, accountType);
91 * @param accountType the type of account
95 public Drawable getDrawableForType(Context context, final String accountType) {
98 if (mAccTypeIconCache.containsKey(accountType)) {
99 return mAccTypeIconCache.get(accountType);
102 if (mTypeToAuthDescription.containsKey(accountType)) {
104 AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType);
110 mAccTypeIconCache.put(accountType, icon);
124 * @param accountType the type of accoun
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/model/
AccountTypeManager.java 47 import com.android.contacts.common.model.account.AccountType;
71 * Singleton holder for all parsed {@link AccountType} available on the system, typically filled
118 public abstract AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet);
120 public final AccountType getAccountType(String accountType, String dataSet) {
121 return getAccountType(AccountTypeWithDataSet.get(accountType, dataSet));
124 public final AccountType getAccountTypeForAccount(AccountWithDataSet account) {
132 * @return Unmodifiable map from {@link AccountTypeWithDataSet}s to {@link AccountType}s which
142 public abstract Map<AccountTypeWithDataSet, AccountType> getUsableInvitableAccountTypes();
145 * Find the best {@link DataKind} matching the requested {@link AccountType#accountType}, {@lin
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/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/Contacts/tests/src/com/android/contacts/test/mocks/
MockAccountTypeManager.java 22 import com.android.contacts.model.account.AccountType;
38 public AccountType[] mTypes;
41 public MockAccountTypeManager(AccountType[] types, AccountWithDataSet[] accounts) {
47 public AccountType getAccountType(AccountTypeWithDataSet accountTypeWithDataSet) {
48 // Add fallback accountType to mimic the behavior of AccountTypeManagerImpl
49 AccountType mFallbackAccountType = new BaseAccountType() {
55 mFallbackAccountType.accountType = "fallback";
56 for (AccountType type : mTypes) {
57 if (Objects.equal(accountTypeWithDataSet.accountType, type.accountType)
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/model/account/
AccountTypeWithDataSet.java 39 public final String accountType;
44 private AccountTypeWithDataSet(String accountType, String dataSet) {
45 this.accountType = TextUtils.isEmpty(accountType) ? null : accountType;
49 public static AccountTypeWithDataSet get(String accountType, String dataSet) {
50 return new AccountTypeWithDataSet(accountType, dataSet);
63 args = new String[] {accountType};
66 args = new String[] {accountType, dataSet};
90 return Objects.equals(accountType, other.accountType) && Objects.equals(dataSet, other.dataSet)
    [all...]
  /packages/apps/Dialer/java/com/android/contacts/common/list/
ContactListFilter.java 44 String accountType = source.readString();
46 return new ContactListFilter(filterType, accountType, accountName, dataSet, null);
64 private static final String KEY_ACCOUNT_TYPE = "filter.accountType";
67 public final String accountType;
74 int filterType, String accountType, String accountName, String dataSet, Drawable icon) {
76 this.accountType = accountType;
87 String accountType, String accountName, String dataSet, Drawable icon) {
89 ContactListFilter.FILTER_TYPE_ACCOUNT, accountType, accountName, dataSet, icon);
105 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.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/Contacts/src/com/android/contacts/editor/
RawContactDeltaComparator.java 24 import com.android.contacts.model.account.AccountType;
50 final AccountType type1 = accountTypes.getAccountType(accountType1, dataSet1);
53 final AccountType type2 = accountTypes.getAccountType(accountType2, dataSet2);
77 if (type1.accountType != null && type2.accountType == null) {
79 } else if (type1.accountType == null && type2.accountType != null) {
83 if (type1.accountType != null && type2.accountType != null) {
84 value = type1.accountType.compareTo(type2.accountType)
    [all...]
  /packages/apps/Settings/src/com/android/settings/accounts/
ChooseAccountActivity.java 88 ProviderEntry(CharSequence providerName, String accountType) {
90 type = accountType;
124 for (String accountType : accountTypesFilter) {
125 mAccountTypesFilter.add(accountType);
151 String accountType = mAuthDescs[i].type;
152 CharSequence providerName = getLabelForType(accountType);
156 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType);
168 && !mAccountTypesFilter.contains(accountType)) {
172 mProviderList.add(new ProviderEntry(providerName, accountType));
238 ArrayList<String> authorities = mAccountTypeToAuthorities.get(sa.accountType);
    [all...]
  /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/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();
  /cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/res/xml/
authenticator.xml 19 android:accountType="android.content.sync.cts.accounttype"/>
  /external/robolectric/v1/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);
  /packages/apps/Contacts/src/com/android/contacts/list/
ContactListFilter.java 61 private static final String KEY_ACCOUNT_TYPE = "filter.accountType";
65 public final String accountType;
71 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet,
74 this.accountType = accountType;
84 public static ContactListFilter createAccountFilter(String accountType, String accountName,
86 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType,
90 public static ContactListFilter createGroupMembersFilter(String accountType, String accountName,
92 return new ContactListFilter(ContactListFilter.FILTER_TYPE_GROUP_MEMBERS, accountType,
98 /* accountType= */ null, /* accountName= */ null, /* dataSet= */ null, icon)
    [all...]
  /frameworks/base/core/java/android/accounts/
IAccountManager.aidl 37 Account[] getAccounts(String accountType, String opPackageName);
40 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName);
43 void getAccountByTypeAndFeatures(in IAccountManagerResponse response, String accountType,
45 void getAccountsByFeatures(in IAccountManagerResponse response, String accountType,
55 void invalidateAuthToken(String accountType, String authToken);
66 void addAccount(in IAccountManagerResponse response, String accountType,
69 void addAccountAsUser(in IAccountManagerResponse response, String accountType,
74 void editProperties(in IAccountManagerResponse response, String accountType,
79 void getAuthTokenLabel(in IAccountManagerResponse response, String accountType,
93 void startAddAccountSession(in IAccountManagerResponse response, String accountType,
    [all...]

Completed in 854 milliseconds

1 2 3 4 5 6 7 8 91011>>