Home
last modified time | relevance | path

Searched refs:isPermissible (Results 1 – 16 of 16) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateAppOpsBridgeTest.java73 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DMediaManagementAppsDetailsTest.java117 private void assert_refreshUi_switchPreferenceSetChecked(boolean isPermissible) { in assert_refreshUi_switchPreferenceSetChecked() argument
122 when(mPermissionState.isPermissible()).thenReturn(isPermissible); in assert_refreshUi_switchPreferenceSetChecked()
125 verify(mSwitchPref).setChecked(isPermissible); in assert_refreshUi_switchPreferenceSetChecked()
/packages/apps/Settings/src/com/android/settings/wifi/
DChangeWifiStateDetails.java79 != 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()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DDrawOverlayDetails.java103 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()
DWriteSettingsDetails.java87 .isPermissible()) { in onPreferenceChange()
88 setCanWriteSettings(!mWriteSettingsState.isPermissible()); in onPreferenceChange()
125 boolean canWrite = mWriteSettingsState.isPermissible(); in refreshUi()
160 return context.getString(writeSettingsState.isPermissible() in getSummary()
DMediaManagementAppsDetails.java67 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()
DManageExternalStorageDetails.java98 if (mPermissionState != null && !newValue.equals(mPermissionState.isPermissible())) { in onPreferenceChange()
138 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()
175 return context.getString(state.isPermissible() in getSummary()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java94 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()
DAppStateAppOpsBridge.java327 if (permState.isPermissible()) { in getNumPackagesAllowedByAppOps()
348 public boolean isPermissible() { in isPermissible() method in AppStateAppOpsBridge.PermissionState
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DChangeWifiStateDetailsTest.java77 when(mState.isPermissible()).thenReturn(true); in testGetSummary_permissibleTrue_returnAllowed()
84 when(mState.isPermissible()).thenReturn(false); in testGetSummary_permissibleFalse_returnNotAllowed()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java85 && ((PermissionState) entry.extraInfo).isPermissible(); in getAppFilter()
201 public boolean isPermissible() {
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java164 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()
DAppOpsPreferenceControllerTest.java287 when(extraInfo.isPermissible()).thenReturn(isOpPermissible); in createAppEntry()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppOpsPreferenceController.java72 if (allowOp != extraInfo.isPermissible()) {
214 setChecked(extraInfo.isPermissible()); in AppOpPreference()
DAppStateAppOpsBridge.java174 public boolean isPermissible() { in isPermissible() method in AppStateAppOpsBridge.PermissionState
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DManageApplications.java1467 (new UsageState((PermissionState) entry.extraInfo)).isPermissible() in updateSummary()