Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 462) sorted by relevance

12345678910>>...19

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dvaluetest.cpp22 Value x; in TEST() local
23 EXPECT_EQ(kNullType, x.GetType()); in TEST()
24 EXPECT_TRUE(x.IsNull()); in TEST()
79 Value x((Value(kArrayType))); in TEST()
80 x.Reserve(4u, allocator); in TEST()
81 x.PushBack(1, allocator).PushBack(2, allocator).PushBack(3, allocator).PushBack(4, allocator); in TEST()
82 EXPECT_TRUE(x.IsArray()); in TEST()
83 EXPECT_EQ(4u, x.Size()); in TEST()
86 Value y(std::move(x)); in TEST()
87 EXPECT_TRUE(x.IsNull()); in TEST()
[all …]
Dstringbuffertest.cpp110 StringBuffer x; in TEST() local
111 x.Put('A'); in TEST()
112 x.Put('B'); in TEST()
113 x.Put('C'); in TEST()
114 x.Put('D'); in TEST()
116 EXPECT_EQ(4u, x.GetSize()); in TEST()
117 EXPECT_STREQ("ABCD", x.GetString()); in TEST()
120 StringBuffer y(std::move(x)); in TEST()
121 EXPECT_EQ(0u, x.GetSize()); in TEST()
133 StringBuffer x; in TEST() local
[all …]
/packages/apps/Gallery2/jni/filters/
Dkmeans.h27 int x, y; in sum() local
29 for (x = 0; x < dimension; x++) { in sum()
30 dst[x] = 0; in sum()
32 for (x = 0; x < len; x+= stride) { in sum()
34 dst[y] += values[x + y]; in sum()
41 int x; in set() local
42 for (x = 0; x < dimension; x++) { in set()
43 val1[x] = val2[x]; in set()
49 int x; in add() local
50 for (x = 0; x < dimension; x++) { in add()
[all …]
DredEyeMath.c36 int y, x; in findPossible() local
40 for (x = 0; x < recW; x++) { in findPossible()
41 int p = (recX + x + sy) * 4; in findPossible()
46 mask[x + y * recW] = ( in findPossible()
47 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible()
57 int y, x; in findReds() local
61 for (x = 0; x < recW; x++) { in findReds()
62 int p = (recX + x + sy) * 4; in findReds()
64 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds()
74 int y, x; in dialateMaskIfRed() local
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities.h61 inline int db_roundi (double x) { in db_roundi() argument
66 fld x; in db_roundi() local
71 return static_cast<int>(floor(x+0.5)); in db_roundi()
156 inline double db_sign(double x) in db_sign() argument
158 if(x>=0.0) return(1.0); in db_sign()
225 inline double db_CubRoot(double x) in db_CubRoot() argument
227 if(x>=0.0) return(pow(x,1.0/3.0)); in db_CubRoot()
228 else return(-pow(-x,1.0/3.0)); in db_CubRoot()
233 inline double db_SquareSum3(const double x[3]) in db_SquareSum3()
235 return(db_sqr(x[0])+db_sqr(x[1])+db_sqr(x[2])); in db_SquareSum3()
[all …]
Ddb_utilities_linalg.cpp102 void db_CholeskyBacksub(double *x,const double * const *A,const double *d,int n,const double *b) in db_CholeskyBacksub() argument
109 for(s=b[i],k=i-1;k>=0;k--) s-=A[i][k]*x[k]; in db_CholeskyBacksub()
110 x[i]=db_SafeDivision(s,d[i]); in db_CholeskyBacksub()
114 for(s=x[i],k=i+1;k<n;k++) s-=A[k][i]*x[k]; in db_CholeskyBacksub()
115 x[i]=db_SafeDivision(s,d[i]); in db_CholeskyBacksub()
145 void db_CholeskyBacksub3x3(double x[3],const double A[9],const double d[3],const double b[3]) in db_CholeskyBacksub3x3()
148 x[0]=db_SafeDivision(b[0],d[0]); in db_CholeskyBacksub3x3()
149 x[1]=db_SafeDivision((b[1]-A[3]*x[0]),d[1]); in db_CholeskyBacksub3x3()
150 x[2]=db_SafeDivision((b[2]-A[6]*x[0]-A[7]*x[1]),d[2]); in db_CholeskyBacksub3x3()
151 x[2]=db_SafeDivision(x[2],d[2]); in db_CholeskyBacksub3x3()
[all …]
Ddb_metrics.h119 …double db_SquaredReprojectionErrorHomography(const double y[2],const double H[9],const double x[3]) in db_SquaredReprojectionErrorHomography()
124 x0=H[0]*x[0]+H[1]*x[1]+H[2]*x[2]; in db_SquaredReprojectionErrorHomography()
125 x1=H[3]*x[0]+H[4]*x[1]+H[5]*x[2]; in db_SquaredReprojectionErrorHomography()
126 x2=H[6]*x[0]+H[7]*x[1]+H[8]*x[2]; in db_SquaredReprojectionErrorHomography()
133 …double db_SquaredInhomogenousHomographyError(const double y[2],const double H[9],const double x[2]) in db_SquaredInhomogenousHomographyError()
138 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in db_SquaredInhomogenousHomographyError()
139 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in db_SquaredInhomogenousHomographyError()
140 x2=H[6]*x[0]+H[7]*x[1]+H[8]; in db_SquaredInhomogenousHomographyError()
153 …uble db_ExpCauchyInhomogenousHomographyError(const double y[2],const double H[9],const double x[2], in db_ExpCauchyInhomogenousHomographyError()
157 sd=db_SquaredInhomogenousHomographyError(y,H,x); in db_ExpCauchyInhomogenousHomographyError()
[all …]
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java30 private static void check(boolean x, String s) { in check() argument
31 if (!x) throw new AssertionFailedError(s); in check()
35 private static void checkEq(BoundedRational x, CR y, String s) { in checkEq() argument
36 check(x.CRValue().compareTo(y, TEST_PREC) == 0, s); in checkEq()
38 private static void checkWeakEq(BoundedRational x, CR y, String s) { in checkWeakEq() argument
39 if (x != null) checkEq(x, y, s); in checkWeakEq()
59 private static CR toRadians(CR x) { in toRadians() argument
60 return x.multiply(RADIANS_PER_DEGREE); in toRadians()
63 private static CR fromRadians(CR x) { in fromRadians() argument
64 return x.multiply(DEGREES_PER_RADIAN); in fromRadians()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java276 private void callListenerOnCodeInput(final Key key, final int primaryCode, final int x, in callListenerOnCodeInput() argument
284 Log.d(TAG, String.format("[%d] onCodeInput: %4d %4d %s%s%s", mPointerId, x, y, in callListenerOnCodeInput()
298 sListener.onCodeInput(code, x, y, isKeyRepeat); in callListenerOnCodeInput()
381 public Key getKeyOn(final int x, final int y) { in getKeyOn() argument
382 return mKeyDetector.detectHitKey(x, y); in getKeyOn()
472 private Key onDownKey(final int x, final int y, final long eventTime) { in onDownKey() argument
474 CoordinateUtils.set(mDownCoordinates, x, y); in onDownKey()
476 return onMoveToNewKey(onMoveKeyInternal(x, y), x, y); in onDownKey()
483 private Key onMoveKeyInternal(final int x, final int y) { in onMoveKeyInternal() argument
484 mBogusMoveEventDetector.onMoveKey(getDistance(x, y, mLastX, mLastY)); in onMoveKeyInternal()
[all …]
DMoreKeysKeyboardView.java129 final int x = pointX - getDefaultCoordX() - container.getPaddingLeft() - getPaddingLeft(); in showMoreKeysPanel() local
136 final int panelX = Math.max(0, Math.min(maxX, x)) + CoordinateUtils.x(mCoordinates); in showMoreKeysPanel()
141 mOriginX = x + container.getPaddingLeft(); in showMoreKeysPanel()
159 public void onDownEvent(final int x, final int y, final int pointerId, final long eventTime) { in onDownEvent() argument
161 mCurrentKey = detectKey(x, y); in onDownEvent()
165 public void onMoveEvent(final int x, final int y, final int pointerId, final long eventTime) { in onMoveEvent() argument
170 mCurrentKey = detectKey(x, y); in onMoveEvent()
178 public void onUpEvent(final int x, final int y, final int pointerId, final long eventTime) { in onUpEvent() argument
184 mCurrentKey = detectKey(x, y); in onUpEvent()
187 onKeyInput(mCurrentKey, x, y); in onUpEvent()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Drapidjson.h50 #define RAPIDJSON_STRINGIFY(x) RAPIDJSON_DO_STRINGIFY(x) argument
51 #define RAPIDJSON_DO_STRINGIFY(x) #x argument
245 #define RAPIDJSON_ALIGN(x) (((x) + static_cast<uint64_t>(7u)) & ~static_cast<uint64_t>(7u)) argument
247 #define RAPIDJSON_ALIGN(x) (((x) + 3u) & ~3u) argument
344 #define RAPIDJSON_ASSERT(x) assert(x) argument
354 template <bool x> struct STATIC_ASSERTION_FAILURE;
356 template<int x> struct StaticAssertTest {};
375 #define RAPIDJSON_STATIC_ASSERT(x) \
377 sizeof(::RAPIDJSON_NAMESPACE::STATIC_ASSERTION_FAILURE<bool(x) >)> \
391 #define RAPIDJSON_VERSION_CODE(x,y,z) \
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java112 public void movePoint(int pick, float x, float y) { in movePoint() argument
117 point.x = x; in movePoint()
126 if (mPoints.elementAt(0).x != 0 || mPoints.elementAt(0).y != 1) { in isOriginal()
129 if (mPoints.elementAt(1).x != 1 || mPoints.elementAt(1).y != 0) { in isOriginal()
153 points[i] = new ControlPoint(p.x, p.y); in getAppliedCurve()
158 if (points[0].x != 0) { in getAppliedCurve()
159 start = (int) (points[0].x * 256); in getAppliedCurve()
161 if (points[points.length - 1].x != 1) { in getAppliedCurve()
162 end = (int) (points[points.length - 1].x * 256); in getAppliedCurve()
173 double x = i / 256.0; in getAppliedCurve() local
[all …]
DEclipseControl.java67 public void setRadius(float x, float y) { in setRadius() argument
68 mRadiusX = x; in setRadius()
72 public void setCenter(float x, float y) { in setCenter() argument
73 mCenterX = x; in setCenter()
77 public int getCloseHandle(float x, float y) { in getCloseHandle() argument
81 float dx = handlex[i] - x; in getCloseHandle()
94 float dx = handlex[i] - x; in getCloseHandle()
111 public void actionDown(float x, float y, Oval oval) { in actionDown() argument
113 x, y}; in actionDown()
124 public void actionMove(int handle, float x, float y, Oval oval) { in actionMove() argument
[all …]
DControlPoint.java20 public float x; field in ControlPoint
24 x = px; in ControlPoint()
29 x = point.x; in ControlPoint()
41 if (Float.floatToIntBits(x) != Float.floatToIntBits(other.x)) { in sameValues()
51 return new ControlPoint(x, y); in copy()
57 if (p.x < x) { in compareTo()
59 } else if (p.x > x) { in compareTo()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java79 float x, tx, coef;
81 x = x_min + (x_max - x_min) / 2.0f;
82 coef = 3.0f * x * (1.0f - x);
83 tx = coef * ((1.0f - x) * START_TENSION + x * END_TENSION) + x * x * x;
85 if (tx > t) x_max = x;
86 else x_min = x;
88 final float d = coef + x * x * x;
258 float x = timePassed * mDurationReciprocal; in computeScrollOffset() local
261 x = viscousFluid(x); in computeScrollOffset()
263 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java89 float x, tx, coef;
91 x = x_min + (x_max - x_min) / 2.0f;
92 coef = 3.0f * x * (1.0f - x);
93 tx = coef * ((1.0f - x) * P1 + x * P2) + x * x * x;
95 if (tx > alpha) x_max = x;
96 else x_min = x;
98 SPLINE_POSITION[i] = coef * ((1.0f - x) * START_TENSION + x) + x * x * x;
287 float x = timePassed * mDurationReciprocal; in computeScrollOffset() local
290 x = viscousFluid(x); in computeScrollOffset()
292 x = mInterpolator.getInterpolation(x); in computeScrollOffset()
[all …]
DBaseRecyclerViewFastScrollBar.java107 public void setThumbOffset(int x, int y) { in setThumbOffset() argument
108 if (mThumbOffset.x == x && mThumbOffset.y == y) { in setThumbOffset()
111 mInvalidateRect.set(mThumbOffset.x - mThumbCurvature, mThumbOffset.y, in setThumbOffset()
112 mThumbOffset.x + mThumbWidth, mThumbOffset.y + mThumbHeight); in setThumbOffset()
113 mThumbOffset.set(x, y); in setThumbOffset()
115 mInvalidateRect.union(mThumbOffset.x - mThumbCurvature, mThumbOffset.y, in setThumbOffset()
116 mThumbOffset.x + mThumbWidth, mThumbOffset.y + mThumbHeight); in setThumbOffset()
126 mInvalidateRect.set(mThumbOffset.x - mThumbCurvature, mThumbOffset.y, in setThumbWidth()
127 mThumbOffset.x + mThumbWidth, mThumbOffset.y + mThumbHeight); in setThumbWidth()
130 mInvalidateRect.union(mThumbOffset.x - mThumbCurvature, mThumbOffset.y, in setThumbWidth()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DKeyboard.java245 public int x; field in Keyboard.Key
323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() argument
326 this.x = x; in Key()
344 this.x += gap; in Key()
442 public boolean isInside(int x, int y) { in isInside() argument
447 if ((x >= this.x || (leftEdge && x <= this.x + this.width)) in isInside()
448 && (x < this.x + this.width || (rightEdge && x >= this.x)) in isInside()
465 public boolean isInside(int x, int y, int w, int h) { in isInside() argument
466 if ((this.x <= (x + w)) && (x <= (this.x + this.width)) in isInside()
480 public int squaredDistanceFrom(int x, int y) { in squaredDistanceFrom() argument
[all …]
/packages/experimental/DreamTheater/src/com/android/dreamtheater/
DBouncyDroid.java51 float x; field in BouncyDroid.BouncyView.World.Vec
54 x = y = 0; in Vec()
57 x = _x; in Vec()
61 return new Vec(x + v.x, y + v.y); in add()
64 return new Vec(x * a, y * a); in mul()
67 return new Vec(x - v.x, y - v.y); in sub()
70 return (float) Math.hypot(x, y); in mag()
74 return new Vec(x*k, y*k); in norm()
77 return "(" + x + "," + y + ")"; in toString()
272 if (mBody.p.x - mBody.r < 0) { in reset()
[all …]
/packages/apps/Camera2/jni/
Djpegutilnative.cpp131 for (int x = 0; x < width; x++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local
140 for (int x = 0; x < width; x++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local
142 int srcY = x; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
143 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
149 for (int x = 0; x < width; x++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local
150 int srcX = width - 1 - x; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
152 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
158 for (int x = 0; x < width; x++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local
160 int srcY = width - 1 - x; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
161 dst[y * width + x] = src[srcX * pStride + rStride * srcY]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryHistoryChart.java86 void addTick(int x, int bin) { in addTick() argument
88 mTicks[mNumTicks] = (x&CHART_DATA_X_MASK) | (bin<<CHART_DATA_BIN_SHIFT); in addTick()
105 int x = tick&CHART_DATA_X_MASK; in draw() local
108 canvas.drawRect(lastX, top, x, bottom, mPaints[lastBin]); in draw()
111 lastX = x; in draw()
325 final int x; field in BatteryHistoryChart.TimeLabel
329 TimeLabel(TextPaint paint, int x, Calendar cal, boolean use24hr) { in TimeLabel() argument
330 this.x = x; in TimeLabel()
339 final int x; field in BatteryHistoryChart.DateLabel
343 DateLabel(TextPaint paint, int x, Calendar cal, boolean dayFirst) { in DateLabel() argument
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/
DPieRenderer.java122 mListener.onPieOpened(mCenter.x, mCenter.y);
267 public void setCenter(int x, int y) { in setCenter() argument
268 mCenter.x = x; in setCenter()
271 alignFocus(x, y); in setCenter()
308 int x = (int) (r * Math.cos(angle)); in layoutItems() local
310 x = mCenter.x + x - w / 2; in layoutItems()
311 item.setBounds(x, y, x + w, y + h); in layoutItems()
324 new RectF(center.x - outer, center.y - outer, center.x + outer, in makeSlice()
327 new RectF(center.x - inner, center.y - inner, center.x + inner, in makeSlice()
368 canvas.scale(sf, sf, mCenter.x, mCenter.y); in onDraw()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureStrokeRecognitionPoints.java112 public void addDownEventPoint(final int x, final int y, final int elapsedTimeSinceFirstDown, in addDownEventPoint() argument
124 addEventPoint(x, y, elapsedTimeSinceFirstDown, true /* isMajorEvent */); in addDownEventPoint()
183 final int x = mXCoordinates.get(lastIndex); in duplicateLastPointWith() local
187 x, y, time)); in duplicateLastPointWith()
190 appendPoint(x, y, time); in duplicateLastPointWith()
191 updateIncrementalRecognitionSize(x, y, time); in duplicateLastPointWith()
206 private void appendPoint(final int x, final int y, final int time) { in appendPoint() argument
213 x, y, time, mXCoordinates.get(lastIndex), mYCoordinates.get(lastIndex), in appendPoint()
218 mXCoordinates.add(x); in appendPoint()
222 private void updateMajorEvent(final int x, final int y, final int time) { in updateMajorEvent() argument
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h63 const int x = inputXCoordinates[i]; in initializeProximities() local
68 keyCount, x, y, primaryKey, locale, codeToKeyMap, proximities); in initializeProximities()
84 static AK_FORCE_INLINE int getStartIndexFromCoordinates(const int x, const int y, in getStartIndexFromCoordinates() argument
86 return ((y / cellHeight) * gridWidth + (x / cellWidth)) * MAX_PROXIMITY_CHARS_SIZE; in getStartIndexFromCoordinates()
94 static inline float pointToLineSegSquaredDistanceFloat(const float x, const float y, in pointToLineSegSquaredDistanceFloat() argument
96 const float ray1x = x - x1; in pointToLineSegSquaredDistanceFloat()
106 return getSquaredDistanceFloat(x, y, x1, y1); in pointToLineSegSquaredDistanceFloat()
122 return getSquaredDistanceFloat(x, y, projectionX, projectionY); in pointToLineSegSquaredDistanceFloat()
133 const int *const keyWidths, const int *keyHeights, const int keyId, const int x, in isOnKey() argument
140 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom; in isOnKey()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DGeometry.h34 inline void ClipRect(double x, double y, BlendRect &brect) in ClipRect() argument
38 if (x < brect.lft) brect.lft = x; in ClipRect()
39 if (x > brect.rgt) brect.rgt = x; in ClipRect()
51 inline void clipToSegment(int &x, int width, int border) in clipToSegment() argument
53 if(x < -border) in clipToSegment()
54 x = -border; in clipToSegment()
55 else if(x >= width+border) in clipToSegment()
56 x = width + border - 1; in clipToSegment()
60 inline bool inSegment(int x, int width, int border) in inSegment() argument
62 return (x >= -border && x < width + border - 1); in inSegment()
[all …]

12345678910>>...19