/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/ |
D | TurnScreenOnDetailsTest.java | 52 private AppStateAppOpsBridge.PermissionState mPermissionState; field in TurnScreenOnDetailsTest 88 .thenReturn(mPermissionState); in refreshUi_hasApplicationInfo_shouldReturnTrue() 100 .thenReturn(mPermissionState); in refreshUi_permissionNotDeclared_switchPreferenceDisabled() 101 mPermissionState.permissionDeclared = false; in refreshUi_permissionNotDeclared_switchPreferenceDisabled() 112 .thenReturn(mPermissionState); in refreshUi_permissionDeclared_switchPreferenceEnabled() 113 mPermissionState.permissionDeclared = true; in refreshUi_permissionDeclared_switchPreferenceEnabled() 124 .thenReturn(mPermissionState); in refreshUi_turnScreenOnAllowed_switchPreferenceChecked() 126 when(mPermissionState.isPermissible()).thenReturn(true); in refreshUi_turnScreenOnAllowed_switchPreferenceChecked() 136 .thenReturn(mPermissionState); in refreshUi_turnScreenOnDisallowed_switchPreferenceUnchecked() 138 when(mPermissionState.isPermissible()).thenReturn(false); in refreshUi_turnScreenOnDisallowed_switchPreferenceUnchecked()
|
D | AlarmsAndRemindersDetailsTest.java | 50 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()
|
D | LongBackgroundTasksDetailsTest.java | 50 private AppStateLongBackgroundTasksBridge.LongBackgroundTasksState mPermissionState; field in LongBackgroundTasksDetailsTest 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()
|
D | MediaManagementAppsDetailsTest.java | 52 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/ |
D | MediaManagementAppsDetails.java | 45 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()
|
D | TurnScreenOnDetails.java | 50 private AppStateAppOpsBridge.PermissionState mPermissionState; field in TurnScreenOnDetails 71 if (mPermissionState != null && checked != mPermissionState.isPermissible()) { in onPreferenceChange() 89 mPermissionState = mAppBridge.getPermissionInfo(mPackageName, in refreshUi() 91 mSwitchPref.setEnabled(mPermissionState.permissionDeclared); in refreshUi() 92 mSwitchPref.setChecked(mPermissionState.isPermissible()); in refreshUi()
|
D | AlarmsAndRemindersDetails.java | 50 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()
|
D | LongBackgroundTasksDetails.java | 50 private AppStateLongBackgroundTasksBridge.LongBackgroundTasksState mPermissionState; field in LongBackgroundTasksDetails 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()
|
D | ManageExternalStorageDetails.java | 51 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()
|