HomeSort by relevance Sort by last modified time
    Searched full:account (Results 1 - 25 of 4748) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
AccountTest.java 3 import android.accounts.Account;
18 Account account = new Account("name", "type"); local
20 assertThat(account.name, equalTo("name"));
21 assertThat(account.type, equalTo("type"));
32 Account account = new Account(p); local
33 assertThat(account.name, equalTo("name"))
61 Account account = new Account("name", "type"); local
    [all...]
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/
AccountTest.java 3 import android.accounts.Account;
10 private Account account; field in class:AccountTest
14 account = new Account("abc@xyz.org", "com.my.auth");
19 new Account(null, "com.my.auth");
27 new Account("abc@xyz.org", null);
34 assertEquals(0, account.describeContents());
40 account.writeToParcel(parcel, 0);
43 // Create a new account object from just populated parcel
    [all...]
  /external/chromium-trace/catapult/telemetry/examples/
credentials_example.json 3 "username": "<your google account here>",
7 "username": "<your google account here>",
  /frameworks/base/core/java/android/accounts/
IAccountManager.aidl 20 import android.accounts.Account;
30 * Central application service that provides account management.
34 String getPassword(in Account account);
35 String getUserData(in Account account, String key);
37 Account[] getAccounts(String accountType, String opPackageName);
38 Account[] getAccountsForPackage(String packageName, int uid, String opPackageName);
39 Account[] getAccountsByTypeForPackage(String type, String packageName, String opPackageName);
40 Account[] getAccountsAsUser(String accountType, int userId, String opPackageName)
    [all...]
