Allow modifying minimum consumption limit.

Create separate fields for minimum and initial consumption limits so
that they can be modified independently.

Bug: 255321890
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/tare
Test: manually change in Developer Options UI
Change-Id: I82c146a18b54a18313de590038f2f807a2310aa0
This commit is contained in:
Kweku Adams
2022-10-28 21:39:15 +00:00
parent e3e6b7e76f
commit f6f9a4b7b2
4 changed files with 24 additions and 10 deletions

View File

@@ -118,7 +118,8 @@ public class JobSchedulerFragment extends Fragment implements
mKeys = new String[][]{
{
EconomyManager.KEY_JS_INITIAL_CONSUMPTION_LIMIT,
EconomyManager.KEY_JS_HARD_CONSUMPTION_LIMIT
EconomyManager.KEY_JS_MIN_CONSUMPTION_LIMIT,
EconomyManager.KEY_JS_MAX_CONSUMPTION_LIMIT,
},
{
EconomyManager.KEY_JS_MAX_SATIATED_BALANCE,