summaryrefslogtreecommitdiff
path: root/services/coverage/java
diff options
context:
space:
mode:
author Suprabh Shukla <suprabh@google.com> 2023-12-20 12:09:11 -0800
committer Suprabh Shukla <suprabh@google.com> 2024-01-24 01:34:22 +0000
commite4a44bb9d6018514115fccedadd8817f7d266e5a (patch)
tree469be8956f69a66d72ce0533a0b7927997dacf0d /services/coverage/java
parentf6d0abc118511e4c8c8a7e993485df71e13846d2 (diff)
Restricting network for low-priority proc-states
Outside of power saving modes like battery saver and doze, network is freely available to any app that is in memory and can run code on the processor. However, networking is a power expensive resource and needs to be used judiciously. The platform policy will now restrict any apps that are in cached or nearby process-states that are not important to the user. Any user critical networking task must be done while being in active and valid lifecycle states only. The system will allow a grace period of few seconds to reduce any churn from quick proc-state transitions but apps should ideally not rely on this implementation detail. Apps that are in any of the power allowlists will be exempt from this restriction. Refactored some code to use more inclusive language. Test: atest FrameworksServicesTests:com.android.server.net Test: atest CtsHostsideNetworkTests BYPASS_INCLUSIVE_LANGUAGE_REASON=Existing code Bug: 304347838 Change-Id: I02d82dc88c46ee7eec7e428fd46d0a538481494d Merged-In: I02d82dc88c46ee7eec7e428fd46d0a538481494d
Diffstat (limited to 'services/coverage/java')
0 files changed, 0 insertions, 0 deletions