Home
last modified time | relevance | path

Searched refs:permissionEnforcer (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/media/tests/projection/src/android/media/projection/
DMediaProjectionTest.java115 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setup() local
116 permissionEnforcer.grant(MANAGE_MEDIA_PROJECTION); in setup()
118 mFakeIMediaProjection = new FakeIMediaProjection(permissionEnforcer); in setup()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkManagementServiceTest.java145 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local
146 permissionEnforcer.grant(android.Manifest.permission.NETWORK_SETTINGS); in setUp()
147 permissionEnforcer.grant(android.Manifest.permission.OBSERVE_NETWORK_POLICY); in setUp()
148 permissionEnforcer.grant(android.Manifest.permission.SHUTDOWN); in setUp()
151 doReturn(permissionEnforcer).when(mContext).getSystemService( in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/lights/
DLightsServiceTest.java102 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local
103 permissionEnforcer.grant(Manifest.permission.CONTROL_DEVICE_LIGHTS); in setUp()
106 doReturn(permissionEnforcer).when(mContext).getSystemService( in setUp()
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
DDeviceStateManagerGlobalTest.java66 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local
67 mService = new TestDeviceStateManagerService(permissionEnforcer); in setUp()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java493 PermissionEnforcer permissionEnforcer) { in AccessibilityManagerService() argument
494 super(permissionEnforcer); in AccessibilityManagerService()