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

12

/frameworks/base/core/java/android/accounts/
H A DAccountAndUser.java20 * 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) { argument
29 this.account = account;
37 return this.account.equals(other.account)
43 return account.hashCode() + userId;
47 return account.toString() + " u" + userId;
H A DIAccountManager.aidl26 * Central application service that provides account management.
30 String getPassword(in Account account);
31 String getUserData(in Account account, String key);
37 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features);
39 boolean addAccountExplicitly(in Account account, String password, in Bundle extras);
40 void removeAccount(in IAccountManagerResponse response, in Account account);
42 String peekAuthToken(in Account account, String authTokenType);
43 void setAuthToken(in Account account, String authTokenType, String authToken);
44 void setPassword(in Account account, String password);
45 void clearPassword(in Account account);
[all...]
H A DIAccountAuthenticator.aidl29 * 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 the
66 void hasFeatures(in IAccountAuthenticatorResponse response, in Account account,
70 * Gets whether or not the account is allowed to be removed.
72 void getAccountRemovalAllowed(in IAccountAuthenticatorResponse response, in Account account);
75 * Returns a Bundle containing the required credentials to copy the account acros
[all...]
H A DAbstractAccountAuthenticator.java47 * <account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
144 Account account, Bundle options) throws RemoteException {
146 Log.v(TAG, "confirmCredentials: " + account);
151 new AccountAuthenticatorResponse(response), account, options);
161 handleException(response, "confirmCredentials", account.toString(), e);
188 Account account, String authTokenType, Bundle loginOptions)
191 Log.v(TAG, "getAuthToken: " + account
197 new AccountAuthenticatorResponse(response), account,
208 account.toString() + "," + authTokenType, e);
212 public void updateCredentials(IAccountAuthenticatorResponse response, Account account, argument
143 confirmCredentials(IAccountAuthenticatorResponse response, Account account, Bundle options) argument
187 getAuthToken(IAccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
251 hasFeatures(IAccountAuthenticatorResponse response, Account account, String[] features) argument
265 getAccountRemovalAllowed(IAccountAuthenticatorResponse response, Account account) argument
279 getAccountCredentialsForCloning(IAccountAuthenticatorResponse response, Account account) argument
294 addAccountFromCredentials(IAccountAuthenticatorResponse response, Account account, Bundle accountCredentials) argument
410 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
431 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
461 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
481 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument
500 getAccountRemovalAllowed(AccountAuthenticatorResponse response, Account account) argument
518 getAccountCredentialsForCloning(final AccountAuthenticatorResponse response, final Account account) argument
542 addAccountFromCredentials(final AccountAuthenticatorResponse response, Account account, Bundle accountCredentials) argument
[all...]
H A DAccountManager.java55 * per account, granting applications access to online resources with
59 * authentication, so the account manager uses pluggable <em>authenticator</em>
60 * modules for different <em>account types</em>. Authenticators (which may be
61 * written by third parties) handle the actual details of validating account
62 * credentials and storing account information. For example, Google, Facebook,
84 * identify particular account subtypes and capabilities. Both the account
91 * account of the appropriate type.
94 * account selection, it must make sure the account i
313 getPassword(final Account account) argument
338 getUserData(final Account account, final String key) argument
465 updateAppPermission(Account account, String authTokenType, int uid, boolean value) argument
526 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument
609 addAccountExplicitly(Account account, String password, Bundle userdata) argument
640 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument
701 peekAuthToken(final Account account, final String authTokenType) argument
727 setPassword(final Account account, final String password) argument
751 clearPassword(final Account account) argument
776 setUserData(final Account account, final String key, final String value) argument
803 setAuthToken(Account account, final String authTokenType, final String authToken) argument
837 blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) argument
911 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
1001 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1079 getAuthToken( final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1176 addSharedAccount(final Account account, UserHandle user) argument
1193 removeSharedAccount(final Account account, UserHandle user) argument
1271 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1285 confirmCredentialsAsUser(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler, UserHandle userHandle) argument
1347 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
[all...]
H A DChooseTypeAndAccountActivity.java62 * used to filter the allowable account types if add account is selected.
86 * If set then the specified account is already "selected".
91 * If true then display the account selection list even if there is just
92 * one account to choose from. boolean.
177 // If the selected account as specified in the intent matches one in the list we will
186 Log.v(TAG, "selected account name is " + mSelectedAccountName);
215 // In cases where the activity does not need to show an account picker, cut the chase
217 // Single account -> select it directly
218 // No account
412 onAccountSelected(Account account) argument
[all...]
/frameworks/base/core/java/android/content/
H A DIContentService.aidl57 void requestSync(in Account account, String authority, in Bundle extras);
59 void cancelSync(in Account account, String authority);
66 boolean getSyncAutomatically(in Account account, String providerName);
74 void setSyncAutomatically(in Account account, String providerName, boolean sync);
82 List<PeriodicSync> getPeriodicSyncs(in Account account, String providerName);
91 void addPeriodicSync(in Account account, String providerName, in Bundle extras,
101 void removePeriodicSync(in Account account, String providerName, in Bundle extras);
104 * Check if this account/provider is syncable.
107 int getIsSyncable(in Account account, String providerName);
110 * Set whether this account/provide
[all...]
H A DSyncInfo.java34 public final Account account; field in class:SyncInfo
49 public SyncInfo(int authorityId, Account account, String authority, argument
52 this.account = account;
60 this.account = new Account(other.account.name, other.account.type);
73 account.writeToParcel(parcel, 0);
81 account = new Account(parcel);
H A DPeriodicSync.java28 /** The account to be synced. Can be null. */
29 public final Account account; field in class:PeriodicSync
48 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { argument
49 this.account = account;
66 this.account = other.account;
77 public PeriodicSync(Account account, String authority, Bundle extras, argument
79 this.account = account;
[all...]
H A DISyncAdapter.aidl29 * 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);
H A DAbstractThreadedSyncAdapter.java65 * indicate which content authority and for which account types this sync adapter serves.
76 * it sync an account's data.
78 * to intialize the isSyncable state to 1 for that sync adapter for each account that is added.
141 private Account toSyncKey(Account account) { argument
143 return account;
151 public void startSync(ISyncContext syncContext, String authority, Account account, argument
158 final Account threadsKey = toSyncKey(account);
165 if (ContentResolver.getIsSyncable(account, authority) < 0) {
166 ContentResolver.setIsSyncable(account, authority, 1);
175 syncContextClient, authority, account, extra
213 initialize(Account account, String authority) argument
232 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
305 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
/frameworks/ex/chips/src/com/android/ex/chips/
H A DAccountSpecifier.java23 * that can take an account to retrieve information tied to
24 * a specific account.
27 public void setAccount(Account account); argument
/frameworks/base/core/java/android/provider/
H A DSyncStateContract.java30 * 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 {
76 new String[]{account.name, account
73 get(ContentProviderClient provider, Uri uri, Account account) argument
103 set(ContentProviderClient provider, Uri uri, Account account, byte[] data) argument
112 insert(ContentProviderClient provider, Uri uri, Account account, byte[] data) argument
128 getWithUri(ContentProviderClient provider, Uri uri, Account account) argument
158 newSetOperation(Uri uri, Account account, byte[] data) argument
[all...]
H A DBrowserContract.java109 * account, including sync information that an account may need.
114 * The name of the account instance to which this row belongs, which when paired with
115 * {@link #ACCOUNT_TYPE} identifies a specific account.
121 * The type of account to which this row belongs, which when paired with
122 * {@link #ACCOUNT_NAME} identifies a specific account.
128 * String that uniquely identifies this row to its source account.
142 * to be synchronized by its owning account.
307 * Query parameter used to specify an account name
313 * Query parameter used to specify an account typ
524 get(ContentProviderClient provider, Account account) argument
532 getWithUri(ContentProviderClient provider, Account account) argument
540 set(ContentProviderClient provider, Account account, byte[] data) argument
548 newSetOperation(Account account, byte[] data) argument
[all...]
/frameworks/base/services/java/com/android/server/content/
H A DSyncQueue.java66 op.account, op.userId, op.authority);
68 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
75 op.account, op.userId, op.reason, op.syncSource, op.authority, op.extras,
77 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority),
123 operation.account, operation.userId, operation.reason, operation.syncSource,
165 public void onBackoffChanged(Account account, int userId, String providerName, long backoff) { argument
166 // for each op that matches the account and provider update its
169 if (op.account.equals(account) && op.authority.equals(providerName)
177 public void onDelayUntilTimeChanged(Account account, Strin argument
188 remove(Account account, int userId, String authority) argument
[all...]
H A DSyncOperation.java58 public final Account account; field in class:SyncOperation
86 public SyncOperation(Account account, int userId, int reason, int source, String authority, argument
90 this.account = account;
123 this.account = other.account;
172 .append(account.name)
175 .append(account.type)
241 sb.append(" account {name=" + account
[all...]
H A DSyncStorageEngine.java159 final Account account; field in class:SyncStorageEngine.PendingOperation
171 PendingOperation(Account account, int userId, int reason, int source, argument
173 this.account = account;
185 this.account = other.account;
209 final Account account; field in class:SyncStorageEngine.AuthorityInfo
227 account = toCopy.account;
248 * @param account Accoun
253 AuthorityInfo(Account account, int userId, String authority, int ident) argument
333 onSyncRequest(Account account, int userId, int reason, String authority, Bundle extras) argument
555 getSyncAutomatically(Account account, int userId, String providerName) argument
577 setSyncAutomatically(Account account, int userId, String providerName, boolean sync) argument
603 getIsSyncable(Account account, int userId, String providerName) argument
626 setIsSyncable(Account account, int userId, String providerName, int syncable) argument
656 getBackoff(Account account, int userId, String providerName) argument
667 setBackoff(Account account, int userId, String providerName, long nextSyncTime, long nextDelay) argument
748 setDelayUntilTime(Account account, int userId, String providerName, long delayUntil) argument
766 getDelayUntilTime(Account account, int userId, String providerName) argument
865 getPeriodicSyncs(Account account, int userId, String providerName) argument
904 removeAuthority(Account account, int userId, String authority) argument
920 isSyncActive(Account account, int userId, String authority) argument
1351 getCopyOfAuthorityWithSyncStatus( Account account, int userId, String authority) argument
1382 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument
1406 isSyncPending(Account account, int userId, String authority) argument
1599 removeAuthorityLocked(Account account, int userId, String authorityName, boolean doWrite) argument
2527 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
H A DContentService.java319 public void requestSync(Account account, String authority, Bundle extras) { argument
330 syncManager.scheduleSync(account, userId, uId, authority, extras,
364 final Account account = request.getAccount();
376 new PeriodicSync(account, provider, extras, runAtTime, flextime);
382 account, userId, uId, provider, extras,
397 * if they match the authority and account, if they are present.
398 * @param account filter the pending and active syncs to cancel using this account
402 public void cancelSync(Account account, String authority) { argument
414 syncManager.clearScheduledSyncOperations(account, userI
441 getSyncAutomatically(Account account, String providerName) argument
460 setSyncAutomatically(Account account, String providerName, boolean sync) argument
482 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
514 removePeriodicSync(Account account, String authority, Bundle extras) argument
544 getPeriodicSyncs(Account account, String providerName) argument
564 getIsSyncable(Account account, String providerName) argument
583 setIsSyncable(Account account, String providerName, int syncable) argument
638 isSyncActive(Account account, String authority) argument
669 getSyncStatus(Account account, String authority) argument
690 isSyncPending(Account account, String authority) argument
[all...]
H A DSyncManager.java205 cancelActiveSync(null /* any account */, UserHandle.USER_ALL,
228 scheduleSync(null /* account */, UserHandle.USER_ALL,
242 // Kick off sync for everyone, since this was a radical account change
262 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { argument
266 && accounts[i].account.equals(account)) {
283 currentSyncContext.mSyncOperation.account,
285 Log.d(TAG, "canceling sync since the account is no longer running");
387 public void onSyncRequest(Account account, int userId, int reason, String authority,
389 scheduleSync(account, userI
509 getIsSyncable(Account account, int userId, String providerName) argument
749 scheduleLocalSync(Account account, int userId, int reason, String authority) argument
790 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument
895 cancelActiveSync(Account account, int userId, String authority) argument
928 clearScheduledSyncOperations(Account account, int userId, String authority) argument
1806 getSyncWakeLock(Account account, String authority) argument
2464 cancelActiveSyncLocked(Account account, int userId, String authority) argument
2781 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument
[all...]
/frameworks/base/services/java/com/android/server/accounts/
H A DAccountManagerService.java97 * A system service that provides account, password, and authtoken management for all
277 // The account manager only throws security exceptions, so let's
384 Slog.w(TAG, "deleting account " + accountName + " because type "
388 final Account account = new Account(accountName, accountType);
389 accounts.userDataCache.remove(account);
390 accounts.authTokenCache.remove(account);
462 // Check if there's a shared account that needs to be created as an account
479 public String getPassword(Account account) { argument
481 Log.v(TAG, "getPassword: " + account
497 readPasswordInternal(UserAccounts accounts, Account account) argument
519 getUserData(Account account, String key) argument
565 addAccountExplicitly(Account account, String password, Bundle extras) argument
591 copyAccountToUser(final Account account, int userFrom, int userTo) argument
632 completeCloningAccount(final Bundle result, final Account account, final UserAccounts targetUser) argument
687 addAccountInternal(UserAccounts accounts, Account account, String password, Bundle extras, boolean restricted) argument
743 addAccountToLimitedUsers(Account account) argument
770 hasFeatures(IAccountManagerResponse response, Account account, String[] features) argument
796 TestFeaturesSession(UserAccounts accounts, IAccountManagerResponse response, Account account, String[] features) argument
848 removeAccount(IAccountManagerResponse response, Account account) argument
890 RemoveAccountSession(UserAccounts accounts, IAccountManagerResponse response, Account account) argument
936 removeAccountInternal(Account account) argument
940 removeAccountInternal(UserAccounts accounts, Account account) argument
1023 saveAuthTokenToDatabase(UserAccounts accounts, Account account, String type, String authToken) argument
1058 peekAuthToken(Account account, String authTokenType) argument
1078 setAuthToken(Account account, String authTokenType, String authToken) argument
1098 setPassword(Account account, String password) argument
1115 setPasswordInternal(UserAccounts accounts, Account account, String password) argument
1147 clearPassword(Account account) argument
1165 setUserData(Account account, String key, String value) argument
1184 setUserdataInternal(UserAccounts accounts, Account account, String key, String value) argument
1286 getAuthToken(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean notifyOnAuthFailure, final boolean expectActivityLaunch, Bundle loginOptionsIn) argument
1419 createNoCredentialsPermissionNotification(Account account, Intent intent, int userId) argument
1448 newGrantCredentialsPermissionIntent(Account account, int uid, AccountAuthenticatorResponse response, String authTokenType, String authTokenLabel) argument
1467 getCredentialPermissionNotificationId(Account account, String authTokenType, int uid) argument
1484 getSigninRequiredNotificationId(UserAccounts accounts, Account account) argument
1564 confirmCredentialsAsUser(IAccountManagerResponse response, final Account account, final Bundle options, final boolean expectActivityLaunch, int userId) argument
1608 updateCredentials(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean expectActivityLaunch, final Bundle loginOptions) argument
1881 addSharedAccountAsUser(Account account, int userId) argument
1899 removeSharedAccountAsUser(Account account, int userId) argument
2002 getAccountIdLocked(SQLiteDatabase db, Account account) argument
2576 doNotification(UserAccounts accounts, Account account, CharSequence message, Intent intent, int userId) argument
2678 permissionIsGranted(Account account, String authTokenType, int callerUid) argument
2706 hasExplicitlyGrantedPermission(Account account, String authTokenType, int callerUid) argument
2730 checkCallingUidAgainstAuthenticator(Account account) argument
2742 checkAuthenticateAccountsPermission(Account account) argument
2772 updateAppPermission(Account account, String authTokenType, int uid, boolean value) argument
2794 grantAppPermission(Account account, String authTokenType, int uid) argument
2829 revokeAppPermission(Account account, String authTokenType, int uid) argument
2860 removeAccountFromCacheLocked(UserAccounts accounts, Account account) argument
2884 insertAccountIntoCacheLocked(UserAccounts accounts, Account account) argument
2995 writeUserDataIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument
3009 writeAuthTokenIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument
3023 readAuthTokenInternal(UserAccounts accounts, Account account, String authTokenType) argument
3037 readUserDataInternal(UserAccounts accounts, Account account, String key) argument
3050 readUserDataForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument
3070 readAuthTokensForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java76 final Account account = new Account("a@example.com", "example.type");
86 account, 0, SyncOperation.REASON_PERIODIC, authority, time0,
109 assertEquals(pop.account, popRetrieved.account);
172 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority);
233 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority);
238 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, String authority) { argument
239 engine.setIsSyncable(account, userId, authority, engine.getIsSyncable(account, 0, authority));
240 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account, userI
[all...]
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardEntryConstructor.java66 public VCardEntryConstructor(final int vcardType, final Account account) { argument
67 this(vcardType, account, null);
75 public VCardEntryConstructor(final int vcardType, final Account account, argument
78 mAccount = account;
/frameworks/volley/src/com/android/volley/toolbox/
H A DAndroidAuthenticator.java30 * tokens of a specified type for a specified account.
41 * @param account Account to authenticate as
44 public AndroidAuthenticator(Context context, Account account, String authTokenType) { argument
45 this(context, account, authTokenType, false);
51 * @param account Account to authenticate as
55 public AndroidAuthenticator(Context context, Account account, String authTokenType, argument
58 mAccount = account;
/frameworks/base/test-runner/src/android/test/
H A DSyncBaseInstrumentation.java50 Account account = new Account(accountName, "com.google");
52 ContentResolver.requestSync(account, authority, extras);
67 if (ContentResolver.isSyncActive(account, authority)) {
/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportReceiver.java153 for (Account account : accounts) {
154 if (Patterns.EMAIL_ADDRESS.matcher(account.name).matches()) {
158 if (account.name.endsWith(preferredDomain)) {
159 return account;
161 foundAccount = account;
166 return account;

Completed in 531 milliseconds

12