/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | FlashNotificationsUtil.java | 51 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()
|
D | LargePointerIconPreferenceController.java | 32 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()
|
D | ToggleForceInvertPreferenceController.java | 37 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()
|
D | CameraFlashNotificationPreferenceController.java | 19 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/ |
D | FontWeightAdjustmentPreferenceControllerTest.java | 41 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()
|
D | AccessibilityShortcutPreferenceControllerTest.java | 19 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()
|
D | HighTextContrastPreferenceControllerTest.java | 45 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/ |
D | BubbleNotificationPreferenceControllerTest.java | 23 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()
|
D | ShowOnlyUnseenNotificationsOnLockscreenPreferenceControllerTest.java | 21 … 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
|
D | BadgingNotificationPreferenceControllerTest.java | 21 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
|
D | SnoozeNotificationPreferenceControllerTest.java | 21 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/ |
D | OneHandedSettingsUtilsTest.java | 42 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/ |
D | FlashNotificationsUtilTest.java | 24 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()
|
D | CameraFlashNotificationPreferenceControllerTest.java | 19 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()
|
D | KeyboardBounceKeyPreferenceControllerTest.java | 19 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()
|
D | KeyboardSlowKeyPreferenceControllerTest.java | 19 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()
|
D | CaptioningTogglePreferenceControllerTest.java | 19 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()
|
D | KeyboardVibrationTogglePreferenceControllerTest.java | 19 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/ |
D | CallAudioModeTransitionTests.java | 102 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 …]
|
D | CallAudioRouteTransitionTests.java | 75 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/ |
D | OneHandedSettingsUtils.java | 43 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/ |
D | AirplaneModePreferenceControllerComponentTest.java | 42 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/ |
D | WindshieldWipersState.java | 50 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/ |
D | VehicleIgnitionState.java | 53 public static final int OFF = 2; field in VehicleIgnitionState 87 case OFF: in toString() 104 OFF,
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | SnoozeNotificationPreferenceController.java | 35 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()
|