Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c14d4337 authored by Kweku Adams's avatar Kweku Adams
Browse files

Allow apps to specify minimum chunk size.

JobScheduler wouldn't start a connectivity job if the app gave an estimated
download/upload size and JS calculated that the job wouldn't complete
successfully within the max execution time. The logic assumed that apps
don't support interruptible work and that downloads/uploads are
all-or-nothing. This negatively impacted apps that support
interruptible/resume downloads & uploads.

Adding an API to let an app indicate it supports resumable network
activity so that JS can be smarter about whether to start a job or not.

Bug: 188429037
Test: atest CtsJobSchedulerTestCases:JobInfoTest
Test: atest FrameworksMockingServicesTests:ConnectivityControllerTest
Change-Id: I76bfe8d1ad3ffedd7ce66e7e31098db089749c83
parent 7a1c5d38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment