Home
last modified time | relevance | path

Searched refs:ON (Results 1 – 25 of 216) sorted by relevance

123456789

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DPoliteNotifWorkProfileToggleControllerTest.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
119 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, in isChecked_coolDownEnabled_enabledForWorkProfile_shouldReturnTrue() local
130 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, in isChecked_coolDownDisabled_enabledForWorkProfile_shouldReturnFalse() local
152 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, in setChecked_coolDownEnabled_setTrue_shouldEnablePoliteNotifForWorkProfile() local
153 UserHandle.MIN_SECONDARY_USER_ID)).isEqualTo(ON); in setChecked_coolDownEnabled_setTrue_shouldEnablePoliteNotifForWorkProfile()
160 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, in setChecked_coolDownEnabled_setFalse_shouldDisablePoliteNotifForWorkProfile() local
164 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, in setChecked_coolDownEnabled_setFalse_shouldDisablePoliteNotifForWorkProfile() local
192 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, (enabled ? ON : OFF)); in setCoolDownEnabled()
197 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON) == ON; in isCoolDownEnabled()
DBubbleNotificationPreferenceControllerTest.java24 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
105 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in updateState_settingIsOff_preferenceSetUnchecked()
119 NOTIFICATION_BUBBLES, OFF)).isEqualTo(ON); in onSwitchChanged_true_settingIsOff_flagShouldOn()
124 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in onSwitchChanged_false_settingIsOn_flagShouldOff() local
129 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in onSwitchChanged_false_settingIsOn_flagShouldOff()
134 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in setChecked_setFalse_disablesSetting() local
138 NOTIFICATION_BUBBLES, ON); in setChecked_setFalse_disablesSetting()
151 assertThat(updatedValue).isEqualTo(ON); in setChecked_setTrue_enablesSetting()
DBadgingNotificationPreferenceControllerTest.java22 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
98 Settings.Secure.putInt(context.getContentResolver(), NOTIFICATION_BADGING, ON); in updateState_preferenceSetCheckedWhenSettingIsOn() local
129 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in isChecked_settingIsOn_shouldReturnTrue() local
136 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in setChecked_setFalse_disablesSetting() local
153 assertThat(updatedValue).isEqualTo(ON); in setChecked_setTrue_enablesSetting()
DPoliteNotificationGlobalPreferenceControllerTest.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
113 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, (enabled ? ON : OFF)); in setCoolDownEnabled()
118 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON) == ON; in isCoolDownEnabled()
DSnoozeNotificationPreferenceControllerTest.java22 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
84 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, ON); in isChecked_settingIsOn_shouldReturnTrue() local
91 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, ON); in setChecked_setFalse_disablesSetting() local
108 assertThat(updatedValue).isEqualTo(ON); in setChecked_setTrue_enablesSetting()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DFaceSettingsAppPreferenceController.java37 private static final int ON = 1; field in FaceSettingsAppPreferenceController
39 private static final int DEFAULT = ON; // face unlock is enabled for BiometricPrompt by default
58 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
64 isChecked ? ON : OFF, getUserId()); in setChecked()
94 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, OFF, getUserId()) == ON; in getAvailabilityStatus()
DFaceSettingsKeyguardPreferenceController.java39 private static final int ON = 1; field in FaceSettingsKeyguardPreferenceController
41 private static final int DEFAULT = ON; // face unlock is enabled on keyguard by default
62 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
68 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DKeyboardVibrationTogglePreferenceControllerTest.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
127 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in updateState_mainVibrateEnabled_shouldReturnTrueForEnabled()
136 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in isChecked_keyboardVibrateEnabled_shouldReturnTrue()
137 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, ON); in isChecked_keyboardVibrateEnabled_shouldReturnTrue()
146 updateSystemSetting(VibrationPreferenceConfig.MAIN_SWITCH_SETTING_KEY, ON); in isChecked_keyboardVibrateDisabled_shouldReturnFalse()
163 assertThat(readSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED)).isEqualTo(ON); in setChecked_checked_updateSettings()
171 updateSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED, ON); in setChecked_unchecked_updateSettings()
173 assertThat(readSystemSetting(Settings.System.KEYBOARD_VIBRATION_ENABLED)).isEqualTo(ON); in setChecked_unchecked_updateSettings()
DFlashNotificationsUtilTest.java25 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
169 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, ON); in getFlashNotificationsState_torchNotPresent_cameraOn_screenOff_assertOff()
179 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, ON); in getFlashNotificationsState_torchPresent_cameraOn_screenOff_assertCamera()
190 Settings.System.putInt(mContentResolver, Settings.System.SCREEN_FLASH_NOTIFICATION, ON); in getFlashNotificationsState_torchPresent_cameraOff_screenOn_assertScreen()
199 Settings.System.putInt(mContentResolver, Settings.System.CAMERA_FLASH_NOTIFICATION, ON); in testGetFlashNotificationsState_torchPresent_cameraOn_screenOn_assertCameraScreen()
200 Settings.System.putInt(mContentResolver, Settings.System.SCREEN_FLASH_NOTIFICATION, ON); in testGetFlashNotificationsState_torchPresent_cameraOn_screenOn_assertCameraScreen()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java74 private static final int ON = 1; field in CallAudioRouteTransitionTests
319 case ON: in testActiveTransition()
343 case ON: in testActiveTransition()
477 ON, // bluetoothInteraction in testParametersCollection()
525 ON, // bluetoothInteraction in testParametersCollection()
537 ON, // bluetoothInteraction in testParametersCollection()
549 ON, // bluetoothInteraction in testParametersCollection()
608 ON, // speakerInteraction in testParametersCollection()
620 ON, // speakerInteraction in testParametersCollection()
632 ON, // speakerInteraction in testParametersCollection()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DPoliteNotificationGlobalPreferenceController.java30 public static final int ON = 1; field in PoliteNotificationGlobalPreferenceController
49 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON) == ON; in isChecked()
55 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, (isChecked ? ON : OFF)); in setChecked()
DPoliteNotifWorkProfileToggleController.java19 import static com.android.settings.notification.PoliteNotificationGlobalPreferenceController.ON;
114 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON, mManagedProfileId) != OFF; in isChecked()
120 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, (isChecked ? ON : OFF), in setChecked()
138 Settings.System.NOTIFICATION_COOLDOWN_ENABLED, ON) == ON; in isCoolDownEnabledForPrimary()
/packages/apps/Settings/src/com/android/settings/accessibility/
DMagnificationFollowTypingPreferenceController.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
47 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED, ON) == ON; in isChecked()
54 (isChecked ? ON : OFF)); in setChecked()
DFloatingMenuFadePreferenceController.java41 private static final int ON = 1; field in FloatingMenuFadePreferenceController
86 switchPreference.setChecked(getFloatingMenuFadeValue() == ON); in updateState()
108 Settings.Secure.ACCESSIBILITY_FLOATING_MENU_FADE_ENABLED, ON); in getFloatingMenuFadeValue()
114 isEnabled ? ON : OFF); in putFloatingMenuFadeValue()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DAutoRestrictionPreferenceController.java31 private static final int ON = 1; field in AutoRestrictionPreferenceController
55 ON) in updateState()
56 == ON; in updateState()
66 smartBatteryOn ? ON : OFF); in onPreferenceChange()
DSmartBatteryPreferenceController.java36 private static final int ON = 1; field in SmartBatteryPreferenceController
75 ON) in updateState()
76 == ON; in updateState()
86 smartBatteryOn ? ON : OFF); in onPreferenceChange()
/packages/apps/Settings/src/com/android/settings/gestures/
DOneHandedSettingsUtils.java44 static final int ON = 1; 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()
DDoubleTapPowerPreferenceController.java31 static final int ON = 0; field in DoubleTapPowerPreferenceController
76 SECURE_KEY, ON); in isChecked()
77 return cameraDisabled == ON; in isChecked()
83 isChecked ? ON : OFF); in setChecked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DClusterHalServiceTest.java61 private static final int ON = 1; field in ClusterHalServiceTest
377 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState()
380 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState()
395 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, DONT_CARE, in testOnDisplayState_DontAcceptPartialDontCare_Bounds()
398 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState_DontAcceptPartialDontCare_Bounds()
410 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_DontAcceptPartialDontCare_Inset()
413 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState_DontAcceptPartialDontCare_Inset()
427 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_noListener()
440 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_noProperties()
452 ON, new Rect(BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM), in testReportState()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/combination/
DBiometricSettingsKeyguardPreferenceController.java34 private static final int ON = 1; field in BiometricSettingsKeyguardPreferenceController
36 private static final int DEFAULT = ON;
56 BIOMETRIC_KEYGUARD_ENABLED, DEFAULT, mUserId) == ON; in isChecked()
62 BIOMETRIC_KEYGUARD_ENABLED, isChecked ? ON : OFF, mUserId); in setChecked()
DBiometricSettingsAppPreferenceController.java36 private static final int ON = 1; field in BiometricSettingsAppPreferenceController
38 private static final int DEFAULT = ON;
62 DEFAULT, mUserId) == ON; in isChecked()
68 isChecked ? ON : OFF, mUserId); in setChecked()
/packages/apps/Settings/tests/unit/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceControllerTest.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
55 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, ON, UserHandle.USER_CURRENT); in isChecked_enabledShortcutOnLockScreen_shouldReturnTrue() local
81 UserHandle.USER_CURRENT)).isEqualTo(ON); in setChecked_setTrue_shouldEnableShortcutOnLockScreen()
89 Settings.Secure.ACCESSIBILITY_SHORTCUT_ON_LOCK_SCREEN, ON, in setChecked_setFalse_shouldDisableShortcutOnLockScreen() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DAutoRestrictionPreferenceControllerTest.java40 private static final int ON = 1; field in AutoRestrictionPreferenceControllerTest
60 putAutoRestrictionValue(ON); in testUpdateState_AutoRestrictionOn_preferenceChecked()
80 assertThat(getAutoRestrictionValue()).isEqualTo(ON); in testUpdateState_checkPreference_autoRestrictionOn()
113 mContext.getContentResolver(), Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON); in getAutoRestrictionValue()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DWindshieldWipersState.java58 public static final int ON = 2; field in WindshieldWipersState
78 case ON: in toString()
88 @IntDef({OTHER, OFF, ON, SERVICE})
/packages/services/Car/car-lib/src/android/car/
DVehicleIgnitionState.java69 public static final int ON = 4; field in VehicleIgnitionState
91 case ON: in toString()
106 ON,

123456789