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

1 2 3 45 6 7 8 91011>>

  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
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/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/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
AccountCheckTest.java 18 import android.accounts.Account;
51 for (Account account : mAccountManager.getAccountsByType(ACCOUNT_TYPE)) {
52 Log.i(TAG, "Removing account: " + account);
53 mAccountManager.removeAccountExplicitly(account);
71 * Add an incompatible account, type A, no features.
78 * Add an incompatible account, type B. Disallow feature only.
85 * Add an incompatible account, type C. Has the disallow feature.
92 * Add a compatible account
    [all...]
TestAuthenticator.java 19 import android.accounts.Account;
63 // Create an account whose name is:
73 Log.v(TAG, "Adding account '" + name + "' for " + accountType
81 new Account(name, accountType), "password", new Bundle());
92 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
98 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
104 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/
TestAuthenticator.java 20 import android.accounts.Account;
30 * Simple authenticator. It has no "login" dialogs/activities. When you add a new account, it'll
31 * just create a new account with a unique name.
59 * Create a new account with the name generated by {@link #newUniqueUserName()}.
69 final Account account = new Account(newUniqueUserName(), accountType); local
71 // Create an account.
72 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null);
75 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name)
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/util/
SyncUtilTests.java 18 import android.accounts.Account;
33 private final Account mGoogleAccount;
34 private final Account mOtherAccount;
37 mGoogleAccount = new Account(ACCOUNT_NAME, GOOGLE_TYPE);
38 mOtherAccount = new Account(ACCOUNT_NAME, NOT_GOOGLE_TYPE);
42 // The account names of mGoogleAccount and mOtherAccount are not valid, so both accounts
  /packages/apps/Email/provider_src/com/android/email/mail/internet/
AuthenticationCache.java 10 import com.android.emailcommon.provider.Account;
60 // Gets an access token for the given account. This may be whatever is currently cached, or
62 public String retrieveAccessToken(Context context, Account account) throws
69 entry = getEntry(context, account);
83 public String refreshAccessToken(Context context, Account account) throws
85 CacheEntry entry = getEntry(context, account);
92 private CacheEntry getEntry(Context context, Account account) {
144 final Account account = Account.restoreAccountWithId(context, entry.mAccountId); local
    [all...]
  /packages/apps/Email/provider_src/com/android/email/service/
AuthenticatorService.java 24 import android.accounts.Account;
39 * with addAccount, it simply adds the account to AccountManager directly with a username and
67 // app UI; we simply create the account and return the proper bundle
70 final Account account = new Account(options.getString(OPTIONS_USERNAME), local
73 account, options.getString(OPTIONS_PASSWORD), null);
78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1);
79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY,
86 ContentResolver.setIsSyncable(account, CalendarContract.AUTHORITY, 1)
    [all...]
  /cts/hostsidetests/devicepolicy/app/AccountManagement/src/com/android/cts/devicepolicy/accountmanagement/
