HomeSort by relevance Sort by last modified time
    Searched refs:ACCOUNT (Results 1 - 24 of 24) sorted by null

  /cts/tests/tests/content/src/android/content/cts/
ContentResolverSyncTestCase.java 19 import android.accounts.Account;
42 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME,
62 // Need to clean up created account
63 removeAccount(sAccountManager, ACCOUNT, null /* callback */);
80 private void addAccountExplicitly(Account account, String password, Bundle userdata) {
81 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata));
84 private boolean removeAccount(AccountManager am, Account account
    [all...]
ContentResolverTest.java 19 import android.accounts.Account;
70 private static final Account ACCOUNT = new Account("cts", "cts");
    [all...]
  /cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
AccountManagementTest.java 19 import android.accounts.Account;
39 // Account type for MockAccountAuthenticator
40 private final static Account ACCOUNT = new Account("user0",
53 mAccountManager.removeAccountExplicitly(ACCOUNT);
63 // Management is disabled, adding account should fail.
81 // But MockAccountAuthenticator returns a new account straightway.
87 Account account = new Account(accountName, accountType) local
    [all...]
AccountUtilsTest.java 19 import android.accounts.Account;
40 // Account type for MockAccountAuthenticator
41 private final static Account ACCOUNT = new Account("user0",
55 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null));
63 mAccountManager.removeAccountExplicitly(ACCOUNT);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
AccountManagerTest.java 16 import android.accounts.Account;
25 private static final Account ACCOUNT = new Account("name", "type");
93 accountManager.getAuthToken(ACCOUNT, authTokenType, null, activity, null, null);
96 assertThat(ACCOUNT.name, equalTo(result.getString(AccountManager.KEY_ACCOUNT_NAME)));
97 assertThat(ACCOUNT.type, equalTo(result.getString(AccountManager.KEY_ACCOUNT_TYPE)));
110 Account[] origAccounts = new Account[] { ACCOUNT, ACCOUNT }
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerTest.java 19 import android.accounts.Account;
62 public static final String ACCOUNT_NAME = "android.accounts.cts.account.name";
63 public static final String ACCOUNT_NEW_NAME = "android.accounts.cts.account.name.rename";
64 public static final String ACCOUNT_NAME_OTHER = "android.accounts.cts.account.name.other";
66 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type";
67 public static final String ACCOUNT_TYPE_CUSTOM = "android.accounts.cts.custom.account.type";
68 public static final String ACCOUNT_TYPE_ABSENT = "android.accounts.cts.account.type.absent";
70 public static final String ACCOUNT_PASSWORD = "android.accounts.cts.account.password";
72 public static final String ACCOUNT_STATUS_TOKEN = "android.accounts.cts.account.status.token";
100 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE)
193 Account account = fetcher.getAccount(); local
1712 Account account = new Account("AccountNotOnThisDevice", ACCOUNT_TYPE); local
    [all...]
