Home
last modified time | relevance | path

Searched refs:getRatio (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java325 final int viewRatio = (int)getRatio(viewSize.getWidth(), viewSize.getHeight()); in setTransformationMatrix()
332 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix()
377 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize()
381 double ratio = getRatio(size.width, size.height); in getBestPreviewSize()
386 bestChoiceRatio = getRatio(size.width, size.height); in getBestPreviewSize()
396 final double previewRatio = getRatio(previewSize.width, previewSize.height); in getBestPictureSize()
402 double ratio = getRatio(size.width, size.height); in getBestPictureSize()
434 private double getRatio(double x, double y) { in getRatio() method in QrCamera
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java315 final int viewRatio = (int)getRatio(viewSize.getWidth(), viewSize.getHeight()); in setTransformationMatrix()
325 final float ratioPreview = (float) getRatio(previewWidth, previewHeight); in setTransformationMatrix()
370 final double winRatio = getRatio(windowSize.getWidth(), windowSize.getHeight()); in getBestPreviewSize()
374 double ratio = getRatio(size.width, size.height); in getBestPreviewSize()
379 bestChoiceRatio = getRatio(size.width, size.height); in getBestPreviewSize()
385 private double getRatio(double x, double y) { in getRatio() method in QrCamera
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTiledScreenNail.java171 mTexture.drawMixed(canvas, mPlaceholderColor, getRatio(), x, y, in draw()
202 private float getRatio() { in getRatio() method in TiledScreenNail
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DFadeOutTexture.java37 canvas.setAlpha(getRatio()); in draw()
DFadeInTexture.java38 mTexture.drawMixed(canvas, mColor, getRatio(), x, y, w, h); in draw()
DFadeTexture.java73 protected float getRatio() { in getRatio() method in FadeTexture
/packages/apps/Contacts/src/com/android/contacts/widget/
DProportionalLayout.java139 public float getRatio() { in getRatio() method in ProportionalLayout