Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DAlarmsAndRemindersDetailsTest.java50 private AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState mPermissionState; field in AlarmsAndRemindersDetailsTest
85 .thenReturn(mPermissionState); in refreshUi_hasApplicationInfo_shouldReturnTrue()
97 .thenReturn(mPermissionState); in refreshUi_switchPreferenceEnabled()
98 when(mPermissionState.shouldBeVisible()).thenReturn(false); in refreshUi_switchPreferenceEnabled()
103 when(mPermissionState.shouldBeVisible()).thenReturn(true); in refreshUi_switchPreferenceEnabled()
114 .thenReturn(mPermissionState); in refreshUi_switchPreferenceChecked()
116 when(mPermissionState.isAllowed()).thenReturn(true); in refreshUi_switchPreferenceChecked()
120 when(mPermissionState.isAllowed()).thenReturn(false); in refreshUi_switchPreferenceChecked()
DMediaManagementAppsDetailsTest.java52 private AppStateAppOpsBridge.PermissionState mPermissionState; field in MediaManagementAppsDetailsTest
81 .thenReturn(mPermissionState); in refreshUi_hasApplicationInfo_returnTrue()
110 .thenReturn(mPermissionState); in assert_refreshUi_switchPreferenceSetEnabled()
111 mPermissionState.permissionDeclared = isPermissionDeclared; in assert_refreshUi_switchPreferenceSetEnabled()
121 .thenReturn(mPermissionState); in assert_refreshUi_switchPreferenceSetChecked()
122 when(mPermissionState.isPermissible()).thenReturn(isPermissible); in assert_refreshUi_switchPreferenceSetChecked()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DMediaManagementAppsDetails.java45 private PermissionState mPermissionState; field in MediaManagementAppsDetails
67 if (mPermissionState != null && value != mPermissionState.isPermissible()) { in onPreferenceChange()
97 mPermissionState = mAppBridge.createPermissionState(mPackageName, in refreshUi()
99 mSwitchPref.setEnabled(mPermissionState.permissionDeclared); in refreshUi()
100 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()
DAlarmsAndRemindersDetails.java50 private AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState mPermissionState; field in AlarmsAndRemindersDetails
133 if (mPermissionState != null && mUncommittedState != null in onPause()
134 && mUncommittedState != mPermissionState.isAllowed()) { in onPause()
146 mPermissionState = mAppBridge.createPermissionState(mPackageName, in refreshUi()
148 mSwitchPref.setEnabled(mPermissionState.shouldBeVisible()); in refreshUi()
150 mUncommittedState != null ? mUncommittedState : mPermissionState.isAllowed()); in refreshUi()
DManageExternalStorageDetails.java51 private PermissionState mPermissionState; field in ManageExternalStorageDetails
98 if (mPermissionState != null && !newValue.equals(mPermissionState.isPermissible())) { in onPreferenceChange()
135 mPermissionState = mBridge.getManageExternalStoragePermState(mPackageName, in refreshUi()
138 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()
141 mSwitchPref.setEnabled(mPermissionState.permissionDeclared); in refreshUi()