/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/ |
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...] |
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...] |
/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...] |
/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);
|
/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...] |
/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...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/ |
IAccountService.aidl | 24 Bundle getConfigurationData(String accountType);
|
/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/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...] |
/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/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/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/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/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/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/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/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...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
AddAccountWithTypeActivity.java | 67 String accountType = getIntent().getStringExtra(AccountManager.KEY_ACCOUNT_TYPE); 68 if (accountType != null) { 69 startAddAccount(accountType); 84 String accountType = data.getExtras().getString(AccountManager.KEY_ACCOUNT_TYPE); 85 startAddAccount(accountType); 97 private void startAddAccount(String accountType) { 99 accountType,
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
TestDefaultAuthenticator.java | 38 public TestDefaultAuthenticator(Context context, String accountType) { 40 mAccountType = accountType; 45 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { 53 String accountType, 57 if (!mAccountType.equals(accountType)) { 73 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result));
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
TestAccountType2Authenticator.java | 40 public TestAccountType2Authenticator(Context context, String accountType) { 42 mAccountType = accountType; 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { 55 String accountType, 110 String accountType, 132 String accountType,
|
/frameworks/base/core/java/android/accounts/ |
IAccountAuthenticator.aidl | 31 void addAccount(in IAccountAuthenticatorResponse response, String accountType, 60 void editProperties(in IAccountAuthenticatorResponse response, String accountType); 91 void startAddAccountSession(in IAccountAuthenticatorResponse response, String accountType, 105 void finishSession(in IAccountAuthenticatorResponse response, String accountType,
|