summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-10-25 16:12:00 -0600
committerJeff Sharkey <jsharkey@android.com>2017-10-26 13:12:14 -0600
commitcaa3f8dc23569bf8555ab861511af8b205d5483f (patch)
treecef94d6ebfa48c44be90ffce9fedc9a06eb3666b /tools/aapt2/java/JavaClassGenerator_test.cpp
parentec3bfcd1dfda195e9676249677fba5bfd4234a0b (diff)
Provide a way for jobs to estimate network traffic.
The system would like better insight into the shape/size of network traffic that jobs will be performing. For example, the system may choose to delay jobs with large network usage estimates when the device has a poor network connection, in order to save battery. This also paves the way for more interesting optimizations, such as allowing small jobs to use surplus metered network quota to improve the overall user experience. For now, we use these estimates to perform a simple sanity check to skip jobs that have no possible chance of finishing within the 10-minute job timeout on a given network. (For example, a job trying to upload 10MB over a 128Kbps EDGE network is a terrible idea.) Test: verified via DownloadManager Bug: 67040695, 64133169 Change-Id: I9210168b6bda0f0364975a5c7ea25d953a096767
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions