Searched refs:minSpeed (Results 1 – 2 of 2) sorted by relevance
/packages/services/Car/car-lib/src/android/car/drivingstate/ |
D | CarUxRestrictionsConfiguration.java | 489 float minSpeed = Builder.SpeedRange.MAX_SPEED; in readRestrictions() local 495 minSpeed = Double.valueOf(reader.nextDouble()).floatValue(); in readRestrictions() 503 speedRange = new Builder.SpeedRange(minSpeed, maxSpeed); in readRestrictions() 963 public SpeedRange(@FloatRange(from = 0.0) float minSpeed) { in SpeedRange() 964 this(minSpeed, MAX_SPEED); in SpeedRange() 967 public SpeedRange(@FloatRange(from = 0.0) float minSpeed, in SpeedRange() 969 if (Float.compare(minSpeed, 0) < 0 || Float.compare(maxSpeed, 0) < 0) { in SpeedRange() 972 if (minSpeed == MAX_SPEED) { in SpeedRange() 975 if (minSpeed > maxSpeed) { in SpeedRange() 976 throw new IllegalArgumentException("Min speed " + minSpeed in SpeedRange() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarUxRestrictionsConfigurationXmlParser.java | 196 float minSpeed = a.getFloat(R.styleable.UxRestrictions_DrivingState_minSpeed, in mapDrivingStateToRestrictions() local 209 Builder.SpeedRange speedRange = parseSpeedRange(minSpeed, maxSpeed); in mapDrivingStateToRestrictions() 299 private Builder.SpeedRange parseSpeedRange(float minSpeed, float maxSpeed) { in parseSpeedRange() argument 300 if (Float.compare(minSpeed, 0) < 0 || Float.compare(maxSpeed, 0) < 0) { in parseSpeedRange() 303 return new CarUxRestrictionsConfiguration.Builder.SpeedRange(minSpeed, maxSpeed); in parseSpeedRange()
|