Searched refs:permissionEnforcer (Results 1 – 5 of 5) sorted by relevance
115 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setup() local116 permissionEnforcer.grant(MANAGE_MEDIA_PROJECTION); in setup()118 mFakeIMediaProjection = new FakeIMediaProjection(permissionEnforcer); in setup()
145 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local146 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()
102 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local103 permissionEnforcer.grant(Manifest.permission.CONTROL_DEVICE_LIGHTS); in setUp()106 doReturn(permissionEnforcer).when(mContext).getSystemService( in setUp()
66 FakePermissionEnforcer permissionEnforcer = new FakePermissionEnforcer(); in setUp() local67 mService = new TestDeviceStateManagerService(permissionEnforcer); in setUp()
493 PermissionEnforcer permissionEnforcer) { in AccessibilityManagerService() argument494 super(permissionEnforcer); in AccessibilityManagerService()