/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | valuetest.cpp | 22 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 …]
|
D | stringbuffertest.cpp | 110 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/ |
D | kmeans.h | 27 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 …]
|
D | redEyeMath.c | 38 int y, x; in findPossible() local 42 for (x = 0; x < recW; x++) { in findPossible() 43 int p = (recX + x + sy) * 4; 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 63 for (x = 0; x < recW; x++) { in findReds() 64 int p = (recX + x + sy) * 4; in findReds() 66 mask[x + y * recW] = ((isRed(src, p)) ? 1 : 0); in findReds() 76 int y, x; in dialateMaskIfRed() local [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
D | db_utilities.h | 61 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 …]
|
D | db_utilities_linalg.cpp | 102 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 …]
|
D | db_metrics.h | 119 …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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | PointerTracker.java | 276 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 …]
|
D | MoreKeysKeyboardView.java | 129 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/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | Spline.java | 112 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 …]
|
D | EclipseControl.java | 67 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 …]
|
/packages/modules/DnsResolver/ |
D | DnsTlsServer.cpp | 42 static bool operator <(const in6_addr& x, const in6_addr& y) { in operator <() argument 44 std::begin(x.s6_addr), std::end(x.s6_addr), in operator <() 48 static bool operator ==(const in6_addr& x, const in6_addr& y) { in operator ==() argument 50 std::begin(x.s6_addr), std::end(x.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 <() 59 if (x.ss_family == AF_INET) { in operator <() 60 const sockaddr_in& x_sin = reinterpret_cast<const sockaddr_in&>(x); in operator <() 63 } else if (x.ss_family == AF_INET6) { in operator <() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/ |
D | rapidjson.h | 50 #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/gallerycommon/src/com/android/gallery3d/common/ |
D | Scroller.java | 79 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/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | Point.java | 20 public float x; field in Point 24 public Point(float x, float y) { in Point() argument 25 this.x = x; in Point() 30 public Point(float x, float y, long timeOffsetNano) { in Point() argument 31 this.x = x; in Point() 42 return x == otherPoint.x && y == otherPoint.y; in equals() 47 int result = (x != +0.0f ? Float.floatToIntBits(x) : 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/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 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/apps/Dialer/java/com/android/dialer/callcomposer/camera/camerafocus/ |
D | PieRenderer.java | 122 listener.onPieOpened(center.x, center.y); 269 public void setCenter(int x, int y) { in setCenter() argument 270 center.x = x; in setCenter() 273 alignFocus(x, y); in setCenter() 308 int x = (int) (r * Math.cos(angle)); in layoutItems() local 310 x = center.x + x - w / 2; in layoutItems() 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() [all …]
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | wprint_scaler.c | 23 #define ROUND_4_DOWN(x) ((x) & ~3) argument 24 #define ROUND_4_UP(x) (ROUND_4_DOWN((x) + 3)) argument 435 int x; in _scale_row_down_9in() local 439 for (x = 0; x < out_width; x++) { in _scale_row_down_9in() 487 out[(x * 3) + 0] = ((uint64) acc_r * weight_reciprocal + ((uint64) 1 << 31)) >> 32; in _scale_row_down_9in() 488 out[(x * 3) + 0] = ((uint64) acc_g * weight_reciprocal + ((uint64) 1 << 31)) >> 32; in _scale_row_down_9in() 489 out[(x * 3) + 0] = ((uint64) acc_b * weight_reciprocal + ((uint64) 1 << 31)) >> 32; in _scale_row_down_9in() 499 int x; in _scale_row_down_8in() local 503 for (x = 0; x < out_width; x++) { in _scale_row_down_8in() 548 out[(x * 3) + 0] = ((uint64) acc_r * weight_reciprocal + ((uint64) 1 << 31)) >> 32; in _scale_row_down_8in() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 54 … float x = (WALLPAPER_WIDTH_TO_SCREEN_RATIO_LANDSCAPE - WALLPAPER_WIDTH_TO_SCREEN_RATIO_PORTRAIT) in wallpaperTravelToScreenWidthRatio() local 56 float y = WALLPAPER_WIDTH_TO_SCREEN_RATIO_PORTRAIT - x * ASPECT_RATIO_PORTRAIT; in wallpaperTravelToScreenWidthRatio() 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() 116 relativePosition.x = isRtl ? outer.x - inner.x : 0; in calculateCenterPosition() 118 relativePosition.x = Math.round((outer.x - inner.x) / 2f); in calculateCenterPosition() [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() 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/apps/Camera2/jni/ |
D | jpegutilnative.cpp | 131 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/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
D | proximity_info_utils.h | 63 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/Launcher3/src/com/android/launcher3/util/ |
D | GridOccupancy.java | 34 for (int x = 0; (x + spanX) <= mCountX; x++) { in findVacantCell() 35 boolean available = !cells[x][y]; in findVacantCell() 37 for (int i = x; i < x + spanX; i++) { in findVacantCell() 44 vacantOut[0] = x; in findVacantCell() 61 public boolean isRegionVacant(int x, int y, int spanX, int spanY) { in isRegionVacant() argument 62 int x2 = x + spanX - 1; in isRegionVacant() 64 if (x < 0 || y < 0 || x2 >= mCountX || y2 >= mCountY) { in isRegionVacant() 67 for (int i = x; i <= x2; i++) { in isRegionVacant() 79 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { in markCells() 81 cells[x][y] = value; in markCells()
|
/packages/apps/DocumentsUI/tests/res/raw/ |
D | images_tar | 1 …000640 777777 257523 00000000016 13141136776 017745 x… 10 …x?V,iy��&��Q����^I1��C�,|�}$ ��M+�х����,�.�|<C�sKⷋHK�6�b��mר��;o����0(���b���XWOw�����r�z�?��… 13 ���ڪ��U�+Zn9�1柔�!�,�b�>�*�W��F���(�x�]^��k^C#�~���N_���a���h�7��\�3F'F�$� �qld�V��}q�X�!�… 19 …x:S�8X �&�a5�O :�ڃ�/�=�N�Z���S�=���D)p幬�=�64װ"�[I�T��w��#1S�(�,o�.� ���wT���.r�W�AsG … 25 …���a��c]d��J69�M��*����!OA�!a�����X�C��LGVĕi]��S*�����AT���i�N��[��UMb������X�A�x���z� 27 …x�6w#<[���Kט&gn|o��� ��ºϺ�4����Y����J@��B0-n�M�b˄�vu���>E�㖳a�p�}���oE���cK�67�Z?… 30 …x�ԫ�UlN���M��F���r����@�삟��������opiR�����գ�wCp�>��E��e���x���F�V\ B�B�K ����4�,�]�… 32 ��0P\�A^u�[��V�������#��L��{K@K�!���s������!l�H�&���ͧ��O��[�̮��zP��m��ԣ�x��>I���
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
D | Geometry.h | 34 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 …]
|