Searched refs:isPermissible (Results 1 – 16 of 16) sorted by relevance
73 Truth.assertThat(permissionState.isPermissible()).isTrue(); in permissionState_modeDefault_IsPermissible()76 Truth.assertThat(permissionState.isPermissible()).isFalse(); in permissionState_modeDefault_IsPermissible()86 Truth.assertThat(permissionState.isPermissible()).isFalse(); in permissionState_modeErrored_IsPermissible()89 Truth.assertThat(permissionState.isPermissible()).isFalse(); in permissionState_modeErrored_IsPermissible()99 Truth.assertThat(permissionState.isPermissible()).isTrue(); in permissionState_modeAllowed_IsPermissible()102 Truth.assertThat(permissionState.isPermissible()).isTrue(); in permissionState_modeAllowed_IsPermissible()112 Truth.assertThat(permissionState.isPermissible()).isFalse(); in permissionState_modeIgnored_IsPermissible()115 Truth.assertThat(permissionState.isPermissible()).isFalse(); in permissionState_modeIgnored_IsPermissible()
117 private void assert_refreshUi_switchPreferenceSetChecked(boolean isPermissible) { in assert_refreshUi_switchPreferenceSetChecked() argument122 when(mPermissionState.isPermissible()).thenReturn(isPermissible); in assert_refreshUi_switchPreferenceSetChecked()125 verify(mSwitchPref).setChecked(isPermissible); in assert_refreshUi_switchPreferenceSetChecked()
79 != mWifiSettingsState.isPermissible()) { in onPreferenceChange()80 setCanChangeWifiState(!mWifiSettingsState.isPermissible()); in onPreferenceChange()110 boolean canChange = mWifiSettingsState.isPermissible(); in refreshUi()131 return context.getString(wifiSettingsState.isPermissible() in getSummary()
103 if (mOverlayState != null && (Boolean) newValue != mOverlayState.isPermissible()) { in onPreferenceChange()104 setCanDrawOverlay(!mOverlayState.isPermissible()); in onPreferenceChange()142 boolean isAllowed = mOverlayState.isPermissible(); in refreshUi()179 return context.getString(overlayState.isPermissible() ? in getSummary()
87 .isPermissible()) { in onPreferenceChange()88 setCanWriteSettings(!mWriteSettingsState.isPermissible()); in onPreferenceChange()125 boolean canWrite = mWriteSettingsState.isPermissible(); in refreshUi()160 return context.getString(writeSettingsState.isPermissible() in getSummary()
67 if (mPermissionState != null && value != mPermissionState.isPermissible()) { in onPreferenceChange()100 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()128 return state.isPermissible() ? R.string.app_permission_summary_allowed in getSummary()
98 if (mPermissionState != null && !newValue.equals(mPermissionState.isPermissible())) { in onPreferenceChange()138 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()175 return context.getString(state.isPermissible() in getSummary()
94 if (mUsageState != null && (Boolean) newValue != mUsageState.isPermissible()) { in onPreferenceChange()95 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) { in onPreferenceChange()103 setHasAccess(!mUsageState.isPermissible()); in onPreferenceChange()161 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
327 if (permState.isPermissible()) { in getNumPackagesAllowedByAppOps()348 public boolean isPermissible() { in isPermissible() method in AppStateAppOpsBridge.PermissionState
77 when(mState.isPermissible()).thenReturn(true); in testGetSummary_permissibleTrue_returnAllowed()84 when(mState.isPermissible()).thenReturn(false); in testGetSummary_permissibleFalse_returnNotAllowed()
85 && ((PermissionState) entry.extraInfo).isPermissible(); in getAppFilter()201 public boolean isPermissible() {
164 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible()179 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeDefault_isPermissible()194 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isFalse(); in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible()
287 when(extraInfo.isPermissible()).thenReturn(isOpPermissible); in createAppEntry()
72 if (allowOp != extraInfo.isPermissible()) {214 setChecked(extraInfo.isPermissible()); in AppOpPreference()
174 public boolean isPermissible() { in isPermissible() method in AppStateAppOpsBridge.PermissionState
1467 (new UsageState((PermissionState) entry.extraInfo)).isPermissible() in updateSummary()