Home
last modified time | relevance | path

Searched refs:DRIVING_STATE_MOVING (Results 1 – 12 of 12) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
72 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED) in testConstruction()
76 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
83 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
87 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
101 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
108 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
132 builder.setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testBuilderValidation_PassengerModeNoSpeedRangeOverlap()
136 builder.setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testBuilderValidation_PassengerModeNoSpeedRangeOverlap()
150 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
88 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
99 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
110 CarUxRestrictions slow = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_MultiSpeedRange()
114 CarUxRestrictions fast = config.getUxRestrictions(DRIVING_STATE_MOVING, 6f); in testParsingMovingState_MultiSpeedRange()
125 DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER); in testParsingPassengerState()
144 DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_BASELINE); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
DCarUxRestrictionsManagerServiceTest.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
213 .setUxRestrictions(DRIVING_STATE_MOVING, in testLoadConfig_SupportsLegacyV1()
233 .setUxRestrictions(DRIVING_STATE_MOVING, in testLoadConfig_SupportsLegacyV1()
528 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in setUpMockDrivingState()
DCarDrivingRestrictionsTest.java137 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
267 writeRestrictionsList(writer, container.getRestrictionsForDriveState(DRIVING_STATE_MOVING)); in writeRestrictionMode()
408 readRestrictionsList(reader, DRIVING_STATE_MOVING, in readJson()
424 readRestrictionsList(reader, DRIVING_STATE_MOVING, in readJson()
451 readRestrictionsList(reader, DRIVING_STATE_MOVING, mode, builder); in readRestrictionsMode()
593 case DRIVING_STATE_MOVING: in getDrivingStateName()
609 DRIVING_STATE_MOVING,
770 if (drivingState != DRIVING_STATE_MOVING && speedRange != null) { in setUxRestrictions()
849 if (drivingState != DRIVING_STATE_MOVING) { in validateBaselineModeRestrictions()
885 container.getRestrictionsForDriveState(DRIVING_STATE_MOVING); in validateModeRestrictions()
DCarDrivingStateEvent.java52 public static final int DRIVING_STATE_MOVING = 2; field in CarDrivingStateEvent
58 DRIVING_STATE_MOVING})
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
175 case DRIVING_STATE_MOVING: in updateDrivingStateText()
215 .setUxRestrictions(DRIVING_STATE_MOVING, in onConfirm()
219 .setUxRestrictions(DRIVING_STATE_MOVING, in onConfirm()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java140 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) {
165 if (event != null && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in init()
222 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in onStateChanged()
DCarUxRestrictionsManagerService.java20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
790 if (currentDrivingState != DRIVING_STATE_MOVING) { in handleSpeedChange()
1027 .setUxRestrictions(DRIVING_STATE_MOVING, in createDefaultConfig()
DCarDrivingStateService.java465 return CarDrivingStateEvent.DRIVING_STATE_MOVING; in inferDrivingStateLocked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java425 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in testDeletesCacheFileUponSuspendExitWhileMoving()
474 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/packages/services/Car/car-lib/api/
Dsystem-current.txt552 field public static final int DRIVING_STATE_MOVING = 2; // 0x2