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

  /cts/tests/tests/content/src/android/content/cts/
ContentResolverSyncTestCase.java 19 import android.accounts.Account;
39 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME,
57 // Need to clean up created account
58 removeAccount(sAccountManager, ACCOUNT, null /* callback */);
75 private void addAccountExplicitly(Account account, String password, Bundle userdata) {
76 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata));
79 private boolean removeAccount(AccountManager am, Account account
    [all...]
ContentResolverTest.java 22 import android.accounts.Account;
69 private static final Account ACCOUNT = new Account("cts", "cts");
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerTest.java 19 import android.accounts.Account;
50 public static final String ACCOUNT_NAME = "android.accounts.cts.account.name";
51 public static final String ACCOUNT_NEW_NAME = "android.accounts.cts.account.name.rename";
52 public static final String ACCOUNT_NAME_OTHER = "android.accounts.cts.account.name.other";
54 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type";
55 public static final String ACCOUNT_TYPE_OTHER = "android.accounts.cts.account.type.other";
57 public static final String ACCOUNT_PASSWORD = "android.accounts.cts.account.password";
84 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE)
    [all...]
  /external/robolectric/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...]
  /external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/
MockGrantCredentialsPermissionActivity.java 7 import android.accounts.Account;
29 static final String ACCOUNT = "account";
37 Account account = (Account) getIntent().getParcelableExtra(ACCOUNT); local
39 String accountName = account == null ? null : account.name;
40 String message = "account = " + accountName + ", authTokenType = " + authTokenType
    [all...]
MockAccountManager.java 7 import android.accounts.Account;
60 * authtokentype for a given account, use prepareGrantAppPermission(...).
65 * If you want to auto-approve all auth token types for a given account, use the {@link
89 public MockAccountManager(Context context, Context testContext, Account... accounts) {
99 for (Account account : accounts) {
100 mAccounts.add(AccountHolder.create().account(account).alwaysAccept(true).build());
112 public Account[] getAccounts() {
117 public Account[] getAccountsByType(@Nullable String type)
    [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...]
  /external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
AwContentsClientCallbackHelperTest.java 70 static final String ACCOUNT = "account";
189 mClientHelper.postOnReceivedLoginRequest(REALM, ACCOUNT, ARGS);
192 assertEquals(ACCOUNT, receivedLoginRequestHelper.getAccount());
  /packages/apps/Contacts/src/com/android/contacts/activities/
ContactEditorAccountsChangedActivity.java 34 import com.android.contacts.common.model.account.AccountWithDataSet;
42 * which account the contact will be saved in. There is also an option to add an account at
44 * {@link #Intents.Insert.ACCOUNT} that contains the {@link AccountWithDataSet} to create
46 * account for this contact.
89 // which account to create a contact in.
105 // If the user has 1 writable account we will just show the user a message with 2
113 final AccountWithDataSet account = accounts.get(0); local
115 account.name));
117 // This button allows the user to add a new account to the device and return t
172 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); local
    [all...]
AttachPhotoActivity.java 47 import com.android.contacts.common.model.account.AccountType;
49 import com.android.contacts.common.model.account.AccountWithDataSet;
138 // Bail if the account selector was not successful.
140 Log.w(TAG, "account selector was not successful");
144 // If there's an account specified, use it.
146 AccountWithDataSet account = result.getParcelableExtra(Intents.Insert.ACCOUNT); local
147 if (account != null) {
148 createNewRawContact(account);
152 // If there isn't an account specified, then the user opted to keep the contact local
288 AccountType account = raw.getRawContactAccountType(this); local
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
AllIntentsActivity.java 19 import android.accounts.Account;
651 public void onAccountChosen(Account account, String dataSet, int tag) {
655 intent.putExtra(Insert.ACCOUNT, account);
663 intent.putExtra(Insert.ACCOUNT, account);
  /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/Contacts/src/com/android/contacts/editor/
ContactEditorFragment.java 19 import android.accounts.Account;
76 import com.android.contacts.common.model.account.AccountType;
77 import com.android.contacts.common.model.account.AccountWithDataSet;
78 import com.android.contacts.common.model.account.GoogleAccountType;
278 // Used to temporarily store existing contact data during a rebind call (i.e. account switch)
436 final Account account = mIntentExtras == null ? null : local
437 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT);
441 if (account != null)
1047 AccountWithDataSet account = (name == null || type == null) ? null : local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/group/
GroupEditorFragment.java 19 import android.accounts.Account;
68 import com.android.contacts.common.model.account.AccountType;
69 import com.android.contacts.common.model.account.AccountWithDataSet;
164 SELECTING_ACCOUNT, // Account select dialog is showing
232 // Account select dialog is showing. Don't setup the editor yet.
241 final Account account = mIntentExtras == null ? null : local
242 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT);
246 if (account != null)
    [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/core/java/android/provider/
ContactsContract.java 19 import android.accounts.Account;
71 * person and associated with a single account (for example, one of the user's
145 * A query parameter specifing a primary account. This parameter should be used with
149 * For example, in an email composition screen, its implementation can specify an account when
150 * obtaining possible recipients, letting the provider know which account is selected during
151 * the composition. The provider may use the "primary account" information to optimize
157 * A query parameter specifing a primary account. This parameter should be used with
364 * (for instance when the user adds a new Directory account), the directory provider
370 * A directory row can be optionally associated with an existing account
371 * (see {@link android.accounts.AccountManager}). If the account is later removed
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/quickcontact/
QuickContactActivity.java 19 import android.accounts.Account;
110 import com.android.contacts.common.model.account.AccountType;
111 import com.android.contacts.common.model.account.AccountWithDataSet;
481 * Headless fragment used to handle account selection callbacks invoked from
492 public void onAccountChosen(AccountWithDataSet account, Bundle extraArgs) {
494 account, mQuickContactActivity); local
    [all...]
  /external/chromium_org/third_party/android_platform/webview/
frameworks.jar 

Completed in 2041 milliseconds