/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; 48 public static final String ACCOUNT_NAME = "android.accounts.cts.account.name"; 49 public static final String ACCOUNT_NAME_OTHER = "android.accounts.cts.account.name.other"; 51 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type"; 52 public static final String ACCOUNT_TYPE_OTHER = "android.accounts.cts.account.type.other"; 54 public static final String ACCOUNT_PASSWORD = "android.accounts.cts.account.password"; 82 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE); 83 public static final Account ACCOUNT_SAME_TYPE = new Account(ACCOUNT_NAME_OTHER, 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; 31 static final String ACCOUNT = "account"; 39 Account account = (Account) getIntent().getParcelableExtra(ACCOUNT); local 41 String accountName = account == null ? null : account.name; 42 String message = "account = " + accountName + ", authTokenType = " + authTokenType [all...] |
MockAccountManager.java | 7 import android.accounts.Account; 57 * authtokentype for a given account, use prepareGrantAppPermission(...). 62 * If you want to auto-approve all auth token types for a given account, use the {@link 86 public MockAccountManager(Context context, Context testContext, Account... accounts) { 96 for (Account account : accounts) { 97 mAccounts.add(AccountHolder.create().account(account).alwaysAccept(true).build()); 109 public Account[] getAccounts() { 114 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; 62 private static final String ACCOUNT = "name"; 63 private static final String[] COLUMN_NAMES = { ACCOUNT }; 74 // Boolean to indicate that we are waiting for the result from an add account 105 // we should set the title to "Select account". 116 // if we display the account list 223 // No account found, show Add Account screen, for both the widget or 225 // No account found, show Add Account screen, for both the widget o 369 Account account; local [all...] |
MailActionBarView.java | 48 import com.android.mail.providers.Account; 82 * The account currently being shown 84 private Account mAccount; 112 /** Message sent to display the account email address in the subtitle. */ 120 // Display the account name (email address). 124 LogUtils.wtf(LOG_TAG, "MABV.handleMessage() has a null account!"); 131 /** Changes the subtitle to display the account name */ 140 /** Updates the resolver and tells it the most recent account. */ 144 public UpdateProvider(Uri account, ContentResolver resolver) { 145 mAccount = account; [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/adapter/ |
DrawerItem.java | 21 import com.android.mail.providers.Account; 39 * This class is an enumeration of a few element types: Account, a folder, a recent folder, 43 com.android.mail.providers.Account, int, boolean, BidiFormatter)}, 52 public final Account mAccount; 54 /** True if the drawer item represents the current account, false otherwise */ 62 /** An account object, which allows switching accounts rather than folders. */ 79 * {@link #mType} is {@link #VIEW_FOLDER}, or an {@link #ACCOUNT} in the case of 94 public static final int ACCOUNT = 4; 124 * {@link #ACCOUNT}, or {@link #INERT_HEADER} 125 * @param account the account object, for an account drawer elemen [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/ |
MessageComposeTests.java | 38 import com.android.emailcommon.provider.Account; 68 private static final String ACCOUNT = "account@android.com"; 130 * are configured on the device and a default account has been specified, 138 // Force assignment of a default account 139 long accountId = Account.getDefaultAccountId(mContext); 141 Account account = new Account(); local 142 account.mSenderName = "Bob Sender" 149 Account account = Account.restoreAccountWithId(mContext, accountId); local 206 final Account account = new Account(); local 250 final Account account = new Account(); local 293 final Account account = new Account(); local 325 final Account account = new Account(); local 346 final Account account = new Account(); local 381 final Account account = new Account(); local 554 final Account account = new Account(); local 590 final Account account = new Account(); local 627 final Account account = new Account(); local 665 final Account account = new Account(); local 963 final Account account = new Account(); local [all...] |
/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...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
AllIntentsActivity.java | 19 import android.accounts.Account; 630 public void onAccountChosen(Account account, String dataSet, int tag) { 634 intent.putExtra(Insert.ACCOUNT, account); 642 intent.putExtra(Insert.ACCOUNT, account);
|
/packages/apps/Email/src/com/android/email/provider/ |
EmailProvider.java | 74 import com.android.emailcommon.provider.Account; 188 private static final int ACCOUNT = ACCOUNT_BASE; 268 array.put(ACCOUNT_BASE >> BASE_SHIFT, Account.TABLE_NAME); 454 // Delete orphaned mailboxes/messages/policies (account no longer exists) 456 AccountColumns.ID, Account.TABLE_NAME); 458 AccountColumns.ID, Account.TABLE_NAME); 460 AccountColumns.POLICY_KEY, Account.TABLE_NAME); 477 * Restore user Account and HostAuth data from our backup database 497 "SELECT EXISTS (SELECT ? FROM " + Account.TABLE_NAME + " )", 500 LogUtils.w(TAG, "restoreIfNeeded: Account exists.") 1392 Account account = new Account(); local 1613 final android.accounts.Account account = local 2990 final Account account = Account.restoreAccountWithId(context, accountId); local 4413 final Account account = Account.restoreAccountWithId(context, mailbox.mAccountKey); local 5213 final Account account = Account.restoreAccountWithId(context, accountId); local 5243 final android.accounts.Account account = getAccountManagerAccount(accountId); local 5300 final android.accounts.Account account = getAccountManagerAccount(mailbox.mAccountKey); local 5484 final Account account = Account.restoreAccountWithId(context, accountId); local 5510 final Account account = Account.restoreAccountWithId(context, accountId); local 5636 Account account = new Account(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | 19 import android.accounts.Account; 73 import com.android.contacts.common.model.account.AccountType; 74 import com.android.contacts.common.model.account.AccountWithDataSet; 75 import com.android.contacts.common.model.account.GoogleAccountType; 259 // Used to temporarily store existing contact data during a rebind call (i.e. account switch) 413 final Account account = mIntentExtras == null ? null : local 414 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT); 418 if (account != null) 959 AccountWithDataSet account = (name == null || type == null) ? null : local [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupEditorFragment.java | 19 import android.accounts.Account; 67 import com.android.contacts.common.model.account.AccountType; 68 import com.android.contacts.common.model.account.AccountWithDataSet; 162 SELECTING_ACCOUNT, // Account select dialog is showing 230 // Account select dialog is showing. Don't setup the editor yet. 239 final Account account = mIntentExtras == null ? null : local 240 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT); 244 if (account != null) [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
UIProvider.java | 42 * Values for the current state of a Folder/Account; note that it's possible that more than one 68 * An initial sync is needed for this Account/Folder to be used. This is account-wide, when 69 * the user has added an account, and the first sync has not completed successfully. 73 * Manual sync is required. This is account-wide, when the user has disabled sync on the 74 * Gmail account. 78 * Account initialization is required. 90 * Values for the result of the last attempted sync of a Folder/Account 111 "vnd.android.cursor.dir/vnd.com.android.mail.account"; 113 "vnd.android.cursor.item/vnd.com.android.mail.account"; [all...] |
/frameworks/base/core/java/android/provider/ |
ContactsContract.java | 19 import android.accounts.Account; 72 * person and associated with a single account (for example, one of the user's 146 * A query parameter specifing a primary account. This parameter should be used with 150 * For example, in an email composition screen, its implementation can specify an account when 151 * obtaining possible recipients, letting the provider know which account is selected during 152 * the composition. The provider may use the "primary account" information to optimize 158 * A query parameter specifing a primary account. This parameter should be used with 419 * (for instance when the user adds a new Directory account), the directory provider 425 * A directory row can be optionally associated with an existing account 426 * (see {@link android.accounts.AccountManager}). If the account is later removed [all...] |