Nis*_*sim 5 android-source android-jobscheduler android-11
我正在开发一个应用程序,它严重依赖 jobScheduler 在后台执行多个任务。从下一个 api 版本(android11、api 30)开始,文档(以及开发者预览版)指出:
JobScheduler will throttle runaway applications. Calling schedule(android.app.job.JobInfo) and other such methods with very high frequency is indicative of an app bug and so, to make sure the system doesn't get overwhelmed, JobScheduler will begin to throttle apps that show buggy behavior, regardless of target SDK version.
Run Code Online (Sandbox Code Playgroud)
但我找不到任何关于 jobScheduler 的“正常”使用的规范。
我尝试查找源代码,但在 AOSP 下找不到 android11 分支,并且在build-numbers列表下没有提及它。
他们确实提供了一个模拟器版本来执行测试,但我更喜欢知道我的边界(而不是执行一系列测试只是为了弄清楚这些数字是什么)。
如果有人能给我指出功能规格或 android11 源代码,我将不胜感激。
归档时间: |
|
查看次数: |
909 次 |
最近记录: |