Add tests for AppOpsService foreground location

Test transition between different proc states and
verify that the location perm is granted in the
right states.

Bug: 130313658
Test: atest FrameworksServicesTests:AppOpsServiceTest
Change-Id: I8f9789e1699a776a30b2580a606266ec4b72b2d8
2 files changed