Home
last modified time | relevance | path

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

/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DImageResolver.java181 public Point getAdjustedSize(double imageRatio, int requestedWidth, in getAdjustedSize() argument
183 if (imageRatio <= 0) { in getAdjustedSize()
192 if (requestedWidth == 0 || (requestedHeight != 0 && imageRatio < requiredRatio)) { in getAdjustedSize()
193 res.x = (int) (imageRatio * requestedHeight); in getAdjustedSize()
195 res.y = (int) (requestedWidth / imageRatio); in getAdjustedSize()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DImageResolver.java166 public Point getAdjustedSize(double imageRatio, int requestedWidth, in getAdjustedSize() argument
168 if (imageRatio <= 0) { in getAdjustedSize()
177 if (requestedWidth == 0 || (requestedHeight != 0 && imageRatio < requiredRatio)) { in getAdjustedSize()
178 res.x = (int) (imageRatio * requestedHeight); in getAdjustedSize()
180 res.y = (int) (requestedWidth / imageRatio); in getAdjustedSize()