Home
last modified time | relevance | path

Searched refs:y (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DPointerTracker.java277 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 …]
DMoreKeysKeyboardView.java130 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/
Dvaluetest.cpp86 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/
DredEyeMath.c38 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 …]
Dkmeans.h27 int x, y; in sum() local
33 for (y = 0; y < dimension; y++) { in sum()
34 dst[y] += values[x + y]; in sum()
126 int y; in findClosest() local
127 for (y = stride; y < pop_size; y+=stride) { in findClosest()
128 N l = euclideanDist <T, N>(values, oldCenters + y, dimension); in findClosest()
131 best_ind = y; in findClosest()
164 int y; in calculateNewCentroids() local
168 for (y = 0; y < dimension; y++) { in calculateNewCentroids()
169 if ((dst + x)[y] != (T) ((tmp + x)[y])) { in calculateNewCentroids()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java162 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/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DPoint.java21 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DSpline.java112 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 …]
DEclipseControl.java67 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 …]
DImageShow.java233 m.postTranslate(translate.x, translate.y); in getImageToScreenMatrix()
409 float y = point.y - maskH * maskScale; in drawImageAndAnimate() local
414 mShaderMatrix.preTranslate(-x + mImageBounds.left, -y + mImageBounds.top); in drawImageAndAnimate()
426 canvas.translate(x, y); in drawImageAndAnimate()
525 if (Math.abs(mTouch.y - mTouchDown.y) > Math.abs(mTouch.x - mTouchDown.x)) { in drawCompareImage()
536 py = mTouch.y - mImageBounds.top; in drawCompareImage()
553 if (mTouchDown.y - mTouch.y > 0) { in drawCompareImage()
566 canvas.drawLine(mImageBounds.left, mTouch.y, in drawCompareImage()
567 mImageBounds.right, mTouch.y, paint); in drawCompareImage()
635 mTouchDown.y = ey; in onTouchEvent()
[all …]
DGradControl.java84 public void setPoint2(float x, float y) { in setPoint2() argument
86 mPoint2Y = y; in setPoint2()
89 public void setPoint1(float x, float y) { in setPoint1() argument
91 mPoint1Y = y; in setPoint1()
94 public int getCloseHandle(float x, float y) { in getCloseHandle() argument
99 float dy = handley[i] - y; in getCloseHandle()
112 float dy = handley[i] - y; in getCloseHandle()
128 public void actionDown(float x, float y, Line line) { in actionDown() argument
130 x, y}; in actionDown()
140 public void actionMove(int handle, float x, float y, Line line) { in actionMove() argument
[all …]
/packages/apps/Camera2/jni/
Djpegutilnative.cpp88 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/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java86 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/modules/DnsResolver/
DDnsTlsServer.cpp42 static bool operator <(const in6_addr& x, const in6_addr& y) { in operator <() argument
45 std::begin(y.s6_addr), std::end(y.s6_addr)); in operator <()
48 static bool operator ==(const in6_addr& x, const in6_addr& y) { in operator ==() argument
51 std::begin(y.s6_addr), std::end(y.s6_addr)); in operator ==()
54 static bool operator <(const sockaddr_storage& x, const sockaddr_storage& y) { in operator <() argument
55 if (x.ss_family != y.ss_family) { in operator <()
56 return x.ss_family < y.ss_family; in operator <()
61 const sockaddr_in& y_sin = reinterpret_cast<const sockaddr_in&>(y); in operator <()
65 const sockaddr_in6& y_sin6 = reinterpret_cast<const sockaddr_in6&>(y); in operator <()
71 static bool operator ==(const sockaddr_storage& x, const sockaddr_storage& y) { in operator ==() argument
[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()
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/
DInputView.java74 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/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
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/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/
DPieRenderer.java122 listener.onPieOpened(center.x, center.y);
269 public void setCenter(int x, int y) { in setCenter() argument
271 center.y = y; in setCenter()
273 alignFocus(x, y); in setCenter()
309 int y = center.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, center.x, center.y); in onDraw()
397 canvas.rotate(r, center.x, center.y); in drawItem()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_utils.h64 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/
DGridOccupancy.java33 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/apps/Launcher3/src/com/android/launcher3/views/
DRecyclerViewFastScroller.java183 public void setThumbOffsetY(int y) { in setThumbOffsetY() argument
184 if (mThumbOffsetY == y) { in setThumbOffsetY()
187 updatePopupY((int) y); in setThumbOffsetY()
188 mThumbOffsetY = y; in setThumbOffsetY()
222 int y = (int) ev.getY() - offset.y; in handleTouchEvent() local
227 mDownY = mLastY = y; in handleTouchEvent()
235 if (isNearThumb(x, y)) { in handleTouchEvent()
240 updateFastScrollSectionNameAndThumbOffset(mLastY, y); in handleTouchEvent()
244 mLastY = y; in handleTouchEvent()
248 mIgnoreDragGesture |= Math.abs(y - mDownY) > mConfig.getScaledPagingTouchSlop(); in handleTouchEvent()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java56 float y = WALLPAPER_WIDTH_TO_SCREEN_RATIO_PORTRAIT - x * ASPECT_RATIO_PORTRAIT; in wallpaperTravelToScreenWidthRatio() local
57 return x * aspectRatio + y; in wallpaperTravelToScreenWidthRatio()
69 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultCropSurfaceSize()
70 int minDim = Math.max(minDims.x, minDims.y); in getDefaultCropSurfaceSize()
75 maxDim = Math.max(realSize.x, realSize.y); in getDefaultCropSurfaceSize()
76 minDim = Math.min(realSize.x, realSize.y); in getDefaultCropSurfaceSize()
108 if (inner.x > outer.x || inner.y > outer.y) { in calculateCenterPosition()
120 relativePosition.y = Math.round((outer.y - inner.y) / 2f); in calculateCenterPosition()
134 if (inner.x / (float) inner.y > outer.x / (float) outer.y) { in calculateMinZoom()
137 minZoom = inner.y / (float) outer.y; in calculateMinZoom()
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar10 :s��z^G�-��8��+�?�4��V��FIً�NR���?`3/e*x?V,iy��&��Q�����^I1��C�,|�}$ ��M+�х����,�.�|<C�s…
14 …�����+�ar� � f����Go�'�5���vb�E�%X_�k.�d�G�����n�����n@d}5NWH���L �y];�n�v�b��?��-�+'EB�…
19y@�pζwpn��ꔢ8��f�Ӆ�)e����4�g���&� 0��$�[V�*�5灑�D^@�`��f}���� �W�K���F�� 6����K�4�{.�{���c��;�…
26 …(��d]aRK�� ]��� K纫�|T�s�->^v���������D�6�B�j���;���YN��7��J�ͥ�y*%��3%�9y�F��M-�e�5~a 9Z�…
27 …Z?��F�D�=�t��>N��?�"�D6���P6f�u7/ac�(��������S::�n��'j's��;X�r��>����y�ڱ�6JcG�Ǥ�4f[R��셮��…
29 ��%^!N'\�8�~���{��f(��J�C�< :*ϸi%Xl�:��C�M�� �����y�ݭh��t���yE��@#gw���� �cr��?#�P�֬,`���/�…
30 …��6W` ~3&U��}���D�. �0�C���T ��U��kC��>#�Z�@]�AN��A��;Q�b1*G�DGAT& -��y�c#�F��B׶ӿ�����6�P�…
35 …����*�9T�\���j�wZ9��ǻP���{~8ج&z��ᝪw�V���7��������?�B���(��|���'��Ɔ%y��Q���|�F���*���mC�…
36 ,�e �Ċ���%^�~�G­ g���_��+��(����y����@
40 ql�zqV�a�rP�W���x#\N�r�S8�D��mX��E��1��)�F��9ZU�_���'���~��m�*Gc�c�$i�H�s���Ua�z�ׅ�C���y�…
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DTiledTexture.java139 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 …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DImageUtils.cpp192 int y,v,u, r, g, b; in yvu2rgb() local
201 y = (*yimg); in yvu2rgb()
205 if (y < 0) y = 0; in yvu2rgb()
206 if (y > 255) y = 255; in yvu2rgb()
212 b = (int) ( 1.164*(y - 16) + 2.018*(u-128)); in yvu2rgb()
213 g = (int) ( 1.164*(y - 16) - 0.813*(v-128) - 0.391*(u-128)); in yvu2rgb()
214 r = (int) ( 1.164*(y - 16) + 1.596*(v-128)); in yvu2rgb()
237 int y,v,u, r, g, b; in yvu2bgr() local
246 y = (*yimg); in yvu2bgr()
250 if (y < 0) y = 0; in yvu2bgr()
[all …]

12345678910>>...21