/frameworks/base/core/java/android/content/ |
PeriodicSync.java | 22 import android.accounts.Account; 29 /** The account to be synced */ 30 public final Account account; field in class:PeriodicSync 39 public PeriodicSync(Account account, String authority, Bundle extras, long period) { 40 this.account = account; 51 account.writeToParcel(dest, flags); 59 return new PeriodicSync(Account.CREATOR.createFromParcel(source) [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 SyncInfo(int authorityId, Account account, String authority, 52 this.account = account; 65 account.writeToParcel(parcel, 0); 73 account = new Account(parcel) [all...] |
SyncOperation.java | 19 import android.accounts.Account; 28 public final Account account; field in class:SyncOperation 41 public SyncOperation(Account account, int source, String authority, Bundle extras, 43 this.account = account; 77 this.account = other.account; 96 sb.append(account.name) [all...] |
/packages/apps/Contacts/src/com/android/contacts/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;
|
SelectAccountActivity.java | 57 // - just one account -> use the account without asking the user 58 // - no account -> use phone-local storage without asking the user 63 Log.w(LOG_TAG, "Account does not exist"); 67 final AccountWithDataSet account = accountList.get(0); local 69 intent.putExtra(ACCOUNT_NAME, account.name); 70 intent.putExtra(ACCOUNT_TYPE, account.type); 71 intent.putExtra(DATA_SET, account.dataSet); 86 final AccountWithDataSet account = mAccountList.get(which); 88 intent.putExtra(ACCOUNT_NAME, account.name) [all...] |
/packages/apps/Exchange/tests/src/com/android/exchange/provider/ |
EmailContentSetupUtils.java | 19 import com.android.emailcommon.provider.Account; 37 * Create an account for test purposes 39 public static Account setupAccount(String name, boolean saveIt, Context context) { 40 Account account = new Account(); local 42 account.mDisplayName = name; 43 account.mEmailAddress = name + "@android.com"; 44 account.mProtocolVersion = "2.5" + name; 46 account.save(context) [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...] |
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupOptions.java | 45 import com.android.emailcommon.provider.Account; 53 * TODO: Cleanup the manipulation of Account.FLAGS_INCOMPLETE and make sure it's never left set. 101 Account account = SetupData.getAccount(); local 102 String protocol = account.mHostAuthRecv.mProtocol; 131 // Note: It is OK to use mAccount.mIsDefault here *only* because the account 132 // has not been written to the DB yet. Ordinarily, call Account.getDefaultAccountId(). 133 if (account.mIsDefault || SetupData.isDefault()) { 137 (account.getFlags() & Account.FLAGS_NOTIFY_NEW_MAIL) != 0) 207 final Account account = SetupData.getAccount(); local 331 Account account = SetupData.getAccount(); local [all...] |
AccountSetupAccountType.java | 31 import com.android.emailcommon.provider.Account; 35 * Prompts the user to select an account type. The account type, along with the 51 // If we're in account setup flow mode, for EAS, skip this screen and "click" EAS 85 Account account = SetupData.getAccount(); local 86 HostAuth hostAuth = account.mHostAuthRecv; 91 AccountSetupBasics.setFlagsForProtocol(account, HostAuth.SCHEME_POP3); 93 AccountSetupIncoming.actionIncomingSettings(this, SetupData.getFlowMode(), account); 98 * The user has selected an IMAP account type. Try to put together a URI using the entere 102 Account account = SetupData.getAccount(); local 119 Account account = SetupData.getAccount(); local [all...] |
AccountSetupIncomingFragment.java | 42 import com.android.emailcommon.provider.Account; 47 * Provides UI for IMAP/POP account settings. 139 new SpinnerOption(Account.DELETE_POLICY_NEVER, 141 new SpinnerOption(Account.DELETE_POLICY_ON_DELETE, 175 // We're editing an existing account; don't allow modification of the user name 283 * Configure the editor for the account type 287 Account account = SetupData.getAccount(); 289 mBaseScheme = account.mHostAuthRecv.mProtocol; 304 throw new Error("Unknown account type: " + account) 410 Account account = SetupData.getAccount(); local 422 Account account = SetupData.getAccount(); local 439 Account account = SetupData.getAccount(); local [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/util/ |
AccountsListAdapter.java | 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);
|
/packages/apps/Email/src/com/android/email/activity/ |
NfcHandler.java | 26 import com.android.emailcommon.provider.Account; 33 * active account to another device using NFC. NFC sharing is only 63 final Account account = Account.restoreAccountWithId(mActivity, accountId); local 64 if (account == null) return; 65 mCurrentEmail = account.mEmailAddress;
|
InsertQuickResponseDialog.java | 22 import com.android.emailcommon.provider.Account; 38 * Dialog which lists QuickResponses for the specified account. On user selection, will call 46 // Key for the Account object in the arguments bundle 47 private static final String ACCOUNT_KEY = "account"; 66 newInstance(Fragment callbackFragment, Account account) { 82 args.putParcelable(ACCOUNT_KEY, account); 106 Account account = (Account) getArguments().getParcelable(ACCOUNT_KEY) local [all...] |
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/Email/src/com/android/email/service/ |
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...] |
EasAuthenticatorService.java | 25 import android.accounts.Account; 39 * with addAccount, it simply adds the account to AccountManager directly with a username and 63 // app UI; we simply create the account and return the proper bundle 66 final Account account = new Account(options.getString(OPTIONS_USERNAME), local 69 account, options.getString(OPTIONS_PASSWORD), null); 78 ContentResolver.setIsSyncable(account, ContactsContract.AUTHORITY, 1); 79 ContentResolver.setSyncAutomatically(account, ContactsContract.AUTHORITY, 88 ContentResolver.setIsSyncable(account, CalendarProviderStub.AUTHORITY, 1) [all...] |
/packages/apps/Email/tests/src/com/android/email/activity/setup/ |
AccountSetupAccountTypeTests.java | 28 import com.android.emailcommon.provider.Account; 44 private HashSet<Account> mAccounts = new HashSet<Account>(); 61 for (Account account : mAccounts) { 62 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account.mId); 87 * Create a dummy account with minimal fields 89 private Account createTestAccount(String scheme) throws URISyntaxException { 90 Account account = new Account() local [all...] |
/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/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));
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/ |
SyncAdapter.java | 27 import android.accounts.Account; 66 public void onPerformSync(Account account, Bundle extras, String authority, 70 // see if we already have a sync-state attached to this account. By handing 73 long lastSyncMarker = getServerSyncMarker(account); 79 ContactManager.setAccountContactsVisibility(getContext(), account, true); local 85 // Use the account manager to request the AuthToken we'll need 89 final String authtoken = mAccountManager.blockingGetAuthToken(account, 93 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account); 97 dirtyContacts = ContactManager.getDirtyContacts(mContext, 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/Contacts/src/com/android/contacts/activities/ |
ContactEditorAccountsChangedActivity.java | 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 to 123 // account 172 AccountWithDataSet account = mEditorUtils.getCreatedAccount(resultCode, data); local [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()}. 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...] |