Home
last modified time | relevance | path

Searched refs:isCameraLocked (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/display/
DAdaptiveSleepPreferenceController.java94 mPreference.setEnabled(hasSufficientPermission(mPackageManager) && !isCameraLocked() in updatePreference()
121 return hasSufficientPermission(mContext.getPackageManager()) && !isCameraLocked() in isChecked()
132 boolean isCameraLocked() { in isCameraLocked() method in AdaptiveSleepPreferenceController
DAdaptiveSleepCameraStatePreferenceController.java85 boolean isCameraLocked() { in isCameraLocked() method in AdaptiveSleepCameraStatePreferenceController
94 mPreference.setVisible(isCameraLocked()); in updateVisibility()
DSmartAutoRotateController.java97 && !isCameraLocked() && !isPowerSaveMode() ? AVAILABLE : DISABLED_DEPENDENT_SETTING; in getAvailabilityStatus()
120 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotateController
162 && !isCameraLocked() && !isPowerSaveMode() && Settings.Secure.getInt( in isChecked()
DSmartAutoRotateCameraStateController.java78 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotateCameraStateController
97 && isCameraLocked() ? AVAILABLE_UNSEARCHABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
DSmartAutoRotatePreferenceController.java153 boolean isCameraLocked() { in isCameraLocked() method in SmartAutoRotatePreferenceController
187 && !isCameraLocked() in getSummary()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAdaptiveSleepCameraStatePreferenceControllerTest.java68 when(mController.isCameraLocked()).thenReturn(false); in setUp()
80 when(mController.isCameraLocked()).thenReturn(true); in addToScreen_cameraIsLocked_showPreference()
DSmartAutoRotateCameraStateControllerTest.java65 when(mController.isCameraLocked()).thenReturn(false); in setUp()
79 when(mController.isCameraLocked()).thenReturn(true); in getAvailabilityStatus_cameraNotEnabled_returnAvailableUnSearchAble()
DAdaptiveSleepPreferenceControllerTest.java88 when(mController.isCameraLocked()).thenReturn(false); in setUp()
172 when(mController.isCameraLocked()).thenReturn(true); in addToScreen_cameraIsLocked_disablePreference()
DSmartAutoRotateControllerTest.java85 when(mController.isCameraLocked()).thenReturn(false); in setUp()
122 when(mController.isCameraLocked()).thenReturn(true); in getAvailabilityStatus_cameraDisabled_returnDisableDependentSetting()
DSmartAutoRotatePreferenceControllerTest.java105 when(mController.isCameraLocked()).thenReturn(false); in setUp()
182 when(mController.isCameraLocked()).thenReturn(true); in getSummary_cameraDisabled_returnsOn()