/packages/apps/Calendar/src/com/android/calendar/ |
CloudNotificationBackplane.java | 26 public boolean subscribeToGroup(String senderId, String account, String groupId)
|
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
MockAccountTypeManager.java | 19 import com.android.contacts.common.model.account.AccountType; 20 import com.android.contacts.common.model.account.AccountTypeWithDataSet; 21 import com.android.contacts.common.model.account.AccountWithDataSet; 22 import com.android.contacts.common.model.account.BaseAccountType;
|
/external/chromium_org/components/auto_login_parser/ |
auto_login_parser_unittest.cc | 16 return header.realm.empty() && header.account.empty() && 24 "account=fred.example%40gmail.com&" 31 ASSERT_EQ("fred.example@gmail.com", header_data.account); 38 "account=fred.example%40gmail.com&" 49 "account=fred.example%40gmail.com&" 60 "account=fred.example%40gmail.com&"; 81 "account=fred.example%40gmail.com&" 88 ASSERT_EQ("fred.example@gmail.com", header_data.account);
|
/external/chromium_org/sync/test/android/javatests/src/org/chromium/sync/test/util/ |
MockGrantCredentialsPermissionActivity.java | 7 import android.accounts.Account; 29 static final String ACCOUNT = "account"; 37 Account account = (Account) getIntent().getParcelableExtra(ACCOUNT); local 39 String accountName = account == null ? null : account.name; 40 String message = "account = " + accountName + ", authTokenType = " + authTokenType [all...] |
AccountHolder.java | 7 import android.accounts.Account; 14 * account, such as its password and set of granted auth tokens. 18 private final Account mAccount; 28 private AccountHolder(Account account, String password, Map<String, String> authTokens, 31 if (account == null) { 32 throw new IllegalArgumentException("Account can not be null"); 34 mAccount = account; 41 public Account getAccount() { 120 return create().account(mAccount).password(mPassword).authTokens(mAuthTokens) 136 public Builder account(Account account) { method in class:AccountHolder.Builder [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/Contacts/src/com/android/contacts/quickcontact/ |
DirectoryContactUtil.java | 8 import com.android.contacts.common.model.account.AccountWithDataSet; 39 ArrayList<ContentValues> values, AccountWithDataSet account, 44 context, values, account,
|
/external/chromium_org/google_apis/gaia/ |
gaia_auth_util.cc | 109 // Get list of account info. 115 // account in the list is the primary account. 117 base::ListValue* account; local 118 if (account_list->GetList(i, &account) && account != NULL) { 121 if (account->GetString(3, &email) && !email.empty()) { 127 if (!account->GetInteger(9, &is_email_valid))
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/ |
OAuth2TokenServiceTest.java | 7 import android.accounts.Account; 29 // Mock out the account manager on the device. 45 Account account1 = AccountManagerHelper.createAccountFromName("foo@gmail.com"); 46 AccountHolder accountHolder1 = AccountHolder.create().account(account1).build(); 50 assertEquals("There should be one registered account", 1, sysAccounts.length); 51 assertEquals("The account should be " + account1, account1.name, sysAccounts[0]); 54 assertEquals("There should be zero registered account", 0, accounts.length); 60 Account account1 = AccountManagerHelper.createAccountFromName("foo@gmail.com"); 61 AccountHolder accountHolder1 = AccountHolder.create().account(account1).build(); 63 Account account2 = AccountManagerHelper.createAccountFromName("bar@gmail.com") 96 Account account = AccountManagerHelper.createAccountFromName("test@gmail.com"); local [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
AccountTestCase.java | 29 import com.android.emailcommon.provider.Account; 37 * Base class for unit tests that use {@link android.accounts.Account}. 50 protected android.accounts.Account[] getExchangeAccounts() { 54 protected android.accounts.Account makeAccountManagerAccount(String username) { 55 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE); 59 final android.accounts.Account account = makeAccountManagerAccount(username); local 60 AccountManager.get(getContext()).addAccountExplicitly(account, "password", null); 63 protected Account setupProviderAndAccountManagerAccount(String username) { 65 // we need to use for the account manage 76 Account account = new Account(); local [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...] |
/frameworks/base/services/core/java/com/android/server/content/ |
ContentService.java | 20 import android.accounts.Account; 316 public void requestSync(Account account, String authority, Bundle extras) { 327 syncManager.scheduleSync(account, userId, uId, authority, extras, 398 * if they match the authority and account, if they are present. 400 * @param account filter the pending and active syncs to cancel using this account, or null. 403 * @param cname cancel syncs running on this service, or null for provider/account. 406 public void cancelSync(Account account, String authority, ComponentName cname) 460 Account account = request.getAccount(); local [all...] |
SyncOperation.java | 19 import android.accounts.Account; 93 public SyncOperation(Account account, int userId, int reason, int source, String provider, 96 this(new SyncStorageEngine.EndPoint(account, provider, userId), 185 return target.account.type.equals(other.account.type) 189 || target.account.name.equals(other.account.name)); 205 sb.append(target.account.name) 208 .append(target.account.type [all...] |
/packages/apps/Exchange/src/com/android/exchange/service/ |
PingSyncSynchronizer.java | 30 import com.android.emailcommon.provider.Account; 46 * Basic rules of how these interact (note that all rules are per account): 59 * - If there are no waiting syncs and this account is configured for push: start a ping. 60 * - Otherwise: This account is now idle. 67 * - If there are no waiting syncs and this account is configured for push: This means the ping task 70 * - Otherwise: This account is now idle. 72 * WHEN AN ACCOUNT WANTS TO START OR CHANGE ITS PUSH BEHAVIOR: 77 * WHEN AN ACCOUNT WANTS TO STOP GETTING PUSH: 98 * This class handles bookkeeping for a single account. 105 * Tracks whether this account wants to get push notifications, based on calls t [all...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupIncomingFragment.java | 48 import com.android.emailcommon.provider.Account; 61 * Provides UI for IMAP/POP account settings. 199 final Account account = mSetupData.getAccount(); local 200 final HostAuth recvAuth = account.getOrCreateHostAuthRecv(mAppContext); 218 new SpinnerOption(Account.DELETE_POLICY_NEVER, 221 new SpinnerOption(Account.DELETE_POLICY_ON_DELETE, 310 * Configure the editor for the account type 313 final Account account = mSetupData.getAccount() local 505 final Account account = setupData.getAccount(); local 525 final Account account = setupData.getAccount(); local 543 final Account account = mSetupData.getAccount(); local 636 final Account account = mSetupData.getAccount(); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
BaseWidgetProvider.java | 36 import com.android.mail.providers.Account; 57 public static final String WIDGET_ACCOUNT_PREFIX = "widget-account-"; 98 * Get an array of account/mailbox string pairs for currently configured widgets 99 * @return the account/mailbox string pairs 108 // If the account matched, update the widget. 131 final Account account = Account.newInstance(intent.getStringExtra(Utils.EXTRA_ACCOUNT)); local 139 if (widgetId != -1 && account != null && folderUri != null) { 140 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities 233 Account account = null; local 274 Account account = null; local 427 Account account = null; local [all...] |
/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasSyncCalendar.java | 26 import com.android.emailcommon.provider.Account; 64 /** Content selection for getting a calendar id for an account. */ 70 /** Content selection for getting a calendar id for an account. */ 117 private final android.accounts.Account mAndroidAccount; 128 public EasSyncCalendar(final Context context, final Account account, 131 mAndroidAccount = new android.accounts.Account(account.mEmailAddress, 137 account.mEmailAddress, 149 // Check if we have a calendar for this account with no server Id. If so, it wa 293 ContentUris.withAppendedId(Events.CONTENT_URI, orphan), account), null, null); local 418 ContentUris.withAppendedId(Events.CONTENT_URI, eventId), account), local 826 ExtendedProperties.CONTENT_URI, attendeeStringId), account), local 884 ExtendedProperties.CONTENT_URI, userAttendeeStatusId), account), local 961 asSyncAdapter(ContentUris.withAppendedId(Events.CONTENT_URI, eventId), account), local 987 account), cv, null, null); local 1051 Events.CONTENT_URI, eventId), account), cv, null, null); local 1058 Events.CONTENT_URI, eventId), account), null, null); local [all...] |
EasOperation.java | 31 import com.android.emailcommon.provider.Account; 67 * it's not account-specific so it needs to override {@link #getRequestUri()}), but the default 84 * Note that it is not practical to avoid the race between when an operation loads its account data 90 * 2) Account sync settings change: Generally only affects Ping. We interrupt the operation and 96 * This class attempts to defer loading of account data as long as possible -- ideally we load 152 /** The provider id for the account this operation is on. */ 155 /** The cached {@link Account} state; can be null if it hasn't been loaded yet. */ 156 protected Account mAccount; 177 * Constructor which defers loading of account and connection info. 186 protected EasOperation(final Context context, final Account account [all...] |
/packages/apps/Email/src/com/android/email/ |
NotificationController.java | 43 import com.android.emailcommon.provider.Account; 83 /** Maps account id to its observer */ 118 * given account. The account contains specific rules on ring tone usage and these will be used 121 * @param accountId The id of the account this notification is being built for. 129 * to the settings for the given account. 155 Account account = Account.restoreAccountWithId(mContext, accountId); local 156 setupSoundAndVibration(builder, account); 416 final Account account = Account.restoreAccountWithId(mContext, accountId); local 452 final Account account = Account.restoreAccountWithId(mContext, accountId); local 472 final Account account = Account.restoreAccountWithId(mContext, accountId); local 671 com.android.mail.providers.Account account = null; local [all...] |
/packages/apps/Email/src/com/android/email/service/ |
EmailServiceStub.java | 45 import com.android.emailcommon.provider.Account; 101 final Account account = Account.restoreAccountWithId(mContext, mailbox.mAccountKey); 102 if (account == null) return; 104 EmailServiceUtils.getServiceInfoForAccount(mContext, account.mId); 105 final android.accounts.Account acct = new android.accounts.Account(account.mEmailAddress, 118 account.toString(), extras.toString()) 156 final Account account = Account.restoreAccountWithId(mContext, message.mAccountKey); local 285 final Account account = Account.restoreAccountWithId(mContext, accountId); local 421 final Account account = Account.restoreAccountWithId(context, accountId); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ContactEditorAccountsChangedActivity.java | 34 import com.android.contacts.common.model.account.AccountWithDataSet; 42 * which account the contact will be saved in. There is also an option to add an account at 44 * {@link #Intents.Insert.ACCOUNT} that contains the {@link AccountWithDataSet} to create 46 * account for this contact. 89 // which account to create a contact in. 105 // If the user has 1 writable account we will just show the user a message with 2 113 final AccountWithDataSet account = accounts.get(0); local 115 account.name)); 117 // This button allows the user to add a new account to the device and return t 172 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
RecentFolderList.java | 25 import com.android.mail.providers.Account; 55 /** The current account */ 56 private Account mAccount = null; 65 * We exclude the default inbox for the account and the current folder; these might be the 72 public void onChanged(Account newAccount) { 91 * Copy {@link RecentFolderList#mAccount} in case the account changes between when the 95 private final Account mAccount; 99 * Create a new asynchronous task to store the recent folder list. Both the account 101 * @param account the current account for this folder [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverSyncTestCase.java | 19 import android.accounts.Account; 39 private static final Account ACCOUNT = new Account(MockAccountAuthenticator.ACCOUNT_NAME, 57 // Need to clean up created account 58 removeAccount(sAccountManager, ACCOUNT, null /* callback */); 75 private void addAccountExplicitly(Account account, String password, Bundle userdata) { 76 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata)); 79 private boolean removeAccount(AccountManager am, Account account [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
MailboxUtilities.java | 40 // The flag we use in Account to indicate a mailbox change in progress 41 private static final int ACCOUNT_MAILBOX_CHANGE_FLAG = Account.FLAGS_SYNC_ADAPTER; 126 * Given an account selector, specifying the account(s) on which to work, create the parentKey 127 * and flags for each mailbox in the account(s) that is uninitialized (parentKey = 0 or null) 166 Account account = Account.restoreAccountWithId(context, accountId); local 167 if (account == null) return; 170 cv.put(AccountColumns.FLAGS, start ? (account.mFlags | ACCOUNT_MAILBOX_CHANGE_FLAG) 204 Account account = Account.restoreAccountWithId(context, accountId); local 249 Account account = Account.restoreAccountWithId(context, accountId); local [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
AccountsListAdapter.java | 30 import com.android.contacts.common.model.account.AccountType; 31 import com.android.contacts.common.model.account.AccountWithDataSet; 37 * List-Adapter for Account selection 50 ACCOUNTS_CONTACT_WRITABLE, // Only where the account type is contact writable 51 ACCOUNTS_GROUP_WRITABLE // Only accounts where the account type is group writable 59 * @param currentAccount the Account currently selected by the user, which should come 93 final AccountWithDataSet account = mAccounts.get(position); local 94 final AccountType accountType = mAccountTypes.getAccountType(account.type, account.dataSet); 100 text2.setText(account.name) [all...] |