/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | PointerTracker.java | 277 final int y, final long eventTime, final boolean isKeyRepeat) { 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 …]
|
D | MoreKeysKeyboardView.java | 130 final int y = pointY - container.getMeasuredHeight() + container.getPaddingBottom() in showMoreKeysPanel() local 137 final int panelY = y + CoordinateUtils.y(mCoordinates); in showMoreKeysPanel() 142 mOriginY = y + container.getPaddingTop(); 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/test/unittest/ |
D | valuetest.cpp | 86 Value y(std::move(x)); in TEST() local 88 EXPECT_TRUE(y.IsArray()); in TEST() 89 EXPECT_EQ(4u, y.Size()); in TEST() 92 Value z = std::move(y); in TEST() 93 EXPECT_TRUE(y.IsNull()); in TEST() 102 Value y; in TEST() local 103 y = x; in TEST() 105 EXPECT_EQ(1234, y.GetInt()); in TEST() 107 y = 5678; in TEST() 108 EXPECT_TRUE(y.IsInt()); in TEST() [all …]
|
/packages/apps/Gallery2/jni/filters/ |
D | redEyeMath.c | 38 int y, x; in findPossible() local 40 for (y = 0; y < recH; y++) { in findPossible() 41 int sy = (recY + y) * iw; in findPossible() 48 mask[x + y * recW] = ( in findPossible() 49 mask[x + y * recW] > 0 && (value(r, g, b) > 240) ? 1 : 0); in findPossible() 59 int y, x; in findReds() local 61 for (y = 0; y < recH; y++) { in findReds() 62 int sy = (recY + y) * iw; in findReds() 66 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds() 76 int y, x; in dialateMaskIfRed() local [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | MatrixFit.java | 162 for (int y = 0; y < h; y++) { in gaussianElimination() 163 int maxrow = y; in gaussianElimination() 164 for (int y2 = y + 1; y2 < h; y2++) { // Find max pivot in gaussianElimination() 165 if (Math.abs(m[y2][y]) > Math.abs(m[maxrow][y])) { in gaussianElimination() 171 double t = m[y][i]; in gaussianElimination() 172 m[y][i] = m[maxrow][i]; in gaussianElimination() 176 if (Math.abs(m[y][y]) <= sEPS) { // Singular Matrix in gaussianElimination() 179 for (int y2 = y + 1; y2 < h; y2++) { // Eliminate column y in gaussianElimination() 180 double c = m[y2][y] / m[y][y]; in gaussianElimination() 181 for (int x = y; x < w; x++) { in gaussianElimination() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | Keyboard.java | 247 public int y; field in Keyboard.Key 323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() argument 327 this.y = y; in Key() 442 public boolean isInside(int x, int y) { in isInside() argument 449 && (y >= this.y || (topEdge && y <= this.y + this.height)) in isInside() 450 && (y < this.y + this.height || (bottomEdge && y >= this.y))) { in isInside() 465 public boolean isInside(int x, int y, int w, int h) { in isInside() argument 467 && (this.y <= (y + h)) && (y <= (this.y + this.height))) { in isInside() 480 public int squaredDistanceFrom(int x, int y) { in squaredDistanceFrom() argument 482 int yDist = this.y + height / 2 - y; in squaredDistanceFrom() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | Spline.java | 112 public void movePoint(int pick, float x, float y) { in movePoint() argument 118 point.y = y; 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() 165 curve[i] = 1.0f - points[0].y; in getAppliedCurve() 168 curve[i] = 1.0f - points[points.length - 1].y; in getAppliedCurve() 185 double y1 = cur.y; in getAppliedCurve() 186 double y2 = next.y; in getAppliedCurve() 198 double y = ta + tb + (delta2 / 6) * (tc + td); in getAppliedCurve() local [all …]
|
D | EclipseControl.java | 67 public void setRadius(float x, float y) { in setRadius() argument 69 mRadiusY = y; in setRadius() 72 public void setCenter(float x, float y) { in setCenter() argument 74 mCenterY = y; in setCenter() 77 public int getCloseHandle(float x, float y) { in getCloseHandle() argument 82 float dy = handley[i] - y; in getCloseHandle() 95 float dy = handley[i] - y; 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 …]
|
D | ImageShow.java | 232 m.postTranslate(translate.x, translate.y); in getImageToScreenMatrix() 408 float y = point.y - maskH * maskScale; in drawImageAndAnimate() local 413 mShaderMatrix.preTranslate(-x + mImageBounds.left, -y + mImageBounds.top); in drawImageAndAnimate() 425 canvas.translate(x, y); in drawImageAndAnimate() 524 if (Math.abs(mTouch.y - mTouchDown.y) > Math.abs(mTouch.x - mTouchDown.x)) { in drawCompareImage() 535 py = mTouch.y - mImageBounds.top; in drawCompareImage() 552 if (mTouchDown.y - mTouch.y > 0) { in drawCompareImage() 565 canvas.drawLine(mImageBounds.left, mTouch.y, in drawCompareImage() 566 mImageBounds.right, mTouch.y, paint); in drawCompareImage() 634 mTouchDown.y = ey; in onTouchEvent() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
D | PinnedHeaderListView.java | 165 windowTop = header.y + header.height; in onItemSelected() 167 windowBottom = header.y; in onItemSelected() 206 public void setHeaderPinnedAtTop(int viewIndex, int y, boolean animate) { in setHeaderPinnedAtTop() argument 210 header.y = y; in setHeaderPinnedAtTop() 224 public void setHeaderPinnedAtBottom(int viewIndex, int y, boolean animate) { in setHeaderPinnedAtBottom() argument 230 header.sourceY = header.y; in setHeaderPinnedAtBottom() 231 header.targetY = y; in setHeaderPinnedAtBottom() 232 } else if (animate && (header.y != y || !header.visible)) { in setHeaderPinnedAtBottom() 234 header.sourceY = header.y; in setHeaderPinnedAtBottom() 237 header.sourceY = y + header.height; in setHeaderPinnedAtBottom() [all …]
|
/packages/experimental/DreamTheater/src/com/android/dreamtheater/ |
D | BouncyDroid.java | 52 float y; field in BouncyDroid.BouncyView.World.Vec 54 x = y = 0; in Vec() 58 y = _y; 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() 279 if (mBody.p.y - mBody.r < 0) { in reset() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | PinnedHeaderListView.java | 86 int y; field in PinnedHeaderListView.PinnedHeader 219 windowTop = header.y + header.height; in onItemSelected() 221 windowBottom = header.y; in onItemSelected() 260 public void setHeaderPinnedAtTop(int viewIndex, int y, boolean animate) { in setHeaderPinnedAtTop() argument 264 header.y = y; in setHeaderPinnedAtTop() 278 public void setHeaderPinnedAtBottom(int viewIndex, int y, boolean animate) { in setHeaderPinnedAtBottom() argument 284 header.sourceY = header.y; in setHeaderPinnedAtBottom() 285 header.targetY = y; in setHeaderPinnedAtBottom() 286 } else if (animate && (header.y != y || !header.visible)) { in setHeaderPinnedAtBottom() 288 header.sourceY = header.y; in setHeaderPinnedAtBottom() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | TouchInterceptor.java | 120 int y = (int) ev.getY(); in onInterceptTouchEvent() local 121 int itemnum = pointToPosition(x, y); in onInterceptTouchEvent() 127 mDragPointY = y - item.getTop(); in onInterceptTouchEvent() 129 mYOffset = ((int) ev.getRawY()) - y; in onInterceptTouchEvent() 136 startDragging(bitmap, x, y); in onInterceptTouchEvent() 141 mUpperBound = Math.min(y - touchSlop, mHeight / 3); in onInterceptTouchEvent() 142 mLowerBound = Math.max(y + touchSlop, mHeight * 2 / 3); in onInterceptTouchEvent() 156 private int myPointToPosition(int x, int y) { in myPointToPosition() argument 157 if (y < 0) { in myPointToPosition() 160 int pos = myPointToPosition(x, y + mItemHeightNormal); in myPointToPosition() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | Point.java | 21 public float y; field in Point 24 public Point(float x, float y) { in Point() argument 26 this.y = y; in Point() 30 public Point(float x, float y, long timeOffsetNano) { in Point() argument 32 this.y = y; in Point() 42 return x == otherPoint.x && y == otherPoint.y; in equals() 48 result = 31 * result + (y != +0.0f ? Float.floatToIntBits(y) : 0); in hashCode() 53 return (float) Math.hypot(a.x - x, a.y - y); in dist() 61 return (a.x - x) * (b.y - y) - (a.y - y) * (b.x - x); in crossProduct() 69 return (a.x - x) * (b.x - x) + (a.y - y) * (b.y - y); in dotProduct()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 330 public void setGridSize(int x, int y) { in setGridSize() argument 332 mCountY = y; in setGridSize() 566 public void setFolderLeaveBehindCell(int x, int y) { in setFolderLeaveBehindCell() argument 568 mFolderLeaveBehindCell[1] = y; in setFolderLeaveBehindCell() 715 final int y = touchY + getScrollY(); in setTagToCellInfoForPoint() local 737 if (frame.contains(x, y)) { in setTagToCellInfoForPoint() 753 pointToCellExact(x, y, cellXY); in setTagToCellInfoForPoint() 806 void pointToCellExact(int x, int y, int[] result) { in pointToCellExact() argument 811 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact() 828 void pointToCellRounded(int x, int y, int[] result) { in pointToCellRounded() argument [all …]
|
/packages/apps/Camera2/jni/ |
D | jpegutilnative.cpp | 88 jbyte* y = (jbyte*)env->GetDirectBufferAddress(yBuf); in Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative() local 94 (unsigned char*)y, yPStride, yRStride, // in Java_com_android_camera_util_JpegUtilNative_compressJpegFromYUV420pNative() 128 for (int y = 0; y < height; y++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local 129 char* srcPtr = reinterpret_cast<char*>(&src[y * rStride]); in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 130 char* dstPtr = &dst[y * width]; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() 139 for (int y = 0; y < height; y++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local 141 int srcX = height - 1 - y; 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() 148 for (int y = 0; y < height; y++) { in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() local 151 int srcY = height - 1 - y; in Java_com_android_camera_util_JpegUtilNative_copyImagePlaneToBitmap() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 122 mListener.onPieOpened(mCenter.x, mCenter.y); 269 public void setCenter(int x, int y) { in setCenter() argument 271 mCenter.y = y; in setCenter() 273 alignFocus(x, y); in setCenter() 309 int y = mCenter.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems() local 311 item.setBounds(x, y, x + w, y + h); in layoutItems() 322 RectF bb = new RectF(center.x - outer, center.y - outer, center.x + outer, center.y + outer); in makeSlice() 323 RectF bbi = new RectF(center.x - inner, center.y - inner, center.x + inner, center.y + inner); in makeSlice() 369 canvas.scale(sf, sf, mCenter.x, mCenter.y); in onDraw() 397 canvas.rotate(r, mCenter.x, mCenter.y); in drawItem() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/camerafocus/ |
D | PieRenderer.java | 122 mListener.onPieOpened(mCenter.x, mCenter.y); 267 public void setCenter(int x, int y) { in setCenter() argument 269 mCenter.y = y; in setCenter() 271 alignFocus(x, y); in setCenter() 309 int y = mCenter.y - (int) (r * Math.sin(angle)) - h / 2; in layoutItems() local 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() 325 center.y + outer); in makeSlice() 327 new RectF(center.x - inner, center.y - inner, center.x + inner, in makeSlice() 328 center.y + inner); in makeSlice() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | GestureStrokeRecognitionPoints.java | 112 public void addDownEventPoint(final int x, final int y, final int elapsedTimeSinceFirstDown, in addDownEventPoint() argument 124 addEventPoint(x, y, elapsedTimeSinceFirstDown, true /* isMajorEvent */); in addDownEventPoint() 184 final int y = mYCoordinates.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() 219 mYCoordinates.add(y); in appendPoint() 222 private void updateMajorEvent(final int x, final int y, final int time) { in updateMajorEvent() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | InputView.java | 74 final int y = (int)me.getY(index) + rect.top; in onInterceptTouchEvent() local 78 if (mKeyboardTopPaddingForwarder.onInterceptTouchEvent(x, y, me)) { in onInterceptTouchEvent() 85 if (mMoreSuggestionsViewCanceler.onInterceptTouchEvent(x, y, me)) { in onInterceptTouchEvent() 104 final int y = (int)me.getY(index) + rect.top; in onTouchEvent() local 105 return mActiveForwarder.onTouchEvent(x, y, me); in onTouchEvent() 130 protected abstract boolean needsToForward(final int x, final int y); in needsToForward() argument 138 protected int translateY(final int y) { in translateY() argument 139 return y - mEventReceivingRect.top; in translateY() 150 public boolean onInterceptTouchEvent(final int x, final int y, final MotionEvent me) { in onInterceptTouchEvent() argument 158 if (!mEventSendingRect.contains(x, y)) { in onInterceptTouchEvent() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_utils.h | 64 const int y = inputYCoordinates[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 97 const float ray1y = y - y1; in pointToLineSegSquaredDistanceFloat() 106 return getSquaredDistanceFloat(x, y, x1, y1); in pointToLineSegSquaredDistanceFloat() 122 return getSquaredDistanceFloat(x, y, projectionX, projectionY); in pointToLineSegSquaredDistanceFloat() 134 const int y) { in isOnKey() argument 140 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom; in isOnKey() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | GridOccupancy.java | 33 for (int y = 0; (y + spanY) <= mCountY; y++) { in findVacantCell() 35 boolean available = !cells[x][y]; in findVacantCell() 38 for (int j = y; j < y + spanY; j++) { in findVacantCell() 45 vacantOut[1] = y; in findVacantCell() 61 public boolean isRegionVacant(int x, int y, int spanX, int spanY) { in isRegionVacant() argument 63 int y2 = y + spanY - 1; in isRegionVacant() 64 if (x < 0 || y < 0 || x2 >= mCountX || y2 >= mCountY) { in isRegionVacant() 68 for (int j = y; j <= y2; j++) { in isRegionVacant() 80 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { in markCells() 81 cells[x][y] = value; in markCells()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | InputPointersTests.java | 57 final int y = i * 2; in testAdd() local 60 src.addPointer(x, y, pointerId, time); in testAdd() 65 final int y = i * 2; in testAdd() local 69 assertEquals("yCoordinates at " + i, y, src.getYCoordinates()[i]); in testAdd() 80 final int y = i * 2; in testAddAt() local 83 src.addPointerAt(i, x, y, pointerId, time); in testAddAt() 88 final int y = i * 2; in testAddAt() local 92 assertEquals("yCoordinates at " + i, y, src.getYCoordinates()[i]); in testAddAt() 103 final int y = i * 2; in testSet() local 106 src.addPointer(x, y, pointerId, time); in testSet() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | TiledTexture.java | 139 int y = BORDER_SIZE - offsetY; in onGetBitmap() local 141 int b = localBitmapRef.getHeight() + y; in onGetBitmap() 142 sCanvas.drawBitmap(localBitmapRef, x, y, sBitmapPaint); in onGetBitmap() 147 if (y > 0) sCanvas.drawLine(0, y - 1, TILE_SIZE, y - 1, sPaint); in onGetBitmap() 208 for (int y = 0, h = mHeight; y < h; y += CONTENT_SIZE) { in TiledTexture() 211 tile.offsetY = y; in TiledTexture() 215 Math.min(CONTENT_SIZE, mHeight - y)); in TiledTexture() 266 RectF src, float x0, float y0, float x, float y, float scaleX, in mapRect() argument 269 y + (src.top - y0) * scaleY, in mapRect() 271 y + (src.bottom - y0) * scaleY); in mapRect() [all …]
|
D | GLES11Canvas.java | 175 public void drawRect(float x, float y, float width, float height, GLPaint paint) { in drawRect() argument 182 translate(x, y); in drawRect() 211 public void fillRect(float x, float y, float width, float height, int color) { in fillRect() argument 216 translate(x, y); in fillRect() 227 public void translate(float x, float y, float z) { in translate() argument 228 Matrix.translateM(mMatrixValues, 0, x, y, z); in translate() 235 public void translate(float x, float y) { in translate() argument 237 m[12] += m[0] * x + m[4] * y; in translate() 238 m[13] += m[1] * x + m[5] * y; in translate() 239 m[14] += m[2] * x + m[6] * y; in translate() [all …]
|