Searched defs:account (Results 1 - 20 of 20) sorted by relevance

/frameworks/base/core/java/android/content/
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 DSyncInfo.java33 public final Account account; field in class:SyncInfo
48 SyncInfo(int authorityId, Account account, String authority, argument
51 this.account = account;
64 account.writeToParcel(parcel, 0);
72 account = new Account(parcel);
H A DSyncOperation.java28 public final Account account; field in class:SyncOperation
37 public SyncOperation(Account account, int source, String authority, Bundle extras, argument
39 this.account = account;
69 this.account = other.account;
81 sb.append(" account: ").append(account);
93 sb.append(" account {name=" + account
[all...]
H A DSyncQueue.java51 op.account, op.syncSource, op.authority, op.extras, 0 /* delay */);
93 operation.account, operation.syncSource,
153 Pair<Long, Long> backoff = mSyncStorageEngine.getBackoff(op.account, op.authority);
154 long delayUntil = mSyncStorageEngine.getDelayUntilTime(op.account, op.authority);
169 && mSyncStorageEngine.getIsSyncable(op.account, op.authority) < 0;
248 public void remove(Account account, String authority) { argument
253 if (account != null && !syncOperation.account.equals(account)) {
H A DAbstractThreadedSyncAdapter.java77 public void startSync(ISyncContext syncContext, String authority, Account account, argument
89 if (ContentResolver.getIsSyncable(account, authority) < 0) {
90 ContentResolver.setIsSyncable(account, authority, 1);
97 syncContextClient, authority, account, extras);
125 public void initialize(Account account, String authority) throws RemoteException { argument
128 startSync(null, authority, account, extras);
144 Account account, Bundle extras) {
148 mAccount = account;
197 * Perform a sync for this account. SyncAdapter-specific parameters may
201 * @param account th
143 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
208 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
H A DContentService.java193 public void requestSync(Account account, String authority, Bundle extras) { argument
201 syncManager.scheduleSync(account, authority, extras, 0 /* no delay */,
211 * if they match the authority and account, if they are present.
212 * @param account filter the pending and active syncs to cancel using this account
215 public void cancelSync(Account account, String authority) { argument
222 syncManager.clearScheduledSyncOperations(account, authority);
223 syncManager.cancelActiveSync(account, authority);
246 public boolean getSyncAutomatically(Account account, String providerName) { argument
254 account, providerNam
262 setSyncAutomatically(Account account, String providerName, boolean sync) argument
277 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
290 removePeriodicSync(Account account, String authority, Bundle extras) argument
301 getPeriodicSyncs(Account account, String providerName) argument
313 getIsSyncable(Account account, String providerName) argument
329 setIsSyncable(Account account, String providerName, int syncable) argument
373 isSyncActive(Account account, String authority) argument
404 getSyncStatus(Account account, String authority) argument
420 isSyncPending(Account account, String authority) argument
[all...]
H A DContentResolver.java62 public static final String SYNC_EXTRAS_ACCOUNT = "account";
101 * the given account/authority pair. One required initialization step is to
912 Account account = null;
916 account = new Account(accountName, "com.google");
920 requestSync(account, uri != null ? uri.getAuthority() : null, extras);
936 * @param account which account should be synced
940 public static void requestSync(Account account, String authority, Bundle extras) { argument
943 getContentService().requestSync(account, authority, extras);
997 * Cancel any active or pending syncs that match account an
1004 cancelSync(Account account, String authority) argument
1030 getSyncAutomatically(Account account, String authority) argument
1045 setSyncAutomatically(Account account, String authority, boolean sync) argument
1078 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1112 removePeriodicSync(Account account, String authority, Bundle extras) argument
1134 getPeriodicSyncs(Account account, String authority) argument
1152 getIsSyncable(Account account, String authority) argument
1164 setIsSyncable(Account account, String authority, int syncable) argument
1209 isSyncActive(Account account, String authority) argument
1236 getSyncStatus(Account account, String authority) argument
1250 isSyncPending(Account account, String authority) argument
[all...]
H A DSyncManager.java171 cancelActiveSync(null /* any account */, null /* any authority */);
191 scheduleSync(null /* account */, null /* authority */, new Bundle(), 0 /* delay */,
208 if (!ArrayUtils.contains(accounts, activeSyncContext.mSyncOperation.account)) {
209 Log.d(TAG, "canceling sync since the account has been removed");
229 // If there was a real account change then force a sync of all accounts.
232 // account change was a password update.
419 private void initializeSyncAdapter(Account account, String authority) { argument
421 Log.v(TAG, "initializeSyncAdapter: " + account + ", authority " + authority);
423 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(authority, account.type);
428 mSyncStorageEngine.removeAuthority(account, authorit
449 InitializerServiceConnection(Account account, String authority, Context context, Handler handler) argument
636 scheduleLocalSync(Account account, String authority) argument
740 cancelActiveSync(Account account, String authority) argument
805 clearScheduledSyncOperations(Account account, String authority) argument
1345 public Account account; field in class:SyncManager.SyncHandler.SyncNotificationInfo
2026 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes) argument
[all...]
H A DSyncStorageEngine.java135 final Account account; field in class:SyncStorageEngine.PendingOperation
144 PendingOperation(Account account, int source, argument
146 this.account = account;
155 this.account = other.account;
165 final Account account; field in class:SyncStorageEngine.AccountInfo
169 AccountInfo(Account account) { argument
170 this.account = account;
175 final Account account; field in class:SyncStorageEngine.AuthorityInfo
185 AuthorityInfo(Account account, String authority, int ident) argument
392 getSyncAutomatically(Account account, String providerName) argument
413 setSyncAutomatically(Account account, String providerName, boolean sync) argument
432 getIsSyncable(Account account, String providerName) argument
455 setIsSyncable(Account account, String providerName, int syncable) argument
478 getBackoff(Account account, String providerName) argument
488 setBackoff(Account account, String providerName, long nextSyncTime, long nextDelay) argument
554 setDelayUntilTime(Account account, String providerName, long delayUntil) argument
571 getDelayUntilTime(Account account, String providerName) argument
581 updateOrRemovePeriodicSync(Account account, String providerName, Bundle extras, long period, boolean add) argument
653 addPeriodicSync(Account account, String providerName, Bundle extras, long pollFrequency) argument
658 removePeriodicSync(Account account, String providerName, Bundle extras) argument
663 getPeriodicSyncs(Account account, String providerName) argument
697 getOrCreateAuthority(Account account, String authority) argument
705 removeAuthority(Account account, String authority) argument
721 isSyncActive(Account account, String authority) argument
1170 getStatusByAccountAndAuthority(Account account, String authority) argument
1192 isSyncPending(Account account, String authority) argument
1342 removeAuthorityLocked(Account account, String authorityName, boolean doWrite) argument
[all...]
/frameworks/base/core/java/android/accounts/
H A DAbstractAccountAuthenticator.java48 * &lt;account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
154 Account account, Bundle options) throws RemoteException {
156 Log.v(TAG, "confirmCredentials: " + account);
161 new AccountAuthenticatorResponse(response), account, options);
219 Account account, String authTokenType, Bundle loginOptions)
222 Log.v(TAG, "getAuthToken: " + account
228 new AccountAuthenticatorResponse(response), account,
251 public void updateCredentials(IAccountAuthenticatorResponse response, Account account, argument
254 Log.v(TAG, "updateCredentials: " + account
260 new AccountAuthenticatorResponse(response), account,
153 confirmCredentials(IAccountAuthenticatorResponse response, Account account, Bundle options) argument
218 getAuthToken(IAccountAuthenticatorResponse response, Account account, String authTokenType, Bundle loginOptions) argument
299 hasFeatures(IAccountAuthenticatorResponse response, Account account, String[] features) argument
316 getAccountRemovalAllowed(IAccountAuthenticatorResponse response, Account account) argument
406 confirmCredentials(AccountAuthenticatorResponse response, Account account, Bundle options) argument
427 getAuthToken(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
457 updateCredentials(AccountAuthenticatorResponse response, Account account, String authTokenType, Bundle options) argument
477 hasFeatures(AccountAuthenticatorResponse response, Account account, String[] features) argument
496 getAccountRemovalAllowed(AccountAuthenticatorResponse response, Account account) argument
[all...]
H A DAccountManager.java49 * per account, granting applications access to online resources with
53 * authentication, so the account manager uses pluggable <em>authenticator</em>
54 * modules for different <em>account types</em>. Authenticators (which may be
55 * written by third parties) handle the actual details of validating account
56 * credentials and storing account information. For example, Google, Facebook,
78 * identify particular account subtypes and capabilities. Both the account
85 * account of the appropriate type.
88 * account selection, it must make sure the account i
296 getPassword(final Account account) argument
321 getUserData(final Account account, final String key) argument
421 hasFeatures(final Account account, final String[] features, AccountManagerCallback<Boolean> callback, Handler handler) argument
504 addAccountExplicitly(Account account, String password, Bundle userdata) argument
535 removeAccount(final Account account, AccountManagerCallback<Boolean> callback, Handler handler) argument
596 peekAuthToken(final Account account, final String authTokenType) argument
622 setPassword(final Account account, final String password) argument
646 clearPassword(final Account account) argument
671 setUserData(final Account account, final String key, final String value) argument
698 setAuthToken(Account account, final String authTokenType, final String authToken) argument
732 blockingGetAuthToken(Account account, String authTokenType, boolean notifyAuthFailure) argument
806 getAuthToken( final Account account, final String authTokenType, final Bundle options, final Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) argument
888 getAuthToken( final Account account, final String authTokenType, final boolean notifyAuthFailure, AccountManagerCallback<Bundle> callback, Handler handler) argument
1016 confirmCredentials(final Account account, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
1076 updateCredentials(final Account account, final String authTokenType, final Bundle options, final Activity activity, final AccountManagerCallback<Bundle> callback, final Handler handler) argument
[all...]
H A DAccountManagerService.java71 * A system service that provides account, password, and authtoken management for all
182 public AuthTokenKey(Account account, String authTokenType) { argument
183 mAccount = account;
247 Log.d(TAG, "deleting account " + accountName + " because type "
272 Log.d(TAG, "deleting account " + accountName + " because type "
285 public String getPassword(Account account) { argument
286 if (account == null) throw new IllegalArgumentException("account is null");
287 checkAuthenticateAccountsPermission(account);
291 return readPasswordFromDatabase(account);
297 readPasswordFromDatabase(Account account) argument
316 getUserData(Account account, String key) argument
328 readUserDataFromDatabase(Account account, String key) argument
388 addAccount(Account account, String password, Bundle extras) argument
401 insertAccountIntoDatabase(Account account, String password, Bundle extras) argument
457 hasFeatures(IAccountManagerResponse response, Account account, String[] features) argument
475 TestFeaturesSession(IAccountManagerResponse response, Account account, String[] features) argument
519 removeAccount(IAccountManagerResponse response, Account account) argument
545 RemoveAccountSession(IAccountManagerResponse response, Account account) argument
582 removeAccount(Account account) argument
635 saveAuthTokenToDatabase(Account account, String type, String authToken) argument
664 readAuthTokenFromDatabase(Account account, String authTokenType) argument
684 peekAuthToken(Account account, String authTokenType) argument
696 setAuthToken(Account account, String authTokenType, String authToken) argument
708 setPassword(Account account, String password) argument
719 setPasswordInDB(Account account, String password) argument
745 clearPassword(Account account) argument
756 setUserData(Account account, String key, String value) argument
775 writeUserdataIntoDatabase(Account account, String key, String value) argument
818 getAuthTokenLabel(final IAccountManagerResponse response, final Account account, final String authTokenType) argument
856 getAuthToken(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean notifyOnAuthFailure, final boolean expectActivityLaunch, Bundle loginOptionsIn) argument
975 createNoCredentialsPermissionNotification(Account account, Intent intent) argument
1016 newGrantCredentialsPermissionIntent(Account account, int uid, AccountAuthenticatorResponse response, String authTokenType, String authTokenLabel) argument
1035 getCredentialPermissionNotificationId(Account account, String authTokenType, int uid) argument
1051 getSigninRequiredNotificationId(Account account) argument
1093 confirmCredentials(IAccountManagerResponse response, final Account account, final Bundle options, final boolean expectActivityLaunch) argument
1115 updateCredentials(IAccountManagerResponse response, final Account account, final String authTokenType, final boolean expectActivityLaunch, final Bundle loginOptions) argument
1291 getAccountId(SQLiteDatabase db, Account account) argument
1753 doNotification(Account account, CharSequence message, Intent intent) argument
1827 permissionIsGranted(Account account, String authTokenType, int callerUid) argument
1854 hasExplicitlyGrantedPermission(Account account, String authTokenType) argument
1874 checkCallingUidAgainstAuthenticator(Account account) argument
1886 checkAuthenticateAccountsPermission(Account account) argument
1911 grantAppPermission(Account account, String authTokenType, int uid) argument
1942 revokeAppPermission(Account account, String authTokenType, int uid) argument
[all...]
/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
97 set(ContentProviderClient provider, Uri uri, Account account, byte[] data) argument
106 insert(ContentProviderClient provider, Uri uri, Account account, byte[] data) argument
122 getWithUri(ContentProviderClient provider, Uri uri, Account account) argument
147 newSetOperation(Uri uri, Account account, byte[] data) argument
[all...]
H A DCalendar.java138 * The account that was used to sync the entry to the device.
144 * The type of the account that was used to sync the entry to the device.
189 * The name of the account instance to which this row belongs, which when paired with
190 * {@link #ACCOUNT_TYPE} identifies a specific account.
196 * The type of account to which this row belongs, which when paired with
197 * {@link #ACCOUNT_NAME} identifies a specific account.
231 * Convenience method to delete all calendars that match the account.
234 * @param account the account whose rows should be deleted
237 public static int deleteCalendarsForAccount(ContentResolver cr, Account account) { 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...]
H A DContactsContract.java65 * person and associated with a single account (for example, one of the user's
214 public static byte[] get(ContentProviderClient provider, Account account) argument
216 return SyncStateContract.Helpers.get(provider, CONTENT_URI, account);
222 public static Pair<Uri, byte[]> getWithUri(ContentProviderClient provider, Account account) argument
224 return SyncStateContract.Helpers.getWithUri(provider, CONTENT_URI, account);
230 public static void set(ContentProviderClient provider, Account account, byte[] data) argument
232 SyncStateContract.Helpers.set(provider, CONTENT_URI, account, data);
238 public static ContentProviderOperation newSetOperation(Account account, byte[] data) { argument
239 return SyncStateContract.Helpers.newSetOperation(CONTENT_URI, account, data);
265 * account, includin
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DSyncStorageEngineTest.java45 final Account account = new Account("a@example.com", "example.type");
55 account, authority, time0, SyncStorageEngine.SOURCE_LOCAL);
89 engine.addPeriodicSync(sync1.account, sync1.authority, sync1.extras, sync1.period);
90 engine.addPeriodicSync(sync2.account, sync2.authority, sync2.extras, sync2.period);
91 engine.addPeriodicSync(sync3.account, sync3.authority, sync3.extras, sync3.period);
92 engine.addPeriodicSync(sync4.account, sync4.authority, sync4.extras, sync4.period);
101 engine.removePeriodicSync(sync1.account, sync1.authority, sync1.extras);
112 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, String authority) { argument
113 engine.setIsSyncable(account, authority, engine.getIsSyncable(account, authorit
[all...]
/frameworks/base/core/java/android/pim/vcard/
H A DVCardEntryConstructor.java75 public VCardEntryConstructor(final int vcardType, final Account account) { argument
76 this(vcardType, account, null, false);
79 public VCardEntryConstructor(final int vcardType, final Account account, argument
81 this(vcardType, account, inputCharset, false);
87 public VCardEntryConstructor(final int vcardType, final Account account, argument
96 mAccount = account;
H A DVCardEntry.java490 public VCardEntry(int vcardType, Account account) { argument
492 mAccount = account;
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java140 public String blockingGetAuthToken(Account account, String authTokenType, argument

Completed in 380 milliseconds