Searched defs:ratio (Results 1 - 9 of 9) sorted by relevance

/packages/apps/LegacyCamera/src/com/android/camera/
H A DPreviewFrameLayout.java28 * A layout which handles the preview aspect ratio.
43 public void setAspectRatio(double ratio) { argument
44 if (ratio <= 0.0) throw new IllegalArgumentException();
48 ratio = 1 / ratio;
51 if (mAspectRatio != ratio) {
52 mAspectRatio = ratio;
71 // Resize the preview frame with correct aspect ratio.
/packages/apps/Camera/src/com/android/camera/
H A DPreviewFrameLayout.java26 * A layout which handles the preview aspect ratio.
48 public void setAspectRatio(double ratio) { argument
49 if (ratio <= 0.0) throw new IllegalArgumentException();
53 ratio = 1 / ratio;
56 if (mAspectRatio != ratio) {
57 mAspectRatio = ratio;
79 // Resize the preview frame with correct aspect ratio.
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DProportionalLayout.java143 public void setRatio(float ratio) { argument
144 mRatio = ratio;
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/
H A DGLCanvasMock.java64 float ratio, int x, int y, int w, int h) {
66 mDrawMixedRatio = ratio;
63 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int w, int h) argument
H A DGLCanvasStub.java63 float ratio, int x, int y, int w, int h) {}
65 float ratio, int x, int y, int w, int h) {}
67 float ratio, int x, int y, int width, int height, float alpha) {}
62 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int w, int h) argument
64 drawMixed(BasicTexture from, int to, float ratio, int x, int y, int w, int h) argument
66 drawMixed(BasicTexture from, BasicTexture to, float ratio, int x, int y, int width, int height, float alpha) argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DGLCanvas.java96 // from * (1 - ratio) + to * ratio
99 float ratio, int x, int y, int w, int h);
98 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument
H A DCropView.java128 public void setAspectRatio(float ratio) { argument
129 mAspectRatio = ratio;
H A DGLCanvasImpl.java431 int toColor, float ratio, int x, int y, int w, int h) {
432 drawMixed(from, toColor, ratio, x, y, w, h, mAlpha);
452 float ratio, int x, int y, int width, int height, float alpha) {
454 if (ratio <= 0.01f) {
457 } else if (ratio >= 1) {
470 // alpha * ((1 - ratio) * from + ratio * to)
475 // So, we have combo = alpha * (1 - ratio)
476 // and scale = alpha * ratio / (1 - combo)
478 float combo = alpha * (1 - ratio);
430 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int w, int h) argument
451 drawMixed(BasicTexture from, int toColor, float ratio, int x, int y, int width, int height, float alpha) argument
[all...]
H A DPhotoView.java1704 // When ratio = 0, the result is from.
1705 // When ratio = 1, the result is to.
1706 private static float interpolate(float ratio, float from, float to) { argument
1707 return from + (to - from) * ratio * ratio;

Completed in 8405 milliseconds