Commit Graph

77 Commits

Author SHA1 Message Date
Fred Quintana
53bd2522ca - change the SyncManager to retry MANUAL syncs that encounter a soft error
- make the sync dump handle the case where there are no accounts
- fix a bug that caused the SyncManager to burn up CPU in the system process

The following was implemented:

scheduler offers:
 - settings to disable sync
 - retries of certain errors
 - backoffs

want a way to control these when scheduling a sync
 - "ignore_settings"
 - "ignore initial backoff"
 - "manual" : ignore settings, ignore initial backoff
 - "do not retry"

- need to change the default behavior of not retrying manual syncs to retry regardless
2010-02-08 16:54:43 -08:00
Fred Quintana
c5d1c6db61 add sync polling
- added the ability to specify that a sync (of account/authority/extras)
  should occur at a given frequency
- the existing daily poll code was replaced with seeding each
  account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
  periodic syncs and when they will next run
2010-02-05 15:16:20 -08:00
Fred Quintana
307da1a46b enhance the sync manager backoff logic and add support for retry-after
moved SyncQueue and SyncOperation into their own top-level classes
to ease maintainability and testing6

removed some dead code
2010-01-25 16:41:58 -08:00
Fred Quintana
3084a6f801 rename testHasFeatures to hasFeatures 2010-01-15 11:05:44 -08:00
Fred Quintana
bb68a4fc54 add AccountManager.testHasFeatures() to make it easy to check if a given account has a set of features 2010-01-14 10:35:33 -08:00
Ying Wang
1060147d5c am 80410b55: am 42c98ada: Still use ro.monkey
Merge commit '80410b55f1eccf345fb6a01ca9a277935ac4098f'

* commit '80410b55f1eccf345fb6a01ca9a277935ac4098f':
  Still use ro.monkey
2010-01-07 09:21:40 -08:00
Ying Wang
42c98ada11 Still use ro.monkey
http://b/issue?id=1681101
2010-01-06 09:52:57 -08:00
Ying Wang
24c10062cd am 5c529a0c: am 08fa1428: Rename ro.monkey to monkey.running
Merge commit '5c529a0cb587d0dfa38e5642e268ca56285a356f'

* commit '5c529a0cb587d0dfa38e5642e268ca56285a356f':
  Rename ro.monkey to monkey.running
2010-01-04 13:49:47 -08:00
Ying Wang
08fa1428ee Rename ro.monkey to monkey.running
So that Monkey can set ro.mokey before running and reset it after running.
2010-01-04 11:56:24 -08:00
Fred Quintana
0b957851c5 am 74f7b139: am f307ec5d: Merge change Iafa92b8f into eclair-mr2
Merge commit '74f7b139d0e380969268f44d5358db08e0325394'

* commit '74f7b139d0e380969268f44d5358db08e0325394':
  remove accounts for authenticators that are uninstalled
2009-12-02 20:33:59 -08:00
Fred Quintana
afa92b8f3d remove accounts for authenticators that are uninstalled 2009-12-02 11:29:44 -08:00
Oscar Montemayor
a8529f6867 Encrypted File Systems Project. Installer modifications.
Started to modify isntaller for data redirection to a secure location.
2009-11-24 11:44:19 -08:00
Fred Quintana
f61ab00770 am 5994cd28: -hide AccountManagerResponse, which never should have been exposed in the first place
Merge commit '5994cd2898ad3c76d1f5068137a884024f521163' into eclair-mr2

* commit '5994cd2898ad3c76d1f5068137a884024f521163':
  -hide AccountManagerResponse, which never should have been exposed in the first place
2009-11-19 11:41:48 -08:00
Fred Quintana
5994cd2898 -hide AccountManagerResponse, which never should have been exposed in the first place 2009-11-19 10:19:23 -08:00
Fred Quintana
60ff11dc39 fix an npe when a user tries to get an auth token from an authenticator that doesn't support it, like exchange 2009-11-13 16:21:52 -08:00
Fred Quintana
735f455386 resolved conflicts for merge of ae0cf6dc to eclair-mr2 2009-11-11 16:18:46 -08:00
Fred Quintana
5ebbb4a6b3 Make the RegisteredSErvices Cache not allow the registered service for a
type to change without first uninstalling the previous service for that
type, unless the newly installed service is in the system image.

Notify the listener when a service is added or removed.

Make the AccountManagerService remove the accounts for an authenticator
when the registered authenticator changes from one uid to another.

Make the AbstractSyncableContentProvider force a sync when the database is first created.
2009-11-10 16:10:54 -08:00
Fred Quintana
6b9954790e am fae288c7: Merge change I9efe265f into eclair
Merge commit 'fae288c7987f96df05e91ed154e934de267098be' into eclair-mr2

* commit 'fae288c7987f96df05e91ed154e934de267098be':
  unhide AccountManagerResponse
2009-10-29 19:33:09 -07:00
Ed Heyl
7fb4e4aaf2 am 154d61fc: Merge change Id6f158b3 into eclair
Merge commit '154d61fc99964bc5ad13384027f063e77b36f9eb' into eclair-mr2

* commit '154d61fc99964bc5ad13384027f063e77b36f9eb':
  Removed javadoc link to hidden class (temporary fix for build)
2009-10-29 19:32:23 -07:00
Costin Manolache
492dbe1752 am 4388b988: Merge change Idc4c7714 into eclair
Merge commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12' into eclair-mr2

* commit '4388b98845e6a28c689e500cd6ed1e9bb29a2c12':
  Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes.
