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

1 2 3 4 5 6

  /frameworks/base/core/java/android/content/
PeriodicSync.java 22 import android.accounts.Account;
29 /** The account to be synced */
30 public final Account account; field in class:PeriodicSync
39 public PeriodicSync(Account account, String authority, Bundle extras, long period) {
40 this.account = account;
51 account.writeToParcel(dest, flags);
59 return new PeriodicSync(Account.CREATOR.createFromParcel(source)
    [all...]
SyncInfo.java 19 import android.accounts.Account;
32 * The {@link Account} that is currently being synced.
34 public final Account account; field in class:SyncInfo
49 SyncInfo(int authorityId, Account account, String authority,
52 this.account = account;
65 account.writeToParcel(parcel, 0);
73 account = new Account(parcel)
    [all...]
SyncOperation.java 19 import android.accounts.Account;
28 public final Account account; field in class:SyncOperation
42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras,
44 this.account = account;
79 this.account = other.account;
99 .append(account.name
    [all...]
  /frameworks/base/core/java/android/accounts/
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/apps/Contacts/src/com/android/contacts/model/account/
FallbackAccountType.java 17 package com.android.contacts.model.account;
56 Log.e(TAG, "Problem building account type", e);
AccountTypeWithDataSet.java 17 package com.android.contacts.model.account;
31 * Encapsulates an "account type" string and a "data set" string.
39 /** account type. Can be null for fallback type. */
55 * Return true if there are any contacts in the database with this account type and data set.
  /packages/apps/Contacts/src/com/android/contacts/vcard/
ImportRequest.java 18 import android.accounts.Account;
35 * Can be null (typically when there's no Account available in the system).
37 public final Account account; field in class:ImportRequest
98 public ImportRequest(Account account,
101 this.account = account;
SelectAccountActivity.java 27 import com.android.contacts.model.account.AccountWithDataSet;
57 // - just one account -> use the account without asking the user
58 // - no account -> use phone-local storage without asking the user
63 Log.w(LOG_TAG, "Account does not exist");
67 final AccountWithDataSet account = accountList.get(0); local
69 intent.putExtra(ACCOUNT_NAME, account.name);
70 intent.putExtra(ACCOUNT_TYPE, account.type);
71 intent.putExtra(DATA_SET, account.dataSet);
86 final AccountWithDataSet account = mAccountList.get(which)
    [all...]
  /packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
EmailContentSetupUtils.java 19 import com.android.emailcommon.provider.Account;
37 * Create an account for test purposes
39 public static Account setupAccount(String name, boolean saveIt, Context context) {
40 Account account = new Account(); local
42 account.mDisplayName = name;
43 account.mEmailAddress = name + "@android.com";
44 account.mProtocolVersion = "2.5" + name;
46 account.save(context)
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/provider/
EmailContentSetupUtils.java 19 import com.android.emailcommon.provider.Account;
37 * Create an account for test purposes
39 public static Account setupAccount(String name, boolean saveIt, Context context) {
40 Account account = new Account(); local
42 account.mDisplayName = name;
43 account.mEmailAddress = name + "@android.com";
44 account.mProtocolVersion = "2.5" + name;
46 account.save(context)
    [all...]
  /packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/
ExchangeTestCase.java 19 import com.android.emailcommon.provider.Account;
46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown()
53 * @param account the account to be added to our list of test accounts
55 protected void addTestAccount(Account account) {
56 if (account.mId > 0) {
57 mCreatedAccountIds.add(account.mId);
62 * Create a test account that will be automatically deleted when the test is finishe
68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); local
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/utility/
ExchangeTestCase.java 19 import com.android.emailcommon.provider.Account;
46 resolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, accountId), null,
52 * Add an account to our list of test accounts; we'll delete it automatically in tearDown()
53 * @param account the account to be added to our list of test accounts
55 protected void addTestAccount(Account account) {
56 if (account.mId > 0) {
57 mCreatedAccountIds.add(account.mId);
62 * Create a test account that will be automatically deleted when the test is finishe
68 Account account = EmailContentSetupUtils.setupAccount(name, saveIt, mProviderContext); local
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountSetupOptions.java 45 import com.android.emailcommon.provider.Account;
54 * TODO: Cleanup the manipulation of Account.FLAGS_INCOMPLETE and make sure it's never left set.
102 Account account = SetupData.getAccount(); local
103 HostAuth host = account.getOrCreateHostAuthRecv(this);
133 // Note: It is OK to use mAccount.mIsDefault here *only* because the account
134 // has not been written to the DB yet. Ordinarily, call Account.getDefaultAccountId().
135 if (account.mIsDefault || SetupData.isDefault()) {
139 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0)
209 final Account account = SetupData.getAccount(); local
333 Account account = SetupData.getAccount(); local
    [all...]
  /frameworks/base/test-runner/src/android/test/
SyncBaseInstrumentation.java 24 import android.accounts.Account;
50 Account account = new Account(accountName, "com.google"); local
52 ContentResolver.requestSync(account, authority, extras);
67 if (ContentResolver.isSyncActive(account, authority)) {
  /packages/apps/Contacts/src/com/android/contacts/util/
AccountsListAdapter.java 30 import com.android.contacts.model.account.AccountType;
31 import com.android.contacts.model.account.AccountWithDataSet;
37 * List-Adapter for Account selection
50 ACCOUNTS_CONTACT_WRITABLE, // Only where the account type is contact writable
51 ACCOUNTS_GROUP_WRITABLE // Only accounts where the account type is group writable
59 * @param currentAccount the Account currently selected by the user, which should come
93 final AccountWithDataSet account = mAccounts.get(position); local
94 final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet);
100 text2.setText(account.name)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/model/account/
AccountTypeTest.java 17 package com.android.contacts.model.account;
23 import com.android.contacts.model.account.AccountType;
  /packages/apps/Email/src/com/android/email/activity/
NfcHandler.java 26 import com.android.emailcommon.provider.Account;
33 * active account to another device using NFC. NFC sharing is only
63 final Account account = Account.restoreAccountWithId(mActivity, accountId); local
64 if (account == null) return;
65 mCurrentEmail = account.mEmailAddress;
  /packages/apps/Email/src/com/android/email/service/
EasTestAuthenticatorService.java 20 import android.accounts.Account;
33 * Anauthenticator service for reconciliation tests; it simply adds the account to AccountManager
53 // app UI; we simply create the account and return the proper bundle
56 final Account account = new Account(options.getString(OPTIONS_USERNAME), local
59 account, options.getString(OPTIONS_PASSWORD), null);
64 // 2) The other case is that we're creating a new account from an Account manager
66 // account information..
    [all...]
  /packages/apps/Email/tests/src/com/android/email/activity/setup/
AccountSetupAccountTypeTests.java 28 import com.android.emailcommon.provider.Account;
44 private HashSet<Account> mAccounts = new HashSet<Account>();
61 for (Account account : mAccounts) {
62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId);
87 * Create a dummy account with minimal fields
89 private Account createTestAccount(String scheme) throws URISyntaxException {
90 Account account = new Account() local
    [all...]
  /packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
EasSyncServiceTests.java 25 import com.android.emailcommon.provider.Account;
63 // The value will be "0" without an account
69 // With an account, but null security key, the header's value should be "0"
70 Account account = new Account(); local
71 account.mSecuritySyncKey = null;
72 svc.mAccount = account;
78 // With an account and security key, the header's value should be the security key
79 account.mSecuritySyncKey = "key"
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/
EasSyncServiceTests.java 25 import com.android.emailcommon.provider.Account;
63 // The value will be "0" without an account
69 // With an account, but null security key, the header's value should be "0"
70 Account account = new Account(); local
71 account.mSecuritySyncKey = null;
72 svc.mAccount = account;
78 // With an account and security key, the header's value should be the security key
79 account.mSecuritySyncKey = "key"
    [all...]
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DirectoryTest.java 19 import android.accounts.Account;
94 // Visible because there is no account
97 Account account = new Account("accountName", "accountType"); local
98 long groupId = createGroup(account, "sid", "def",
101 account));
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 27 import android.accounts.Account;
67 public void onPerformSync(Account account, Bundle extras, String authority,
71 // see if we already have a sync-state attached to this account. By handing
74 long lastSyncMarker = getServerSyncMarker(account);
80 ContactManager.setAccountContactsVisibility(getContext(), account, true); local
86 // Use the account manager to request the AuthToken we'll need
90 final String authtoken = mAccountManager.blockingGetAuthToken(account,
94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account);
98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account);
    [all...]
  /frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
RequestSync.java 20 import android.accounts.Account;
32 // account & authority
64 final Account account = mAccountName != null && mAccountType != null local
65 ? new Account(mAccountName, mAccountType) : null;
68 if (account != null) {
69 System.out.printf(" Account: %s (%s)\n", account.name, account.type);
71 System.out.printf(" Account: all\n")
    [all...]
  /frameworks/ex/common/java/com/android/common/content/
SyncStateContentProviderHelper.java 19 import android.accounts.Account;
113 public void onAccountsChanged(SQLiteDatabase db, Account[] accounts) {
119 Account account = new Account(accountName, accountType); local
120 if (!contains(accounts, account)) {

Completed in 656 milliseconds

1 2 3 4 5 6