/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
MessageTestUtils.java | 24 import com.android.emailcommon.provider.Account; 59 * Generate AttachmentProvider content URI from attachment ID and Account. 62 * @param account Account object 65 public static Uri contentUri(long attachmentId, Account account) { 66 return AttachmentUtilities.getAttachmentUri(account.mId, attachmentId);
|
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 24 import com.android.emailcommon.provider.Account; 41 public Account mAccount; 60 // If we've created and saved an account, delete it 62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, 77 mAccount = new Account(); 85 EasSyncService getTestService(Account account, Mailbox mailbox) { 89 service.mAccount = account;
|
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/ |
SyncAdapterTestCase.java | 24 import com.android.emailcommon.provider.Account; 41 public Account mAccount; 60 // If we've created and saved an account, delete it 62 mResolver.delete(ContentUris.withAppendedId(Account.CONTENT_URI, mAccount.mId), null, 77 mAccount = new Account(); 85 EasSyncService getTestService(Account account, Mailbox mailbox) { 89 service.mAccount = account;
|
/packages/apps/Settings/src/com/android/settings/ |
AccountPreference.java | 21 import android.accounts.Account; 30 * AccountPreference is used to display a username, status and provider icon for an account on 40 private Account mAccount; 45 public AccountPreference(Context context, Account account, Drawable icon, 48 mAccount = account; 62 public Account getAccount() {
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
SyncStateCheckBoxPreference.java | 19 import android.accounts.Account; 36 private Account mAccount; 52 public SyncStateCheckBoxPreference(Context context, Account account, String authority) { 54 mAccount = account; 144 public Account getAccount() {
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapter/src/main/java/com/example/android/network/sync/basicsyncadapter/ |
EntryListFragment.java | 19 import android.accounts.Account; 140 * <p>This will create a new account with the system for our application, register our 147 // Create account, if needed 333 // Create a handle to the account that was created by 336 Account account = GenericAccountService.GetAccount(); 337 if (account == null) { 347 account, FeedContract.CONTENT_AUTHORITY); 349 account, FeedContract.CONTENT_AUTHORITY);
|
/frameworks/base/core/java/android/accounts/ |
ChooseAccountActivity.java | 71 mAccountInfos[i] = new AccountInfo(((Account) mAccounts[i]).name, 72 getDrawableForType(((Account) mAccounts[i]).type)); 107 Log.w(TAG, "No icon name for account type " + accountType); 112 Log.w(TAG, "No icon resource for account type " + accountType); 120 Account account = (Account) mAccounts[position]; local 121 Log.d(TAG, "selected account " + account); 123 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name) [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupDetailDisplayUtils.java | 27 import com.android.contacts.common.model.account.AccountType;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/account/ |
FallbackAccountType.java | 17 package com.android.contacts.common.model.account; 56 Log.e(TAG, "Problem building account type", e);
|
/packages/apps/Email/src/com/android/email/mail/transport/ |
SmtpSender.java | 32 import com.android.emailcommon.provider.Account; 56 public static Sender newInstance(Account account, Context context) throws MessagingException { 57 return new SmtpSender(context, account); 61 * Creates a new sender for the given account. 63 private SmtpSender(Context context, Account account) throws MessagingException { 65 HostAuth sendAuth = account.getOrCreateHostAuthSend(context);
|
/packages/apps/Email/tests/src/com/android/email/service/ |
AttachmentDownloadServiceTests.java | 28 import com.android.emailcommon.provider.Account; 46 private Account mAccount; 60 // Set up an account and mailbox 61 mAccount = ProviderTestUtils.setupAccount("account", false, mMockContext); 62 mAccount.mFlags |= Account.FLAGS_BACKGROUND_ATTACHMENTS; 127 // There should also be only one download in progress (testing the per-account limitation) 251 // Now, test per-account storage 267 Account account = ProviderTestUtils.setupAccount("account2", false, mMockContext); local 268 account.mFlags &= ~Account.FLAGS_BACKGROUND_ATTACHMENTS [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
AlbumDataAdapter.java | 114 if (a.account == b.account) { 137 return a.account.compareTo(b.account);
|
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/ |
AppLaunch.java | 18 import android.accounts.Account; 59 // optional parameter: comma separated list of required account types before proceeding 224 // ensure that the device has the required account types before starting test 225 // e.g. device must have a valid Google account sign in to measure a meaningful launch time 233 Account[] accounts = am.getAccounts(); 236 for (Account account : accounts) { 237 if (mRequiredAccounts.contains(account.type)) { 238 foundAccounts.add(account.type); 241 // check if account type matches, if not, fail test with message on what account type [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 45 import com.android.contacts.common.model.account.AccountType; 46 import com.android.contacts.common.model.account.AccountWithDataSet; 47 import com.android.contacts.common.model.account.BaseAccountType; 105 AccountWithDataSet account = new AccountWithDataSet(TEST_ACCOUNT, TEST_ACCOUNT_TYPE, null); local 109 new AccountType[] { accountType }, new AccountWithDataSet[] { account });
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountServerBaseFragment.java | 36 import com.android.emailcommon.provider.Account; 64 * account creation as well as subsequent account modification. If <code>mSettingsMode</code> 65 * if <code>false</code>, we are in account creation mode. Otherwise, we are in account 89 * Called when user clicks "next". Starts account checker. 96 * Called when account checker completes. Fragments are responsible for saving 242 * Check for duplicate account 257 // We're editing an existing account; don't allow modification of the user name 321 private class DuplicateCheckTask extends AsyncTask<Void, Void, Account> { 338 Account account = Utility.findExistingAccount(mContext, mAccountId, local 402 Account account = SetupData.getAccount(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | 19 import android.accounts.Account; 73 import com.android.contacts.common.model.account.AccountType; 74 import com.android.contacts.common.model.account.AccountWithDataSet; 75 import com.android.contacts.common.model.account.GoogleAccountType; 258 // Used to temporarily store existing contact data during a rebind call (i.e. account switch) 412 final Account account = mIntentExtras == null ? null : local 413 (Account) mIntentExtras.getParcelable(Intents.Insert.ACCOUNT); 417 if (account != null) 958 AccountWithDataSet account = (name == null || type == null) ? null : local [all...] |
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/utility/ |
CalendarUtilitiesTests.java | 28 import com.android.emailcommon.provider.Account; 285 // Create a dummy account for the attendee 286 Account account = new Account(); local 287 account.mEmailAddress = ATTENDEE; 294 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); 331 // Create a dummy account for the attendee 332 Account account = new Account() local 394 Account account = new Account(); local 460 Account account = new Account(); local 541 Account account = new Account(); local [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
CalendarUtilitiesTests.java | 28 import com.android.emailcommon.provider.Account; 295 // Create a dummy account for the attendee 296 Account account = new Account(); local 297 account.mEmailAddress = ATTENDEE; 304 Message.FLAG_OUTGOING_MEETING_ACCEPT, uid, account); 341 // Create a dummy account for the attendee 342 Account account = new Account() local 404 Account account = new Account(); local 470 Account account = new Account(); local 551 Account account = new Account(); local [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
RecipientAlternatesAdapter.java | 19 import android.accounts.Account; 77 Account account, RecipientMatchCallback callback) { 78 getMatchingRecipients(context, inAddresses, QUERY_TYPE_EMAIL, account, callback); 92 int addressType, Account account, RecipientMatchCallback callback) { 144 account); 165 paramsList.get(i).directoryId, account, 289 Account account, ContentResolver resolver, Query query) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
BaseContactsProvider2Test.java | 22 import android.accounts.Account; 90 protected Account mAccount = new Account("account1", "account type1"); 91 protected Account mAccountTwo = new Account("account2", "account type2"); 95 protected final static Account NO_ACCOUNT = new Account("a", "b"); 158 protected Uri setCallerIsSyncAdapter(Uri uri, Account account) [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)) {
|
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkWidgetConfigure.java | 77 BookmarkAccount account = mAccountAdapter.getItem(position); local 78 pickAccount(account.rootFolderId); 97 // We always have the local account, so fall back to that
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectSyncedCalendarsMultiAccountAdapter.java | 241 // Collect proper description for account types 299 * Gets the label associated with a particular account type. If none found, return null. 300 * @param accountType the type of account 311 Log.w(TAG, "No label for account type " + ", type " + accountType); 391 String account = cursor.getString(accountColumn); local 394 setText(view, R.id.account, account); 404 String account = groupCursor.getString(accountColumn); local 406 //Get all the calendars for just this account. 407 Cursor childCursor = mChildrenCursors.get(accountType + "#" + account); 408 new RefreshCalendars(groupCursor.getPosition(), account, accountType).run(); local [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/ |
ContactDeletionInteractionTest.java | 35 import com.android.contacts.common.model.account.AccountType; 36 import com.android.contacts.common.model.account.BaseAccountType;
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
FindParentMailboxTaskTest.java | 21 import com.android.emailcommon.provider.Account; 33 /** ID of the account created by {@link #setUpMailboxes}. */ 66 * Set up a test account and mailboxes. 69 Account a = ProviderTestUtils.setupAccount("a", true, mProviderContext); 80 private long createMailboxAndGetId(String name, Account account, int type, 82 Mailbox m = ProviderTestUtils.setupMailbox(name, account.mId, false, mProviderContext,
|