Add basic TARE StateController.

Add a StateController that will handle the TARE wealth constraint for
jobs. This adds the basic implementation but doesn't fully hook up the
controller with the whole JobScheduler flow.

Bug: 158300259
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I5a288546f0ec215a394edf821318b00d4f8db63d
3 files changed