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 | 197 float minSpeed = a.getFloat(R.styleable.UxRestrictions_DrivingState_minSpeed, in mapDrivingStateToRestrictions() local 210 Builder.SpeedRange speedRange = parseSpeedRange(minSpeed, maxSpeed); in mapDrivingStateToRestrictions() 300 private Builder.SpeedRange parseSpeedRange(float minSpeed, float maxSpeed) { in parseSpeedRange() argument 301 if (Float.compare(minSpeed, 0) < 0 || Float.compare(maxSpeed, 0) < 0) { in parseSpeedRange() 304 return new CarUxRestrictionsConfiguration.Builder.SpeedRange(minSpeed, maxSpeed); in parseSpeedRange()
|