[On-device adaptive brightness] Allow training to start immediately.
This cl changes when training should start. 1. Previously, training will only start after user has been inactive for a certain amount of time (the training delay), and also if there are at least certain number of training points. A training point is created when a user makes a brightness adjustment. 2. Now, training can still be delayed, but if the delay is 0, we will start training immediately after a training point is received. We no longer need to accumulate data points before training. - We run the training job and also disk-writing job (for writing trained curves) in a non-UI thread, hence it's non-blocking. Bug: 881215 Change-Id: Ifcb0714bd74d278722d1c718f57ca82dd16aed1b Reviewed-on: https://chromium-review.googlesource.com/c/1350020Reviewed-by:Andrew Moylan <amoylan@chromium.org> Commit-Queue: Jia Meng <jiameng@chromium.org> Cr-Commit-Position: refs/heads/master@{#611067}
Showing
Please register or sign in to comment