Home
last modified time | relevance | path

Searched refs:SpeedRange (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUxRestrictionsConfigurationTest.java26 import static android.car.drivingstate.CarUxRestrictionsConfiguration.Builder.SpeedRange.MAX_SPEED;
79 .setSpeedRange(new Builder.SpeedRange(0f, MAX_SPEED))) in testConstruction()
86 .setSpeedRange(new Builder.SpeedRange(0f, 1f))) in testConstruction()
90 .setSpeedRange(new Builder.SpeedRange(1f, MAX_SPEED))) in testConstruction()
135 .setSpeedRange(new Builder.SpeedRange(1f, 2f))); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap()
139 .setSpeedRange(new Builder.SpeedRange(1f))); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap()
154 .setSpeedRange(new Builder.SpeedRange(1f, 2f))) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange()
164 new Builder.SpeedRange(1, 2), in testBuilderValidation_MultipleSpeedRange_NonZeroStart()
167 new Builder.SpeedRange(2, MAX_SPEED), in testBuilderValidation_MultipleSpeedRange_NonZeroStart()
180 new Builder.SpeedRange(1, MAX_SPEED), in testBuilderValidation_SpeedRange_NonZeroStart()
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java479 Builder.SpeedRange speedRange = null; in readRestrictions()
489 float minSpeed = Builder.SpeedRange.MAX_SPEED; in readRestrictions()
490 float maxSpeed = Builder.SpeedRange.MAX_SPEED; in readRestrictions()
503 speedRange = new Builder.SpeedRange(minSpeed, maxSpeed); in readRestrictions()
750 @NonNull SpeedRange speedRange, boolean requiresOptimization, in setUxRestrictions()
768 SpeedRange speedRange = drivingStateRestrictions.mSpeedRange; in setUxRestrictions()
907 SpeedRange speedRange = restrictions.get(0).mSpeedRange; in validateRangeOfSpeed()
919 if (Float.compare(lastMaxSpeed, SpeedRange.MAX_SPEED) != 0) { in validateRangeOfSpeed()
954 public static final class SpeedRange implements Comparable<SpeedRange> { class in CarUxRestrictionsConfiguration.Builder
963 public SpeedRange(@FloatRange(from = 0.0) float minSpeed) { in SpeedRange() method in CarUxRestrictionsConfiguration.Builder.SpeedRange
[all …]
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParser.java199 Builder.SpeedRange.MAX_SPEED); in mapDrivingStateToRestrictions()
209 Builder.SpeedRange speedRange = parseSpeedRange(minSpeed, maxSpeed); in mapDrivingStateToRestrictions()
224 int drivingState, Builder.SpeedRange speedRange) in parseAllRestrictions()
299 private Builder.SpeedRange parseSpeedRange(float minSpeed, float maxSpeed) { in parseSpeedRange()
303 return new CarUxRestrictionsConfiguration.Builder.SpeedRange(minSpeed, maxSpeed); in parseSpeedRange()