/development/samples/OpenGL/HelloOpenGLES10/src/com/example/android/opengl/ |
D | MyGLRenderer.java | 84 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/ |
D | CubeRenderer.java | 75 float ratio = (float) width / height; in onSurfaceChanged() local 78 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
D | FrameBufferObjectActivity.java | 100 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()
|
D | TouchRotateActivity.java | 180 float ratio = (float) width / height; in onSurfaceChanged() local 183 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
D | StaticTriangleRenderer.java | 176 float ratio = (float) w / h; in onSurfaceChanged() local 179 glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
D | TriangleRenderer.java | 163 float ratio = (float) w / h; in onSurfaceChanged() local 166 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
D | GLES20TriangleRenderer.java | 88 float ratio = (float) width / height; in onSurfaceChanged() local 89 Matrix.frustumM(mProjMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
D | MatrixPaletteRenderer.java | 377 float ratio = (float) w / h; in onSurfaceChanged() local 380 gl.glFrustumf(-ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
D | CubeMapActivity.java | 110 float ratio = (float) width / height; in onSurfaceChanged() local 113 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/ |
D | KubeRenderer.java | 85 float ratio = (float)width / height; in onSurfaceChanged() local 88 gl.glFrustumf(-ratio, ratio, -1, 1, 2, 12); in onSurfaceChanged()
|
/development/samples/OpenGL/HelloOpenGLES20/src/com/example/android/opengl/ |
D | MyGLRenderer.java | 99 float ratio = (float) width / height; in onSurfaceChanged() local 103 Matrix.frustumM(mProjectionMatrix, 0, -ratio, ratio, -1, 1, 3, 7); in onSurfaceChanged()
|
/development/samples/browseable/SwipeRefreshMultipleViews/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 178 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/ |
D | SlidingTabStrip.java | 178 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/ |
D | SlidingTabStrip.java | 178 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/ |
D | SlidingTabStrip.java | 178 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/ |
D | SlidingTabStrip.java | 178 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/BasicTransition/src/com.example.android.common/view/ |
D | SlidingTabStrip.java | 178 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/ |
D | RotationVectorDemo.java | 143 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/ |
D | CompassActivity.java | 135 float ratio = (float) width / height; in onSurfaceChanged() local 138 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
D | CameraHelper.java | 76 double ratio = (double) size.width / size.height; in getOptimalVideoSize() local 77 if (Math.abs(ratio - targetRatio) > ASPECT_TOLERANCE) in getOptimalVideoSize()
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
D | CameraHelper.java | 76 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/ |
D | CameraHelper.java | 76 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/ |
D | GLES20TriangleRenderer.java | 86 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/ |
D | SpriteTextRenderer.java | 252 float ratio = (float) w / h; in onSurfaceChanged() local 255 gl.glFrustumf(-ratio, ratio, -1, 1, 1, 10); in onSurfaceChanged()
|
/development/apps/OBJViewer/com/android/objviewer/ |
D | OBJViewer.java | 196 float ratio = (float)w/h; in onDraw() local 197 glView.setAspectRatio(ratio); in onDraw()
|