Searched refs:account (Results 1 - 25 of 43) 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...]
/frameworks/base/core/java/android/content/
H A DIContentService.aidl56 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);
89 void addPeriodicSync(in Account account, String providerName, in Bundle extras,
99 void removePeriodicSync(in Account account, String providerName, in Bundle extras);
102 * Check if this account/provider is syncable.
105 int getIsSyncable(in Account account, String providerName);
108 * Set whether this account/provide
[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 DSyncInfo.java34 public final Account account; field in class:SyncInfo
49 public SyncInfo(int authorityId, Account account, String authority, argument
52 this.account = account;
65 account.writeToParcel(parcel, 0);
73 account = new Account(parcel);
H A DPeriodicSync.java29 /** 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) { argument
40 this.account = account;
51 account.writeToParcel(dest, flags);
79 return account.equals(other.account)
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;
150 public void startSync(ISyncContext syncContext, String authority, Account account, argument
157 final Account threadsKey = toSyncKey(account);
163 if (ContentResolver.getIsSyncable(account, authority) < 0) {
164 ContentResolver.setIsSyncable(account, authority, 1);
171 syncContextClient, authority, account, extra
208 initialize(Account account, String authority) argument
227 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
300 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
H A DContentResolver.java74 public static final String SYNC_EXTRAS_ACCOUNT = "account";
113 * the given account/authority pair. One required initialization step is to
1322 * adapter that's registered for the authority of the provided uri. No account will be
1373 Account account = null;
1377 account = new Account(accountName, "com.google");
1381 requestSync(account, uri != null ? uri.getAuthority() : null, extras);
1397 * @param account which account should be synced
1401 public static void requestSync(Account account, String authority, Bundle extras) { argument
1404 getContentService().requestSync(account, authorit
1465 cancelSync(Account account, String authority) argument
1493 getSyncAutomatically(Account account, String authority) argument
1510 setSyncAutomatically(Account account, String authority, boolean sync) argument
1546 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1582 removePeriodicSync(Account account, String authority, Bundle extras) argument
1606 getPeriodicSyncs(Account account, String authority) argument
1626 getIsSyncable(Account account, String authority) argument
1640 setIsSyncable(Account account, String authority, int syncable) argument
1691 isSyncActive(Account account, String authority) argument
1749 getSyncStatus(Account account, String authority) argument
1765 isSyncPending(Account account, String authority) 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/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java54 final Account account = new Account("a@example.com", "example.type");
64 account, 0, SyncOperation.REASON_PERIODIC, authority, time0,
100 engine.addPeriodicSync(sync1.account, 0, sync1.authority, sync1.extras, sync1.period);
101 engine.addPeriodicSync(sync2.account, 0, sync2.authority, sync2.extras, sync2.period);
102 engine.addPeriodicSync(sync3.account, 0, sync3.authority, sync3.extras, sync3.period);
103 engine.addPeriodicSync(sync4.account, 0, sync4.authority, sync4.extras, sync4.period);
105 engine.addPeriodicSync(sync2.account, 1, sync2.authority, sync2.extras, sync2.period);
114 engine.removePeriodicSync(sync1.account, 0, sync1.authority, sync1.extras);
124 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority);
129 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, in 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),
120 operation.account, operation.userId, operation.reason, operation.syncSource,
162 public void onBackoffChanged(Account account, int userId, String providerName, long backoff) { argument
163 // for each op that matches the account and provider update its
166 if (op.account.equals(account) && op.authority.equals(providerName)
174 public void onDelayUntilTimeChanged(Account account, Strin argument
185 remove(Account account, int userId, String authority) argument
[all...]
H A DSyncManager.java201 cancelActiveSync(null /* any account */, UserHandle.USER_ALL,
222 scheduleSync(null /* account */, UserHandle.USER_ALL,
235 // Kick off sync for everyone, since this was a radical account change
255 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { argument
259 && accounts[i].account.equals(account)) {
276 currentSyncContext.mSyncOperation.account,
278 Log.d(TAG, "canceling sync since the account is no longer running");
375 public void onSyncRequest(Account account, int userId, int reason, String authority,
377 scheduleSync(account, userI
496 getIsSyncable(Account account, int userId, String providerName) argument
722 scheduleLocalSync(Account account, int userId, int reason, String authority) argument
761 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument
865 cancelActiveSync(Account account, int userId, String authority) argument
898 clearScheduledSyncOperations(Account account, int userId, String authority) argument
1762 getSyncWakeLock(Account account, String authority) argument
2351 cancelActiveSyncLocked(Account account, int userId, String authority) argument
2663 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument
[all...]
H A DSyncOperation.java50 public final Account account; field in class:SyncOperation
65 public SyncOperation(Account account, int userId, int reason, int source, String authority, argument
68 this.account = account;
104 this.account = other.account;
125 .append(account.name)
128 .append(account.type)
188 sb.append(" account {name=" + account
[all...]
H A DSyncStorageEngine.java150 final Account account; field in class:SyncStorageEngine.PendingOperation
161 PendingOperation(Account account, int userId, int reason,int source, argument
163 this.account = account;
174 this.account = other.account;
196 final Account account; field in class:SyncStorageEngine.AuthorityInfo
214 account = toCopy.account;
230 AuthorityInfo(Account account, in argument
280 onSyncRequest(Account account, int userId, int reason, String authority, Bundle extras) argument
473 getSyncAutomatically(Account account, int userId, String providerName) argument
495 setSyncAutomatically(Account account, int userId, String providerName, boolean sync) argument
521 getIsSyncable(Account account, int userId, String providerName) argument
544 setIsSyncable(Account account, int userId, String providerName, int syncable) argument
574 getBackoff(Account account, int userId, String providerName) argument
585 setBackoff(Account account, int userId, String providerName, long nextSyncTime, long nextDelay) argument
662 setDelayUntilTime(Account account, int userId, String providerName, long delayUntil) argument
680 getDelayUntilTime(Account account, int userId, String providerName) argument
691 updateOrRemovePeriodicSync(Account account, int userId, String providerName, Bundle extras, long period, boolean add) argument
765 addPeriodicSync(Account account, int userId, String providerName, Bundle extras, long pollFrequency) argument
771 removePeriodicSync(Account account, int userId, String providerName, Bundle extras) argument
777 getPeriodicSyncs(Account account, int userId, String providerName) argument
816 getOrCreateAuthority(Account account, int userId, String authority) argument
824 removeAuthority(Account account, int userId, String authority) argument
840 isSyncActive(Account account, int userId, String authority) argument
1264 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument
1288 isSyncPending(Account account, int userId, String authority) argument
1416 removeAuthorityLocked(Account account, int userId, String authorityName, boolean doWrite) argument
2208 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
H A DContentService.java310 public void requestSync(Account account, String authority, Bundle extras) { argument
321 syncManager.scheduleSync(account, userId, uId, authority, extras, 0 /* no delay */,
331 * if they match the authority and account, if they are present.
332 * @param account filter the pending and active syncs to cancel using this account
335 public void cancelSync(Account account, String authority) { argument
344 syncManager.clearScheduledSyncOperations(account, userId, authority);
345 syncManager.cancelActiveSync(account, userId, authority);
369 public boolean getSyncAutomatically(Account account, String providerName) { argument
379 account, userI
387 setSyncAutomatically(Account account, String providerName, boolean sync) argument
404 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
425 removePeriodicSync(Account account, String authority, Bundle extras) argument
439 getPeriodicSyncs(Account account, String providerName) argument
453 getIsSyncable(Account account, String providerName) argument
471 setIsSyncable(Account account, String providerName, int syncable) argument
521 isSyncActive(Account account, String authority) argument
552 getSyncStatus(Account account, String authority) argument
570 isSyncPending(Account account, String authority) argument
[all...]
/frameworks/base/services/java/com/android/server/accounts/
H A DAccountManagerService.java95 * A system service that provides account, password, and authtoken management for all
371 Slog.w(TAG, "deleting account " + accountName + " because type "
375 final Account account = new Account(accountName, accountType);
376 accounts.userDataCache.remove(account);
377 accounts.authTokenCache.remove(account);
449 // Check if there's a shared account that needs to be created as an account
465 public String getPassword(Account account) { argument
467 Log.v(TAG, "getPassword: " + account
471 if (account
483 readPasswordInternal(UserAccounts accounts, Account account) argument
504 getUserData(Account account, String key) argument
549 addAccountExplicitly(Account account, String password, Bundle extras) argument
575 copyAccountToUser(final Account account, int userFrom, int userTo) argument
613 completeCloningAccount(final Bundle result, final Account account, final UserAccounts targetUser) argument
664 addAccountInternal(UserAccounts accounts, Account account, String password, Bundle extras, boolean restricted) argument
720 addAccountToLimitedUsers(Account account) argument
746 hasFeatures(IAccountManagerResponse response, Account account, String[] features) argument
772 TestFeaturesSession(UserAccounts accounts, IAccountManagerResponse response, Account account, String[] features) argument
820 removeAccount(IAccountManagerResponse response, Account account) argument
862 RemoveAccountSession(UserAccounts accounts, IAccountManagerResponse response, Account account) argument
905 removeAccountInternal(Account account) argument
909 removeAccountInternal(UserAccounts accounts, Account account) argument
992 saveAuthTokenToDatabase(UserAccounts accounts, Account account, String type, String authToken) argument
1026 peekAuthToken(Account account, String authTokenType) argument
1045 setAuthToken(Account account, String authTokenType, String authToken) argument
1064 setPassword(Account account, String password) argument
1081 setPasswordInternal(UserAccounts accounts, Account account, String password) argument
1112 clearPassword(Account account) argument
1129 setUserData(Account account, String key, String value) argument
1148 setUserdataInternal(UserAccounts accounts, Account account, String key, String value) argument
1245 getAuthToken(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean notifyOnAuthFailure, final boolean expectActivityLaunch, Bundle loginOptionsIn) argument
1366 createNoCredentialsPermissionNotification(Account account, Intent intent, int userId) argument
1395 newGrantCredentialsPermissionIntent(Account account, int uid, AccountAuthenticatorResponse response, String authTokenType, String authTokenLabel) argument
1414 getCredentialPermissionNotificationId(Account account, String authTokenType, int uid) argument
1431 getSigninRequiredNotificationId(UserAccounts accounts, Account account) argument
1508 confirmCredentialsAsUser(IAccountManagerResponse response, final Account account, final Bundle options, final boolean expectActivityLaunch, int userId) argument
1546 updateCredentials(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean expectActivityLaunch, final Bundle loginOptions) argument
1810 addSharedAccountAsUser(Account account, int userId) argument
1828 removeSharedAccountAsUser(Account account, int userId) argument
1930 getAccountIdLocked(SQLiteDatabase db, Account account) argument
2464 doNotification(UserAccounts accounts, Account account, CharSequence message, Intent intent, int userId) argument
2566 permissionIsGranted(Account account, String authTokenType, int callerUid) argument
2594 hasExplicitlyGrantedPermission(Account account, String authTokenType, int callerUid) argument
2618 checkCallingUidAgainstAuthenticator(Account account) argument
2630 checkAuthenticateAccountsPermission(Account account) argument
2659 updateAppPermission(Account account, String authTokenType, int uid, boolean value) argument
2681 grantAppPermission(Account account, String authTokenType, int uid) argument
2716 revokeAppPermission(Account account, String authTokenType, int uid) argument
2747 removeAccountFromCacheLocked(UserAccounts accounts, Account account) argument
2771 insertAccountIntoCacheLocked(UserAccounts accounts, Account account) argument
2881 writeUserDataIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument
2895 writeAuthTokenIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument
2909 readAuthTokenInternal(UserAccounts accounts, Account account, String authTokenType) argument
2923 readUserDataInternal(UserAccounts accounts, Account account, String key) argument
2936 readUserDataForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument
2956 readAuthTokensForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument
[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 641 milliseconds

12