OSDN Git Service

Re-use the same random value to compute a download's restart time.
authorJean-Baptiste Queru <jbq@google.com>
Thu, 24 Sep 2009 14:59:02 +0000 (07:59 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Thu, 24 Sep 2009 16:22:49 +0000 (09:22 -0700)
commit4a977a52c3eb3ac08b94b81aef72fb618be39f81
tree5e1a9e32c16f0f71af6ec24cf04e843be1ea1755
parent2061c03400a8e23cfeee5394b7e71db2440a48ed
Re-use the same random value to compute a download's restart time.

The restart time is used multiple times during the same pass,
and it needs to be consistent across calls. Otherwise, it's
possible for a download to not be restarted immediately and
to not be scheduled for a future restart.

BUG=2055624
src/com/android/providers/downloads/DownloadInfo.java