HomeSort by relevance Sort by last modified time
    Searched refs:Account (Results 26 - 50 of 467) sorted by null

12 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/accounts/
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...]
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...]
  /packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
TestUtil.java 19 import android.accounts.Account;
30 public static final Account ACCOUNT_1 = new Account("account_name_1", "account_type_1");
31 public static final Account ACCOUNT_2 = new Account("account_name_2", "account_type_2");
44 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) {
45 if (account == null) {
49 .appendQueryParameter(RawContacts.ACCOUNT_NAME, account.name)
50 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/content/
SyncOperationTest.java 19 import android.accounts.Account;
33 Account mDummy;
43 mDummy = new Account("account1", "type1");
50 Account account1 = new Account("account1", "type1");
51 Account account2 = new Account("account2", "type2");
80 // Same as op1 but different account
104 Account account1 = new Account("account1", "type1")
    [all...]
  /packages/apps/Email/tests/src/com/android/email/provider/
AccountBackupRestoreTests.java 26 import com.android.emailcommon.provider.Account;
31 * This is a series of unit tests for backup/restore of the Account class.
60 public static void assertRestoredAccountEqual(Account expect, Account actual) {
83 Account saved1 =
90 Account saved2 =
98 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI));
106 cr.delete(Account.CONTENT_URI, null, null);
110 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI));
119 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI))
    [all...]
  /cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
