Searched refs:mPermissionState (Results 1 – 5 of 5) sorted by relevance
50 private AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState mPermissionState; field in AlarmsAndRemindersDetailsTest85 .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()
52 private AppStateAppOpsBridge.PermissionState mPermissionState; field in MediaManagementAppsDetailsTest81 .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()
45 private PermissionState mPermissionState; field in MediaManagementAppsDetails67 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()
50 private AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState mPermissionState; field in AlarmsAndRemindersDetails133 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()
51 private PermissionState mPermissionState; field in ManageExternalStorageDetails98 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()