/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/geojsontz_to_tzs2polygons/data/ |
D | Europe_London_tzs2polygons.prototxt | 11 y: -0.1298231568626014 16 y: -0.12984512328259235 21 y: -0.12983420904228055 26 y: -0.12979382524767732 31 y: -0.12971202740695995 36 y: -0.1295776720810083 41 y: -0.12940955052494219 46 y: -0.1292260205066671 51 y: -0.12898470872059348 56 y: -0.12866389885227902 [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/output_polygons/ |
D | America_Argentina_Buenos_Aires_tzs2polygons.prototxt | 11 y: -0.03464153862048509 16 y: -0.03464202315683241 21 y: -0.03463268787337156 26 y: -0.034632086330221586 31 y: -0.03463015051002887 36 y: -0.03462936766978214 41 y: -0.034627842463849735 46 y: -0.03462687395475013 51 y: -0.034625764392363985 56 y: -0.03462505324154849 [all …]
|
D | Europe_London_tzs2polygons.prototxt | 11 y: -0.03464153862048509 16 y: -0.03464202315683241 21 y: -0.03463268787337156 26 y: -0.034632086330221586 31 y: -0.03463015051002887 36 y: -0.03462936766978214 41 y: -0.034627842463849735 46 y: -0.03462687395475013 51 y: -0.034625764392363985 56 y: -0.03462505324154849 [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/canonicalizetzs2polygons/data/input_polygons/ |
D | GB_tzs2polygons.prototxt | 11 y: -0.03464153862048509 16 y: -0.03464202315683241 21 y: -0.03463268787337156 26 y: -0.034632086330221586 31 y: -0.03463015051002887 36 y: -0.03462936766978214 41 y: -0.034627842463849735 46 y: -0.03462687395475013 51 y: -0.034625764392363985 56 y: -0.03462505324154849 [all …]
|
D | America_Argentina_Cordoba_tzs2polygons.prototxt | 11 y: -0.03464153862048509 16 y: -0.03464202315683241 21 y: -0.03463268787337156 26 y: -0.034632086330221586 31 y: -0.03463015051002887 36 y: -0.03462936766978214 41 y: -0.034627842463849735 46 y: -0.03462687395475013 51 y: -0.034625764392363985 56 y: -0.03462505324154849 [all …]
|
D | America_Argentina_Ushuaia_tzs2polygons.prototxt | 11 y: 0.6964200338753619 16 y: 0.6961481040223456 21 y: 0.6961418168276374 26 y: 0.6961154567238944 31 y: 0.6957878435572322 36 y: 0.695483039187388 41 y: 0.695406194582332 46 y: 0.6951916993756317 51 y: 0.6948911107010739 56 y: 0.6943257710172712 [all …]
|
/packages/modules/GeoTZ/data_pipeline/src/test/java/com/android/timezone/location/data_pipeline/steps/tzs2polygons_tzs2cellunions/data/ |
D | Pacific_Pitcairn_tzs2polygons.prototxt | 11 y: -0.7456097317053085 16 y: -0.745586429007556 21 y: -0.7455868298178624 26 y: -0.7456062788133467 31 y: -0.7456441302136682 36 y: -0.7457292643816159 41 y: -0.7458007537025455 46 y: -0.7458780314584632 51 y: -0.7459656011414475 56 y: -0.7460607802346944 [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/board/ |
D | CellLayoutBoard.java | 62 for (int y = 0; y < mWidget[0].length; y++) { in CellLayoutBoard() 63 mWidget[x][y] = CellType.EMPTY; in CellLayoutBoard() 73 for (int y = 0; y < mWidget[0].length; y++) { in CellLayoutBoard() 74 mWidget[x][y] = CellType.EMPTY; in CellLayoutBoard() 79 public boolean pointInsideRect(int x, int y, WidgetRect rect) { in pointInsideRect() argument 81 Boolean isYInRect = y >= rect.getCellY() && y < rect.getCellY() + rect.getSpanY(); in pointInsideRect() 86 return getWidgetAt(p.x, p.y); 94 public WidgetRect getWidgetAt(int x, int y) { in getWidgetAt() argument 96 .filter(widgetRect -> pointInsideRect(x, y, widgetRect)).findFirst().orElse(null); in getWidgetAt() 139 int y = iconPoint.coord.y; in removeOverlappingItems() [all …]
|
/packages/modules/Bluetooth/system/gd/security/ecc/ |
D | multipoint_test.cc | 44 p.y[7] = 0xdc809c49; in TEST() 45 p.y[6] = 0x652aeb6d; in TEST() 46 p.y[5] = 0x63329abf; in TEST() 47 p.y[4] = 0x5a52155c; in TEST() 48 p.y[3] = 0x766345c2; in TEST() 49 p.y[2] = 0x8fed3024; in TEST() 50 p.y[1] = 0x741c8ed0; in TEST() 51 p.y[0] = 0x1589d28b; in TEST() 65 p.y[7] = 0x91951218; in TEST() 66 p.y[6] = 0x3898dfbe; in TEST() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/utils/ |
D | ImsMediaImageRotate.cpp | 23 uint16_t x, y; in YUV420_Planar_Rotate90_Flip() local 29 for (y = 0; y < nSrcWidth; y++) in YUV420_Planar_Rotate90_Flip() 31 srcIdx = y; in YUV420_Planar_Rotate90_Flip() 47 for (y = 0; y < nSrcWidth; y++) in YUV420_Planar_Rotate90_Flip() 49 srcIdx = size + y; in YUV420_Planar_Rotate90_Flip() 65 uint16_t x, y, nDstWidth = nSrcHeight, nDstHt = nSrcWidth, nPadWidth = outputStride - nDstWidth; in YUV420_SP_Rotate90() local 84 for (y = 0; y < nSrcWidth; y++) in YUV420_SP_Rotate90() 87 srcIdx = nSrcWidth - y - 1; in YUV420_SP_Rotate90() 101 for (y = 0; y < nSrcWidth; y++) in YUV420_SP_Rotate90() 104 srcIdx = (nSrcWidth - y - 1) * 2; in YUV420_SP_Rotate90() [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/modules/Uwb/service/java/com/android/server/uwb/correction/math/ |
D | Quaternion.java | 62 public final float y; field in Quaternion 70 float x = v[0], y = v[1], z = v[2], w = v[3]; in Quaternion() local 72 float norm = x * x + y * y + z * z + w * w; in Quaternion() 75 this.y = y * norm; in Quaternion() 80 public Quaternion(float x, float y, float z, float w) { in Quaternion() argument 81 float norm = x * x + y * y + z * z + w * w; in Quaternion() 84 this.y = y * norm; in Quaternion() 96 return new Quaternion(sin * a.x, sin * a.y, sin * a.z, cos); in axisAngle() 122 float x, y, z, w; in fromMatrix() local 138 y = (matrix.data[8] - matrix.data[2]) * traceRoot; in fromMatrix() [all …]
|
D | Vector3.java | 35 public final float y; field in Vector3 44 y = 0; in Vector3() 55 public Vector3(float x, float y, float z) { in Vector3() argument 57 this.y = y; in Vector3() 64 return String.format(Locale.getDefault(), "[% 5.1f,% 5.1f,% 5.1f]", x, y, z); in toString() 76 result = new Vector3(x * norm, y * norm, z * norm); in normalized() 84 return new Vector3(x * a, y * a, z * a); in scaled() 90 return new Vector3(x + rhs.x, y + rhs.y, z + rhs.z); in add() 100 return new Vector3(x - rhs.x, y - rhs.y, z - rhs.z); in subtract() 108 return new Vector3(x * rhs.x, y * rhs.y, z * rhs.z); in multiply() [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/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/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%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 …]
|
/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() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/ |
D | CropSizeUtil.kt | 44 if (x <= point.x && y <= point.y) { in Rect() 46 if (abs(x - point.x) <= abs(y - point.y)) { in Rect() 49 point.y.toFloat() / y in Rect() 51 } else if (x > point.x && y > point.y) { in Rect() 53 if (abs(x - point.x) >= abs(y - point.y)) { in Rect() 56 point.y.toFloat() / y in Rect() 63 point.y.toFloat() / y in Rect() 67 return PointF(x * ratio, y * ratio) in Rect() 75 val parallax = cropRect.width() - displaySize.x * cropRect.height() / displaySize.y in fitCropRectToLayoutDirection()
|
/packages/modules/DnsResolver/ |
D | DnsTlsServer.cpp | 45 static bool operator <(const in6_addr& x, const in6_addr& y) { in operator <() argument 48 std::begin(y.s6_addr), std::end(y.s6_addr)); in operator <() 51 static bool operator ==(const in6_addr& x, const in6_addr& y) { in operator ==() argument 54 std::begin(y.s6_addr), std::end(y.s6_addr)); in operator ==() 57 static bool operator <(const sockaddr_storage& x, const sockaddr_storage& y) { in operator <() argument 58 if (x.ss_family != y.ss_family) { in operator <() 59 return x.ss_family < y.ss_family; in operator <() 64 const sockaddr_in& y_sin = reinterpret_cast<const sockaddr_in&>(y); in operator <() 68 const sockaddr_in6& y_sin6 = reinterpret_cast<const sockaddr_in6&>(y); in operator <() 74 static bool operator ==(const sockaddr_storage& x, const sockaddr_storage& y) { in operator ==() 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/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 …]
|
/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/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/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 64 float y = WALLPAPER_WIDTH_TO_SCREEN_RATIO_PORTRAIT - x * ASPECT_RATIO_PORTRAIT; in wallpaperTravelToScreenWidthRatio() local 65 return x * aspectRatio + y; in wallpaperTravelToScreenWidthRatio() 77 int maxDim = Math.max(maxDims.x, maxDims.y); in getDefaultCropSurfaceSize() 78 int minDim = Math.max(minDims.x, minDims.y); in getDefaultCropSurfaceSize() 83 maxDim = Math.max(realSize.x, realSize.y); in getDefaultCropSurfaceSize() 84 minDim = Math.min(realSize.x, realSize.y); in getDefaultCropSurfaceSize() 126 if (inner.x > outer.x || inner.y > outer.y) { 138 relativePosition.y = Math.round((outer.y - inner.y) / 2f); 152 if (inner.x / (float) inner.y > outer.x / (float) outer.y) { in calculateMinZoom() 155 minZoom = inner.y / (float) outer.y; in calculateMinZoom() [all …]
|