InvalidSyncAuthoritiesDeviceTest.java 22 import android.accounts.Account;
43 private Account mInvalidAccount;
44 private Account mValidAccount;
51 mInvalidAccount = new Account("invalid_test_name", "invalid_test_type");
52 final Account[] accounts = mAccountManager.getAccountsByType(VALID_TEST_ACCOUNT_TYPE);
56 private Account createTestAccount() {
57 mValidAccount = new Account("testAccount", VALID_TEST_ACCOUNT_TYPE);
58 assertTrue("Failed to create a valid test account",
  /cts/tests/tests/provider/src/android/provider/cts/contacts/account/
StaticAccountAuthenticator.java 17 package android.provider.cts.contacts.account;
20 import android.accounts.Account;
28 * Account authenticator with for CTS.
34 public static final Account ACCOUNT_1 = new Account("cp account 1", TYPE);
68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
76 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
    [all...]
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
DummyAccountService.java 20 import android.accounts.Account;
31 * Dummy account service for SyncAdapter. Note that this does nothing because this input uses a feed
39 public static Account getAccount(String accountType) {
40 return new Account(ACCOUNT_NAME, accountType);
76 Account account, Bundle bundle) throws NetworkErrorException {
82 Account account, String s, Bundle bundle) throws NetworkErrorException {
93 Account account, String s, Bundle bundle) throws NetworkErrorException
    [all...]
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/common/accounts/
GenericAccountService.java 20 import android.accounts.Account;
32 public static final String ACCOUNT_NAME = "Account";
36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application.
45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount()
48 public static Account GetAccount(String accountType) {
49 // Note: Normally the account name is set to the user's identity (username or email
54 // able to locate the old account, and may erroneously register multiple accounts.
56 return new Account(accountName, accountType);
95 Account account, Bundle bundle
    [all...]
  /developers/samples/android/common/src/java/com/example/android/common/accounts/
GenericAccountService.java 20 import android.accounts.Account;
32 public static final String ACCOUNT_NAME = "Account";
36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application.
45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount()
48 public static Account GetAccount(String accountType) {
49 // Note: Normally the account name is set to the user's identity (username or email
54 // able to locate the old account, and may erroneously register multiple accounts.
56 return new Account(accountName, accountType);
95 Account account, Bundle bundle
    [all...]
  /development/samples/browseable/BasicSyncAdapter/src/com.example.android.common/accounts/
GenericAccountService.java 20 import android.accounts.Account;
32 public static final String ACCOUNT_NAME = "Account";
36 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application.
45 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount()
48 public static Account GetAccount(String accountType) {
49 // Note: Normally the account name is set to the user's identity (username or email
54 // able to locate the old account, and may erroneously register multiple accounts.
56 return new Account(accountName, accountType);
95 Account account, Bundle bundle
    [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...]
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/
Fixtures.java 19 import android.accounts.Account;
25 * Constants shared amongst account hostside tests.
53 public static final Account ACCOUNT_UNAFFILIATED_FIXTURE_SUCCESS = new Account(
57 public static final Account ACCOUNT_DEFAULT = new Account(
81 "android.accounts.cts.unaffiliated.account.status.token";
  /development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
MyAccountAuthenticator.java 20 import android.accounts.Account;
42 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
47 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
60 public Bundle hasFeatures(AccountAuthenticatorResponse response, Account account,
65 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
  /frameworks/base/telecomm/java/android/telecom/
AuthenticatorService.java 19 import android.accounts.Account;
29 * A generic stub account authenticator service often used for sync adapters that do not directly
48 * Stub account authenticator. All methods either return null or throw an exception.
70 Account account, Bundle bundle)
77 Account account, String s, Bundle bundle)
89 Account account, String s, Bundle bundle)
96 Account account, String[] strings
    [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/Email/tests/src/com/android/email/
SecurityPolicyTests.java 30 import com.android.emailcommon.provider.Account;
140 // with a single account in security mode, should return same security as in account
142 Account a3 = ProviderTestUtils.setupAccount("sec-3", true, mMockContext);
158 // add another account which mixes it up (some fields will change, others will not)
168 Account a4 = ProviderTestUtils.setupAccount("sec-4", true, mMockContext);
184 // add another account which mixes it up (the remaining fields will change)
194 Account a5 = ProviderTestUtils.setupAccount("sec-5", true, mMockContext);
211 Account account = Account.restoreAccountWithId(mMockContext, accountId) local
235 Account account = ProviderTestUtils.setupAccount("testaccount", true, mMockContext); local
442 Account account = Account.restoreAccountWithId(mMockContext, account1Id); local
    [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...]
  /cts/hostsidetests/content/test-apps/CtsSyncAccountAccessSameCertTests/src/com/android/cts/content/
SyncAdapter.java 19 import android.accounts.Account;
32 void onPerformSync(Account account, Bundle extras, String authority,
47 public void onPerformSync(Account account, Bundle extras, String authority,
54 delegate.onPerformSync(account, extras, authority, provider, syncResult);
  /cts/tests/tests/accounts/common/src/android/accounts/cts/common/tx/
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);
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
PeriodicSyncTest.java 3 import android.accounts.Account;
20 Account a = new Account("a", "b");
24 assertThat(sync.account, is(a));
  /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/UnifiedEmail/src/com/android/mail/providers/
AccountObserver.java 27 * A simple extension of {@link DataSetObserver} to provide the updated account in
28 * {@link #onChanged(Account)} when the account changes. Initializing the object registers with
30 * receive {@link #onChanged(Account)} till {@link #unregisterAndDestroy()} is called.
32 * To implement an {@link AccountObserver}, you need to implement the {@link #onChanged(Account)}
52 * {@link #onChanged(Account)} when the controller changes the account.
56 public Account initialize(AccountController controller) {
74 * Callback invoked when the account object is changed. Since {@link Account} objects ar
    [all...]
AllAccountObserver.java 28 * {@link #onChanged(Account[])} when the list of Accounts changes. Initializing the object
30 * The object will then begin to receive {@link #onChanged(Account[])} till {@link
32 * .AllAccountObserver}, you need to implement the {@link #onChanged(Account[])} method.
51 * a call to {@link #onChanged(Account[])} when the controller changes the list of accounts.
55 public Account[] initialize(AccountController controller) {
77 public abstract void onChanged(Account[] allAccounts);
83 public final Account[] getAllAccounts() {
91 * Unregisters for list of Account changes and makes the object unusable.
  /packages/apps/UnifiedEmail/src/com/android/mail/text/
EmailAddressSpan.java 25 import com.android.mail.providers.Account;
29 private final Account mAccount;
32 public EmailAddressSpan(Account account, String emailAddress) {
34 mAccount = account;

Completed in 4897 milliseconds

12 3 4 5 6 7 8 91011>>