AccountManagementTest.java 19 import android.accounts.Account;
40 // Account type for MockAccountAuthenticator
41 private final static Account ACCOUNT = new Account("user0",
54 mAccountManager.removeAccountExplicitly(ACCOUNT);
64 // Management is disabled, adding account should fail.
82 // But MockAccountAuthenticator returns a new account straightway.
93 assertTrue(mAccountManager.addAccountExplicitly(ACCOUNT, "password", null));
97 // Removing account should fail, as we just disabled it
    [all...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DpcAllowedAccountManagementTest.java 19 import android.accounts.Account;
32 * These tests verify that the device / profile owner can use account management APIs to add
38 * which provides authenticator for a mock account type.
40 * Note that we cannot test account removal, because only the authenticator can remove an account
41 * and the Dpc is not the authenticator for the mock account type.
45 // Account type for MockAccountAuthenticator
47 = "com.android.cts.devicepolicy.accountmanagement.account.type";
48 private final static String ACCOUNT_TYPE_2 = "com.dummy.account";
49 private final static Account ACCOUNT_0 = new Account("user0", ACCOUNT_TYPE_1)
    [all...]
  /packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
SendersFormattingTests.java 24 import com.android.mail.providers.Account;
50 final Account account = createAccount(); local
51 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local
62 final Account account = createAccount(); local
63 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local
75 final Account account = createAccount(); local
76 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false) local
90 final Account account = createAccount(); local
91 SendersView.format(getContext(), conv, "", 100, strings, null, null, account, false, false); local
138 final Account account = createAccount(); local
140 senderAvatarModel, account, false, false); local
158 final Account account = createAccount(); local
160 senderAvatarModel, account, false, false); local
178 final Account account = createAccount(); local
180 senderAvatarModel, account, false, false); local
198 final Account account = createAccount(); local
200 senderAvatarModel, account, false, false); local
219 final Account account = createAccount(); local
221 senderAvatarModel, account, false, false); local
238 final Account account = createAccount(); local
240 senderAvatarModel, account, false, false); local
261 final Account account = createAccount(); local
263 senderAvatarModel, account, false, false); local
    [all...]
  /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...]
  /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...]
  /packages/apps/Email/provider_src/com/android/email/provider/
