Searched refs:MONITORED_PERMS (Results 1 – 2 of 2) sorted by relevance
52 static final String[] MONITORED_PERMS = new String[PermissionEnum.ENUM_SIZE]; field in AudioServerPermissionProvider55 MONITORED_PERMS[PermissionEnum.MODIFY_AUDIO_ROUTING] = MODIFY_AUDIO_ROUTING;56 MONITORED_PERMS[PermissionEnum.MODIFY_PHONE_STATE] = MODIFY_PHONE_STATE;57 MONITORED_PERMS[PermissionEnum.RECORD_AUDIO] = RECORD_AUDIO;58 MONITORED_PERMS[PermissionEnum.CALL_AUDIO_INTERCEPTION] = CALL_AUDIO_INTERCEPTION;85 Objects.requireNonNull(MONITORED_PERMS[i]); in AudioServerPermissionProvider()106 mPermMap[i] = getUidsHoldingPerm(MONITORED_PERMS[i]); in onServiceStart()166 var newPerms = getUidsHoldingPerm(MONITORED_PERMS[i]); in onPermissionStateChanged()
18 import static com.android.server.audio.AudioServerPermissionProvider.MONITORED_PERMS;167 when(mMockPermPred.test(eq(10000), eq(MONITORED_PERMS[0]))).thenReturn(true); in setup()168 when(mMockPermPred.test(eq(110001), eq(MONITORED_PERMS[0]))).thenReturn(true); in setup()169 when(mMockPermPred.test(eq(10001), eq(MONITORED_PERMS[1]))).thenReturn(true); in setup()170 when(mMockPermPred.test(eq(110000), eq(MONITORED_PERMS[1]))).thenReturn(true); in setup()349 for (int i = 2; i < MONITORED_PERMS.length; i++) { in testPermissionsPopulated_onStart()352 verify(mMockPc, times(MONITORED_PERMS.length)).populatePermissionState(anyByte(), any()); in testPermissionsPopulated_onStart()366 when(mMockPermPred.test(eq(110001), eq(MONITORED_PERMS[1]))).thenReturn(true); in testPermissionsPopulated_onChange()395 for (int i = 0; i < MONITORED_PERMS.length; i++) { in testPermissionPopulatedDeferred_onDeadService()