Cache frequently used LocalServices.

Any LocalServices object that is reused in a class should be cached locally
so that we avoid repeated lookups within the LocalServices map,
especially during tight loops.

Bug: 295877092
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksMockingServicesTests:JobStatusTest
Test: atest FrameworksMockingServicesTests:QuotaControllerTest
Change-Id: Ie8d90a0f8aebbb23138613095859e1f9ce1b207f
7 files changed