HomeSort by relevance Sort by last modified time
    Searched refs:account (Results 1 - 25 of 337) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/base/core/java/android/accounts/
AccountAndUser.java 20 * Used to store the Account and the UserId this account is associated with.
25 public Account account; field in class:AccountAndUser
28 public AccountAndUser(Account account, int userId) {
29 this.account = account;
37 return this.account.equals(other.account)
    [all...]
IAccountManager.aidl 20 import android.accounts.Account;
26 * Central application service that provides account management.
30 String getPassword(in Account account);
31 String getUserData(in Account account, String key);
33 Account[] getAccounts(String accountType);
34 Account[] getAccountsForPackage(String packageName, int uid);
35 Account[] getAccountsByTypeForPackage(String type, String packageName);
36 Account[] getAccountsAsUser(String accountType, int userId)
    [all...]
IAccountAuthenticator.aidl 20 import android.accounts.Account;
29 * prompts the user for account information and adds the result to the IAccountManager
35 * prompts the user for the credentials of the account
37 void confirmCredentials(in IAccountAuthenticatorResponse response, in Account account,
43 void getAuthToken(in IAccountAuthenticatorResponse response, in Account account,
54 void updateCredentials(in IAccountAuthenticatorResponse response, in Account account,
63 * returns a Bundle where the boolean value BOOLEAN_RESULT_KEY is set if the account has th
    [all...]
  /packages/apps/Calendar/src/com/android/calendar/
RecipientAdapter.java 21 import android.accounts.Account;
30 * Set the account when known. Causes the search to prioritize contacts from
31 * that account.
33 public void setAccount(Account account) {
34 if (account != null) {
35 // TODO: figure out how to infer the contacts account
36 // type from the email account
37 super.setAccount(new android.accounts.Account(account.name, "unknown"))
    [all...]
  /frameworks/base/core/java/android/content/
IContentService.aidl 19 import android.accounts.Account;
56 void requestSync(in Account account, String authority, in Bundle extras);
57 void cancelSync(in Account account, String authority);
64 boolean getSyncAutomatically(in Account account, String providerName);
72 void setSyncAutomatically(in Account account, String providerName, boolean sync);
80 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName)
    [all...]
ISyncAdapter.aidl 19 import android.accounts.Account;
29 * Initiate a sync for this account. SyncAdapter-specific parameters may
35 * @param account the account that should be synced
39 in Account account, in Bundle extras);
49 * Initialize the SyncAdapter for this account and authority.
51 * @param account the account that should be synced
54 void initialize(in Account account, String authority)
    [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...]
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...]
  /frameworks/ex/chips/src/com/android/ex/chips/
AccountSpecifier.java 19 import android.accounts.Account;
23 * that can take an account to retrieve information tied to
24 * a specific account.
27 public void setAccount(Account account);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
AccountTest.java 3 import android.accounts.Account;
18 Account account = new Account("name", "type"); local
20 assertThat(account.name, equalTo("name"));
21 assertThat(account.type, equalTo("type"));
30 Account account = new Account(p); local
31 assertThat(account.name, equalTo("name"))
47 Account account = new Account("name", "type"); local
    [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...]
  /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/src/com/android/email/
RecipientAdapter.java 19 import android.accounts.Account;
31 * Set the account when known. Causes the search to prioritize contacts from
32 * that account.
35 public void setAccount(Account account) {
36 if (account != null) {
37 // TODO: figure out how to infer the contacts account
38 // type from the email account
39 super.setAccount(new android.accounts.Account(account.name, "unknown"))
    [all...]
  /packages/apps/Email/src/com/android/email/mail/transport/
ExchangeSender.java 21 import com.android.emailcommon.provider.Account;
34 public static Sender newInstance(Account account, Context context) throws MessagingException {
35 return new ExchangeSender(context, account);
38 private ExchangeSender(Context context, Account account) {
  /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/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
TestUtil.java 19 import android.accounts.Account;
30 public static final Account ACCOUNT_1 = new Account("account_name_1", "account_type_1");
31 public static final Account ACCOUNT_2 = new Account("account_name_2", "account_type_2");
44 public static Uri maybeAddAccountQueryParameters(Uri uri, Account account) {
45 if (account == null) {
49 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_NAME, account.name)
50 .appendQueryParameter(ContactsContract.RawContacts.ACCOUNT_TYPE, account.type
    [all...]
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/
TrafficFlags.java 21 import com.android.emailcommon.provider.Account;
32 // Bits 0->15, account id
62 * Get flags indicating sync of the passed-in account; note that, by default, these flags
67 * @param account the account being used
68 * @return flags for syncing this account
70 public static int getSyncFlags(Context context, Account account) {
71 int protocolIndex = Utility.arrayIndex(PROTOCOLS, account.getProtocol(context));
72 return (int)account.mId | REASON_SYNC | (protocolIndex << PROTOCOL_SHIFT)
    [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/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...]
  /development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncAdapter.java 27 import android.accounts.Account;
67 public void onPerformSync(Account account, Bundle extras, String authority,
71 // see if we already have a sync-state attached to this account. By handing
74 long lastSyncMarker = getServerSyncMarker(account);
80 ContactManager.setAccountContactsVisibility(getContext(), account, true); local
86 // Use the account manager to request the AuthToken we'll need
90 final String authtoken = mAccountManager.blockingGetAuthToken(account,
94 final long groupId = ContactManager.ensureSampleGroupExists(mContext, account);
98 dirtyContacts = ContactManager.getDirtyContacts(mContext, account);
    [all...]
  /frameworks/base/core/java/android/provider/
SyncStateContract.java 24 import android.accounts.Account;
30 * The ContentProvider contract for associating data with ana data array account.
36 * A reference to the name of the account to which this data belongs
42 * A reference to the type of the account to which this data belongs
48 * The sync data associated with this account.
64 * Get the sync state that is associated with the account or null.
68 * @param account the {@link Account} whose sync state should be returned
69 * @return the sync state or null if there is no sync state associated with the account
74 Account account) throws RemoteException
    [all...]
  /packages/apps/Exchange/exchange2/tests/src/com/android/exchange/
CalendarSyncEnablerTest.java 19 import android.accounts.Account;
49 private HashMap<Account, Boolean> origCalendarSyncStates = new HashMap<Account, Boolean>();
61 for (Account account : AccountManager.get(getContext()).getAccounts()) {
62 origCalendarSyncStates.put(account,
63 ContentResolver.getSyncAutomatically(account, CalendarContract.AUTHORITY));
77 for (Account account : getExchangeAccounts()) {
78 Boolean state = origCalendarSyncStates.get(account);
219 final Account account = makeAccountManagerAccount(username); local
239 com.android.emailcommon.provider.Account account = local
    [all...]
  /packages/apps/Exchange/tests/src/com/android/exchange/
CalendarSyncEnablerTest.java 19 import android.accounts.Account;
49 private HashMap<Account, Boolean> origCalendarSyncStates = new HashMap<Account, Boolean>();
61 for (Account account : AccountManager.get(getContext()).getAccounts()) {
62 origCalendarSyncStates.put(account,
63 ContentResolver.getSyncAutomatically(account, CalendarContract.AUTHORITY));
77 for (Account account : getExchangeAccounts()) {
78 Boolean state = origCalendarSyncStates.get(account);
219 final Account account = makeAccountManagerAccount(username); local
239 com.android.emailcommon.provider.Account account = local
    [all...]

Completed in 297 milliseconds

1 2 3 4 5 6 7 8 91011>>