/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
PeopleActivityTest.java | 42 import com.android.contacts.model.account.AccountType; 43 import com.android.contacts.model.account.AccountWithDataSet; 44 import com.android.contacts.model.account.BaseAccountType; 105 AccountWithDataSet account = new AccountWithDataSet(TEST_ACCOUNT, TEST_ACCOUNT_TYPE, null); local 109 new AccountType[] { accountType }, new AccountWithDataSet[] { account }));
|
/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/apps/Settings/src/com/android/settings/ |
MasterClear.java | 19 import android.accounts.Account; 183 Account[] accounts = mgr.getAccounts(); 198 Account account = accounts[i]; local 201 if (account.type.equals(descs[j].type)) { 207 Log.w(TAG, "No descriptor for account name=" + account.name 208 + " type=" + account.type); 218 Log.w(TAG, "No icon for account type " + desc.type); 223 child.setText(account.name) [all...] |
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/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...] |
/packages/apps/Email/src/com/android/email/widget/ |
EmailWidgetLoader.java | 21 import com.android.emailcommon.provider.Account; 68 * addition to a message count and account name. The later elements were opportunistically 92 /** Gets the display name of the account */ 126 Account account = Account.restoreAccountWithId(mContext, mAccountId); local 128 if (account != null) { 129 accountName = account.mDisplayName; 131 if (mAccountId == Account.ACCOUNT_ID_COMBINED_VIEW) { 132 int accountCount = EmailContent.count(mContext, Account.CONTENT_URI) [all...] |
/packages/apps/Settings/src/com/android/settings/accounts/ |
AuthenticatorHelper.java | 19 import android.accounts.Account; 49 * Gets an icon associated with a particular account type. If none found, return null. 50 * @param accountType the type of account 75 * Gets the label associated with a particular account type. If none found, return null. 76 * @param accountType the type of account 87 Log.w(TAG, "No label name for account type " + accountType); 89 Log.w(TAG, "No label icon for account type " + accountType); 106 public void onAccountsUpdated(Context context, Account[] accounts) { 112 for (Account account: accounts) [all...] |
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() {
|
/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));
|
BaseContactsProvider2Test.java | 21 import android.accounts.Account; 85 protected Account mAccount = new Account("account1", "account type1"); 86 protected Account mAccountTwo = new Account("account2", "account type2"); 90 protected final static Account NO_ACCOUNT = new Account("a", "b"); 153 protected Uri maybeAddAccountQueryParameters(Uri uri, Account account) [all...] |
/packages/apps/Email/src/com/android/email/ |
Controller.java | 42 import com.android.emailcommon.provider.Account; 87 // Note that 0 is a syntactically valid account key; however there can never be an account 88 // with id = 0, so attempts to restore the account will return null. Null values are 270 * Returns the search mailbox for the specified account, creating one if necessary 271 * @return the search mailbox for the passed in account 340 * Request a remote update of mailboxes for an account. 417 Account account = 418 Account.restoreAccountWithId(mProviderContext, accountId) 598 final Account account = local 782 Account account = Account.getAccountForMessageId(mProviderContext, messageId); local [all...] |
/packages/apps/Browser/src/com/android/browser/ |
DeviceAccountLogin.java | 19 import android.accounts.Account; 35 Account[] mAccounts; 59 public void handleLogin(String realm, String account, String args) { 68 // Verify the account before using it. 69 for (Account a : mAccounts) { 70 if (a.name.equals(account)) { 72 // account to use. 117 // Display the account picker.
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectSyncedCalendarsMultiAccountAdapter.java | 209 // Collect proper description for account types 263 * Gets the label associated with a particular account type. If none found, return null. 264 * @param accountType the type of account 275 Log.w(TAG, "No label for account type " + ", type " + accountType); 317 String account = cursor.getString(accountColumn); local 320 setText(view, R.id.account, account); 330 String account = groupCursor.getString(accountColumn); local 332 //Get all the calendars for just this account. 333 Cursor childCursor = mChildrenCursors.get(accountType + "#" + account); 334 new RefreshCalendars(groupCursor.getPosition(), account, accountType).run(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactListEmptyView.java | 19 import android.accounts.Account; 98 Account[] accounts = AccountManager.get(getContext()).getAccounts(); 101 for (Account account : accounts) { 103 if (contentService.isSyncActive(account, ContactsContract.AUTHORITY)) {
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
BaseRawContactEditorView.java | 34 import com.android.contacts.model.account.AccountType; 35 import com.android.contacts.model.account.AccountType.EditType;
|
/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/emailcommon/src/com/android/emailcommon/service/ |
PolicyServiceProxy.java | 25 import com.android.emailcommon.provider.Account; 107 public static void setAccountHoldFlag(Context context, Account account, boolean newState) { 109 new PolicyServiceProxy(context).setAccountHoldFlag(account.mId, newState);
|
/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;
|
/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.model.account.AccountType;
|
/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);
|
/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...] |