/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioRouteTransitionTests.java | 69 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/ |
D | CarPowerManagementTest.java | 93 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/ |
D | FaceSettingsAppPreferenceController.java | 37 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()
|
D | FaceSettingsKeyguardPreferenceController.java | 37 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/ |
D | AssistGestureSettingsPreferenceController.java | 38 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()
|
D | DoubleTapPowerPreferenceController.java | 31 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/ |
D | AssistGestureSettingsPreferenceController.java | 38 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()
|
D | DoubleTapPowerPreferenceController.java | 31 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/ |
D | FaceSettingsAppPreferenceController.java | 32 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()
|
D | FaceSettingsKeyguardPreferenceController.java | 38 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/ |
D | CarPowerManagementService.java | 207 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/ |
D | AutoRestrictionPreferenceController.java | 33 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()
|
D | SmartBatteryPreferenceController.java | 36 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/ |
D | BadgingNotificationPreferenceControllerTest.java | 22 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()
|
D | SnoozeNotificationPreferenceControllerTest.java | 23 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/ |
D | AutoRestrictionPreferenceController.java | 33 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()
|
D | SmartBatteryPreferenceController.java | 36 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/ |
D | AutoRestrictionPreferenceControllerTest.java | 40 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()
|
D | SmartBatteryPreferenceControllerTest.java | 41 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/ |
D | BubbleNotificationPreferenceController.java | 46 static final int ON = 1; field in BubbleNotificationPreferenceController 87 NOTIFICATION_BUBBLES, ON) == ON; in isChecked() 93 NOTIFICATION_BUBBLES, isChecked ? ON : OFF); in setChecked()
|
D | BadgingNotificationPreferenceController.java | 45 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/ |
D | BadgingNotificationPreferenceController.java | 45 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/ |
D | MagnificationGesturesPreferenceControllerTest.java | 20 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/ |
D | AnomalyDetectionJobService.java | 59 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/ |
D | AnomalyDetectionJobService.java | 59 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()
|