/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/image/ |
H A D | RangeInverseDepthTransform.java | 14 private final float near; field in class:RangeInverseDepthTransform 17 public RangeInverseDepthTransform(float near, float far) { argument 18 this.near = near; 24 return near; 40 (int) ((far - near * far / value) / (far - near) * 255f))); 45 return (far * near) / (far - (far - near) *
|
H A D | RangeLinearDepthTransform.java | 15 private final float near; field in class:RangeLinearDepthTransform 18 public RangeLinearDepthTransform(float near, float far) { argument 19 this.near = near; 25 return near; 41 (int) ((value - near) / (far - near) * 255f))); 46 return near + (far - near) * Math.max(0, Math.min(255, value)) / 255f;
|
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/ |
H A D | DepthImage.java | 41 public DepthImage(String format, double far, double near, argument 48 mNear = near; 79 double near = 12.0; 81 DepthTransform transform = new RangeInverseDepthTransform((float)near, (float)far); 84 near, 129 final float near = minMax.min; 131 DepthTransform transform = new RangeInverseDepthTransform(near, far); 134 android.util.Log.v("DepthImage", "near = " + String.format("%g", near)); 157 near, [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | ProximityClassifier.java | 25 * the proximity sensor showing the near state during the whole gesture 73 * @param near is the sensor showing the near state right now 76 private void update(boolean near, long timestampNano) { argument 80 // if the state before was near then add the difference of the current time and 86 // if the new state is near, set mNearStartTimeNano equal to this moment. 87 if (near) { 91 mNear = near;
|
/frameworks/rs/ |
H A D | rsMatrix4x4.cpp | 276 void Matrix4x4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 280 m[10]= -2.f / (far - near); 283 m[14]= -(far + near) / (far - near); 286 void Matrix4x4::loadFrustum(float left, float right, float bottom, float top, float near, float far) { argument 288 m[0] = 2.f * near / (right - left); 289 m[5] = 2.f * near / (top - bottom); 292 m[10]= -(far + near) / (far - near); 294 m[14]= -2.f * far * near / (fa 298 loadPerspective(float fovy, float aspect, float near, float far) argument [all...] |
H A D | rsMatrix4x4.h | 49 void loadPerspective(float fovy, float aspect, float near, float far);
|
H A D | rsRuntime.h | 211 float bottom, float top, float near, float far); 213 float bottom, float top, float near, float far); 214 void rsrMatrixLoadPerspective(rs_matrix4x4* m, float fovy, float aspect, float near, float far);
|
/frameworks/rs/script_api/include/ |
H A D | rs_matrix.rsh | 64 * near: Near plane. 70 float4* bottom, float4* near, float4* far) { 92 near->x = viewProj->m[3] + viewProj->m[2]; 93 near->y = viewProj->m[7] + viewProj->m[6]; 94 near->z = viewProj->m[11] + viewProj->m[10]; 95 near->w = viewProj->m[15] + viewProj->m[14]; 110 len = length(near->xyz); 111 *near /= len; 120 float4* bottom, float4* near, float4* far); 134 * near [all...] |
/frameworks/native/libs/math/include/math/ |
H A D | mat4.h | 277 static CONSTEXPR TMat44 ortho(T left, T right, T bottom, T top, T near, T far); 279 static CONSTEXPR TMat44 frustum(T left, T right, T bottom, T top, T near, T far); 285 static CONSTEXPR TMat44 perspective(T fov, T aspect, T near, T far, Fov direction = Fov::VERTICAL); 447 CONSTEXPR TMat44<T> TMat44<T>::ortho(T left, T right, T bottom, T top, T near, T far) { 451 m[2][2] = -2 / (far - near); 454 m[3][2] = -(far + near) / (far - near); 459 CONSTEXPR TMat44<T> TMat44<T>::frustum(T left, T right, T bottom, T top, T near, T far) { 461 m[0][0] = (2 * near) / (right - left); 462 m[1][1] = (2 * near) / (to [all...] |
/frameworks/rs/cpu_ref/ |
H A D | rsCpuRuntimeMath.cpp | 80 static void SC_MatrixLoadPerspective(Matrix4x4 *m, float fovy, float aspect, float near, float far) { argument 81 m->loadPerspective(fovy, aspect, near, far); 186 float fovy, float aspect, float near, float far) { 187 SC_MatrixLoadPerspective((Matrix4x4 *) m, fovy, aspect, near, far); 185 rsMatrixLoadPerspective(rs_matrix4x4 *m, float fovy, float aspect, float near, float far) argument
|
/frameworks/rs/driver/runtime/ |
H A D | rs_matrix.c | 322 float4* bottom, float4* near, float4* far) { 344 near->x = viewProj->m[3] + viewProj->m[2]; 345 near->y = viewProj->m[7] + viewProj->m[6]; 346 near->z = viewProj->m[11] + viewProj->m[10]; 347 near->w = viewProj->m[15] + viewProj->m[14]; 362 len = length(near->xyz); 363 *near /= len; 370 float4* near, float4* far) { 387 distToCenter = dot(near->xyz, sphere->xyz) + near 321 rsExtractFrustumPlanes(const rs_matrix4x4* viewProj, float4* left, float4* right, float4* top, float4* bottom, float4* near, float4* far) argument 369 rsIsSphereInFrustum(float4* sphere, float4* left, float4* right, float4* top, float4* bottom, float4* near, float4* far) argument [all...] |
/frameworks/rs/script_api/ |
H A D | rs_matrix.spec | 56 arg: float4* near, "Near plane." 83 near->x = viewProj->m[3] + viewProj->m[2]; 84 near->y = viewProj->m[7] + viewProj->m[6]; 85 near->z = viewProj->m[11] + viewProj->m[10]; 86 near->w = viewProj->m[15] + viewProj->m[14]; 101 len = length(near->xyz); 102 *near /= len; 117 arg: float4* near 131 arg: float4* near, "Near plane." 153 distToCenter = dot(near [all...] |
/frameworks/base/opengl/java/android/opengl/ |
H A D | Matrix.java | 266 * @param near 271 float near, float far) { 278 if (near == far) { 279 throw new IllegalArgumentException("near == far"); 284 final float r_depth = 1.0f / (far - near); 290 final float tz = -(far + near) * r_depth; 320 * @param near 325 float near, float far) { 332 if (near == far) { 333 throw new IllegalArgumentException("near 269 orthoM(float[] m, int mOffset, float left, float right, float bottom, float top, float near, float far) argument 323 frustumM(float[] m, int offset, float left, float right, float bottom, float top, float near, float far) argument [all...] |
H A D | GLErrorWrapper.java | 231 public void glDepthRangef(float near, float far) { argument 233 mgl.glDepthRangef(near, far); 237 public void glDepthRangex(int near, int far) { argument 239 mgl.glDepthRangex(near, far); 334 float near, float far) { 336 mgl.glFrustumf(left, right, bottom, top, near, far); 340 public void glFrustumx(int left, int right, int bottom, int top, int near, argument 343 mgl.glFrustumx(left, right, bottom, top, near, far); 608 float near, float far) { 610 mgl.glOrthof(left, right, bottom, top, near, fa 333 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 607 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 614 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
H A D | GLLogWrapper.java | 1461 public void glDepthRangef(float near, float far) { argument 1463 arg("near", near); 1467 mgl.glDepthRangef(near, far); 1471 public void glDepthRangex(int near, int far) { argument 1473 arg("near", near); 1477 mgl.glDepthRangex(near, far); 1667 float near, float far) { 1673 arg("near", nea 1666 glFrustumf(float left, float right, float bottom, float top, float near, float far) argument 1681 glFrustumx(int left, int right, int bottom, int top, int near, int far) argument 2158 glOrthof(float left, float right, float bottom, float top, float near, float far) argument 2173 glOrthox(int left, int right, int bottom, int top, int near, int far) argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
H A D | DozeLog.java | 63 private static SummaryStats[][] sProxStats; // [reason][near/far] 172 public static void traceProximityResult(Context context, boolean near, long millis, argument 176 log("proximityResult reason=" + pulseReasonToString(pulseReason) + " near=" + near 178 sProxStats[pulseReason][near ? 0 : 1].append(); 208 sPickupPulseNearVibrationStats.dump(pw, "Pickup pulse (near vibration)"); 209 sPickupPulseNotNearVibrationStats.dump(pw, "Pickup pulse (not near vibration)"); 216 sProxStats[i][0].dump(pw, "Proximity near (" + reason + ")");
|
H A D | DozeTriggers.java | 160 final boolean near = !far; 167 boolean ignoreTouch = near; 174 } else if (near && aod) {
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix4f.java | 252 * @param n location of the near clipping plane 286 * @param n location of the near clipping plane, must be positive 307 * @param near near cliping plane, must be positive 310 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 311 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); 315 loadFrustum(left, right, bottom, top, near, far); 321 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/rs/support/java/src/android/support/v8/renderscript/ |
H A D | Matrix4f.java | 253 * @param n location of the near clipping plane 287 * @param n location of the near clipping plane, must be positive 308 * @param near near cliping plane, must be positive 311 public void loadPerspective(float fovy, float aspect, float near, float far) { argument 312 float top = near * (float)Math.tan((float) (fovy * Math.PI / 360.0f)); 316 loadFrustum(left, right, bottom, top, near, far); 322 * and (near, far), (bottom, top) mapping to (-1, 1) at z = 0
|
/frameworks/base/libs/hwui/ |
H A D | Matrix.cpp | 401 void Matrix4::loadOrtho(float left, float right, float bottom, float top, float near, float far) { argument 406 data[kScaleZ] = -2.0f / (far - near); 409 data[kTranslateZ] = -(far + near) / (far - near);
|
H A D | Matrix.h | 119 void loadOrtho(float left, float right, float bottom, float top, float near, float far);
|
/frameworks/base/core/java/android/util/ |
H A D | JsonReader.java | 1000 return getClass().getSimpleName() + " near " + getSnippet();
|
/frameworks/native/opengl/libagl/ |
H A D | matrix.cpp | 691 GLfloat near = c->transforms.vpt.zNear; local 693 GLfloat A = div2f(far - near); 694 GLfloat B = div2f(far + near);
|