/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
SyncOperationTest.java | 19 import android.accounts.Account; 39 Account account1 = new Account("account1", "type1"); 40 Account account2 = new Account("account2", "type2"); 78 // Same as op1 but different account
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
WelcomeTests.java | 21 import com.android.emailcommon.provider.Account; 39 final Account account1 = ProviderTestUtils.setupAccount("account-1", true, c); 41 final Account account2 = ProviderTestUtils.setupAccount("account-2", true, c); 43 final Account account3 = ProviderTestUtils.setupAccount("account-3", true, c); 46 // Make sure the last one created (account 3) is the default. 47 assertTrue(Account.getDefaultAccountId(c) == id3); 49 // No account specified -- should return the default account [all...] |
MessageListTests.java | 21 import com.android.emailcommon.provider.Account; 46 final Account a1 = ProviderTestUtils.setupAccount("a1", true, c); 47 final Account a2 = ProviderTestUtils.setupAccount("a2", true, c); 54 // Mixed -- UUID in the URI doesn't match the account ID in extra. 61 assertEquals(Account.NO_ACCOUNT, MessageList.getAccountFromIntent(c,
|
/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...] |
/external/robolectric/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/core/java/android/content/ |
AbstractThreadedSyncAdapter.java | 19 import android.accounts.Account; 65 * indicate which content authority and for which account types this sync adapter serves. 76 * it sync an account's data. 78 * to intialize the isSyncable state to 1 for that sync adapter for each account that is added. 97 private final HashMap<Account, SyncThread> mSyncThreads = new HashMap<Account, SyncThread>(); 109 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it 122 * {@link ContentResolver#setIsSyncable(android.accounts.Account, String, int)} with 1 if it 141 private Account toSyncKey(Account account) [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 public SyncInfo(int authorityId, Account account, String authority, 52 this.account = account; 65 account.writeToParcel(parcel, 0); 73 account = new Account(parcel) [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/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;
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ExchangeStore.java | 24 import com.android.emailcommon.provider.Account; 35 public static Store newInstance(Account account, Context context) throws MessagingException { 36 return new ExchangeStore(account, context); 40 * Creates a new store for the given account. 42 public ExchangeStore(Account account, Context context) throws MessagingException { 43 super(account, context);
|
/packages/apps/Email/src/com/android/email/service/ |
AccountService.java | 34 import com.android.emailcommon.provider.Account; 58 private ArrayList<Account> getAccountList(String forProtocol) { 59 ArrayList<Account> providerAccounts = new ArrayList<Account>(); 60 Cursor c = mContext.getContentResolver().query(Account.CONTENT_URI, 61 Account.ID_PROJECTION, null, null, null); 64 long accountId = c.getLong(Account.CONTENT_ID_COLUMN); 65 String protocol = Account.getProtocol(mContext, accountId); 67 Account account = Account.restoreAccountWithId(mContext, accountId) [all...] |
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/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/ |
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...] |
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...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAccount.java | 3 import android.accounts.Account; 12 @Implements(Account.class) 15 private Account realObject; 27 return "Account {name=" + realObject.name + ", type=" + realObject.type + "}"; 45 if (!(o instanceof Account)) return false; 46 final Account other = (Account)o;
|
ShadowAccountManager.java | 3 import android.accounts.Account; 37 private Account[] accounts; 38 private HashMap<Account, HashMap<String, String>> cachedAuthTokenValues = 39 new HashMap<Account, HashMap<String, String>>(); 50 public AccountManagerFuture<Bundle> getAuthToken(Account account, String authTokenType, Bundle options, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) { 51 //TODO: Add complete activity to perform the account intent dance. 52 final Account finalAccount = account; 99 private void addBundleResults(Bundle bundle, final Account account) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
MessagingControllerUnitTests.java | 20 import com.android.emailcommon.provider.Account; 36 private Account mAccount; 47 Account.CONTENT_URI, mAccountId); 76 * Create a dummy account with minimal fields 79 mAccount = new Account();
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/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()}. 67 final Account account = new Account(newUniqueUserName(), accountType); local 69 // Create an account. 70 AccountManager.get(mContext).addAccountExplicitly(account, PASSWORD, null); 73 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSettingsTests.java | 28 import com.android.emailcommon.provider.Account; 34 * Tests of basic UI logic in the Account Settings fragment. 46 private Account mAccount; 73 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, mAccountId); 91 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 105 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 119 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 152 * Create an intent with the Account in it 156 mAccount = new Account();
|
AccountSetupOptionsTests.java | 29 import com.android.emailcommon.provider.Account; 61 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 75 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 89 boolean hasPush = frequencySpinnerHasValue(Account.CHECK_INTERVAL_PUSH); 163 * Create an intent with the Account in it 167 Account account = new Account(); local 168 account.setSenderName(name); 170 HostAuth auth = account.getOrCreateHostAuthRecv(context) [all...] |
/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/Email/src/com/android/email/activity/ |
MessageList.java | 20 import com.android.emailcommon.provider.Account; 32 * A dummy activity to support old-style (pre-honeycomb) account shortcuts. 53 if ((accountId == null) || (accountId == Account.NO_ACCOUNT)) { 54 // Account deleted? 75 return Account.NO_ACCOUNT; 77 return Account.getAccountIdFromShortcutSafeUri(context, uri); 81 * Create a froyo/gingerbread style account shortcut intent. Used by unit tests and 85 static Intent createFroyoIntent(Context context, Account account) { 88 intent.putExtra(EXTRA_ACCOUNT_ID, account.mId) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
SelectAccountDialogFragment.java | 19 import android.accounts.Account; 33 * Shows a dialog asking the user which account to chose. 47 Account[] accounts = accountManager.getAccounts(); 52 final ArrayAdapter<Account> accountAdapter = 53 new ArrayAdapter<Account>(builder.getContext(), 64 final Account account = getItem(position); 66 text1.setText("Name: " + account.name); 67 text2.setText("Type: " + account.type); 86 builder.setTitle("Choose account to send to editor") [all...] |
/packages/apps/Email/src/com/android/email/mail/ |
Sender.java | 26 import com.android.emailcommon.provider.Account; 40 public static Sender newInstance(Context context, Account account) 43 + account.mDisplayName); 46 private static Sender instantiateSender(Context context, String className, Account account) 53 c.getMethod("newInstance", Account.class, Context.class); 54 o = m.invoke(null, account, context); 57 "exception %s invoking method %s#newInstance(Account, Context) for %s", 58 e.toString(), className, account.mDisplayName)) [all...] |