HomeSort by relevance Sort by last modified time
    Searched refs:account (Results 51 - 75 of 337) sorted by null

1 23 4 5 6 7 8 91011>>

  /packages/apps/Email/src/com/android/email/
Preferences.java 25 import com.android.emailcommon.provider.Account;
269 * Returns the last used account ID as set by {@link #setLastUsedAccountId}.
273 * Note that the last used account may have been deleted in the background so there is also
274 * no guarantee that the account exists.
277 return mSharedPreferences.getLong(LAST_ACCOUNT_USED, Account.NO_ACCOUNT);
281 * Sets the specified ID of the last account used. Treated as an opaque ID and does not
292 * Gets whether the require manual sync dialog has been shown for the specified account.
293 * It should only be shown once per account.
295 public boolean getHasShownRequireManualSync(Context context, Account account) {
    [all...]
RequireManualSyncDialog.java 19 import com.android.emailcommon.provider.Account;
29 public RequireManualSyncDialog(Context context, Account account) {
33 Preferences.getPreferences(context).setHasShownRequireManualSync(context, account, true);
  /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/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/Email/src/com/android/email/activity/setup/
AccountSetupBasics.java 52 import com.android.emailcommon.provider.Account;
65 * Prompts the user for the email address and password. Also prompts for "Use this account as
66 * default" if this is the 2nd+ account being set up.
68 * If the domain is well-known, the account is configured fully and checked immediately
72 * AccountSetupAccountType activity where the user can begin to manually configure the account.
78 * an intent which contains all necessary information to create the account. No connection
79 * checking is done, so the account may or may not actually work. Here is a sample command, for a
80 * gmail account "test_account" with a password of "test_password".
84 * -e USER "Test Account Name" \
97 * Direct access for forcing account creatio
208 Account account = SetupData.getAccount(); local
443 Account account = SetupData.getAccount(); local
489 Account account = Utility.findExistingAccount(mContext, -1, local
567 Account account = SetupData.getAccount(); local
594 Account account = SetupData.getAccount(); local
614 Account account = SetupData.getAccount(); local
    [all...]
AccountSettingsUtils.java 30 import com.android.emailcommon.provider.Account;
45 * Commits the UI-related settings of an account to the provider. This is static so that it
46 * can be used by the various account activities. If the account has never been saved, this
49 * @param account the account whose settings will be committed
51 public static void commitSettings(Context context, Account account) {
52 if (!account.isSaved()) {
53 account.save(context)
    [all...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
CustomContactListFilterActivity.java 59 import com.android.contacts.common.model.account.AccountType;
60 import com.android.contacts.common.model.account.AccountWithDataSet;
61 import com.android.contacts.common.model.account.GoogleAccountType;
131 for (AccountWithDataSet account : accountTypes.getAccounts(false)) {
132 final AccountType accountType = accountTypes.getAccountTypeForAccount(account);
133 if (accountType.isExtension() && !account.hasData(context)) {
139 new AccountDisplay(resolver, account.name, account.type, account.dataSet);
142 .appendQueryParameter(Groups.ACCOUNT_NAME, account.name
580 final AccountDisplay account = (AccountDisplay)this.getGroup(groupPosition); local
604 final AccountDisplay account = mAccounts.get(groupPosition); local
627 final AccountDisplay account = mAccounts.get(groupPosition); local
708 final AccountDisplay account = (AccountDisplay)mAdapter.getGroup(groupPosition); local
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
MockAccountAuthenticator.java 20 import android.accounts.Account;
30 * A simple Mock Account Authenticator
42 private Account mAccount;
71 public Account getAccount() {
102 * Adds an account of the specified accountType.
119 * Update the locally stored credentials for an account.
122 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
126 this.mAccount = account;
148 * Checks that the user knows the credentials of an account
    [all...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
Authenticator.java 23 import android.accounts.Account;
37 * part of the authentication process. In the account setup UI, the user enters
42 * we need to return the appropriate authToken for the specified account. If we
43 * already have an authToken stored in the account, we return that authToken. If
76 AccountAuthenticatorResponse response, Account account, Bundle options) {
88 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
100 // Extract the username and password from the Account Manager, and ask
103 final String password = am.getPassword(account);
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPeriodicSync.java 3 import android.accounts.Account;
17 public void __constructor__(Account account, String authority, Bundle extras, long period) throws Exception {
18 setField("account", account);
ShadowContentResolver.java 3 import android.accounts.Account;
32 private static final Map<String, Map<Account, Status>> syncableAccounts =
33 new HashMap<String, Map<Account, Status>>();
174 public static void requestSync(Account account, String authority, Bundle extras) {
176 Status status = getStatus(account, authority, true);
182 public static void setIsSyncable(Account account, String authority, int syncable) {
183 getStatus(account, authority, true).state = syncable;
187 public static int getIsSyncable(Account account, String authority)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
AccountUtils.java 19 import android.accounts.Account;
32 private static Account[] getAccounts(final Context context) {
38 for (final Account account : getAccounts(context)) {
39 final String name = account.name;
  /cts/tests/src/android/content/cts/
MockAccountAuthenticator.java 20 import android.accounts.Account;
30 public static final String ACCOUNT_NAME = "android.content.cts.account.name";
31 public static final String ACCOUNT_TYPE = "android.content.cts.account.type";
32 public static final String ACCOUNT_PASSWORD = "android.content.cts.account.password";
62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
    [all...]
MockSyncAdapter.java 19 import android.accounts.Account;
33 private ArrayList<Account> mAccounts = new ArrayList<Account>();
41 public ArrayList<Account> getAccounts() {
79 public void startSync(ISyncContext syncContext, String authority, Account account,
82 mAccounts.add(account);
115 public void initialize(android.accounts.Account account, java.lang.String authority)
118 mAccounts.add(account);
    [all...]
  /developers/samples/android/common/src/com/example/android/common/accounts/
GenericAccountService.java 20 import android.accounts.Account;
37 * Obtain a handle to the {@link android.accounts.Account} used for sync in this application.
39 * @return Handle to application's account (not guaranteed to resolve unless CreateSyncAccount()
42 public static Account GetAccount() {
43 // Note: Normally the account name is set to the user's identity (username or email
48 // able to locate the old account, and may erroneously register multiple accounts.
50 return new Account(accountName, ACCOUNT_TYPE);
89 Account account, Bundle bundle)
96 Account account, String s, Bundle bundle
    [all...]
  /frameworks/opt/vcard/java/com/android/vcard/
VCardEntryConstructor.java 18 import android.accounts.Account;
54 private final Account mAccount;
66 public VCardEntryConstructor(final int vcardType, final Account account) {
67 this(vcardType, account, null);
72 * Use {@link #VCardEntryConstructor(int, Account)}
75 public VCardEntryConstructor(final int vcardType, final Account account,
78 mAccount = account;
  /frameworks/volley/src/com/android/volley/toolbox/
AndroidAuthenticator.java 21 import android.accounts.Account;
30 * tokens of a specified type for a specified account.
34 private final Account mAccount;
41 * @param account Account to authenticate as
44 public AndroidAuthenticator(Context context, Account account, String authTokenType) {
45 this(context, account, authTokenType, false);
51 * @param account Account to authenticate a
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
CloudNotificationBackplane.java 26 public boolean subscribeToGroup(String senderId, String account, String groupId)
  /packages/apps/Exchange/exchange2/src/com/android/exchange/
CalendarSyncEnabler.java 21 import android.accounts.Account;
55 // Exchange account(s) found.
69 Account[] exchangeAccounts = AccountManager.get(mContext)
71 for (Account account : exchangeAccounts) {
72 final String emailAddress = account.name;
75 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1);
76 ContentResolver.setSyncAutomatically(account, CalendarContract.AUTHORITY, true);
EmailSyncAdapterService.java 24 import android.accounts.Account;
60 public void onPerformSync(Account account, Bundle extras,
63 EmailSyncAdapterService.performSync(mContext, account, extras,
89 private static void performSync(Context context, Account account, Bundle extras,
95 // Find the (EmailProvider) account associated with this email address
97 cr.query(com.android.emailcommon.provider.Account.CONTENT_URI,
98 ID_PROJECTION, AccountColumns.EMAIL_ADDRESS + "=?", new String[] {account.name},
103 // Now, find the inbox associated with the account
    [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/Email/tests/src/com/android/email/activity/
MessageComposeTests.java 39 import com.android.emailcommon.provider.Account;
69 private static final String ACCOUNT = "account@android.com";
131 * are configured on the device and a default account has been specified,
139 // Force assignment of a default account
140 long accountId = Account.getDefaultAccountId(mContext);
142 Account account = new Account(); local
143 account.mSenderName = "Bob Sender"
150 Account account = Account.restoreAccountWithId(mContext, accountId); local
207 final Account account = new Account(); local
251 final Account account = new Account(); local
294 final Account account = new Account(); local
326 final Account account = new Account(); local
347 final Account account = new Account(); local
382 final Account account = new Account(); local
555 final Account account = new Account(); local
591 final Account account = new Account(); local
628 final Account account = new Account(); local
666 final Account account = new Account(); local
964 final Account account = new Account(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/activities/
ContactEditorActivity.java 40 import com.android.contacts.common.model.account.AccountType;
41 import com.android.contacts.common.model.account.AccountWithDataSet;
202 public void onCustomCreateContactActivityRequested(AccountWithDataSet account,
207 account.type, account.dataSet);
217 intent.putExtra(RawContacts.ACCOUNT_NAME, account.name);
218 intent.putExtra(RawContacts.ACCOUNT_TYPE, account.type);
219 intent.putExtra(RawContacts.DATA_SET, account.dataSet);
227 public void onCustomEditContactActivityRequested(AccountWithDataSet account,
232 account.type, account.dataSet)
    [all...]
  /frameworks/base/services/java/com/android/server/content/
SyncManager.java 19 import android.accounts.Account;
201 cancelActiveSync(null /* any account */, UserHandle.USER_ALL,
222 scheduleSync(null /* account */, UserHandle.USER_ALL,
235 // Kick off sync for everyone, since this was a radical account change
255 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) {
259 && accounts[i].account.equals(account)) {
276 currentSyncContext.mSyncOperation.account,
278 Log.d(TAG, "canceling sync since the account is no longer running")
    [all...]

Completed in 347 milliseconds

1 23 4 5 6 7 8 91011>>