Home
last modified time | relevance | path

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

123456789

/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBubbleNotificationPreferenceControllerTest.java24 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
101 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in updateState_settingIsOff_preferenceSetUnchecked()
115 NOTIFICATION_BUBBLES, OFF)).isEqualTo(ON); in onSwitchChanged_true_settingIsOff_flagShouldOn()
120 Settings.Global.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in onSwitchChanged_false_settingIsOn_flagShouldOff() local
125 NOTIFICATION_BUBBLES, ON)).isEqualTo(OFF); in onSwitchChanged_false_settingIsOn_flagShouldOff()
130 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BUBBLES, ON); in setChecked_setFalse_disablesSetting() local
134 NOTIFICATION_BUBBLES, ON); in setChecked_setFalse_disablesSetting()
147 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()
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/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DClusterHalServiceTest.java55 private static final int ON = 1; field in ClusterHalServiceTest
217 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState()
220 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState()
234 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, DONT_CARE, in testOnDisplayState_DontAcceptPartialDontCare_Bounds()
237 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState_DontAcceptPartialDontCare_Bounds()
248 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_DontAcceptPartialDontCare_Inset()
251 assertThat(mOnOff).isEqualTo(ON); in testOnDisplayState_DontAcceptPartialDontCare_Inset()
264 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_noListener()
277 createDisplayStateEvent(ON, BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM, in testOnDisplayState_noProperties()
288 ON, new Rect(BOUNDS_LEFT, BOUNDS_TOP, BOUNDS_RIGHT, BOUNDS_BOTTOM), in testReportState()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java72 private static final int ON = 1; field in CallAudioRouteTransitionTests
312 case ON: in testActiveTransition()
336 case ON: in testActiveTransition()
468 ON, // bluetoothInteraction in testParametersCollection()
516 ON, // bluetoothInteraction in testParametersCollection()
528 ON, // bluetoothInteraction in testParametersCollection()
540 ON, // bluetoothInteraction in testParametersCollection()
599 ON, // speakerInteraction in testParametersCollection()
611 ON, // speakerInteraction in testParametersCollection()
623 ON, // speakerInteraction in testParametersCollection()
[all …]
/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/src/com/android/settings/gestures/
DOneHandedSettingsUtils.java44 static final int ON = 1; field in OneHandedSettingsUtils
94 Settings.Secure.ONE_HANDED_MODE_ENABLED, OFF, sCurrentUserId) == ON; in isOneHandedModeEnabled()
105 Settings.Secure.ONE_HANDED_MODE_ENABLED, enable ? ON : OFF, sCurrentUserId); in setOneHandedModeEnabled()
116 Settings.Secure.TAPS_APP_TO_EXIT, OFF, sCurrentUserId) == ON; in isTapsAppToExitEnabled()
127 Settings.Secure.TAPS_APP_TO_EXIT, enable ? ON : OFF, sCurrentUserId); in setTapsAppToExitEnabled()
180 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, OFF, sCurrentUserId) == ON; in isSwipeDownNotificationEnabled()
191 Settings.Secure.SWIPE_BOTTOM_TO_NOTIFICATION_ENABLED, enable ? ON : OFF, in setSwipeDownNotificationEnabled()
DAssistGestureSettingsPreferenceController.java40 private static final int ON = 1; field in AssistGestureSettingsPreferenceController
106 SECURE_KEY_ASSIST, ON) != 0; in isAssistGestureEnabled()
111 SECURE_KEY_SILENCE, ON) != 0; in isSilenceGestureEnabled()
117 isChecked ? ON : OFF); in setChecked()
137 return Settings.Secure.getInt(mContext.getContentResolver(), SECURE_KEY_ASSIST, OFF) == ON; in isChecked()
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/apps/Settings/src/com/android/settings/fuelgauge/
DAutoRestrictionPreferenceController.java33 private static final int ON = 1; field in AutoRestrictionPreferenceController
54 Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON) == ON; in updateState()
63 smartBatteryOn ? ON : OFF); in onPreferenceChange()
DSmartBatteryPreferenceController.java38 private static final int ON = 1; field in SmartBatteryPreferenceController
74 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON; in updateState()
82 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, smartBatteryOn ? ON : OFF); in onPreferenceChange()
/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/src/com/android/settings/accessibility/
DMagnificationFollowTypingPreferenceController.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
56 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_FOLLOW_TYPING_ENABLED, ON) == ON; in isChecked()
63 (isChecked ? ON : OFF)); in setChecked()
DMagnificationAlwaysOnPreferenceController.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
60 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_ALWAYS_ON_ENABLED, ON) == ON; in isChecked()
67 (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/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/accessibility/
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()
DToggleColorInversionPreferenceFragmentTest.java20 import static com.android.settings.accessibility.AccessibilityUtil.State.ON;
99 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, ON); in onResume_colorCorrectEnabled_shouldReturnTrue() local
123 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, ON); in onResume_colorCorrectEnabled_switchPreferenceChecked_notShowTooltips() local
145 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, OFF) == ON; in onPreferenceToggled_colorCorrectDisabled_shouldReturnTrueAndShowTooltipView()
154 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, ON); in onPreferenceToggled_colorCorrectEnabled_shouldReturnFalseAndNotShowTooltipView() local
162 Settings.Secure.ACCESSIBILITY_DISPLAY_INVERSION_ENABLED, OFF) == ON; in onPreferenceToggled_colorCorrectEnabled_shouldReturnFalseAndNotShowTooltipView()
/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()
114 Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON); in getAutoRestrictionValue()
DSmartBatteryPreferenceControllerTest.java45 private static final int ON = 1; field in SmartBatteryPreferenceControllerTest
68 putSmartBatteryValue(ON); in testUpdateState_smartBatteryOn_preferenceChecked()
88 assertThat(getSmartBatteryValue()).isEqualTo(ON); in testUpdateState_checkPreference_smartBatteryOn()
121 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON); in getSmartBatteryValue()
/packages/apps/Settings/src/com/android/settings/notification/
DBubbleNotificationPreferenceController.java48 static final int ON = 1; field in BubbleNotificationPreferenceController
100 NOTIFICATION_BUBBLES, ON) == ON; in isChecked()
106 NOTIFICATION_BUBBLES, isChecked ? ON : OFF); in setChecked()
DBadgingNotificationPreferenceController.java46 static final int ON = 1; field in BadgingNotificationPreferenceController
99 NOTIFICATION_BADGING, ON) == ON; in isChecked()
105 NOTIFICATION_BADGING, isChecked ? ON : OFF); in setChecked()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java165 VehicleApPowerStateReq.ON, in testImmediateShutdownFromOn()
167 VehicleApPowerStateReport.ON); in testImmediateShutdownFromOn()
254 VehicleApPowerStateReq.ON, in testInvalidTransitionsFromOn()
256 VehicleApPowerStateReport.ON); in testInvalidTransitionsFromOn()
272 mPowerStateHandler.sendStateAndExpectNoResponse(VehicleApPowerStateReq.ON, 0); in testInvalidTransitionsFromPrepareShutdown()
339 VehicleApPowerStateReq.ON, in testSleepEntry()
341 VehicleApPowerStateReport.ON); in testSleepEntry()
367 VehicleApPowerStateReq.ON, in testSleepImmediateEntry()
369 VehicleApPowerStateReport.ON); in testSleepImmediateEntry()
403 VehicleApPowerStateReq.ON, in testUnallowedPowerStateEventAtSuspend()
[all …]

123456789