Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 153) sorted by relevance

1234567

/packages/apps/LegacyCamera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.h145 #define MXX(m) (m).par[0] argument
146 #define MXY(m) (m).par[1] argument
147 #define MXZ(m) (m).par[2] argument
148 #define MXW(m) (m).par[3] argument
149 #define MYX(m) (m).par[4] argument
150 #define MYY(m) (m).par[5] argument
151 #define MYZ(m) (m).par[6] argument
152 #define MYW(m) (m).par[7] argument
153 #define MZX(m) (m).par[8] argument
154 #define MZY(m) (m).par[9] argument
[all …]
Dvp_motionmodel.c42 double Det3(double m[3][3]) in Det3()
47 m[0][0]*m[1][1]*m[2][2] + m[0][1]*m[1][2]*m[2][0] + in Det3()
48 m[0][2]*m[1][0]*m[2][1] - m[0][2]*m[1][1]*m[2][0] - in Det3()
49 m[0][0]*m[1][2]*m[2][1] - m[0][1]*m[1][0]*m[2][2]; in Det3()
57 double Det4(MATRIX m) in Det4() argument
65m[0][3] *m[1][2] *m[2][1] *m[3][0] - m[0][2] *m[1][3] *m[2][1] *m[3][0] - m[0][3] *m[1][1] *m[2][2… in Det4()
66m[0][1] *m[1][3] *m[2][2] *m[3][0] + m[0][2] *m[1][1] *m[2][3] *m[3][0] - m[0][1] *m[1][2] *m[2][3… in Det4()
67m[0][2] *m[1][3] *m[2][0] *m[3][1] + m[0][3] *m[1][0] *m[2][2] *m[3][1] - m[0][0] *m[1][3] *m[2][2… in Det4()
68m[0][0] *m[1][2] *m[2][3] *m[3][1] + m[0][3] *m[1][1] *m[2][0] *m[3][2] - m[0][1] *m[1][3] *m[2][0… in Det4()
69m[0][0] *m[1][3] *m[2][1] *m[3][2] + m[0][1] *m[1][0] *m[2][3] *m[3][2] - m[0][0] *m[1][1] *m[2][3… in Det4()
[all …]
/packages/apps/Camera/jni/feature_stab/src/dbreg/
Dvp_motionmodel.h145 #define MXX(m) (m).par[0] argument
146 #define MXY(m) (m).par[1] argument
147 #define MXZ(m) (m).par[2] argument
148 #define MXW(m) (m).par[3] argument
149 #define MYX(m) (m).par[4] argument
150 #define MYY(m) (m).par[5] argument
151 #define MYZ(m) (m).par[6] argument
152 #define MYW(m) (m).par[7] argument
153 #define MZX(m) (m).par[8] argument
154 #define MZY(m) (m).par[9] argument
[all …]
Dvp_motionmodel.c42 double Det3(double m[3][3]) in Det3()
47 m[0][0]*m[1][1]*m[2][2] + m[0][1]*m[1][2]*m[2][0] + in Det3()
48 m[0][2]*m[1][0]*m[2][1] - m[0][2]*m[1][1]*m[2][0] - in Det3()
49 m[0][0]*m[1][2]*m[2][1] - m[0][1]*m[1][0]*m[2][2]; in Det3()
57 double Det4(MATRIX m) in Det4() argument
65m[0][3] *m[1][2] *m[2][1] *m[3][0] - m[0][2] *m[1][3] *m[2][1] *m[3][0] - m[0][3] *m[1][1] *m[2][2… in Det4()
66m[0][1] *m[1][3] *m[2][2] *m[3][0] + m[0][2] *m[1][1] *m[2][3] *m[3][0] - m[0][1] *m[1][2] *m[2][3… in Det4()
67m[0][2] *m[1][3] *m[2][0] *m[3][1] + m[0][3] *m[1][0] *m[2][2] *m[3][1] - m[0][0] *m[1][3] *m[2][2… in Det4()
68m[0][0] *m[1][2] *m[2][3] *m[3][1] + m[0][3] *m[1][1] *m[2][0] *m[3][2] - m[0][1] *m[1][3] *m[2][0… in Det4()
69m[0][0] *m[1][3] *m[2][1] *m[3][2] + m[0][1] *m[1][0] *m[2][3] *m[3][2] - m[0][0] *m[1][1] *m[2][3… in Det4()
[all …]
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DtrsMatrix.cpp41 int normProjMat33d(double m[3][3]) in normProjMat33d()
45 if(m[2][2] == 0.0) in normProjMat33d()
50 m[0][0] /= m[2][2]; in normProjMat33d()
51 m[0][1] /= m[2][2]; in normProjMat33d()
52 m[0][2] /= m[2][2]; in normProjMat33d()
53 m[1][0] /= m[2][2]; in normProjMat33d()
54 m[1][1] /= m[2][2]; in normProjMat33d()
55 m[1][2] /= m[2][2]; in normProjMat33d()
56 m[2][0] /= m[2][2]; in normProjMat33d()
57 m[2][1] /= m[2][2]; in normProjMat33d()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DtrsMatrix.cpp41 int normProjMat33d(double m[3][3]) in normProjMat33d()
45 if(m[2][2] == 0.0) in normProjMat33d()
50 m[0][0] /= m[2][2]; in normProjMat33d()
51 m[0][1] /= m[2][2]; in normProjMat33d()
52 m[0][2] /= m[2][2]; in normProjMat33d()
53 m[1][0] /= m[2][2]; in normProjMat33d()
54 m[1][1] /= m[2][2]; in normProjMat33d()
55 m[1][2] /= m[2][2]; in normProjMat33d()
56 m[2][0] /= m[2][2]; in normProjMat33d()
57 m[2][1] /= m[2][2]; in normProjMat33d()
[all …]
/packages/apps/Camera/src/com/android/camera/
DPreviewGestures.java120 public boolean dispatchTouch(MotionEvent m) { in dispatchTouch() argument
122 return mActivity.superDispatchTouchEvent(m); in dispatchTouch()
124 mCurrent = m; in dispatchTouch()
125 if (MotionEvent.ACTION_DOWN == m.getActionMasked()) { in dispatchTouch()
126 if (checkReceivers(m)) { in dispatchTouch()
128 return mActivity.superDispatchTouchEvent(m); in dispatchTouch()
131 mDown = MotionEvent.obtain(m); in dispatchTouch()
134 return sendToPie(m); in dispatchTouch()
140 mScale.onTouchEvent(m); in dispatchTouch()
143 return mActivity.superDispatchTouchEvent(m); in dispatchTouch()
[all …]
/packages/apps/Camera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h34 double cx,cy,m; in db_PointCentroid2D() local
44 m=1.0/((double)nr_points); in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
46 c[1]=cy*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
66 m=1.0/((double)nr_points); in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
68 c[1]=cy*m; in db_PointCentroid2D()
78 double cx,cy,cz,m; in db_PointCentroid3D() local
89 m=1.0/((double)nr_points); in db_PointCentroid3D()
[all …]
Ddb_image_homography.cpp116 double m,ax,ay,apx,apy,bx,by,bpx,bpy; in db_CommonFocalLengthFromRotation_2Point() local
129 m=db_SafeReciprocal(x1[2]); in db_CommonFocalLengthFromRotation_2Point()
130 ax=x1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
131 ay=x1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
132 m=db_SafeReciprocal(xp1[2]); in db_CommonFocalLengthFromRotation_2Point()
133 apx=xp1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
134 apy=xp1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
135 m=db_SafeReciprocal(x2[2]); in db_CommonFocalLengthFromRotation_2Point()
136 bx=x2[0]*m; in db_CommonFocalLengthFromRotation_2Point()
137 by=x2[1]*m; in db_CommonFocalLengthFromRotation_2Point()
[all …]
Ddb_utilities_indexing.cpp103 unsigned long m; in db_AlignPointer_f() local
105 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_f()
106 if(m) ap=(float*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_f()
114 unsigned long m; in db_AlignPointer_s() local
116 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_s()
117 if(m) ap=(short*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_s()
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_geometry.h34 double cx,cy,m; in db_PointCentroid2D() local
44 m=1.0/((double)nr_points); in db_PointCentroid2D()
45 c[0]=cx*m; in db_PointCentroid2D()
46 c[1]=cy*m; in db_PointCentroid2D()
54 double cx,cy,m; in db_PointCentroid2D() local
66 m=1.0/((double)nr_points); in db_PointCentroid2D()
67 c[0]=cx*m; in db_PointCentroid2D()
68 c[1]=cy*m; in db_PointCentroid2D()
78 double cx,cy,cz,m; in db_PointCentroid3D() local
89 m=1.0/((double)nr_points); in db_PointCentroid3D()
[all …]
Ddb_image_homography.cpp116 double m,ax,ay,apx,apy,bx,by,bpx,bpy; in db_CommonFocalLengthFromRotation_2Point() local
129 m=db_SafeReciprocal(x1[2]); in db_CommonFocalLengthFromRotation_2Point()
130 ax=x1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
131 ay=x1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
132 m=db_SafeReciprocal(xp1[2]); in db_CommonFocalLengthFromRotation_2Point()
133 apx=xp1[0]*m; in db_CommonFocalLengthFromRotation_2Point()
134 apy=xp1[1]*m; in db_CommonFocalLengthFromRotation_2Point()
135 m=db_SafeReciprocal(x2[2]); in db_CommonFocalLengthFromRotation_2Point()
136 bx=x2[0]*m; in db_CommonFocalLengthFromRotation_2Point()
137 by=x2[1]*m; in db_CommonFocalLengthFromRotation_2Point()
[all …]
Ddb_utilities_indexing.cpp103 unsigned long m; in db_AlignPointer_f() local
105 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_f()
106 if(m) ap=(float*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_f()
114 unsigned long m; in db_AlignPointer_s() local
116 m=((unsigned long)p)%nr_bytes; in db_AlignPointer_s()
117 if(m) ap=(short*) (((unsigned long)p)-m+nr_bytes); in db_AlignPointer_s()
Ddb_utilities_poly.cpp100 double lz,ms,ns,mn,m,n,lz_through2; in db_SolveQuartic() local
149 m=sqrt(ms); in db_SolveQuartic()
153 1.0,c3through2+m,lz_through2+n); in db_SolveQuartic()
156 1.0,c3through2-m,lz_through2-n); in db_SolveQuartic()
172 double lz,ms,ns,mn,m,n,lz_through2; in db_SolveQuarticForced() local
222 m=sqrt(ms); in db_SolveQuarticForced()
226 1.0,c3through2+m,lz_through2+n); in db_SolveQuarticForced()
229 1.0,c3through2-m,lz_through2-n); in db_SolveQuarticForced()
/packages/providers/CalendarProvider/
Dmaketests.py56 m = TIME.match(s[0])
57 if m:
58 if m.group(7) == "+":
62 hour = int(m.group(4)) + (sign * int(m.group(8)))
63 return m.group(1) + m.group(2) + m.group(3) + "T" + fmt(hour) \
64 + m.group(5) + m.group(6) + "Z"
65 m = TIMEZ.match(s[0])
66 if m:
67 return m.group(1) + m.group(2) + m.group(3) + "T" + m.group(4) \
68 + m.group(5) + m.group(6) + "Z"
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMetadata.java78 Bitmap m = mImageFilter.apply(original, scaleFactor, highQuality); in apply() local
79 return m; in apply()
195 protected static void concatHorizontalMatrix(Matrix m, float width) { in concatHorizontalMatrix() argument
196 m.postScale(-1, 1); in concatHorizontalMatrix()
197 m.postTranslate(width, 0); in concatHorizontalMatrix()
208 protected static void concatVerticalMatrix(Matrix m, float height) { in concatVerticalMatrix() argument
209 m.postScale(1, -1); in concatVerticalMatrix()
210 m.postTranslate(0, height); in concatVerticalMatrix()
224 Matrix m = new Matrix(); in getFlipMatrix() local
225 m.reset(); // identity in getFlipMatrix()
[all …]
DImageCrop.java157 Matrix m = getCropBoundDisplayMatrix(); in switchCropBounds() local
159 if (!m.invert(m0)){ in switchCropBounds()
219 Matrix m = getLocalGeoFlipMatrix(localImage.width(), localImage.height()); in getCropRotationMatrix() local
220 m.postRotate(rotation, localImage.centerX(), localImage.centerY()); in getCropRotationMatrix()
221 if (!m.rectStaysRect()) { in getCropRotationMatrix()
224 return m; in getCropRotationMatrix()
228 Matrix m = getCropRotationMatrix(getLocalRotation(), getLocalPhotoBounds()); in getCropBoundDisplayMatrix() local
229 if (m == null) { in getCropBoundDisplayMatrix()
232 m = new Matrix(); in getCropBoundDisplayMatrix()
235 m.postTranslate(mXOffset, mYOffset); in getCropBoundDisplayMatrix()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMotionEventHelper.java29 public static MotionEvent transformEvent(MotionEvent e, Matrix m) { in transformEvent() argument
33 return transformEventNew(e, m); in transformEvent()
35 return transformEventOld(e, m); in transformEvent()
40 private static MotionEvent transformEventNew(MotionEvent e, Matrix m) { in transformEventNew() argument
42 newEvent.transform(m); in transformEventNew()
47 private static MotionEvent transformEventOld(MotionEvent e, Matrix m) { in transformEventOld() argument
68 m.mapPoints(xy); in transformEventOld()
73 m, pointerCoords[i].orientation); in transformEventOld()
102 private static float transformAngle(Matrix m, float angleRadians) { in transformAngle() argument
109 m.mapVectors(v); in transformAngle()
/packages/apps/Gallery2/jni/filters/
Dhsv.c85 int m; in hsv2rgb() local
100 m = ((int)cv*(k1 - (int)cs ))/k1; in hsv2rgb()
115 m=m >> ABITS; in hsv2rgb()
123 rb = m; in hsv2rgb()
128 rb = m; in hsv2rgb()
131 rr = m; in hsv2rgb()
136 rr = m; in hsv2rgb()
142 rg = m; in hsv2rgb()
147 rg = m ; in hsv2rgb()
Dcontrast.c37 float m = (float)pow(2, bright/100.); in JNIFUNCF() local
38 float c = 127-m*127; in JNIFUNCF()
41 rgb[RED] = clamp((int)(m*rgb[RED]+c)); in JNIFUNCF()
42 rgb[GREEN] = clamp((int)(m*rgb[GREEN]+c)); in JNIFUNCF()
43 rgb[BLUE] = clamp((int)(m*rgb[BLUE]+c)); in JNIFUNCF()
Dexposure.c27 int m = (255-bright); in JNIFUNCF() local
31 rgb[RED] = clamp((255*(rgb[RED]))/m); in JNIFUNCF()
32 rgb[GREEN] = clamp((255*(rgb[GREEN]))/m); in JNIFUNCF()
33 rgb[BLUE] = clamp((255*(rgb[BLUE]))/m); in JNIFUNCF()
/packages/apps/Browser/src/com/android/browser/homepages/
DTemplate.java187 Matcher m = pattern.matcher(template); in parseTemplate() local
189 while (m.find()) { in parseTemplate()
190 String static_part = template.substring(start, m.start()); in parseTemplate()
194 String type = m.group(1); in parseTemplate()
195 String name = m.group(2); in parseTemplate()
201 if (end_m.find(m.end())) { in parseTemplate()
202 start = m.end(); in parseTemplate()
203 m.region(end_m.end(), template.length()); in parseTemplate()
210 start = m.end(); in parseTemplate()
240 Matcher m = pattern.matcher(template); in replaceConsts() local
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLCanvasImpl.java235 float[] m = mMatrixValues; in translate() local
236 m[12] += m[0] * x + m[4] * y; in translate()
237 m[13] += m[1] * x + m[5] * y; in translate()
238 m[14] += m[2] * x + m[6] * y; in translate()
239 m[15] += m[3] * x + m[7] * y; in translate()
316 private float[] mapPoints(float m[], int x1, int y1, int x2, int y2) { in mapPoints() argument
320 float x3 = m[0] * x1 + m[4] * y1 + m[12]; in mapPoints()
321 float y3 = m[1] * x1 + m[5] * y1 + m[13]; in mapPoints()
322 float w3 = m[3] * x1 + m[7] * y1 + m[15]; in mapPoints()
327 float x4 = m[0] * x2 + m[4] * y2 + m[12]; in mapPoints()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DExchangeService.java367 Mailbox m = Mailbox.restoreMailboxWithId(exchangeService, mailboxId);
368 if (m == null) return;
369 Account acct = Account.restoreAccountWithId(exchangeService, m.mAccountKey);
394 if (m.mType == Mailbox.TYPE_OUTBOX) {
407 } else if (!isSyncable(m)) {
447 Mailbox m = Mailbox.restoreMailboxWithId(exchangeService, mailboxId);
450 if (m == null) {
452 } else if (error != null && m.mAccountKey == accountId) {
1133 Mailbox m = Mailbox.restoreMailboxWithId(this, mailboxId); in logSyncHolds() local
1134 if (m == null) { in logSyncHolds()
[all …]
/packages/apps/Nfc/src/com/android/nfc/handover/
DHandoverManager.java266 public NdefMessage tryHandoverRequest(NdefMessage m) { in tryHandoverRequest() argument
267 if (m == null) return null; in tryHandoverRequest()
270 if (DBG) Log.d(TAG, "tryHandoverRequest():" + m.toString()); in tryHandoverRequest()
272 NdefRecord r = m.getRecords()[0]; in tryHandoverRequest()
278 for (NdefRecord oob : m.getRecords()) { in tryHandoverRequest()
320 public boolean tryHandover(NdefMessage m) { in tryHandover() argument
321 if (m == null) return false; in tryHandover()
324 if (DBG) Log.d(TAG, "tryHandover(): " + m.toString()); in tryHandover()
326 BluetoothHandoverData handover = parse(m); in tryHandover()
355 public void doHandoverUri(Uri[] uris, NdefMessage m) { in doHandoverUri() argument
[all …]

1234567