Home
last modified time | relevance | path

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

12345

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioRouteTransitionTests.java69 private static final int ON = 1; field in CallAudioRouteTransitionTests
307 case ON: in testActiveTransition()
330 case ON: // fall through in testActiveTransition()
332 verify(mockAudioManager).setSpeakerphoneOn(mParams.speakerInteraction == ON); in testActiveTransition()
455 ON, // bluetoothInteraction in testParametersCollection()
503 ON, // bluetoothInteraction in testParametersCollection()
515 ON, // bluetoothInteraction in testParametersCollection()
527 ON, // bluetoothInteraction in testParametersCollection()
586 ON, // speakerInteraction in testParametersCollection()
598 ON, // speakerInteraction in testParametersCollection()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPowerManagementTest.java93 VehicleApPowerStateReq.ON, in testImmediateShutdownFromOn()
95 VehicleApPowerStateReport.ON); in testImmediateShutdownFromOn()
154 VehicleApPowerStateReq.ON, in testInvalidTransitionsFromOn()
156 VehicleApPowerStateReport.ON); in testInvalidTransitionsFromOn()
173 mPowerStateHandler.sendStateAndExpectNoResponse(VehicleApPowerStateReq.ON, 0); in testInvalidTransitionsFromPrepareShutdown()
196 mPowerStateHandler.sendStateAndExpectNoResponse(VehicleApPowerStateReq.ON, 0); in testInvalidTransitionsFromWaitForFinish()
219 mPowerStateHandler.sendStateAndExpectNoResponse(VehicleApPowerStateReq.ON, 0); in testInvalidTransitionsFromWaitForFinish2()
242 VehicleApPowerStateReq.ON, in testSleepEntry()
244 VehicleApPowerStateReport.ON); in testSleepEntry()
337 private int mPowerState = VehicleApPowerStateReq.ON;
/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()
89 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, OFF, getUserId()) == ON; in getAvailabilityStatus()
DFaceSettingsKeyguardPreferenceController.java37 private static final int ON = 1; field in FaceSettingsKeyguardPreferenceController
39 private static final int DEFAULT = ON; // face unlock is enabled on keyguard by default
60 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
66 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
/packages/apps/Settings/src/com/android/settings/gestures/
DAssistGestureSettingsPreferenceController.java38 private static final int ON = 1; field in AssistGestureSettingsPreferenceController
101 SECURE_KEY_ASSIST, ON) != 0; in isAssistGestureEnabled()
106 SECURE_KEY_SILENCE, ON) != 0; in isSilenceGestureEnabled()
112 isChecked ? ON : OFF); in setChecked()
132 return Settings.Secure.getInt(mContext.getContentResolver(), SECURE_KEY_ASSIST, OFF) == ON; in isChecked()
DDoubleTapPowerPreferenceController.java31 static final int ON = 0; field in DoubleTapPowerPreferenceController
71 SECURE_KEY, ON); in isChecked()
72 return cameraDisabled == ON; in isChecked()
78 isChecked ? ON : OFF); in setChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/gestures/
DAssistGestureSettingsPreferenceController.java38 private static final int ON = 1; field in AssistGestureSettingsPreferenceController
101 SECURE_KEY_ASSIST, ON) != 0; in isAssistGestureEnabled()
106 SECURE_KEY_SILENCE, ON) != 0; in isSilenceGestureEnabled()
112 isChecked ? ON : OFF); in setChecked()
132 return Settings.Secure.getInt(mContext.getContentResolver(), SECURE_KEY_ASSIST, OFF) == ON; in isChecked()
DDoubleTapPowerPreferenceController.java31 static final int ON = 0; field in DoubleTapPowerPreferenceController
73 SECURE_KEY, ON); in isChecked()
74 return cameraDisabled == ON; in isChecked()
80 isChecked ? ON : OFF); in setChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/face/
DFaceSettingsAppPreferenceController.java32 private static final int ON = 1; field in FaceSettingsAppPreferenceController
34 private static final int DEFAULT = ON; // face unlock is enabled for BiometricPrompt by default
50 mContext.getContentResolver(), FACE_UNLOCK_APP_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
56 isChecked ? ON : OFF, getUserId()); in setChecked()
DFaceSettingsKeyguardPreferenceController.java38 private static final int ON = 1; field in FaceSettingsKeyguardPreferenceController
40 private static final int DEFAULT = ON; // face unlock is enabled on keyguard by default
58 FACE_UNLOCK_KEYGUARD_ENABLED, DEFAULT, getUserId()) == ON; in isChecked()
64 FACE_UNLOCK_KEYGUARD_ENABLED, isChecked ? ON : OFF, getUserId()); in setChecked()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java207 onApPowerStateChange(CpmsState.ON, CarPowerStateListener.ON); in init()
308 case CpmsState.ON: in doHandlePowerStateChange()
399 sendPowerManagerEvent(CarPowerStateListener.ON); in handleOn()
723 return (newState.mState == CpmsState.ON) in needPowerStateChangeLocked()
727 case CpmsState.ON: in needPowerStateChangeLocked()
1006 public static final int ON = 1; field in CarPowerManagementService.CpmsState
1026 case VehicleApPowerStateReq.ON: in CpmsState()
1029 this.mCarPowerStateListenerState = cpmsStateToPowerStateListenerState(ON); in CpmsState()
1030 this.mState = ON; in CpmsState()
1076 case ON: baseName = "ON"; break; in name()
[all …]
/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.java36 private static final int ON = 1; field in SmartBatteryPreferenceController
62 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON; in updateState()
70 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, smartBatteryOn ? ON : OFF); in onPreferenceChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DBadgingNotificationPreferenceControllerTest.java22 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
94 Settings.Secure.putInt(context.getContentResolver(), NOTIFICATION_BADGING, ON); in updateState_preferenceSetCheckedWhenSettingIsOn() local
125 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in isChecked_settingIsOn_shouldReturnTrue() local
132 Settings.Secure.putInt(mContext.getContentResolver(), NOTIFICATION_BADGING, ON); in setChecked_setFalse_disablesSetting() local
149 assertThat(updatedValue).isEqualTo(ON); in setChecked_setTrue_enablesSetting()
DSnoozeNotificationPreferenceControllerTest.java23 import static com.android.settings.notification.BadgingNotificationPreferenceController.ON;
83 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, ON); in isChecked_settingIsOn_shouldReturnTrue() local
90 Settings.Secure.putInt(mContext.getContentResolver(), SHOW_NOTIFICATION_SNOOZE, ON); in setChecked_setFalse_disablesSetting() local
107 assertThat(updatedValue).isEqualTo(ON); in setChecked_setTrue_enablesSetting()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java36 private static final int ON = 1; field in SmartBatteryPreferenceController
62 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON; in updateState()
70 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, smartBatteryOn ? ON : OFF); in onPreferenceChange()
/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.java41 private static final int ON = 1; field in SmartBatteryPreferenceControllerTest
61 putSmartBatteryValue(ON); in testUpdateState_smartBatteryOn_preferenceChecked()
81 assertThat(getSmartBatteryValue()).isEqualTo(ON); in testUpdateState_checkPreference_smartBatteryOn()
114 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON); in getSmartBatteryValue()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DBubbleNotificationPreferenceController.java46 static final int ON = 1; field in BubbleNotificationPreferenceController
87 NOTIFICATION_BUBBLES, ON) == ON; in isChecked()
93 NOTIFICATION_BUBBLES, isChecked ? ON : OFF); in setChecked()
DBadgingNotificationPreferenceController.java45 static final int ON = 1; field in BadgingNotificationPreferenceController
93 NOTIFICATION_BADGING, ON) == ON; in isChecked()
99 NOTIFICATION_BADGING, isChecked ? ON : OFF); in setChecked()
/packages/apps/Settings/src/com/android/settings/notification/
DBadgingNotificationPreferenceController.java45 static final int ON = 1; field in BadgingNotificationPreferenceController
93 NOTIFICATION_BADGING, ON) == ON; in isChecked()
99 NOTIFICATION_BADGING, isChecked ? ON : OFF); in setChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DMagnificationGesturesPreferenceControllerTest.java20 import static com.android.settings.accessibility.MagnificationPreferenceFragment.ON;
64 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); in updateState_shouldRefreshSummary() local
88 Settings.Secure.ACCESSIBILITY_DISPLAY_MAGNIFICATION_ENABLED, ON); in isChecked_enabled() local
107 .isEqualTo(ON); in setChecked_enabled()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DAnomalyDetectionJobService.java59 private static final int ON = 1; field in AnomalyDetectionJobService
148 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON in saveAnomalyToDatabase()
150 Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON) == ON; in saveAnomalyToDatabase()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DAnomalyDetectionJobService.java59 private static final int ON = 1; field in AnomalyDetectionJobService
148 Settings.Global.ADAPTIVE_BATTERY_MANAGEMENT_ENABLED, ON) == ON in saveAnomalyToDatabase()
150 Settings.Global.APP_AUTO_RESTRICTION_ENABLED, ON) == ON; in saveAnomalyToDatabase()

12345