2009-10-29 19:30:43 -07:00
Marco Nelissen
c81e43c8ee resolved conflicts for merge 31957f1b to eclair-mr2 2009-10-29 18:04:17 -07:00
Android (Google) Code Review
fae288c798 Merge change I9efe265f into eclair
* changes:
  unhide AccountManagerResponse
2009-10-29 17:47:52 -04:00
Android (Google) Code Review
154d61fc99 Merge change Id6f158b3 into eclair
* changes:
  Removed javadoc link to hidden class (temporary fix for build)
2009-10-29 17:08:34 -04:00
Costin Manolache
88a211b148 Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes. 2009-10-29 13:14:47 -07:00
Ed Heyl
d6f158b368 Removed javadoc link to hidden class (temporary fix for build) 2009-10-29 10:18:45 -07:00
Fred Quintana
9efe265f08 unhide AccountManagerResponse 2009-10-28 23:04:35 -07:00
Fred Quintana
31957f1bad - add javadoc for the account manager
- add some checks to the AccountManagerService to keep it from crashing when a null is passed in
- cleaned up the API a bit
2009-10-28 16:29:21 -07:00
Android (Google) Code Review
b81199b3ee Merge change I885cfc23 into eclair-mr2
* changes:
  make the password-clearing algorithm smarter
2009-10-23 19:51:26 -04:00
Fred Quintana
f397174750 am 0bf653b5: am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit '0bf653b531b8582012ed211fe65e50702589a7c4' into eclair-mr2

* commit '0bf653b531b8582012ed211fe65e50702589a7c4':
  update account manager javadoc
2009-10-22 18:29:59 -07:00
Fred Quintana
756b735e93 update account manager javadoc 2009-10-22 16:56:08 -07:00
Doug Zongker
885cfc23a4 make the password-clearing algorithm smarter
Remove the ro.config.sim_password_clear property; go back to enabling
this for all devices.  For GSM devices, we clear the password on SIM
change as before.  For CDMA devices, we only clear when the device is
provisioned with a different number; we don't clear the password while
the device is unprovisioned.
2009-10-21 16:52:44 -07:00
Fred Quintana
1a23191bbd fix build 2009-10-15 11:31:30 -07:00
Fred Quintana
b839afc33e remove the bind helper and bind directly 2009-10-14 15:57:28 -07:00
Fred Quintana
c4989b1b75 update the authtoken permission granting UI
http://b/issue?id=2165284
2009-10-14 15:24:46 -07:00
Doug Zongker
7fa8c508e0 make erase-password-on-SIM-change optional
Make this "feature" controlled by a system property so it can be
enabled only for carriers that want it.
2009-10-13 13:02:49 -07:00
Fred Quintana
ea48361d47 fix an NPE on a race condition that occurs when unbinding from an authenticator at the samer time that its process dies: bug 2171204 2009-10-07 16:36:48 -07:00
Android (Google) Code Review
5fbaefc3d8 Merge change I4db3a5b3 into eclair
* changes:
  fix a javadoc build breakage
2009-10-05 20:22:27 -04:00
Fred Quintana
4db3a5b327 fix a javadoc build breakage 2009-10-05 17:19:03 -07:00
Fred Quintana
89c40f5034 fix a javadoc build breakage 2009-10-05 14:21:53 -07:00
Fred Quintana
f7ae77cd67 account manager api review changes 2009-10-05 11:19:49 -07:00
Costin Manolache
3348f14b3d Remove GAIA string 2009-09-29 22:52:05 -07:00
Jason Parks
1cd7d0e591 Implement the checkin option in AccountManagerService.dump()
When the dump is requested by the checkin server the AccountManagerService will now dump each account type and the number accounts that are registered/active for that account type.
2009-09-29 13:06:10 -07:00
Bryan Mawhinney
5be61f5b3a Make removeOnAccountsUpdateListener cope with null handlers.
Previously, if callers registered OnAccountsUpdateListeners with a null handler,
removeOnAccountsUpdateListener would fail attempting to remove the listener.

Change-Id: If9906d3711f816e60c4b491b7f33671f089ac00f
2009-09-24 14:50:25 +01:00
Jim Miller
50c05f38b3 Delay broadcasting ACCOUNTS_CHANGED until we're certain AndroidId is ready.
Make sure 'nobroadcast' flag doesn't get stored in database.
Update after review.
2009-09-23 16:05:03 -07:00
Fred Quintana
e00a31155b - make an AccountManager per context, not one per process
- enhance the comment for addOnAccountsUpdatedListener()
2009-09-22 15:13:30 -07:00
Fred Quintana
86bd084cf6 do not use transactions for calls that just read the DB 2009-09-17 17:00:01 -07:00
Fred Quintana
3ecd5f4375 - Make the AccountManagerService delete accounts that
have no Authenticator, both when the package is removed
  and when the phone is booted.
- add the ability to register with the RegisteredServicesCache
  to be notified when the set of Authenticators changes.
2009-09-17 15:45:41 -07:00
Fred Quintana
6dfd1382fe remove the signin required notification as when the signin is successful 2009-09-16 17:32:42 -07:00
Eric Fischer
ee452ee535 Combine the "Permission Requested" title and subtitle into one string.
The translators don't get the strings in order, so having a single sentence
split across two strings makes it difficult to get good translations.
2009-09-16 10:33:47 -07:00
Fred Quintana
33f889ae27 change to use the new CALLER_IS_SYNCADAPTER flag 2009-09-14 20:55:43 -07:00