Make reward constants configurable.

Make it possible to configure the instant and max values of all
supported actions. Ongoing rewards will be enabled later.

Bug: 158300259
Bug: 189850067
Bug: 191876714
Bug: 191877052
Test: Manual
Change-Id: Ia854f18820f3fe95b3b1448c5fa8411853859052
This commit is contained in:
Kweku Adams
2022-03-18 19:50:22 +00:00
parent b39ab3e1c4
commit 10ef599170
4 changed files with 50 additions and 11 deletions

View File

@@ -530,7 +530,7 @@ public class TareFactorController {
} else if (mJobSchedulerMap.containsKey(key)) {
currentMap = mJobSchedulerMap;
} else {
throw new IllegalArgumentException("Couldn't link key to policy map");
throw new IllegalArgumentException("Couldn't link key '" + key + "' to a policy");
}
return currentMap.get(key).factorPolicy;
}