Searched refs:SpeedRange (Results 1 – 3 of 3) sorted by relevance
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarUxRestrictionsConfigurationTest.java | 26 import static android.car.drivingstate.CarUxRestrictionsConfiguration.Builder.SpeedRange.MAX_SPEED; 81 .setSpeedRange(new Builder.SpeedRange(0f, MAX_SPEED))) in testConstruction() 88 .setSpeedRange(new Builder.SpeedRange(0f, 1f))) in testConstruction() 92 .setSpeedRange(new Builder.SpeedRange(1f, MAX_SPEED))) in testConstruction() 139 .setSpeedRange(new Builder.SpeedRange(1f, 2f))); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap() 143 .setSpeedRange(new Builder.SpeedRange(1f))); in testBuilderValidation_PassengerModeNoSpeedRangeOverlap() 154 .setSpeedRange(new Builder.SpeedRange(1f, 2f))) in testBuilderValidation_PassengerModeCanSpecifySubsetOfSpeedRange() 165 new Builder.SpeedRange(1, 2), in testBuilderValidation_MultipleSpeedRange_NonZeroStart() 168 new Builder.SpeedRange(2, MAX_SPEED), in testBuilderValidation_MultipleSpeedRange_NonZeroStart() 177 new Builder.SpeedRange(1, MAX_SPEED), in testBuilderValidation_SpeedRange_NonZeroStart() [all …]
|
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 479 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/ |
D | CarUxRestrictionsConfigurationXmlParser.java | 200 Builder.SpeedRange.MAX_SPEED); in mapDrivingStateToRestrictions() 210 Builder.SpeedRange speedRange = parseSpeedRange(minSpeed, maxSpeed); in mapDrivingStateToRestrictions() 225 int drivingState, Builder.SpeedRange speedRange) in parseAllRestrictions() 300 private Builder.SpeedRange parseSpeedRange(float minSpeed, float maxSpeed) { in parseSpeedRange() 304 return new CarUxRestrictionsConfiguration.Builder.SpeedRange(minSpeed, maxSpeed); in parseSpeedRange()
|