diff options
author | Songchun Fan <schfan@google.com> | 2021-02-19 01:10:12 +0000 |
---|---|---|
committer | Songchun Fan <schfan@google.com> | 2021-02-22 22:25:51 +0000 |
commit | a67a1a98413fd1a2ffc15e67777182f5ad364bf8 (patch) | |
tree | 7d7901b5e047eb7f1b923e719af816d411605e5c /rs/java/android/renderscript/ProgramStore.java | |
parent | e02aef66794a3b8b9790972344c71ab7b2faaaa2 (diff) |
[pm] smooth transition from install progress to incremental loading progress
Previously, regardless of the downloading progress reported by the client,
right before installation completion, we publish the install progress
as 0.9. For incremental installs, because we will publish the
incremnetal loading progress after the installation completion, we
might see the progress going backward, because the incremental loading
progress is likely less than 0.9.
For a smoother transition, we do not overwrite the client progress.
Instead, during committing, publish the incremental loading progress
while making sure the progress doesn't go backwards. After committing,
the launcher will keep showing the incremental loading progress.
+ Making sure the installer's incremental progress listener is
unregistered after session is committed.
See the demo video for an example. Notice that the progress is changed
during "Installing..." (around 00:35).
BUG: 180040329
Test: manual
Change-Id: I6c30b0dac6758fd103ed6a985ca39b6f8557ba8f
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions