/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/apps/Camera/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 | 266 private void callListenerOnCodeInput(Key key, int primaryCode, int x, int y) { in callListenerOnCodeInput() argument 272 + " x=" + x + " y=" + y in callListenerOnCodeInput() 277 ResearchLogger.pointerTracker_callListenerOnCodeInput(key, x, y, ignoreModifierKey, in callListenerOnCodeInput() 288 mListener.onCodeInput(code, x, y); in callListenerOnCodeInput() 342 public Key getKeyOn(int x, int y) { in getKeyOn() argument 343 return mKeyDetector.detectHitKey(x, y); in getKeyOn() 438 private Key onDownKey(int x, int y, long eventTime) { in onDownKey() argument 440 return onMoveToNewKey(onMoveKeyInternal(x, y), x, y); in onDownKey() 443 private Key onMoveKeyInternal(int x, int y) { in onMoveKeyInternal() argument 444 mLastX = x; in onMoveKeyInternal() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | Keyboard.java | 245 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/ |
D | BouncyDroid.java | 51 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/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 …]
|
D | trsMatrix.h | 37 inline double ProjZ(double trs[3][3], double x, double y, double f) in ProjZ() argument 39 return ((trs)[2][0]*(x) + (trs)[2][1]*(y) + (trs)[2][2]*(f)); in ProjZ() 42 inline double ProjX(double trs[3][3], double x, double y, double z, double f) in ProjX() argument 44 return (((trs)[0][0]*(x) + (trs)[0][1]*(y) + (trs)[0][2]*(f)) / (z)); in ProjX() 47 inline double ProjY(double trs[3][3], double x, double y, double z, double f) in ProjY() argument 49 return (((trs)[1][0]*(x) + (trs)[1][1]*(y) + (trs)[1][2]*(f)) / (z)); in ProjY()
|
/packages/apps/Camera/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 …]
|
D | trsMatrix.h | 37 inline double ProjZ(double trs[3][3], double x, double y, double f) in ProjZ() argument 39 return ((trs)[2][0]*(x) + (trs)[2][1]*(y) + (trs)[2][2]*(f)); in ProjZ() 42 inline double ProjX(double trs[3][3], double x, double y, double z, double f) in ProjX() argument 44 return (((trs)[0][0]*(x) + (trs)[0][1]*(y) + (trs)[0][2]*(f)) / (z)); in ProjX() 47 inline double ProjY(double trs[3][3], double x, double y, double z, double f) in ProjY() argument 49 return (((trs)[1][0]*(x) + (trs)[1][1]*(y) + (trs)[1][2]*(f)) / (z)); in ProjY()
|
/packages/apps/Browser/src/com/android/browser/view/ |
D | PieMenu.java | 187 return mCenter.x < mSlop; in onTheLeft() 232 private void setCenter(int x, int y) { in setCenter() argument 233 if (x < mSlop) { in setCenter() 234 mCenter.x = 0; in setCenter() 236 mCenter.x = getWidth(); in setCenter() 261 int x = (int) (r * Math.sin(angle)); in layoutPie() local 264 x = mCenter.x + x - w / 2; in layoutPie() 266 x = mCenter.x - x - w / 2; in layoutPie() 268 view.layout(x, y, x + w, y + h); in layoutPie() 299 int left = mCenter.x - w; in onDraw() [all …]
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/ui/ |
D | GLCanvasStub.java | 35 public void translate(float x, float y, float z) {} in translate() argument 36 public void translate(float x, float y) {} in translate() argument 38 public void rotate(float angle, float x, float y, float z) {} in rotate() argument 52 public void fillRect(float x, float y, float width, float height, int color) {} in fillRect() argument 54 BasicTexture texture, int x, int y, int width, int height) {} in drawTexture() argument 55 public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer, in drawMesh() argument 58 int x, int y, int width, int height, float alpha) {} in drawTexture() argument 61 int x, int y, int w, int h) {} in drawTexture() argument 63 float ratio, int x, int y, int w, int h) {} in drawMixed() argument 65 float ratio, int x, int y, int w, int h) {} in drawMixed() argument [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/ |
D | proximity_info.cpp | 104 inline int ProximityInfo::getStartIndexFromCoordinates(const int x, const int y) const { in getStartIndexFromCoordinates() argument 105 return ((y / CELL_HEIGHT) * GRID_WIDTH + (x / CELL_WIDTH)) in getStartIndexFromCoordinates() 109 bool ProximityInfo::hasSpaceProximity(const int x, const int y) const { in hasSpaceProximity() argument 110 if (x < 0 || y < 0) { in hasSpaceProximity() 112 AKLOGI("HasSpaceProximity: Illegal coordinates (%d, %d)", x, y); in hasSpaceProximity() 118 const int startIndex = getStartIndexFromCoordinates(x, y); in hasSpaceProximity() 120 AKLOGI("hasSpaceProximity: index %d, %d, %d", startIndex, x, y); in hasSpaceProximity() 133 bool ProximityInfo::isOnKey(const int keyId, const int x, const int y) const { in isOnKey() argument 139 return left < right && top < bottom && x >= left && x < right && y >= top && y < bottom; in isOnKey() 142 int ProximityInfo::squaredDistanceToEdge(const int keyId, const int x, const int y) const { in squaredDistanceToEdge() argument [all …]
|
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/ |
D | ComposingView.java | 221 float x, y; in onDraw() local 222 x = mPaddingLeft + LEFT_RIGHT_MARGIN; in onDraw() 231 canvas.drawText(splStr, 0, splStr.length(), x, y, mPaint); in onDraw() 234 private void drawCursor(Canvas canvas, float x) { in drawCursor() argument 235 mCursor.setBounds((int) x, mPaddingTop, (int) x in drawCursor() 241 float x, y; in drawForPinyin() local 242 x = mPaddingLeft + LEFT_RIGHT_MARGIN; in drawForPinyin() 252 canvas.drawText(cmpsStr, 0, cmpsPos, x, y, mPaint); in drawForPinyin() 253 x += mPaint.measureText(cmpsStr, 0, cmpsPos); in drawForPinyin() 256 drawCursor(canvas, x); in drawForPinyin() [all …]
|
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/ |
D | nexus.rs | 174 float x = p->originX + (p->dx * SPEED * delta); 180 float xx = x + (TRAIL_SIZE * PULSE_SIZE); 186 rsgDrawRect(x, y, xx, y + PULSE_SIZE, 0.0f); 188 rsgDrawRect(x + HALF_PULSE_SIZE - HALF_GLOW_SIZE, 190 x + HALF_PULSE_SIZE + HALF_GLOW_SIZE, 195 x += PULSE_SIZE; // need to start on the other side of this cell 198 float xx = x - (TRAIL_SIZE * PULSE_SIZE); 204 rsgDrawRect(xx, y, x, y + PULSE_SIZE, 0.0f); 206 rsgDrawRect(x - HALF_PULSE_SIZE - HALF_GLOW_SIZE, 208 x - HALF_PULSE_SIZE + HALF_GLOW_SIZE, [all …]
|
/packages/wallpapers/Galaxy4/res/raw/ |
D | spacecloud_vs.glsl | 5 float angle = ATTRIB_position.x; 7 float x = dist * sin(angle) * 0.8; 13 pos.x = t*x + s*y; 14 pos.y = s*x - t*y; 19 pointSize = 170.0-(pos.y*pos.y*1.2*1.2 + pos.x*pos.x)*400.0;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLCanvas.java | 48 public void translate(float x, float y, float z); in translate() argument 49 public void translate(float x, float y); in translate() argument 51 public void rotate(float angle, float x, float y, float z); in rotate() argument 80 public void fillRect(float x, float y, float width, float height, int color); in fillRect() argument 84 BasicTexture texture, int x, int y, int width, int height); in drawTexture() argument 85 public void drawMesh(BasicTexture tex, int x, int y, int xyBuffer, in drawMesh() argument 93 int x, int y, int w, int h); in drawTexture() argument 99 float ratio, int x, int y, int w, int h); in drawMixed() argument
|
D | UndoBarView.java | 102 int x = w - mBarMargin; in render() local 105 x -= mUndoTextMargin + mUndoText.getWidth(); in render() 107 mUndoText.draw(canvas, x, y); in render() 109 x -= mIconMargin + mIconSize; in render() 111 mUndoIcon.draw(canvas, x, y, mIconSize, mIconSize); in render() 113 x -= mSeparatorRightMargin + mSeparatorWidth; in render() 115 canvas.fillRect(x, y, mSeparatorWidth, in render() 118 x = mBarMargin + mDeletedTextMargin; in render() 120 mDeletedText.draw(canvas, x, y); in render() 148 float x = event.getX(); in inUndoButton() local [all …]
|
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/ |
D | phasebeam.rs | 70 particle->position.x = rsRand(0.0f, 3.0f); 82 particle->position.x = 1.0; 101 beamParticles->position.x = rsRand(-1.25f, 1.25f); 134 if(beam->position.x/beam->position.z > 0.5) { 135 beam->position.x = -1.0; 137 if(particle->position.x/particle->position.z > 0.5) { 138 particle->position.x = -1.0; 143 beam->position.x = rsRand(-1.25f, 1.25f); 149 particle->position.x = rsRand(0.0f, 3.0f); 156 beam->position.x = beam->position.x + 0.0001*beam->position.z; [all …]
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | clouds.rs | 115 s.x = sin(__agl); \ 154 gVSConstants->panoffset.x = gXOffset; 244 int x; 253 for (x=0;x<256;x++) { 254 int pix = src[y*256+x]; 272 dst[y*256+x] = newpix; 282 for (x=0;x<256;x++) { 283 int pix = src[y*256+x]; 296 dst[y*256+x] = newpix; 306 for (x=0;x<256;x++) { [all …]
|
/packages/apps/Camera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 435 double x[3] = {0.0,0.0,1.0}; in db_GenerateHomographyLut() local 452 x[0] = double(i); in db_GenerateHomographyLut() 453 x[1] = double(j); in db_GenerateHomographyLut() 454 db_Multiply3x3_3x1(xb, H, x); in db_GenerateHomographyLut() 507 inline unsigned char db_BilinearInterpolationRGB(double y, double x, const unsigned char * const * … in db_BilinearInterpolationRGB() argument 509 int floor_x=(int) x; in db_BilinearInterpolationRGB() 520 double xl = x-floor_x; in db_BilinearInterpolationRGB() 553 inline double SquaredInhomogenousHomographyError(double y[3],double H[9],double x[3]){ in SquaredInhomogenousHomographyError() 557 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in SquaredInhomogenousHomographyError() 558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in SquaredInhomogenousHomographyError() [all …]
|
/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/ |
D | dbreg.h | 435 double x[3] = {0.0,0.0,1.0}; in db_GenerateHomographyLut() local 452 x[0] = double(i); in db_GenerateHomographyLut() 453 x[1] = double(j); in db_GenerateHomographyLut() 454 db_Multiply3x3_3x1(xb, H, x); in db_GenerateHomographyLut() 507 inline unsigned char db_BilinearInterpolationRGB(double y, double x, const unsigned char * const * … in db_BilinearInterpolationRGB() argument 509 int floor_x=(int) x; in db_BilinearInterpolationRGB() 520 double xl = x-floor_x; in db_BilinearInterpolationRGB() 553 inline double SquaredInhomogenousHomographyError(double y[3],double H[9],double x[3]){ in SquaredInhomogenousHomographyError() 557 x0=H[0]*x[0]+H[1]*x[1]+H[2]; in SquaredInhomogenousHomographyError() 558 x1=H[3]*x[0]+H[4]*x[1]+H[5]; in SquaredInhomogenousHomographyError() [all …]
|