commit | 4d64c093cd785e7a53fafe1aaf796ed734d61a02 | [log] [tgz] |
---|---|---|
author | Suprabh Shukla <suprabh@google.com> | Wed Feb 21 20:06:14 2018 -0800 |
committer | Suprabh Shukla <suprabh@google.com> | Tue Feb 27 16:48:25 2018 -0800 |
tree | 5f02b2cd2488164df593cd99c29bf6af0311d205 | |
parent | f3537c2054e4bfd627dd488e25564e07fb4009da [diff] |
Added an api to query ForcedAppStandby state Adding an api which apps can query to check if the user has put them into forced app standby. An app may want to do this to manage expectations for any jobs or alarms it schedules. It can also be used as an indication that the user noticed unreasonable battery consumption attributed to the app. Test: atest android.app.cts.ActivityManagerTest#testIsBackgroundRestricted Bug: 73664209 Change-Id: I870f6c852c500769d3bf99d5a9ba3bf4eb1b65f5