/frameworks/base/core/java/android/accounts/ |
H A D | 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) { 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 D | IAccountManager.aidl | 26 * Central application service that provides account management. 30 String getPassword(in Account account); 31 String getUserData(in Account account, String key); 35 void hasFeatures(in IAccountManagerResponse response, in Account account, in String[] features); 37 boolean addAccount(in Account account, String password, in Bundle extras); 38 void removeAccount(in IAccountManagerResponse response, in Account account); 40 String peekAuthToken(in Account account, String authTokenType); 41 void setAuthToken(in Account account, String authTokenType, String authToken); 42 void setPassword(in Account account, String password); 43 void clearPassword(in Account account); [all...] |
H A D | IAccountAuthenticator.aidl | 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 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);
|
H A D | AccountManagerService.java | 81 * A system service that provides account, password, and authtoken management for all 348 Slog.w(TAG, "deleting account " + accountName + " because type " 352 final Account account = new Account(accountName, accountType); 353 accounts.userDataCache.remove(account); 354 accounts.authTokenCache.remove(account); 428 public String getPassword(Account account) { argument 430 Log.v(TAG, "getPassword: " + account 434 if (account == null) throw new IllegalArgumentException("account is null"); 435 checkAuthenticateAccountsPermission(account); 446 readPasswordInternal(UserAccounts accounts, Account account) argument 467 getUserData(Account account, String key) argument 511 addAccount(Account account, String password, Bundle extras) argument 530 addAccountInternal(UserAccounts accounts, Account account, String password, Bundle extras) argument 586 hasFeatures(IAccountManagerResponse response, Account account, String[] features) argument 612 TestFeaturesSession(UserAccounts accounts, IAccountManagerResponse response, Account account, String[] features) argument 660 removeAccount(IAccountManagerResponse response, Account account) argument 694 RemoveAccountSession(UserAccounts accounts, IAccountManagerResponse response, Account account) argument 737 removeAccountInternal(Account account) argument 741 removeAccountInternal(UserAccounts accounts, Account account) argument 808 saveAuthTokenToDatabase(UserAccounts accounts, Account account, String type, String authToken) argument 842 peekAuthToken(Account account, String authTokenType) argument 861 setAuthToken(Account account, String authTokenType, String authToken) argument 880 setPassword(Account account, String password) argument 897 setPasswordInternal(UserAccounts accounts, Account account, String password) argument 928 clearPassword(Account account) argument 945 setUserData(Account account, String key, String value) argument 964 setUserdataInternal(UserAccounts accounts, Account account, String key, String value) argument 1061 getAuthToken(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean notifyOnAuthFailure, final boolean expectActivityLaunch, Bundle loginOptionsIn) argument 1177 createNoCredentialsPermissionNotification(Account account, Intent intent, int userId) argument 1206 newGrantCredentialsPermissionIntent(Account account, int uid, AccountAuthenticatorResponse response, String authTokenType, String authTokenLabel) argument 1225 getCredentialPermissionNotificationId(Account account, String authTokenType, int uid) argument 1242 getSigninRequiredNotificationId(UserAccounts accounts, Account account) argument 1301 confirmCredentialsAsUser(IAccountManagerResponse response, final Account account, final Bundle options, final boolean expectActivityLaunch, int userId) argument 1339 updateCredentials(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean expectActivityLaunch, final Bundle loginOptions) argument 1622 getAccountIdLocked(SQLiteDatabase db, Account account) argument 2130 doNotification(UserAccounts accounts, Account account, CharSequence message, Intent intent, int userId) argument 2222 permissionIsGranted(Account account, String authTokenType, int callerUid) argument 2250 hasExplicitlyGrantedPermission(Account account, String authTokenType, int callerUid) argument 2274 checkCallingUidAgainstAuthenticator(Account account) argument 2286 checkAuthenticateAccountsPermission(Account account) argument 2304 updateAppPermission(Account account, String authTokenType, int uid, boolean value) argument 2326 grantAppPermission(Account account, String authTokenType, int uid) argument 2361 revokeAppPermission(Account account, String authTokenType, int uid) argument 2392 removeAccountFromCacheLocked(UserAccounts accounts, Account account) argument 2416 insertAccountIntoCacheLocked(UserAccounts accounts, Account account) argument 2454 writeUserDataIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2468 writeAuthTokenIntoCacheLocked(UserAccounts accounts, final SQLiteDatabase db, Account account, String key, String value) argument 2482 readAuthTokenInternal(UserAccounts accounts, Account account, String authTokenType) argument 2496 readUserDataInternal(UserAccounts accounts, Account account, String key) argument 2509 readUserDataForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument 2529 readAuthTokensForAccountFromDatabaseLocked( final SQLiteDatabase db, Account account) argument [all...] |
H A D | AbstractAccountAuthenticator.java | 47 * <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 378 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument 399 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument 429 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument 449 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument 468 getAccountRemovalAllowed(AccountAuthenticatorResponse response, Account account) argument [all...] |
H A D | AccountManager.java | 52 * per account, granting applications access to online resources with 56 * authentication, so the account manager uses pluggable <em>authenticator</em> 57 * modules for different <em>account types</em>. Authenticators (which may be 58 * written by third parties) handle the actual details of validating account 59 * credentials and storing account information. For example, Google, Facebook, 81 * identify particular account subtypes and capabilities. Both the account 88 * account of the appropriate type. 91 * account selection, it must make sure the account i 306 getPassword(final Account account) argument 331 getUserData(final Account account, final String key) argument 424 updateAppPermission(Account account, String authTokenType, int uid, boolean value) argument 485 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument 568 addAccountExplicitly(Account account, String password, Bundle userdata) argument 599 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument 660 peekAuthToken(final Account account, final String authTokenType) argument 686 setPassword(final Account account, final String password) argument 710 clearPassword(final Account account) argument 735 setUserData(final Account account, final String key, final String value) argument 762 setAuthToken(Account account, final String authTokenType, final String authToken) argument 796 blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) argument 870 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument 960 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument 1038 getAuthToken( final Account account, final String authTokenType, final Bundle options, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument 1179 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument 1193 confirmCredentialsAsUser(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler, UserHandle userHandle) argument 1255 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument [all...] |
H A D | ChooseTypeAndAccountActivity.java | 57 * used to filter the allowable account types if add account is selected. 81 * If set then the specified account is already "selected". 86 * If true then display the account selection list even if there is just 87 * one account to choose from. boolean. 148 // If the selected account as specified in the intent matches one in the list we will 157 Log.v(TAG, "selected account name is " + mSelectedAccountName); 174 // In cases where the activity does not need to show an account picker, cut the chase 176 // Single account -> select it directly 177 // No account 368 onAccountSelected(Account account) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | IContentService.aidl | 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); 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 D | PeriodicSync.java | 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) { argument 40 this.account = account; 51 account.writeToParcel(dest, flags); 79 return account.equals(other.account)
|
H A D | ISyncAdapter.aidl | 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);
|
H A D | SyncInfo.java | 34 public final Account account; field in class:SyncInfo 49 SyncInfo(int authorityId, Account account, String authority, argument 52 this.account = account; 65 account.writeToParcel(parcel, 0); 73 account = new Account(parcel);
|
H A D | AbstractThreadedSyncAdapter.java | 65 * 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 D | SyncOperation.java | 28 public final Account account; field in class:SyncOperation 42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras, argument 44 this.account = account; 79 this.account = other.account; 99 .append(account.name) 102 .append(account.type) 135 sb.append(" account {name=" + account [all...] |
H A D | SyncQueue.java | 61 op.account, op.userId, op.authority); 63 SyncAdapterType.newKey(op.authority, op.account.type), op.userId); 70 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */, 72 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), 115 operation.account, operation.userId, operation.syncSource, 157 public void onBackoffChanged(Account account, int userId, String providerName, long backoff) { argument 158 // for each op that matches the account and provider update its 161 if (op.account.equals(account) && op.authority.equals(providerName) 169 public void onDelayUntilTimeChanged(Account account, Strin argument 180 remove(Account account, int userId, String authority) argument [all...] |
H A D | SyncManager.java | 182 cancelActiveSync(null /* any account */, UserHandle.USER_ALL, 203 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */, 214 // Kick off sync for everyone, since this was a radical account change 233 private boolean containsAccountAndUser(AccountAndUser[] accounts, Account account, int userId) { argument 237 && accounts[i].account.equals(account)) { 254 currentSyncContext.mSyncOperation.account, 256 Log.d(TAG, "canceling sync since the account is no longer running"); 353 public void onSyncRequest(Account account, int userId, String authority, 355 scheduleSync(account, userI 654 scheduleLocalSync(Account account, int userId, String authority) argument 693 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument 797 cancelActiveSync(Account account, int userId, String authority) argument 830 clearScheduledSyncOperations(Account account, int userId, String authority) argument 1642 getSyncWakeLock(Account account, String authority) argument 2226 cancelActiveSyncLocked(Account account, int userId, String authority) argument 2536 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument [all...] |
H A D | SyncStorageEngine.java | 146 final Account account; field in class:SyncStorageEngine.PendingOperation 156 PendingOperation(Account account, int userId, int source, argument 158 this.account = account; 168 this.account = other.account; 189 final Account account; field in class:SyncStorageEngine.AuthorityInfo 207 account = toCopy.account; 223 AuthorityInfo(Account account, in argument 270 onSyncRequest(Account account, int userId, String authority, Bundle extras) argument 462 getSyncAutomatically(Account account, int userId, String providerName) argument 484 setSyncAutomatically(Account account, int userId, String providerName, boolean sync) argument 505 getIsSyncable(Account account, int userId, String providerName) argument 528 setIsSyncable(Account account, int userId, String providerName, int syncable) argument 553 getBackoff(Account account, int userId, String providerName) argument 564 setBackoff(Account account, int userId, String providerName, long nextSyncTime, long nextDelay) argument 641 setDelayUntilTime(Account account, int userId, String providerName, long delayUntil) argument 659 getDelayUntilTime(Account account, int userId, String providerName) argument 670 updateOrRemovePeriodicSync(Account account, int userId, String providerName, Bundle extras, long period, boolean add) argument 744 addPeriodicSync(Account account, int userId, String providerName, Bundle extras, long pollFrequency) argument 750 removePeriodicSync(Account account, int userId, String providerName, Bundle extras) argument 756 getPeriodicSyncs(Account account, int userId, String providerName) argument 794 getOrCreateAuthority(Account account, int userId, String authority) argument 802 removeAuthority(Account account, int userId, String authority) argument 818 isSyncActive(Account account, int userId, String authority) argument 1258 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument 1282 isSyncPending(Account account, int userId, String authority) argument 1410 removeAuthorityLocked(Account account, int userId, String authorityName, boolean doWrite) argument 2199 requestSync(Account account, int userId, String authority, Bundle extras) argument [all...] |
H A D | ContentResolver.java | 73 public static final String SYNC_EXTRAS_ACCOUNT = "account"; 112 * the given account/authority pair. One required initialization step is to 1274 * adapter that's registered for the authority of the provided uri. No account will be 1325 Account account = null; 1329 account = new Account(accountName, "com.google"); 1333 requestSync(account, uri != null ? uri.getAuthority() : null, extras); 1349 * @param account which account should be synced 1353 public static void requestSync(Account account, String authority, Bundle extras) { argument 1356 getContentService().requestSync(account, authorit 1417 cancelSync(Account account, String authority) argument 1445 getSyncAutomatically(Account account, String authority) argument 1462 setSyncAutomatically(Account account, String authority, boolean sync) argument 1498 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 1534 removePeriodicSync(Account account, String authority, Bundle extras) argument 1558 getPeriodicSyncs(Account account, String authority) argument 1578 getIsSyncable(Account account, String authority) argument 1592 setIsSyncable(Account account, String authority, int syncable) argument 1643 isSyncActive(Account account, String authority) argument 1701 getSyncStatus(Account account, String authority) argument 1717 isSyncPending(Account account, String authority) argument [all...] |
H A D | ContentService.java | 300 public void requestSync(Account account, String authority, Bundle extras) { argument 310 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */, 320 * if they match the authority and account, if they are present. 321 * @param account filter the pending and active syncs to cancel using this account 324 public void cancelSync(Account account, String authority) { argument 333 syncManager.clearScheduledSyncOperations(account, userId, authority); 334 syncManager.cancelActiveSync(account, userId, authority); 358 public boolean getSyncAutomatically(Account account, String providerName) { argument 368 account, userI 376 setSyncAutomatically(Account account, String providerName, boolean sync) argument 393 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 408 removePeriodicSync(Account account, String authority, Bundle extras) argument 422 getPeriodicSyncs(Account account, String providerName) argument 436 getIsSyncable(Account account, String providerName) argument 454 setIsSyncable(Account account, String providerName, int syncable) argument 504 isSyncActive(Account account, String authority) argument 535 getSyncStatus(Account account, String authority) argument 553 isSyncPending(Account account, String authority) argument [all...] |
/frameworks/ex/chips/src/com/android/ex/chips/ |
H A D | AccountSpecifier.java | 23 * 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 D | SyncStateContract.java | 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 { 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 D | BrowserContract.java | 109 * 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/core/tests/coretests/src/android/content/ |
H A D | SyncStorageEngineTest.java | 49 final Account account = new Account("a@example.com", "example.type"); 59 account, 0, authority, time0, SyncStorageEngine.SOURCE_LOCAL, 95 engine.addPeriodicSync(sync1.account, 0, sync1.authority, sync1.extras, sync1.period); 96 engine.addPeriodicSync(sync2.account, 0, sync2.authority, sync2.extras, sync2.period); 97 engine.addPeriodicSync(sync3.account, 0, sync3.authority, sync3.extras, sync3.period); 98 engine.addPeriodicSync(sync4.account, 0, sync4.authority, sync4.extras, sync4.period); 100 engine.addPeriodicSync(sync2.account, 1, sync2.authority, sync2.extras, sync2.period); 109 engine.removePeriodicSync(sync1.account, 0, sync1.authority, sync1.extras); 119 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority); 124 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, in argument [all...] |
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardEntryConstructor.java | 66 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/base/test-runner/src/android/test/ |
H A D | SyncBaseInstrumentation.java | 50 Account account = new Account(accountName, "com.google"); 52 ContentResolver.requestSync(account, authority, extras); 67 if (ContentResolver.isSyncActive(account, authority)) {
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
H A D | AndroidAuthenticator.java | 30 * tokens of a specified type for a specified account. 40 * @param account Account to authenticate as 43 public AndroidAuthenticator(Context context, Account account, String authTokenType) { argument 45 mAccount = account;
|