Refactor special app tracking.

Refactor code to make it easier to add exceptions to flex policy.

Bug: 236261941
Test: atest CtsJobSchedulerTestCases:FlexibilityConstraintTest
Test: atest FrameworksMockingServicesTests:FlexibilityControllerTest
Change-Id: Iafb9de05cf1d3cbbe7fa8559df47fd8677d65f02
1 file changed