Home
last modified time | relevance | path

Searched refs:OFF (Results 1 – 25 of 202) sorted by relevance

123456789

/packages/apps/Settings/src/com/android/settings/accessibility/
DFlashNotificationsUtil.java51 FlashNotificationsUtil.State.OFF,
57 int OFF = 0; field
115 return State.OFF; in getFlashNotificationsState()
120 Settings.System.CAMERA_FLASH_NOTIFICATION, State.OFF) != State.OFF; in getFlashNotificationsState()
122 Settings.System.SCREEN_FLASH_NOTIFICATION, State.OFF) != State.OFF; in getFlashNotificationsState()
124 return ((isTorchAvailable && isCameraFlashEnabled) ? State.CAMERA : State.OFF) in getFlashNotificationsState()
125 | (isScreenFlashEnabled ? State.SCREEN : State.OFF); in getFlashNotificationsState()
DLargePointerIconPreferenceController.java32 static final int OFF = 0; field in LargePointerIconPreferenceController
41 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, OFF) != OFF; in isChecked()
47 Settings.Secure.ACCESSIBILITY_LARGE_POINTER_ICON, isChecked ? ON : OFF); in setChecked()
DToggleForceInvertPreferenceController.java37 static final int OFF = 0; field in ToggleForceInvertPreferenceController
45 return Settings.Secure.getInt(mContext.getContentResolver(), SETTINGS_KEY, OFF) != OFF; in isChecked()
51 SETTINGS_KEY, isChecked ? ON : OFF); in setChecked()
DCameraFlashNotificationPreferenceController.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
47 Settings.System.CAMERA_FLASH_NOTIFICATION, OFF) != OFF; in isChecked()
55 Settings.System.CAMERA_FLASH_NOTIFICATION, (isChecked ? ON : OFF)); in setChecked()
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DFontWeightAdjustmentPreferenceControllerTest.java41 private static final int OFF = 0; field in FontWeightAdjustmentPreferenceControllerTest
80 Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF); in isChecked_disabledBoldText_shouldReturnFalse() local
93 Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF)).isEqualTo(ON); in setChecked_setTrue_shouldEnableBoldText()
101 Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF)).isEqualTo(OFF); in setChecked_setFalse_shouldDisableBoldText()
111 Settings.Secure.FONT_WEIGHT_ADJUSTMENT, OFF)).isEqualTo(OFF); in resetState_shouldDisableBoldText()
DAccessibilityShortcutPreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
66 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, OFF, in isChecked_disabledShortcutOnLockScreen_shouldReturnFalse() local
80 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, OFF, in setChecked_setTrue_shouldEnableShortcutOnLockScreen() local
90 UserHandle.USER_CURRENT)).isEqualTo(OFF); in setChecked_setFalse_shouldDisableShortcutOnLockScreen()
DHighTextContrastPreferenceControllerTest.java45 private static final int OFF = 0; field in HighTextContrastPreferenceControllerTest
87 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, OFF); in isChecked_disabledTextContrast_shouldReturnFalse() local
109 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, UNKNOWN)).isEqualTo(OFF); in setChecked_setFalse_shouldDisableTextContrast()
122 Settings.Secure.ACCESSIBILITY_HIGH_TEXT_CONTRAST_ENABLED, UNKNOWN)).isEqualTo(OFF); in resetState_shouldDisableTextContrast()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBubbleNotificationPreferenceControllerTest.java23 import static com.android.settings.notification.BadgingNotificationPreferenceController.OFF;
103 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in updateState_settingIsOff_preferenceSetUnchecked() local
105 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in updateState_settingIsOff_preferenceSetUnchecked()
114 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in onSwitchChanged_true_settingIsOff_flagShouldOn() local
119 NOTIFICATION_BUBBLES, OFF)).isEqualTo(ON); in onSwitchChanged_true_settingIsOff_flagShouldOn()
129 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in onSwitchChanged_false_settingIsOn_flagShouldOff()
140 assertThat(updatedValue).isEqualTo(OFF); in setChecked_setFalse_disablesSetting()
145 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, OFF); in setChecked_setTrue_enablesSetting() local
149 NOTIFICATION_BUBBLES, OFF); in setChecked_setTrue_enablesSetting()
DShowOnlyUnseenNotificationsOnLockscreenPreferenceControllerTest.java21 … com.android.settings.notification.ShowOnlyUnseenNotificationsOnLockscreenPreferenceController.OFF;
78 LOCK_SCREEN_SHOW_ONLY_UNSEEN_NOTIFICATIONS, OFF); in display_configSet_showDisplay() local
86 LOCK_SCREEN_SHOW_ONLY_UNSEEN_NOTIFICATIONS, OFF); in isChecked_settingIsOff_shouldReturnFalse() local
108 assertThat(updatedValue).isEqualTo(OFF); in setChecked_setFalse_disablesSetting()
114 LOCK_SCREEN_SHOW_ONLY_UNSEEN_NOTIFICATIONS, OFF); in setChecked_setTrue_enablesSetting() local
DBadgingNotificationPreferenceControllerTest.java21 import static com.android.settings.notification.BadgingNotificationPreferenceController.OFF;
111 Settings.Secure.putInt(context.getContentResolver(), NOTIFICATION_BADGING, OFF); in updateState_preferenceSetUncheckedWhenSettingIsOff() local
122 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, OFF); in isChecked_settingIsOff_shouldReturnFalse() local
142 assertThat(updatedValue).isEqualTo(OFF); in setChecked_setFalse_disablesSetting()
147 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, OFF); in setChecked_setTrue_enablesSetting() local
DSnoozeNotificationPreferenceControllerTest.java21 import static com.android.settings.notification.BadgingNotificationPreferenceController.OFF;
77 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, OFF); in isChecked_settingIsOff_shouldReturnFalse() local
97 assertThat(updatedValue).isEqualTo(OFF); in setChecked_setFalse_disablesSetting()
102 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, OFF); in setChecked_setTrue_enablesSetting() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
DOneHandedSettingsUtilsTest.java42 private static final int OFF = 0; field in OneHandedSettingsUtilsTest
61 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(ON); in setOneHandedModeEnabled_setEnable_shouldReturnEnabled() local
69 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, mCurrentUserId)).isEqualTo(OFF); in setOneHandedModeEnabled_setDisable_shouldReturnDisabled() local
77 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(ON); in setTapsAppToExitEnabled_setEnable_shouldReturnEnabled() local
85 Settings.Secure.TAPS_APP_TO_EXIT, OFF, mCurrentUserId)).isEqualTo(OFF); in setTapsAppToExitEnabled_setDisable_shouldReturnDisabled() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DFlashNotificationsUtilTest.java24 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
159 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, OFF); in getFlashNotificationsState_torchPresent_cameraOff_screenOff_assertOff()
160 Settings.System.putInt(mContentResolver, Settings.System.SCREEN_FLASH_NOTIFICATION, OFF); in getFlashNotificationsState_torchPresent_cameraOff_screenOff_assertOff()
163 .isEqualTo(FlashNotificationsUtil.State.OFF); in getFlashNotificationsState_torchPresent_cameraOff_screenOff_assertOff()
170 Settings.System.putInt(mContentResolver, Settings.System.SCREEN_FLASH_NOTIFICATION, OFF); in getFlashNotificationsState_torchNotPresent_cameraOn_screenOff_assertOff()
173 .isEqualTo(FlashNotificationsUtil.State.OFF); in getFlashNotificationsState_torchNotPresent_cameraOn_screenOff_assertOff()
180 Settings.System.putInt(mContentResolver, Settings.System.SCREEN_FLASH_NOTIFICATION, OFF); in getFlashNotificationsState_torchPresent_cameraOn_screenOff_assertCamera()
189 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, OFF); in getFlashNotificationsState_torchPresent_cameraOff_screenOn_assertScreen()
DCameraFlashNotificationPreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
85 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, OFF); in isChecked_setOff_assertFalse()
100 OFF)).isNotEqualTo(OFF); in setChecked_setTrue_assertNotOff()
108 OFF)).isNotEqualTo(ON); in setChecked_setFalse_assertNotOn()
DKeyboardBounceKeyPreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
73 Settings.Secure.putInt(mContext.getContentResolver(), KEY_ACCESSIBILITY_BOUNCE_KEYS, OFF); in isChecked_disableBounceKey_onResumeShouldReturnFalse() local
93 Settings.Secure.putInt(mContext.getContentResolver(), KEY_ACCESSIBILITY_BOUNCE_KEYS, OFF); in performClick_enableBounceKey_shouldReturnTrue() local
123 OFF); in setChecked_setFalse_shouldDisableBounceKey()
132 UNKNOWN)).isNotEqualTo(OFF); in setChecked_setTrue_shouldEnableBounceKey()
DKeyboardSlowKeyPreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
73 Settings.Secure.putInt(mContext.getContentResolver(), KEY_ACCESSIBILITY_SLOW_KEYS, OFF); in isChecked_disableSlowKey_onResumeShouldReturnFalse() local
93 Settings.Secure.putInt(mContext.getContentResolver(), KEY_ACCESSIBILITY_SLOW_KEYS, OFF); in performClick_enableSlowKey_shouldReturnTrue() local
123 OFF); in setChecked_setFalse_shouldDisableSlowKey()
132 OFF); in setChecked_setTrue_shouldEnableSlowKey()
DCaptioningTogglePreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
74 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, OFF); in tearDown() local
96 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, OFF); in displayPreference_captionDisabled_shouldSetUnchecked() local
118 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, OFF); in performClick_captionDisabled_shouldSetCaptionEnabled() local
165 Settings.Secure.ACCESSIBILITY_CAPTIONING_ENABLED, OFF) == ON; in isCaptionEnabled()
DKeyboardVibrationTogglePreferenceControllerTest.java19 import static com.android.settings.accessibility.AccessibilityUtil.State.OFF;
117 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, OFF); in updateState_mainVibrateDisabled_shouldReturnFalseForCheckedAndEnabled()
147 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, OFF); in isChecked_keyboardVibrateDisabled_shouldReturnFalse()
157 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, OFF); in setChecked_checked_updateSettings()
159 assertThat(readSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED)).isEqualTo(OFF); in setChecked_checked_updateSettings()
177 assertThat(readSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED)).isEqualTo(OFF); in setChecked_unchecked_updateSettings()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioModeTransitionTests.java102 private static final int OFF = 1; field in CallAudioModeTransitionTests
193 case OFF: in modeTransitionTest()
206 case OFF: in modeTransitionTest()
269 OFF // expectedCallWaitingInteraction in generateTestCases()
306 OFF, // expectedRingingInteraction in generateTestCases()
382 OFF, // expectedRingingInteraction in generateTestCases()
402 OFF // expectedCallWaitingInteraction in generateTestCases()
573 OFF // expectedCallWaitingInteraction in generateTestCases()
611 OFF, // expectedRingingInteraction in generateTestCases()
670 OFF // expectedCallWaitingInteraction in generateTestCases()
[all …]
DCallAudioRouteTransitionTests.java75 private static final int OFF = 2; field in CallAudioRouteTransitionTests
328 case OFF: in testActiveTransition()
350 case OFF: in testActiveTransition()
441 OFF, // bluetoothInteraction in testParametersCollection()
452 OFF, // speakerInteraction in testParametersCollection()
548 OFF, // speakerInteraction in testParametersCollection()
633 OFF, // bluetoothInteraction in testParametersCollection()
645 OFF, // bluetoothInteraction in testParametersCollection()
656 OFF, // speakerInteraction in testParametersCollection()
668 OFF, // speakerInteraction in testParametersCollection()
[all …]
/packages/apps/Settings/src/com/android/settings/gestures/
DOneHandedSettingsUtils.java43 static final int OFF = 0; field in OneHandedSettingsUtils
96 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, sCurrentUserId) == ON; in isOneHandedModeEnabled()
107 Settings.Secure.ONE_HANDED_MODE_ENABLED, enable ? ON : OFF, sCurrentUserId); in setOneHandedModeEnabled()
118 Settings.Secure.TAPS_APP_TO_EXIT, OFF, sCurrentUserId) == ON; in isTapsAppToExitEnabled()
129 Settings.Secure.TAPS_APP_TO_EXIT, enable ? ON : OFF, sCurrentUserId); in setTapsAppToExitEnabled()
182 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, OFF, sCurrentUserId) == ON; in isSwipeDownNotificationEnabled()
193 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, enable ? ON : OFF, in setSwipeDownNotificationEnabled()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/network/
DAirplaneModePreferenceControllerComponentTest.java42 private static final int OFF = 0; field in AirplaneModePreferenceControllerComponentTest
54 Settings.Global.AIRPLANE_MODE_ON, OFF); in setUp() local
85 Settings.Global.AIRPLANE_MODE_ON, OFF) != 0; in is_airplane_mode_on()
93 mOriginAirplaneModeIsOn ? ON : OFF)); in tearDown()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DWindshieldWipersState.java50 public static final int OFF = 1; field in WindshieldWipersState
76 case OFF: in toString()
88 @IntDef({OTHER, OFF, ON, SERVICE})
/packages/services/Car/car-lib/src/android/car/
DVehicleIgnitionState.java53 public static final int OFF = 2; field in VehicleIgnitionState
87 case OFF: in toString()
104 OFF,
/packages/apps/Settings/src/com/android/settings/notification/
DSnoozeNotificationPreferenceController.java35 static final int OFF = 0; field in SnoozeNotificationPreferenceController
49 SHOW_NOTIFICATION_SNOOZE, OFF) == ON; in isChecked()
55 SHOW_NOTIFICATION_SNOOZE, isChecked ? ON : OFF); in setChecked()

123456789