Home
last modified time | relevance | path

Searched refs:maxSpeed (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsConfiguration.java490 float maxSpeed = Builder.SpeedRange.MAX_SPEED; in readRestrictions() local
497 maxSpeed = Double.valueOf(reader.nextDouble()).floatValue(); in readRestrictions()
503 speedRange = new Builder.SpeedRange(minSpeed, maxSpeed); in readRestrictions()
968 @FloatRange(from = 0.0) float maxSpeed) { in SpeedRange()
969 if (Float.compare(minSpeed, 0) < 0 || Float.compare(maxSpeed, 0) < 0) { in SpeedRange()
975 if (minSpeed > maxSpeed) { in SpeedRange()
977 + " should not be greater than max speed " + maxSpeed); in SpeedRange()
980 mMaxSpeed = maxSpeed; in SpeedRange()
1189 float maxSpeed = in.readFloat(); in RestrictionsPerSpeedRange() local
1190 speedRange = new Builder.SpeedRange(minSpeed, maxSpeed); in RestrictionsPerSpeedRange()
/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsConfigurationXmlParser.java199 float maxSpeed = a.getFloat(R.styleable.UxRestrictions_DrivingState_maxSpeed, 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()