Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 29) sorted by relevance

12

/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/
DMyGLRenderer.java84 float ratio = (float) width / height; in onSurfaceChanged() local
87 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); // apply the projection matrix in onSurfaceChanged()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DKubeRenderer.java85 float ratio = (float)width / height; in onSurfaceChanged() local
88 gl.glFrustumf(-ratio, ratio, -1, 1, 2, 12); in onSurfaceChanged()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DCubeRenderer.java75 float ratio = (float) width / height; in onSurfaceChanged() local
78 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
DFrameBufferObjectActivity.java100 float ratio = (float) width / height; in drawOnscreen() local
103 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in drawOnscreen()
138 float ratio = (float) width / height; in drawOffscreenImage() local
141 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in drawOffscreenImage()
DTouchRotateActivity.java180 float ratio = (float) width / height; in onSurfaceChanged() local
183 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
DStaticTriangleRenderer.java176 float ratio = (float) w / h; in onSurfaceChanged() local
179 glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
DTriangleRenderer.java163 float ratio = (float) w / h; in onSurfaceChanged() local
166 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
DGLES20TriangleRenderer.java88 float ratio = (float) width / height; in onSurfaceChanged() local
89 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
DMatrixPaletteRenderer.java377 float ratio = (float) w / h; in onSurfaceChanged() local
380 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
DCubeMapActivity.java110 float ratio = (float) width / height; in onSurfaceChanged() local
113 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
DCameraPreview.java279 double ratio = (double) size.width / size.height; in getOptimalPreviewSize() local
280 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) continue; in getOptimalPreviewSize()
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/
DMyGLRenderer.java99 float ratio = (float) width / height; in onSurfaceChanged() local
103 Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/development/samples/browseable/BasicTransition/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SlidingTabsBasic/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SwipeRefreshListFragment/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SwipeRefreshLayoutBasic/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/browseable/SlidingTabsColors/src/com.example.android.common/view/
DSlidingTabStrip.java178 private static int blendColors(int color1, int color2, float ratio) { in blendColors() argument
179 final float inverseRation = 1f - ratio; in blendColors()
180 float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); in blendColors()
181 float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); in blendColors()
182 float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * inverseRation); in blendColors()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DRotationVectorDemo.java143 float ratio = (float) width / height; in onSurfaceChanged() local
146 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java135 float ratio = (float) width / height; in onSurfaceChanged() local
138 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DCameraHelper.java76 double ratio = (double) size.width / size.height; in getOptimalVideoSize() local
77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DCameraHelper.java76 double ratio = (double) size.width / size.height; in getOptimalVideoSize() local
77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DCameraHelper.java76 double ratio = (double) size.width / size.height; in getOptimalVideoSize() local
77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize()
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/
DGLES20TriangleRenderer.java86 float ratio = (float) width / height; in onSurfaceChanged() local
87 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DSpriteTextRenderer.java252 float ratio = (float) w / h; in onSurfaceChanged() local
255 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()

12