MockAccountAuthenticator.java 20 import android.accounts.Account;
35 * A simple Mock Account Authenticator
63 Account mAccount;
107 public Account getAccount() {
157 * Adds an account of the specified accountType.
169 am.addAccountExplicitly(AccountManagerTest.ACCOUNT, "fakePassword", null);
174 * Update the locally stored credentials for an account.
177 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
180 this.mAccount = account;
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
AllowedAccountManagementTest.java 19 import android.accounts.Account;
31 * These tests verify that the device / profile owner can use account management APIs to add
37 * which provides authenticator for a mock account type.
41 // Account type for MockAccountAuthenticator
43 "com.android.cts.devicepolicy.accountmanagement.account.type";
44 private final static String ACCOUNT_TYPE_2 = "com.dummy.account";
45 private final static Account ACCOUNT = new Account("user0", ACCOUNT_TYPE_1);
97 // But MockAccountAuthenticator returns a new account straightway
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
TurnAutoSyncOnDialog.java 19 import android.accounts.Account;
37 private static final String ACCOUNT = "account";
59 public static TurnAutoSyncOnDialog newInstance(Account account,
63 args.putParcelable(ACCOUNT, account);
71 final Account account = getArguments().getParcelable(ACCOUNT); local
    [all...]
MailboxSelectionActivity.java 20 import com.android.mail.providers.Account;
61 private static final String ACCOUNT = "name";
62 private static final String[] COLUMN_NAMES = { ACCOUNT };
73 // Boolean to indicate that we are waiting for the result from an add account
107 // we should set the title to "Select account".
114 // if we display the account list
221 // No account found, show Add Account screen, for both the widget or
223 // No account found, show Add Account screen, for both the widget o
368 Account account; local
    [all...]
ActionBarController.java 31 import com.android.mail.providers.Account;
60 * The account currently being shown
62 private Account mAccount;
79 /** Updates the resolver and tells it the most recent account. */
83 public UpdateProvider(Uri account, ContentResolver resolver) {
84 mAccount = account;
98 public void onChanged(Account newAccount) {
153 private void updateAccount(Account account) {
154 final boolean accountChanged = mAccount == null || !mAccount.uri.equals(account.uri)
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/logging/
ListEvent.java 61 public static final int ACCOUNT = 2;
  /packages/apps/Contacts/tests/src/com/android/contacts/editor/
EditorUiUtilsTest.java 28 import com.android.contacts.model.account.AccountDisplayInfo;
29 import com.android.contacts.model.account.AccountInfo;
30 import com.android.contacts.model.account.AccountType;
31 import com.android.contacts.model.account.AccountWithDataSet;
32 import com.android.contacts.model.account.DeviceLocalAccountType;
49 private static final AccountWithDataSet ACCOUNT =
50 new AccountWithDataSet(ACCOUNT_NAME, "some.account.type", null);
79 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, local
81 new FakeAccountType("com.example.account"));
94 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, "Device", local
106 final AccountDisplayInfo account = new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, local
117 final AccountDisplayInfo account = new AccountDisplayInfo(GOOGLE_ACCOUNT, ACCOUNT_NAME, local
130 final AccountDisplayInfo account = new AccountDisplayInfo(deviceAccount, "Device", local
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/preferredsim/suggestion/
SuggestionProvider.java 39 // The user has selected the SIM for all contacts on the account.
40 ACCOUNT,
  /frameworks/base/core/java/com/android/internal/notification/
SystemNotificationChannels.java 39 public static String ACCOUNT = "ACCOUNT";
195 ACCOUNT,
  /packages/apps/Settings/src/com/android/settings/accounts/
AccountDashboardFragment.java 49 return MetricsEvent.ACCOUNT;
104 // Show up to 3 account types, ignore any null value
AccountDetailDashboardFragment.java 18 import android.accounts.Account;
41 private static final String METADATA_IA_ACCOUNT = "com.android.settings.ia.account";
44 public static final String KEY_ACCOUNT = "account";
51 Account mAccount;
93 return MetricsEvent.ACCOUNT;
AccountSyncPreferenceController.java 21 import android.accounts.Account;
44 private Account mAccount;
68 .setSourceMetricsCategory( MetricsProto.MetricsEvent.ACCOUNT)
96 public void init(Account account, UserHandle userHandle) {
97 mAccount = account;
  /external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/
FakeFtpServerIntegrationTest.groovy 45 static final ACCOUNT = "account123"
75 assert ftpClient.acct(ACCOUNT) == 230
259 LOG.info("Logging in as $USERNAME/$PASSWORD with $ACCOUNT")
260 assert ftpClient.login(USERNAME, PASSWORD, ACCOUNT)
261 verifyReplyCode("login with $USERNAME/$PASSWORD with $ACCOUNT", 230)
  /packages/apps/Contacts/src/com/android/contacts/list/
ContactListFilter.java 19 import android.accounts.Account;
29 import com.android.contacts.model.account.AccountWithDataSet;
30 import com.android.contacts.model.account.GoogleAccountType;
102 AccountWithDataSet account) {
104 account.type, account.name, account.dataSet, icon);
133 return ListEvent.ListType.ACCOUNT;
166 return "account: " + accountType + (dataSet != null ? "/" + dataSet : "")
327 * Adds the account query parameters to the given {@code uriBuilder}
    [all...]
  /packages/apps/Email/provider_src/com/android/email/provider/
EmailProvider.java 80 import com.android.emailcommon.provider.Account;
167 // delete the old backups and trigger a new backup to the account manager
207 private static final int ACCOUNT = ACCOUNT_BASE;
295 array.put(ACCOUNT_BASE >> BASE_SHIFT, Account.TABLE_NAME);
503 // Delete orphaned mailboxes/messages/policies (account no longer exists)
505 AccountColumns._ID, Account.TABLE_NAME);
507 AccountColumns._ID, Account.TABLE_NAME);
509 AccountColumns.POLICY_KEY, Account.TABLE_NAME);
526 * Restore user Account and HostAuth data from our backup database
544 // If there's a backup database (old style) delete it and trigger an account manager backup
1624 Account account = new Account(); local
1687 final Account account = new Account(); local
1733 final Account account = Account.fromJsonString(jsonString); local
1864 final android.accounts.Account account = local
3525 final Account account = Account.restoreAccountWithId(context, accountId); local
4865 final Account account = Account.restoreAccountWithId(context, mailbox.mAccountKey); local
5733 final Account account = Account.restoreAccountWithId(context, accountId); local
5766 final android.accounts.Account account = getAccountManagerAccount(accountId); local
5823 final android.accounts.Account account = getAccountManagerAccount(mailbox.mAccountKey); local
6019 final Account account = Account.restoreAccountWithId(context, accountId); local
6047 final Account account = Account.restoreAccountWithId(context, accountId); local
6210 Account account = new Account(); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
UIProvider.java 43 * Values for the current state of a Folder/Account; note that it's possible that more than one
69 * An initial sync is needed for this Account/Folder to be used. This is account-wide, when
70 * the user has added an account, and the first sync has not completed successfully.
74 * Manual sync is required. This is account-wide, when the user has disabled sync on the
75 * Gmail account.
79 * Account initialization is required.
91 * Values for the result of the last attempted sync of a Folder/Account
156 "vnd.android.cursor.dir/vnd.com.android.mail.account";
158 "vnd.android.cursor.item/vnd.com.android.mail.account";
    [all...]
  /frameworks/base/services/core/java/com/android/server/accounts/
AccountManagerService.java 21 import android.accounts.Account;
137 * A system service that provides account, password, and authtoken management for all
206 private final HashMap<Pair<Pair<Account, String>, Integer>, NotificationId>
208 private final HashMap<Account, NotificationId> signinRequiredNotificationIds
213 final HashMap<String, Account[]> accountCache = new LinkedHashMap<>();
215 private final Map<Account, Map<String, String>> userDataCache = new HashMap<>();
217 private final Map<Account, Map<String, String>> authTokenCache = new HashMap<>();
221 private final Map<Account, Map<String, Integer>> visibilityCache = new HashMap<>();
225 * type == null is used to get notifications about all account types
232 * Caches the previous names associated with an account. Previous name
1186 final Account account = accountEntry.getValue(); local
2278 removeAccountInternal(getUserAccountsForCaller(), account, getCallingUid()); local
    [all...]
  /frameworks/base/services/core/java/com/android/server/content/
SyncManager.java 19 import android.accounts.Account;
353 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) {
357 && accounts[i].account.equals(account)) {
365 /** target indicates endpoints that should be synced after account info is updated. */
378 Account[] accountsForUser = AccountManagerService.getSingleton().getAccounts(
599 scheduleSync(info.account, info.userId, reason, info.provider, extras,
680 mAccountManagerInternal.addOnAppPermissionChangeListener((Account account, int uid) ->
    [all...]

Completed in 552 milliseconds