android-source - jobScheduler 节流规范 Android 11 (api 30)
问题描述
我正在开发一个严重依赖 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.
但我找不到任何关于什么是“正常”使用 jobScheduler 的规范。
我尝试查找源代码,但在 AOSP 下找不到 android11 分支,并且在build-numbers列表下没有提及。
他们确实提供了一个模拟器版本来执行测试,但我更喜欢知道我的界限(而不是为了弄清楚这些数字是什么而执行一系列测试)。
如果有人能指出功能规范或 android11 源代码,我将不胜感激。
解决方案
推荐阅读
- r - 如何使用ggplot根据列的值更改点的大小?
- php - ajax 数据工作和结果来到#div1 但在 islenendata.php 结果没有出现
- bash - bash 中的 awk 语法错误。在 zsh 中运行良好
- ruby-on-rails - rails inline_svg 与carrierwave上传的文件
- scala - 运算符 ++= 在 Scala 中的一对上
- c - 通过覆盖其元素在 C 中删除 2D 数组的列
- python - 如何在不损失准确性的情况下使用不同的 CNN
- javascript - 为什么 flex-direction: column 和 align-items: center; 不是垂直定位?
- database-design - 彩票最佳实践设计数据库
- tensorflow - 没有xtrain xtest ytrain ytest的keras cnn模型中的混淆矩阵