Searched refs:dist (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/native/opengl/tests/angeles/
H A Dcams.h42 unsigned char dist; // if >0, cam rotates around eye xy on dist * 0.1 member in struct:__anon1380
H A Ddemo.c726 if (cam->dist)
728 float dist = cam->dist * 0.1f; local
732 eX = cX - (float)cos(lerp[3]) * dist;
733 eY = cY - (float)sin(lerp[3]) * dist;
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dgpclip.c63 Word16 dist, dist_min; local
70 dist = vo_sub(isf[i], isf[i - 1]);
71 if(dist < dist_min)
73 dist_min = dist;
77 dist = extract_h(L_mac(vo_L_mult(26214, mem[0]), 6554, dist_min));
79 if (dist > DIST_ISF_MAX)
81 dist = DIST_ISF_MAX;
83 mem[0] = dist;
H A Dqpisf_2s.c453 Word32 dist_min, dist; local
461 dist = 0;
466 dist += (temp * temp)<<1;
469 if(dist < dist_min)
471 dist_min = dist;
500 Word32 dist_min[N_SURV_MAX], dist; local
515 dist = 0;
519 dist += (temp * temp)<<1;
524 if(dist < dist_min[k])
531 dist_min[k] = dist;
[all...]
H A DvoAMRWBEnc.c1351 Word16 dist_min, dist; local
1541 dist = vo_mult((HP_corr_gain - HP_gain[i]), (HP_corr_gain - HP_gain[i]));
1542 if (dist_min > dist)
1544 dist_min = dist;
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dton_stab.cpp440 Word16 i, dist, dist_min1, dist_min2, dist_th;
448 dist = sub(lsp[i], lsp[i+1]);
450 if (sub(dist, dist_min1) < 0)
452 dist_min1 = dist;
459 dist = sub(lsp[i], lsp[i+1]);
461 if (sub(dist, dist_min2) < 0)
463 dist_min2 = dist;
531 Word16 dist; local
545 dist = *(p_lsp++) - *(p_lsp_1++);
547 if (dist < dist_min
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dq_plsf_3.cpp210 Word32 dist_min, dist;
219 dist = L_mult (temp, temp);
223 dist = L_mac (dist, temp, temp);
227 dist = L_mac (dist, temp, temp);
231 dist = L_mac (dist, temp, temp);
234 if (L_sub (dist, dist_min) < (Word32) 0)
236 dist_min = dist;
289 Word32 dist; local
619 Word32 dist; local
[all...]
H A Dq_plsf_5.cpp220 Word32 dist; local
248 dist = ((Word32)temp * temp);
250 if (dist >= dist_min)
257 dist += ((Word32)temp * temp);
259 if (dist >= dist_min)
266 dist += ((Word32)temp * temp);
268 if (dist >= dist_min)
275 dist += ((Word32)temp * temp);
278 if (dist < dist_min)
280 dist_min = dist;
[all...]
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
H A Dartistic1.rs50 float dist = dot(xyDist, xyDist) * 1.4f;
51 float pdist = native_powr(dist, 2.7f * 0.5f);
52 //float pdist = powr(dist, 2.7f * 0.5f);
55 v1 = mix(v1, v2, dist * 2.f);
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
H A Dartistic1.rs50 float dist = dot(xyDist, xyDist) * 1.4f;
51 float pdist = native_powr(dist, 2.7f * 0.5f);
52 //float pdist = powr(dist, 2.7f * 0.5f);
55 v1 = mix(v1, v2, dist * 2.f);
/frameworks/base/core/jni/android/graphics/
H A DPathMeasure.cpp93 static jboolean getPosTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray pos, jfloatArray tan) { argument
99 if (!pair->fMeasure.getPosTan(dist, (SkPoint*)posPtr, (SkVector*)tanPtr)) {
112 static jboolean getMatrix(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, argument
116 bool result = pair->fMeasure.getMatrix(dist, matrix, (SkPathMeasure::MatrixFlags)flags);
/frameworks/base/core/java/android/text/
H A DLayout.java1091 float dist = Math.abs(getPrimaryHorizontal(low) - horiz);
1097 if (other < dist) {
1098 dist = other;
1103 if (dist < bestdist) {
1104 bestdist = dist;
1109 float dist = Math.abs(getPrimaryHorizontal(here) - horiz);
1111 if (dist < bestdist) {
1112 bestdist = dist;
1117 float dist = Math.abs(getPrimaryHorizontal(max) - horiz);
1119 if (dist <
[all...]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
H A Dquantize.c332 Word32 dist; local
342 dist = 0;
391 dist = L_add(dist, distSingle);
439 dist = L_add(dist, distSingle);
444 return dist;
H A Dsf_estim.c149 Word32 *dist,
198 *dist = sfbDistBest;
220 *dist = sfbDistBest;
144 improveScf(Word32 *spec, Word16 sfbWidth, Word32 thresh, Word16 scf, Word16 minScf, Word32 *dist, Word16 *minScfCalculated) argument
/frameworks/base/core/java/android/util/
H A DMathUtils.java94 public static float dist(float x1, float y1, float x2, float y2) { method in class:MathUtils
100 public static float dist(float x1, float y1, float z1, float x2, float y2, float z2) { method in class:MathUtils
/frameworks/base/tools/layoutlib/bridge/tests/
H A DAndroid.mk38 $(call dist-for-goals, sdk win_sdk, $(LOCAL_INSTALLED_MODULE))
/frameworks/base/tools/layoutlib/create/tests/
H A DAndroid.mk32 $(call dist-for-goals, sdk win_sdk, $(LOCAL_INSTALLED_MODULE))
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DGestureUtils.java39 return MathUtils.dist(first.getX(pointerIndex), first.getY(pointerIndex),
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DEnableAccessibilityController.java186 final float firstPointerMove = MathUtils.dist(event.getX(0),
191 final float secondPointerMove = MathUtils.dist(event.getX(1),
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java766 int dist = 0;
773 && (dist = key.squaredDistanceFrom(x, y)) < mProximityThreshold)
778 if (dist < closestKeyDist) {
779 closestKeyDist = dist;
786 if (mDistances[j] > dist) {
794 mDistances[j + c] = dist;
1542 float dist = pastX[i] - oldestX;
1543 float vel = (dist/dur) * units; // pixels/frame.
1547 dist = pastY[i] - oldestY;
1548 vel = (dist/du
[all...]
/frameworks/base/core/java/android/widget/
H A DRemoteViewsAdapter.java682 int dist = Math.abs(i-pos);
683 if (dist > maxDistNotVisible && !visibleWindow.contains(i)) {
687 maxDistNotVisible = dist;
689 if (dist >= maxDist) {
693 maxDist = dist;
H A DCalendarViewLegacyDelegate.java970 int dist = child.getBottom() - mListScrollTopOffset;
971 if (dist > mListScrollTopOffset) {
973 mView.smoothScrollBy(dist - child.getHeight(),
976 mView.smoothScrollBy(dist, ADJUSTMENT_SCROLL_DURATION);
/frameworks/base/core/java/com/android/internal/widget/
H A DWaveView.java546 float dist = (float) Math.hypot(dx, dy);
547 if (dist <= getScaledGrabHandleRadius()) {
H A DLockPatternView.java1004 float dist = (float) Math.sqrt(diffX*diffX + diffY*diffY);
1005 float frac = dist/mSquareWidth;
/frameworks/base/core/jni/
H A DAndroid.mk192 external/sqlite/dist \

Completed in 520 milliseconds

12