History log of /packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/VoicemailProviderChangeReceiver.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6337d1be5db67c7b81e7998988ca53da50ab44c2 29-Jun-2015 Nancy Chen <nancychen@google.com> Set alarm for retries with exponential backoff.

If the first retries don't work, we want to retry later using the
AlarmManager, which will schedule the retry when convenient.
Currently it just retries every 5 seconds (that's bad). This
change includes:
- Add key to preferences to save the current retry interval
- Add helper methods to construct proper pending intent and cancel
existing retries
- Remove the "undelete"/"unread" since we will be retrying uploads as
well as downloads.
Also we don't want to make a new network request if the first one
succeeded, we just want to retry the IMAP connection.
There's also a fix here for a bug where the local voicemails were not
indicated as "read" so there would be unnecessary updates to the
voicemail provider.

Bug: 21978479

Change-Id: I18c5e2d0b7920540ded74b09f63eb94fdd959f43
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/VoicemailProviderChangeReceiver.java
9cc75becf6d2b474b319eeaa10ad16228355b806 29-May-2015 Nancy Chen <nancychen@google.com> Remove vvm dependence on AccountManager, save values in shared prefs.

Instead of using the sync adapter and accounts framework,
use an intent service for syncing and shared preferences for saving
the IMAP login values. This solves the phantom account problem.
* Renamed OmtpVvmSyncAccountManager to OmtpVvmSourceManager
* Moved carrier-specific code in SimChangeReceiver to
OmtpVvmCarrierConfigHelpoer

Bug: 20057303
Change-Id: I79347849d63bd7907df2e9aac9a14e7311215fe1
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/VoicemailProviderChangeReceiver.java
5d6ec274991ad9cf84d0ad83b5f3e21304c39f27 22-May-2015 Nancy Chen <nancychen@google.com> Perform syncs with the voicemail server through data connection only.

This change covers anytime the voicemail provider data changes, initial
download of voicemails and syncing when receiving a "Mailbox Update"
sync request.

Bug: 20345518

Change-Id: Ib0ca46e4a70312a581d8f99dfa6a3e389e440162
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/VoicemailProviderChangeReceiver.java