AccountAndUser.java 20 * Used to store the Account and the UserId this account is associated with.
25 public Account account; field in class:AccountAndUser
28 public AccountAndUser(Account account, int userId) {
29 this.account = account;
37 return this.account.equals(other.account)
    [all...]
AccountManagerInternal.java 24 * Account manager local system service interface.
31 * Listener for explicit UID account access grant changes.
37 * access an account changes.
39 * @param account The account
42 public void onAppPermissionChanged(Account account, int uid);
46 * Requests that a given package is given access to an account.
51 * @param account The account for which to request
    [all...]
IAccountAuthenticator.aidl 20 import android.accounts.Account;
29 * prompts the user for account information and adds the result to the IAccountManager
35 * prompts the user for the credentials of the account
37 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account,
43 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account,
54 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account,
63 * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has th
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/util/
AccountDisplayInfoFactoryTests.java 26 import com.android.contacts.model.account.AccountDisplayInfo;
27 import com.android.contacts.model.account.AccountDisplayInfoFactory;
28 import com.android.contacts.model.account.AccountType;
29 import com.android.contacts.model.account.AccountWithDataSet;
52 addTypeMapping(account("user", "com.example"), "title", comExampleIcon);
53 addTypeMapping(account(null, null), "device", someDrawable()); method
54 addTypeMapping(account("foo", "bar.type"), "bar", someDrawable());
55 addTypeMapping(account("user2", "com.example"), "title", comExampleIcon);
60 account("user", "com.example"));
67 addTypeMapping(account("user@example.com", "com.example"), "title", comExampleIcon)
68 addTypeMapping(account(null, null), "device", someDrawable()); method
81 addTypeMapping(account(null, null), "Device Display Label", someDrawable()); method
169 private AccountWithDataSet account(String name, String type) { method in class:AccountDisplayInfoFactoryTests
    [all...]
  /packages/apps/TV/src/com/android/tv/util/
AccountHelper.java 19 import android.accounts.Account;
31 * Helper methods for getting and selecting a user account.
42 private Account mSelectedAccount;
50 * Returns the currently selected account or {@code null} if none is selected.
53 public Account getSelectedAccount() {
60 for (Account account : getEligibleAccounts()) {
61 if (account.name.equals(accountId)) {
62 mSelectedAccount = account;
73 private Account[] getEligibleAccounts()
84 Account account = getFirstEligibleAccount(); local
    [all...]
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
ConfirmCredentialsTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:ConfirmCredentialsTx
29 account = in.readParcelable(null);
35 Account account,
38 this.account = account;
50 out.writeParcelable(account, flags);
GetAccountRemovalAllowedTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:GetAccountRemovalAllowedTx
28 account = in.readParcelable(null);
33 Account account,
35 this.account = account;
46 out.writeParcelable(account, flags);
StartUpdateCredentialsSessionTx.java 3 import android.accounts.Account;
24 public final Account account; field in class:StartUpdateCredentialsSessionTx
29 account = in.readParcelable(null);
35 Account account,
38 this.account = account;
50 out.writeParcelable(account, flags);
  /frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
AccountsDbTest.java 20 import android.accounts.Account;
88 Account account = new Account("name", "example.com"); local
89 long id = mAccountsDb.insertCeAccount(account, "");
95 Account account = new Account("name", "example.com"); local
97 mAccountsDb.insertDeAccount(account, accId);
98 long actualId = mAccountsDb.findDeAccountId(account);
109 Account account = new Account("name", "example.com"); local
122 Account account = new Account("name", "example.com"); local
144 Account account = new Account("name", "example.com"); local
174 Account account = new Account("name", "example.com"); local
201 Account account = new Account("name", "example.com"); local
234 Account account = new Account("name", "example.com"); local
268 Account account = new Account("name", "example.com"); local
280 Account account = new Account("name", "example.com"); local
299 Account account = new Account("name", "example.com"); local
311 Account account = new Account("name", "example.com"); local
327 Account account = new Account("name", "example.com"); local
346 Account account = new Account("name", "example.com"); local
360 Account account = new Account("name", "example.com"); local
393 Account account = new Account("name", "example.com"); local
427 Account account = new Account("name", "example.com"); local
    [all...]
  /packages/apps/Email/tests/src/com/android/email/
AccountTestCase.java 29 import com.android.emailcommon.provider.Account;
37 * Base class for unit tests that use {@link android.accounts.Account}.
50 protected android.accounts.Account[] getExchangeAccounts() {
54 protected android.accounts.Account makeAccountManagerAccount(String username) {
55 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE);
59 final android.accounts.Account account = makeAccountManagerAccount(username); local
60 AccountManager.get(getContext()).addAccountExplicitly(account, "password", null);
63 protected Account setupProviderAndAccountManagerAccount(String username) {
65 // we need to use for the account manage
76 Account account = new Account(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/util/
SyncUtil.java 18 import android.accounts.Account;
26 import com.android.contacts.model.account.AccountWithDataSet;
27 import com.android.contacts.model.account.GoogleAccountType;
44 public static final boolean isSyncStatusPendingOrActive(Account account) {
45 if (account == null) {
48 return ContentResolver.isSyncPending(account, ContactsContract.AUTHORITY)
49 || ContentResolver.isSyncActive(account, ContactsContract.AUTHORITY);
53 * Returns true {@link ContentResolver#isSyncPending(Account, String)} or
54 * {@link ContentResolver#isSyncActive(Account, String)} is true for any account in account
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountCreationFragment.java 34 import com.android.emailcommon.provider.Account;
44 * AccountManager account and saving our account object to the database, as well as some misc
52 private static final String ACCOUNT_TAG = "account";
72 void setAccount(Account account);
79 public static AccountCreationFragment newInstance(Account account, boolean syncEmail,
82 args.putParcelable(AccountCreationFragment.ACCOUNT_TAG, account);
167 final Account account = args.getParcelable(ACCOUNT_TAG) local
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
AccountSyncActivity.java 19 import android.accounts.Account;
29 * Displays the sync settings for a given account.
38 Account account = null; local
40 // Search for the account.
41 for (Account candidateAccount : AccountManager.get(this).getAccounts()) {
43 account = candidateAccount;
49 return SettingsFragment.newInstance(account);
53 private static final String ARG_ACCOUNT = "account";
55 public static SettingsFragment newInstance(Account account)
65 final Account account = getArguments().getParcelable(ARG_ACCOUNT); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AccountLoadCallbacks.java 14 import com.android.mail.providers.Account;
18 * Callbacks for loading an account cursor.
20 public class AccountLoadCallbacks implements LoaderManager.LoaderCallbacks<ObjectCursor<Account>> {
23 void onAccountLoadCallbackFinished(ObjectCursor<Account> data);
38 public Loader<ObjectCursor<Account>> onCreateLoader(int id, Bundle args) {
40 final CursorCreator<Account> factory = Account.FACTORY;
41 return new ObjectCursorLoader<Account>(mContext, mAccountUri, projection, factory);
45 public void onLoadFinished(Loader<ObjectCursor<Account>> loader,
46 ObjectCursor<Account> data)
    [all...]
  /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,
58 // Need to clean up created account
59 removeAccount(sAccountManager, ACCOUNT, null /* callback */);
76 private void addAccountExplicitly(Account account, String password, Bundle userdata) {
77 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata));
80 private boolean removeAccount(AccountManager am, Account account
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
RecipientAdapter.java 21 import android.accounts.Account;
30 * Set the account when known. Causes the search to prioritize contacts from
31 * that account.
33 public void setAccount(Account account) {
34 if (account != null) {
35 // TODO: figure out how to infer the contacts account
36 // type from the email account
37 super.setAccount(new android.accounts.Account(account.name, "unknown"))
    [all...]
  /frameworks/base/core/java/android/content/
IContentService.aidl 19 import android.accounts.Account;
58 void requestSync(in Account account, String authority, in Bundle extras);
64 void cancelSync(in Account account, String authority, in ComponentName cname);
65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId);
75 boolean getSyncAutomatically(in Account account, String providerName);
76 boolean getSyncAutomaticallyAsUser(in Account account, String providerName, int userId)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AccountUtils.java 18 import com.android.mail.providers.Account;
37 * should prioritize the list of Account objects when merging the
41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts,
44 List<Account> newAccountList = new ArrayList<Account>();
47 for (Account account : inList) {
48 existingList.add(account.getEmailAddress())
74 Account account; local
    [all...]
  /frameworks/base/core/java/android/provider/
SyncStateContract.java 24 import android.accounts.Account;
30 * The ContentProvider contract for associating data with ana data array account.
36 * A reference to the name of the account to which this data belongs
42 * A reference to the type of the account to which this data belongs
48 * The sync data associated with this account.
64 * Get the sync state that is associated with the account or null.
68 * @param account the {@link Account} whose sync state should be returned
69 * @return the sync state or null if there is no sync state associated with the account
74 Account account) throws RemoteException
    [all...]
  /cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
BatteryStatsAuthenticator.java 19 import android.accounts.Account;
52 public static Account getTestAccount() {
53 return new Account(ACCOUNT_NAME, ACCOUNT_TYPE);
57 * Adds the test account, if it doesn't exist yet.
60 final Account account = getTestAccount(); local
63 result.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
64 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
68 if (!Arrays.asList(am.getAccountsByType(account.type)).contains(account) ){
    [all...]

Completed in 906 milliseconds

1 2 3 4 5 6 7 8 91011>>