HomeSort by relevance Sort by last modified time
    Searched full:account (Results 51 - 75 of 4748) sorted by null

1 23 4 5 6 7 8 91011>>

  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPeriodicSync.java 3 import android.accounts.Account;
17 public void __constructor__(Account account, String authority, Bundle extras, long period) throws Exception {
18 setField("account", account);
  /frameworks/base/core/java/android/accounts/
Account.java 34 * Value type that represents an Account in the {@link AccountManager}. This object is
38 public class Account implements Parcelable {
39 private static final String TAG = "Account";
42 private static final Set<Account> sAccessedAccounts = new ArraySet<>();
50 if (!(o instanceof Account)) return false;
51 final Account other = (Account)o;
62 public Account(String name, String type) {
69 public Account(@NonNull Account other, @NonNull String accessId)
    [all...]
AccountManager.java 76 * per account, granting applications access to online resources with
80 * authentication, so the account manager uses pluggable <em>authenticator</em>
81 * modules for different <em>account types</em>. Authenticators (which may be
82 * written by third parties) handle the actual details of validating account
83 * credentials and storing account information. For example, Google, Facebook,
104 * identifies the authenticator. Account <em>features</em> are used to
105 * identify particular account subtypes and capabilities. Both the account
112 * account of the appropriate type.
115 * account selection, it must make sure the account is still in the lis
    [all...]
  /frameworks/opt/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);
  /packages/apps/Dialer/java/com/android/dialer/calllogutils/
PhoneAccountUtils.java 38 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); local
39 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
46 /** Compose PhoneAccount object from component name and account id. */
60 /** Extract account label from PhoneAccount object. */
64 PhoneAccount account = getAccountOrNull(context, accountHandle); local
65 if (account != null && account.getLabel() != null) {
66 return account.getLabel().toString();
71 /** Extract account color from PhoneAccount object. */
73 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle) local
87 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); local
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/
ConversationListContext.java 24 import com.android.mail.providers.Account;
48 * The account for whom we are showing a list
50 public final Account account; field in class:ConversationListContext
61 sUrlMatcher.addURI(UIProvider.AUTHORITY, "account/*/folder/*", 0);
68 // The account is created here as a new object. This is probably not the best thing to do.
69 // We should probably be reading an account instance from our controller.
70 Account account = bundle.getParcelable(Utils.EXTRA_ACCOUNT); local
72 return new ConversationListContext(account, bundle.getString(EXTRA_SEARCH_QUERY), folder)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
AccountItemView.java 31 import com.android.mail.providers.Account;
34 * The view for each account in the folder list/drawer.
64 * Sets the account name and draws the unread count. Depending on the account state (current or
68 * @param account account whose name will be displayed
69 * @param isCurrentAccount true if the account is the one in use, false otherwise
71 public void bind(final Context context, final Account account, final boolean isCurrentAccount,
73 if (!TextUtils.isEmpty(account.getSenderName()))
    [all...]
AccountController.java 24 import com.android.mail.providers.Account;
31 * This class consolidates account-specific actions taken by a mail activity.
35 * Registers to receive changes to the current account, and obtain the current account.
40 * Removes a listener from receiving current account changes.
45 * Returns the current account in use by the controller. Instead of calling this method,
46 * consider registering for account changes using
48 * account, but also updates to the account, in case of settings changes.
50 Account getAccount()
    [all...]
  /packages/apps/Contacts/tests/src/com/android/contacts/tests/
AccountsTestHelper.java 21 import android.accounts.Account;
31 import com.android.contacts.model.account.AccountWithDataSet;
47 private List<Account> mAddedAccounts;
62 public void addTestAccount(AccountWithDataSet account) {
63 Account newAccount = new Account(account.name, account.type);
75 final AccountWithDataSet account = new AccountWithDataSet(name, TEST_ACCOUNT_TYPE, null); local
76 addTestAccount(account);
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
AccountUtils.java 19 import android.accounts.Account;
33 private static Account[] getAccounts(final Context context) {
39 for (final Account account : getAccounts(context)) {
40 final String name = account.name;
53 * @return List of account names that contain the specified domain name
59 for (final Account account : getAccounts(context)) {
60 if (account.name.toLowerCase(Locale.ROOT).endsWith(atDomain)) {
61 retval.add(account.name)
    [all...]
  /packages/providers/ContactsProvider/test_common/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(RawContacts.ACCOUNT_NAME, account.name)
50 .appendQueryParameter(RawContacts.ACCOUNT_TYPE, account.type
    [all...]
  /frameworks/base/services/core/java/com/android/server/accounts/
TokenCache.java 19 import android.accounts.Account;
49 public final Account account; field in class:TokenCache.Key
54 public Key(Account account, String tokenType, String packageName, byte[] sigDigest) {
55 this.account = account;
65 return Objects.equals(account, cacheKey.account)
76 return account.hashCode(
    [all...]
AccountManagerService.java 21 import android.accounts.Account;
133 * A system service that provides account, password, and authtoken management for all
201 private final HashMap<Pair<Pair<Account, String>, Integer>, NotificationId>
203 private final HashMap<Account, NotificationId> signinRequiredNotificationIds
208 final HashMap<String, Account[]> accountCache = new LinkedHashMap<>();
210 private final Map<Account, Map<String, String>> userDataCache = new HashMap<>();
212 private final Map<Account, Map<String, String>> authTokenCache = new HashMap<>();
216 private final Map<Account, Map<String, Integer>> visibilityCache = new HashMap<>();
220 * type == null is used to get notifications about all account types
227 * Caches the previous names associated with an account. Previous name
1157 final Account account = accountEntry.getValue(); local
2251 removeAccountInternal(getUserAccountsForCaller(), account, getCallingUid()); local
    [all...]
  /external/volley/src/main/java/com/android/volley/toolbox/
AndroidAuthenticator.java 21 import android.accounts.Account;
31 * tokens of a specified type for a specified account.
33 // TODO: Update this to account for runtime permissions
37 private final Account mAccount;
44 * @param account Account to authenticate as
47 public AndroidAuthenticator(Context context, Account account, String authTokenType) {
48 this(context, account, authTokenType, false);
54 * @param account Account to authenticate a
    [all...]
  /packages/apps/Email/src/com/android/email/
EmailNotificationController.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.
128 * to the settings for the given account.
153 Account account = Account.restoreAccountWithId(mContext, accountId); local
154 setupSoundAndVibration(builder, account);
417 final Account account = Account.restoreAccountWithId(mContext, accountId); local
455 final Account account = Account.restoreAccountWithId(mContext, accountId); local
476 final Account account = Account.restoreAccountWithId(mContext, accountId); local
682 com.android.mail.providers.Account account = null; local
    [all...]
  /frameworks/base/core/java/android/content/
SyncInfo.java 19 import android.accounts.Account;
32 private static final Account REDACTED_ACCOUNT = new Account("*****", "*****");
38 * The {@link Account} that is currently being synced.
40 public final Account account; field in class:SyncInfo
55 * Creates a SyncInfo object with an unusable Account. Used when the caller receiving this
66 public SyncInfo(int authorityId, Account account, String authority, long startTime) {
68 this.account = account
    [all...]
  /packages/apps/Email/provider_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...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
ReplyFromAccount.java 45 public Account account; field in class:ReplyFromAccount
53 public ReplyFromAccount(Account account, Uri baseAccountUri, String address, String name,
55 this.account = account;
74 LogUtils.wtf(LOG_TAG, e, "Could not serialize account with address " + address);
79 public static ReplyFromAccount deserialize(Account account, JSONObject json) {
88 replyFromAccount = new ReplyFromAccount(account, uri, addressString, nameString
    [all...]
  /cts/tests/tests/provider/src/android/provider/cts/contacts/
Contacts_SettingsTest.java 37 Settings.setSetting(mContentResolver, "account", key1, value1);
38 Settings.setSetting(mContentResolver, "account", key2, value2);
39 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1));
40 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2));
41 assertNull(Settings.getSetting(mContentResolver, "account", "key not exist"));
43 Settings.setSetting(mContentResolver, "account", key1, value2);
44 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1));
  /developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
SyncUtils.java 19 import android.accounts.Account;
33 public static final String ACCOUNT_TYPE = "com.example.android.sampletvinput.account";
36 Account account = DummyAccountService.getAccount(ACCOUNT_TYPE); local
39 if (!accountManager.addAccountExplicitly(account, null, null)) {
40 Log.e(TAG, "Account already exists.");
42 ContentResolver.setIsSyncable(account, CONTENT_AUTHORITY, 1);
43 ContentResolver.setSyncAutomatically(account, CONTENT_AUTHORITY, true);
46 ContentResolver.addPeriodicSync(account, CONTENT_AUTHORITY, bundle,
DummyAccountService.java 20 import android.accounts.Account;
31 * Dummy account service for SyncAdapter. Note that this does nothing because this input uses a feed
39 public static Account getAccount(String accountType) {
40 return new Account(ACCOUNT_NAME, accountType);
76 Account account, Bundle bundle) throws NetworkErrorException {
82 Account account, String s, Bundle bundle) throws NetworkErrorException {
93 Account account, String s, Bundle bundle) throws NetworkErrorException
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
AuthUtils.java 19 import android.accounts.Account;
50 * Account, String, Bundle, boolean, AccountManagerCallback, Handler)
52 public AccountManagerFuture<Bundle> getAuthToken(final Account account,
55 return mAccountManager.getAuthToken(account, authTokenType, options, notifyAuthFailure,
60 * @see AccountManager#blockingGetAuthToken(Account, String, boolean)
62 public String blockingGetAuthToken(final Account account, final String authTokenType,
65 return mAccountManager.blockingGetAuthToken(account, authTokenType, notifyAuthFailure);
  /cts/tests/tests/content/src/android/content/cts/
MockAccountAuthenticator.java 20 import android.accounts.Account;
30 public static final String ACCOUNT_NAME = "android.content.cts.account.name";
31 public static final String ACCOUNT_TYPE = "android.content.cts.account.type";
32 public static final String ACCOUNT_PASSWORD = "android.content.cts.account.password";
62 public Bundle updateCredentials(AccountAuthenticatorResponse response, Account account,
68 public Bundle confirmCredentials(AccountAuthenticatorResponse response, Account account,
77 public Bundle getAuthToken(AccountAuthenticatorResponse response, Account account,
    [all...]
  /packages/apps/Email/provider_src/com/android/email/mail/
Sender.java 25 import com.android.emailcommon.provider.Account;
40 public static Sender newInstance(Account account) throws MessagingException {
42 + account.mDisplayName);
45 private static Sender instantiateSender(Context context, String className, Account account)
52 c.getMethod("newInstance", Account.class, Context.class);
53 o = m.invoke(null, account, context);
56 "exception %s invoking method %s#newInstance(Account, Context) for %s",
57 e.toString(), className, account.mDisplayName))
    [all...]
  /developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
SyncUtils.java 19 import android.accounts.Account;
38 // Value below must match the account type specified in res/xml/syncadapter.xml
39 public static final String ACCOUNT_TYPE = "com.example.android.basicsyncadapter.account";
42 * Create an entry for this application in the system account list, if it isn't already there.
52 // Create account, if it's missing. (Either first run, or user has deleted account.)
53 Account account = GenericAccountService.GetAccount(ACCOUNT_TYPE); local
56 if (accountManager.addAccountExplicitly(account, null, null)) {
57 // Inform the system that this account supports syn
    [all...]

Completed in 588 milliseconds

1 23 4 5 6 7 8 91011>>