Searched refs:account (Results 26 - 42 of 42) sorted by relevance

12

/frameworks/base/core/java/android/content/
H A DContentResolver.java73 public static final String SYNC_EXTRAS_ACCOUNT = "account";
148 * the given account/authority pair. One required initialization step is to
1598 * adapter that's registered for the authority of the provided uri. No account will be
1716 Account account = null;
1720 account = new Account(accountName, "com.google");
1724 requestSync(account, uri != null ? uri.getAuthority() : null, extras);
1742 * @param account which account should be synced
1746 public static void requestSync(Account account, String authority, Bundle extras) { argument
1752 .setSyncAdapter(account, authorit
1830 cancelSync(Account account, String authority) argument
1858 getSyncAutomatically(Account account, String authority) argument
1875 setSyncAutomatically(Account account, String authority, boolean sync) argument
1914 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1944 removePeriodicSync(Account account, String authority, Bundle extras) argument
1962 getPeriodicSyncs(Account account, String authority) argument
1976 getIsSyncable(Account account, String authority) argument
1990 setIsSyncable(Account account, String authority, int syncable) argument
2041 isSyncActive(Account account, String authority) argument
2099 getSyncStatus(Account account, String authority) argument
2115 isSyncPending(Account account, String authority) argument
[all...]
H A DSyncRequest.java82 * @return true if this sync uses an account/authority pair, or false if this sync is bound to
91 * @return account object for this sync.
93 * specify an account/provider authority.
107 * specify an account/provider authority.
402 * Specify an authority and account for this transfer.
405 * @param account Account to sync. Can be null unless this is a periodic sync.
407 public Builder setSyncAdapter(Account account, String authority) { argument
415 mAccount = account;
587 // Verify that account and provider are not null.
/frameworks/base/cmds/requestsync/src/com/android/commands/requestsync/
H A DRequestSync.java32 // account & authority
64 final Account account = mAccountName != null && mAccountType != null
68 if (account != null) {
69 System.out.printf(" Account: %s (%s)\n", account.name, account.type);
83 ContentResolver.requestSync(account, mAuthority, mExtras);
93 } else if (opt.equals("-n") || opt.equals("--account-name")) {
95 } else if (opt.equals("-t") || opt.equals("--account-type")) {
211 "With no options, a sync will be requested for all account and all sync\n" +
214 " -n|--account
[all...]
/frameworks/base/core/java/android/accounts/
H A DGrantCredentialsPermissionActivity.java39 public static final String EXTRAS_ACCOUNT = "account";
67 // Grant 'account'/'type' to mUID
135 private String getAccountLabel(Account account) { argument
140 if (desc.type.equals(account.type)) {
144 return account.type;
146 return account.type;
150 return account.type;
H A DChooseAccountActivity.java107 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];
121 Log.d(TAG, "selected account " + account);
123 bundle.putString(AccountManager.KEY_ACCOUNT_NAME, account.name);
124 bundle.putString(AccountManager.KEY_ACCOUNT_TYPE, account.type);
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
H A DAppLaunch.java59 // optional parameter: comma separated list of required account types before proceeding
224 // ensure that the device has the required account types before starting test
225 // e.g. device must have a valid Google account sign in to measure a meaningful launch time
236 for (Account account : accounts) {
237 if (mRequiredAccounts.contains(account.type)) {
238 foundAccounts.add(account.type);
241 // check if account type matches, if not, fail test with message on what account types
246 for (String account : mRequiredAccounts) {
248 sb.append(account);
[all...]
/frameworks/ex/chips/src/com/android/ex/chips/
H A DRecipientAlternatesAdapter.java77 ArrayList<String> inAddresses, Account account, RecipientMatchCallback callback) {
78 getMatchingRecipients(context, adapter, inAddresses, QUERY_TYPE_EMAIL, account, callback);
92 ArrayList<String> inAddresses, int addressType, Account account,
148 directoryCursor, account);
171 paramsList.get(i).directoryId, account,
310 Account account, ContentResolver resolver, Query query) {
321 if (account != null) {
322 builder.appendQueryParameter(BaseRecipientAdapter.PRIMARY_ACCOUNT_NAME, account.name);
323 builder.appendQueryParameter(BaseRecipientAdapter.PRIMARY_ACCOUNT_TYPE, account.type);
76 getMatchingRecipients(Context context, BaseRecipientAdapter adapter, ArrayList<String> inAddresses, Account account, RecipientMatchCallback callback) argument
91 getMatchingRecipients(Context context, BaseRecipientAdapter adapter, ArrayList<String> inAddresses, int addressType, Account account, RecipientMatchCallback callback) argument
309 doQuery(CharSequence constraint, int limit, Long directoryId, Account account, ContentResolver resolver, Query query) argument
H A DBaseRecipientAdapter.java575 * Set the account when known. Causes the search to prioritize contacts from that account.
578 public void setAccount(Account account) { argument
579 mAccount = account;
599 Cursor directoryCursor, Account account) {
634 // If an account has been provided and we found a directory that
635 // corresponds to that account, place that directory second, directly
637 if (account != null && account.name.equals(params.accountName) &&
638 account
598 setupOtherDirectories(Context context, Cursor directoryCursor, Account account) argument
[all...]
/frameworks/ex/common/java/com/android/common/content/
H A DSyncStateContentProviderHelper.java119 Account account = new Account(accountName, accountType);
120 if (!contains(accounts, account)) {
/frameworks/base/core/java/android/webkit/
H A DWebViewClient.java272 * @param realm The account realm used to look up accounts.
273 * @param account An optional account. If not null, the account should be
275 * account, it should be used to log in the user.
279 String account, String args) {
278 onReceivedLoginRequest(WebView view, String realm, String account, String args) argument
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardAccountView.java49 * account's login/password to unlock the phone (and reset their lock pattern).
209 * the stored account that they probably intended. Prefer, in order:
220 * @return an account name from the database, or null if we can't
227 // Try to figure out which account they meant if they
264 Account account = findIntendedAccount(login);
265 if (account == null) {
272 AccountManager.get(mContext).confirmCredentialsAsUser(account, options, null /* activity */,
/frameworks/base/core/java/android/provider/
H A DContactsContract.java72 * person and associated with a single account (for example, one of the user's
146 * A query parameter specifing a primary account. This parameter should be used with
150 * For example, in an email composition screen, its implementation can specify an account when
151 * obtaining possible recipients, letting the provider know which account is selected during
152 * the composition. The provider may use the "primary account" information to optimize
158 * A query parameter specifing a primary account. This parameter should be used with
419 * (for instance when the user adds a new Directory account), the directory provider
425 * A directory row can be optionally associated with an existing account
426 * (see {@link android.accounts.AccountManager}). If the account is later removed,
509 * The account typ
652 get(ContentProviderClient provider, Account account) argument
660 getWithUri(ContentProviderClient provider, Account account) argument
668 set(ContentProviderClient provider, Account account, byte[] data) argument
676 newSetOperation(Account account, byte[] data) argument
706 get(ContentProviderClient provider, Account account) argument
714 getWithUri(ContentProviderClient provider, Account account) argument
722 set(ContentProviderClient provider, Account account, byte[] data) argument
730 newSetOperation(Account account, byte[] data) argument
[all...]
H A DContacts.java42 * work but will only return data for the first Google account created, which matches the original
172 * specified account. For this setting the _SYNC_ACCOUNT column must be set.
187 public static String getSetting(ContentResolver cr, String account, String key) { argument
188 // For now we only support a single account and the UI doesn't know what
189 // the account name is, so we're using a global setting for SYNC_EVERYTHING.
190 // Some day when we add multiple accounts to the UI this should honor the account
195 selectString = (account == null)
199 selectArgs = (account == null)
201 : new String[]{account, key};
220 public static void setSetting(ContentResolver cr, String account, Strin argument
[all...]
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java145 public String blockingGetAuthToken(Account account, String authTokenType, argument
/frameworks/ex/common/java/com/android/common/contacts/
H A DBaseEmailAddressAdapter.java278 * Set the account when known. Causes the search to prioritize contacts from
279 * that account.
281 public void setAccount(Account account) { argument
282 mAccount = account;
403 // If an account has been provided and we found a directory that
404 // corresponds to that account, place that directory second, directly
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DWebViewContentsClientAdapter.java704 public void onReceivedLoginRequest(String realm, String account, String args) { argument
707 mWebViewClient.onReceivedLoginRequest(mWebView, realm, account, args);
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntry.java1760 public VCardEntry(int vcardType, Account account) { argument
1762 mAccount = account;

Completed in 457 milliseconds

12