Home
last modified time | relevance | path

Searched refs:DRIVING_STATE_MOVING (Results 1 – 21 of 21) 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;
74 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED) in testConstruction()
78 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
85 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
89 .setUxRestrictions(DRIVING_STATE_MOVING, new DrivingStateRestrictions() in testConstruction()
105 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testUnspecifiedDrivingStateUsesDefaultRestriction()
114 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED) in testBuilderValidation_UnspecifiedStateUsesRestrictiveDefault()
128 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED); in testBuilderValidation_twoWaysToIdentifyDisplay()
136 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED); in testBuilderValidation_missingDisplayType()
144 .setUxRestrictions(DRIVING_STATE_MOVING, true, UX_RESTRICTIONS_FULLY_RESTRICTED); in testBuilderValidation_missingOccupantZoneId()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParserTest.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
91 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_NoSpeedRange()
102 CarUxRestrictions r = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_SingleSpeedRange()
113 CarUxRestrictions slow = config.getUxRestrictions(DRIVING_STATE_MOVING, 1f); in testParsingMovingState_MultiSpeedRange()
117 CarUxRestrictions fast = config.getUxRestrictions(DRIVING_STATE_MOVING, 6f); in testParsingMovingState_MultiSpeedRange()
128 DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_PASSENGER); in testParsingPassengerState()
145 DRIVING_STATE_MOVING, 1f, "mode1"); in testParsingMultipleModes()
149 DRIVING_STATE_MOVING, 1f, "mode2"); in testParsingMultipleModes()
180 DRIVING_STATE_MOVING, 1f, UX_RESTRICTION_MODE_BASELINE); in testParsingPassengerMode_ValuesInBaselineAreNotAffected()
DCarUxRestrictionsManagerServiceTest.java20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
178 CarUxRestrictions movingRestrictions = config.getUxRestrictions(DRIVING_STATE_MOVING, in testLoadConfig_UseDefaultConfigWhenNoSavedConfigFileNoXml()
248 .setUxRestrictions(DRIVING_STATE_MOVING, in testLoadConfig_SupportsLegacyV1()
268 .setUxRestrictions(DRIVING_STATE_MOVING, in testLoadConfig_SupportsLegacyV1()
608 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in setUpMockDrivingStateWithFakeSpeed()
DCarLocationServiceTest.java431 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, 0)); in testDeletesCacheFileUponSuspendExitWhileMoving()
480 new CarDrivingStateEvent(CarDrivingStateEvent.DRIVING_STATE_MOVING, in testDeletesCacheFileWhenDrivingStateBecomesMoving()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/
DCarUiPortraitDriveStateController.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
62 return mCurrentDrivingState == DRIVING_STATE_MOVING; in isDrivingStateMoving()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarDrivingStateEvent.java56 public static final int DRIVING_STATE_MOVING = 2; field in CarDrivingStateEvent
62 DRIVING_STATE_MOVING})
DCarUxRestrictionsConfiguration.java20 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
393 writeRestrictionsList(writer, container.getRestrictionsForDriveState(DRIVING_STATE_MOVING)); in writeRestrictionMode()
550 readRestrictionsList(reader, DRIVING_STATE_MOVING, in readJson()
566 readRestrictionsList(reader, DRIVING_STATE_MOVING, in readJson()
593 readRestrictionsList(reader, DRIVING_STATE_MOVING, mode, builder); in readRestrictionsMode()
742 case DRIVING_STATE_MOVING: in getDrivingStateName()
758 DRIVING_STATE_MOVING,
994 if (drivingState != DRIVING_STATE_MOVING && speedRange != null) { in setUxRestrictions()
1131 if (drivingState != DRIVING_STATE_MOVING) { in validateBaselineModeRestrictions()
1167 container.getRestrictionsForDriveState(DRIVING_STATE_MOVING); in validateModeRestrictions()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
230 case DRIVING_STATE_MOVING: in updateDrivingStateText()
270 .setUxRestrictions(DRIVING_STATE_MOVING, in onConfirm()
274 .setUxRestrictions(DRIVING_STATE_MOVING, in onConfirm()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/wm/
DCarUiPortraitDisplaySystemBarsController.java19 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
310 if (requested && mCurrentDrivingState == DRIVING_STATE_MOVING) { in notifyOnImmersiveRequestedChanged()
322 if (mImmersiveState == STATE_DEFAULT || mCurrentDrivingState != DRIVING_STATE_MOVING) { in onDrivingStateChanged()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java226 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) {
271 if (event != null && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in init()
352 && event.eventValue == CarDrivingStateEvent.DRIVING_STATE_MOVING) { in onStateChanged()
DCarUxRestrictionsManagerService.java21 import static android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING;
917 } else if (drivingState != DRIVING_STATE_MOVING) { in handleDrivingStateEventOnDisplaysLocked()
929 handleDispatchUxRestrictionsLocked(DRIVING_STATE_MOVING, /* speed= */ MAX_SPEED, in handleDrivingStateEventOnDisplaysLocked()
978 if (currentDrivingState != DRIVING_STATE_MOVING) { in handleSpeedChangeLocked()
1305 .setUxRestrictions(DRIVING_STATE_MOVING, in createDefaultConfig()
DCarDrivingStateService.java490 return CarDrivingStateEvent.DRIVING_STATE_MOVING; in inferDrivingStateLocked()
DCarUxRestrictionsConfigurationXmlParser.java385 return CarDrivingStateEvent.DRIVING_STATE_MOVING; in getDrivingState()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDrivingRestrictionsTest.java162 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange()
190 assertThat(drivingEvent.eventValue).isEqualTo(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testDrivingStateChange()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothDeviceConnectionPolicyTest.java429 setDrivingState(CarDrivingStateEvent.DRIVING_STATE_MOVING); in testSeatOnOccupied_driverSeat_driving_doNothing()
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/
DCarPackageManagerServiceTest.java394 mCarDrivingStateManager.injectDrivingState(CarDrivingStateEvent.DRIVING_STATE_MOVING); in setDrivingStateMoving()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1148 field TIRAMISU_0 int DRIVING_STATE_MOVING = 2;
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt929 field public static final int DRIVING_STATE_MOVING = 2; // 0x2
/packages/services/Car/car-lib/api/
Dsystem-current.txt929 field public static final int DRIVING_STATE_MOVING = 2; // 0x2
Dtest-current.txt1001 field public static final int DRIVING_STATE_MOVING = 2; // 0x2
Dsystem-lint-baseline.txt2280 UnflaggedApi: android.car.drivingstate.CarDrivingStateEvent#DRIVING_STATE_MOVING:
2281 … flagged with @FlaggedApi: field android.car.drivingstate.CarDrivingStateEvent.DRIVING_STATE_MOVING