HomeSort by relevance Sort by last modified time
    Searched defs:accountType (Results 1 - 25 of 150) sorted by null

1 2 3 4 5 6

  /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...]
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
AddAccountTx.java 26 public final String accountType;
33 accountType = in.readString();
41 String accountType,
46 this.accountType = accountType;
64 out.writeString(accountType);
EditPropertiesTx.java 23 public final String accountType;
27 accountType = in.readString();
32 String accountType,
34 this.accountType = accountType;
45 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/list/
ContactListFilterView.java 31 import com.android.contacts.model.account.AccountType;
88 mAccountType = (TextView) findViewById(R.id.accountType);
129 final AccountType accountType =
130 accountTypes.getAccountType(mFilter.accountType, mFilter.dataSet);
132 mAccountType.setText(accountType.getDisplayLabel(getContext()));
  /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/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);
  /cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
AccountManagementTest.java 82 String accountType = result.getString(AccountManager.KEY_ACCOUNT_TYPE);
84 assertEquals(MockAccountAuthenticator.ACCOUNT_TYPE, accountType);
87 Account account = new Account(accountName, 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...]
SyncAdaptersCache.java 65 final String accountType =
67 if (TextUtils.isEmpty(authority) || TextUtils.isEmpty(accountType)) {
84 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading,
145 out.attribute(null, "accountType", item.accountType);
151 final String accountType = parser.getAttributeValue(null, "accountType");
152 return SyncAdapterType.newKey(authority, accountType);
  /frameworks/base/services/core/java/com/android/server/accounts/
AccountAuthenticatorCache.java 62 final String accountType =
74 if (TextUtils.isEmpty(accountType)) {
77 return new AuthenticatorDescription(accountType, packageName, labelId, iconId,
  /packages/apps/Car/Settings/src/com/android/car/settings/accounts/
AccountManagerHelper.java 78 String accountType = accountTypes[i];
80 .getAccountsByTypeAsUser(accountType, mCurrentUserHandle);
114 * @param accountType the type of account
117 public Drawable getDrawableForType(final String accountType) {
118 return mAuthenticatorHelper.getDrawableForType(mContext, accountType);
125 * @param accountType the type of account
128 public CharSequence getLabelForType(final String accountType) {
129 return mAuthenticatorHelper.getLabelForType(mContext, accountType);
ChooseAccountItemProvider.java 106 String accountType = mProviderList.get(i).type;
107 Drawable icon = mAuthenticatorHelper.getDrawableForType(mContext, accountType);
112 item.setOnClickListener(v -> onItemSelected(accountType));
117 // Starts a AddAccountActivity for the accountType that was clicked on.
118 private void onItemSelected(String accountType) {
120 intent.putExtra(AddAccountActivity.EXTRA_SELECTED_ACCOUNT, accountType);
139 String accountType = mAuthDescs[i].type;
140 CharSequence providerName = getLabelForType(accountType);
143 ArrayList<String> accountAuths = getAuthoritiesForAccountType(accountType);
151 new ProviderEntry(providerName, accountType));
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/group/
GroupMetaData.java 29 import com.android.contacts.model.account.AccountType;
49 public final String accountType;
66 final AccountType accountType = accountTypeManager.getAccountType(
69 final boolean editable = accountType == null
70 ? false : accountType.isGroupMembershipEditable();
74 this.accountType = cursor.getString(GroupMetaDataLoader.ACCOUNT_TYPE);
91 accountType = source.readString();
105 dest.writeString(accountType);
132 .add("accountType", accountType
    [all...]
  /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...]
  /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,
  /frameworks/ex/common/java/com/android/common/content/
SyncStateContentProviderHelper.java 118 final String accountType = c.getString(1);
119 Account account = new Account(accountName, accountType);
122 new String[]{accountName, accountType});
  /packages/apps/Contacts/src/com/android/contacts/util/
AccountFilterUtil.java 46 import com.android.contacts.model.account.AccountType;
142 final AccountType accountType = accountInfo.getType();
144 if ((accountType.isExtension() ||
151 final Drawable icon = accountType != null ?
152 accountType.getDisplayIcon(getContext()) : null;
195 && filter.accountType != null) {
196 final Account account = new Account(filter.accountName, filter.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...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
SetPolicyActivity.java 45 private static final String COMMAND_BLOCK_ACCOUNT_TYPE = "block-accounttype";
46 private static final String COMMAND_UNBLOCK_ACCOUNT_TYPE = "unblock-accounttype";
90 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE);
92 accountType, true);
93 Log.i(TAG, "Blocking account management for account type: " + accountType
96 String accountType = intent.getStringExtra(EXTRA_ACCOUNT_TYPE);
98 accountType, false);
99 Log.i(TAG, "Unblocking account management for account type: " + accountType
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
DummyGalProvider.java 168 final String accountType = uri.getQueryParameter(RawContacts.ACCOUNT_TYPE);
179 if (!ACCOUNT_TYPE.equals(accountType)) {
181 ACCOUNT_TYPE, 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/
SplitAggregateView.java 39 import com.android.contacts.model.account.AccountType;
117 String accountType;
145 String thisAccount = accountType != null ? accountType : "";
146 String thatAccount = another.accountType != null ? another.accountType : "";
170 info.accountType = cursor.getString(SplitQuery.ACCOUNT_TYPE);
254 AccountType accountType = mAccountTypes.getAccountType(info.accountType, info.dataSet)
    [all...]

Completed in 377 milliseconds

1 2 3 4 5 6