WidgetProvider.java 25 import com.android.emailcommon.provider.Account;
52 // Remove the account in the preference
60 protected com.android.mail.providers.Account getAccountObject(
71 protected boolean isAccountValid(Context context, com.android.mail.providers.Account account) {
72 if (account != null) {
74 final Cursor accountCursor = resolver.query(account.uri,
95 if (accountId == Account.NO_ACCOUNT || mailboxId == Mailbox.NO_MAILBOX) {
96 LogUtils.d(LOG_TAG, "Couldn't load account or mailbox. accountId: %d" +
104 // Get Account and folder objects for the account id and mailbox i
    [all...]
FolderPickerActivity.java 32 import com.android.emailcommon.provider.Account;
56 final com.android.mail.providers.Account uiAccount;
58 // in an account (meaning the account requires setup)
60 String id = uri.getQueryParameter("account");
62 LogUtils.w(TAG, "No account # in Uri?");
69 LogUtils.w(TAG, "Invalid account # in Uri?");
73 // We act a bit differently if we're coming to set up the trash after account creation
83 Account account = Account.restoreAccountWithId(this, mAccountId) local
137 Account account = Account.restoreAccountWithId(mContext, mAccountId); local
205 Account account = Account.restoreAccountWithId(this, mAccountId); local
    [all...]
  /packages/apps/Email/src/com/android/email/preferences/
EmailPreferenceMigrator.java 29 import com.android.mail.providers.Account;
46 final List<Account> accounts = new ArrayList<Account>();
60 accounts.add(Account.builder().buildFrom(accountCursor));
72 final List<Account> accounts) {
92 for (final Account account : accounts) {
93 // Get the emailcommon account
95 com.android.emailcommon.provider.Account.CONTENT_URI,
96 com.android.emailcommon.provider.Account.CONTENT_PROJECTION
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
FromAddressSpinner.java 26 import com.android.mail.providers.Account;
37 private List<Account> mAccounts;
50 public void setCurrentAccount(ReplyFromAccount account) {
51 mAccount = account;
87 * accounts. Otherwise, show just the account this was launched
89 * @param currentAccount Account used to launch activity.
92 public void initialize(int action, Account currentAccount, Account[] syncingAccounts,
94 final List<Account> accounts = AccountUtils.mergeAccountLists(mAccounts,
99 // First assume that we are going to use the current account as the reply accoun
    [all...]
  /cts/tests/tests/accounts/src/android/accounts/cts/
AccountManagerTest.java 19 import android.accounts.Account;
61 public static final String ACCOUNT_NAME = "android.accounts.cts.account.name";
62 public static final String ACCOUNT_NEW_NAME = "android.accounts.cts.account.name.rename";
63 public static final String ACCOUNT_NAME_OTHER = "android.accounts.cts.account.name.other";
65 public static final String ACCOUNT_TYPE = "android.accounts.cts.account.type";
66 public static final String ACCOUNT_TYPE_CUSTOM = "android.accounts.cts.custom.account.type";
67 public static final String ACCOUNT_TYPE_ABSENT = "android.accounts.cts.account.type.absent";
69 public static final String ACCOUNT_PASSWORD = "android.accounts.cts.account.password";
71 public static final String ACCOUNT_STATUS_TOKEN = "android.accounts.cts.account.status.token";
99 public static final Account ACCOUNT = new Account(ACCOUNT_NAME, ACCOUNT_TYPE)
192 Account account = fetcher.getAccount(); local
1697 Account account = new Account("AccountNotOnThisDevice", ACCOUNT_TYPE); local
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
MockSyncAdapter.java 19 import android.accounts.Account;
33 private volatile 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);
111 public void initialize(android.accounts.Account account, java.lang.String authority)
114 mAccounts.add(account);
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/content/
SyncStorageEngineTest.java 19 import android.accounts.Account;
46 protected Account account1;
47 protected Account account2;
68 account1 = new Account("a@example.com", "example.type");
69 account2 = new Account("b@example.com", "example.type");
89 final Account account = new Account("a@example.com", "example.type"); local
97 SyncOperation op = new SyncOperation(account, 0, 0, "foo",
109 final Account account1 = new Account("a@example.com", "example.type")
222 final Account account = new Account("acc", "type"); local
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
Authenticator.java 19 import android.accounts.Account;
52 public Bundle confirmCredentials(AccountAuthenticatorResponse r, Account account,
60 public Bundle getAuthToken(AccountAuthenticatorResponse r, Account account, String s,
75 public Bundle updateCredentials(AccountAuthenticatorResponse r, Account account, String s,
81 // Checking features for the account is not supported
83 public Bundle hasFeatures(AccountAuthenticatorResponse r, Account account, String[] strings
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/settings/
EnableAccountPreferenceFragment.java 44 public AccountSwitchPreference(Context context, PhoneAccount account) {
46 mAccount = account;
48 setTitle(account.getLabel());
49 setSummary(account.getShortDescription());
50 Icon icon = account.getIcon();
54 setChecked(account.isEnabled());
92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); local
93 if (account != null) {
95 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
97 screen.addPreference(new AccountSwitchPreference(context, account));
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
TestAccountType2Authenticator.java 19 import android.accounts.Account;
32 * This authenticator is to mock account authenticator to test AccountManagerService.
66 Account account,
75 Account account,
91 Account account,
101 Account account,
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/model/account/
AccountDisplayInfoFactory.java 16 package com.android.contacts.model.account;
32 * For most accounts the account name will be used for the label but device accounts and
62 public AccountDisplayInfo getAccountDisplayInfo(AccountWithDataSet account) {
63 final AccountType type = mAccountTypeManager.getAccountTypeForAccount(account);
64 final CharSequence name = shouldUseTypeLabelForName(account)
66 : account.name;
67 return new AccountDisplayInfo(account, name, type.getDisplayLabel(mContext),
78 final AccountWithDataSet account = new AccountWithDataSet(delta.getAccountName(), local
80 return getAccountDisplayInfo(account);
92 private boolean shouldUseTypeLabelForName(AccountWithDataSet account) {
    [all...]
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountFinalizeFragment.java 28 import com.android.emailcommon.provider.Account;
35 private static final String ACCOUNT_TAG = "account";
48 public static AccountFinalizeFragment newInstance(Account account) {
51 args.putParcelable(ACCOUNT_TAG, account);
73 final Account accountArg = args.getParcelable(ACCOUNT_TAG);
100 * Final account setup work is handled in this Loader:
102 * Trigger account backup
106 private final Account mAccount;
108 public FinalSetupTaskLoader(Context context, Account account)
    [all...]

Completed in 1541 milliseconds

1 2 3 45 6 7 8 91011>>