Searched refs:isCameraLocked (Results 1 – 10 of 10) sorted by relevance
94 mPreference.setEnabled(hasSufficientPermission(mPackageManager) && !isCameraLocked() in updatePreference()121 return hasSufficientPermission(mContext.getPackageManager()) && !isCameraLocked() in isChecked()132 boolean isCameraLocked() { in isCameraLocked() method in AdaptiveSleepPreferenceController
85 boolean isCameraLocked() { in isCameraLocked() method in AdaptiveSleepCameraStatePreferenceController94 mPreference.setVisible(isCameraLocked()); in updateVisibility()
97 && !isCameraLocked() && !isPowerSaveMode() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()120 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotateController162 && !isCameraLocked() && !isPowerSaveMode() && Settings.Secure.getInt( in isChecked()
78 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotateCameraStateController97 && isCameraLocked() ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
153 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotatePreferenceController187 && !isCameraLocked() in getSummary()
68 when(mController.isCameraLocked()).thenReturn(false); in setUp()80 when(mController.isCameraLocked()).thenReturn(true); in addToScreen_cameraIsLocked_showPreference()
65 when(mController.isCameraLocked()).thenReturn(false); in setUp()79 when(mController.isCameraLocked()).thenReturn(true); in getAvailabilityStatus_cameraNotEnabled_returnAvailableUnSearchAble()
88 when(mController.isCameraLocked()).thenReturn(false); in setUp()172 when(mController.isCameraLocked()).thenReturn(true); in addToScreen_cameraIsLocked_disablePreference()
85 when(mController.isCameraLocked()).thenReturn(false); in setUp()122 when(mController.isCameraLocked()).thenReturn(true); in getAvailabilityStatus_cameraDisabled_returnDisableDependentSetting()
105 when(mController.isCameraLocked()).thenReturn(false); in setUp()182 when(mController.isCameraLocked()).thenReturn(true); in getSummary_cameraDisabled_returnsOn()