/cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/ |
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);
|
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...] |
/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,
|
/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/Contacts/src/com/android/contacts/logging/ |
ListEvent.java | 61 public static final int ACCOUNT = 2;
|
/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...] |
/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...] |
/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...] |
/frameworks/base/core/java/com/android/internal/notification/ |
SystemNotificationChannels.java | 39 public static String ACCOUNT = "ACCOUNT"; 195 ACCOUNT,
|
/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...] |
/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...] |
/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...] |
/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...] |