Home
last modified time | relevance | path

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

12345678910>>...18

/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/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/modules/Wifi/service/java/com/android/server/wifi/util/
DMatrix.java24 public final int m; field in Matrix
35 m = cols; in Matrix()
50 m = stride; in Matrix()
52 if (mem.length != n * m) throw new IllegalArgumentException(); in Matrix()
62 m = that.m; in Matrix()
78 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in get()
79 return mem[i * m + j]; in get()
91 if (!(0 <= i && i < n && 0 <= j && j < m)) throw new IndexOutOfBoundsException(); in put()
92 mem[i * m + j] = v; in put()
103 return plus(that, new Matrix(n, m)); in plus()
[all …]
/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 …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPowerMetrics.java51 WifiPowerStats m = new WifiPowerStats(); in buildProto() local
54 m.loggingDurationMs = stats.getLoggingDurationMillis(); in buildProto()
55 m.energyConsumedMah = stats.getEnergyConsumedMaMillis() in buildProto()
57 m.idleTimeMs = stats.getIdleTimeMillis(); in buildProto()
58 m.rxTimeMs = stats.getRxTimeMillis(); in buildProto()
59 m.txTimeMs = stats.getTxTimeMillis(); in buildProto()
60 m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMillis(); in buildProto()
61 m.numPacketsTx = stats.getNumPacketsTx(); in buildProto()
62 m.numBytesTx = stats.getNumBytesTx(); in buildProto()
63 m.numPacketsRx = stats.getNumPacketsRx(); in buildProto()
[all …]
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DMatrix.java135 float[] m = new float[16]; in invert() local
138 m[0] = (a11 * b11 - a12 * b10 + a13 * b09) * invDet; in invert()
139 m[1] = (-a01 * b11 + a02 * b10 - a03 * b09) * invDet; in invert()
140 m[2] = (a31 * b05 - a32 * b04 + a33 * b03) * invDet; in invert()
141 m[3] = (-a21 * b05 + a22 * b04 - a23 * b03) * invDet; in invert()
142 m[4] = (-a10 * b11 + a12 * b08 - a13 * b07) * invDet; in invert()
143 m[5] = (a00 * b11 - a02 * b08 + a03 * b07) * invDet; in invert()
144 m[6] = (-a30 * b05 + a32 * b02 - a33 * b01) * invDet; in invert()
145 m[7] = (a20 * b05 - a22 * b02 + a23 * b01) * invDet; in invert()
146 m[8] = (a10 * b10 - a11 * b08 + a13 * b06) * invDet; in invert()
[all …]
/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/modules/StatsD/statsd/tests/
DUidMap_test.cpp123 sp<UidMap> m = new UidMap(); in TEST() local
129 m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST()
137 EXPECT_EQ(101, m->getHostUidOrSelf(101)); in TEST()
139 EXPECT_EQ(100, m->getHostUidOrSelf(101)); in TEST()
144 EXPECT_EQ(101, m->getHostUidOrSelf(101)); in TEST()
337 UidMap m; in TEST() local
340 m.OnConfigUpdated(config1); in TEST()
345 m.updateMap(1 /* timestamp */, uidData); in TEST()
348 m.mLastUpdatePerConfigKey[config1] = 2; in TEST()
351 m.appendUidMap(/* timestamp */ 3, config1, /* includeVersionStrings */ true, in TEST()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java158 private boolean gaussianElimination(double[][] m) { in gaussianElimination() argument
159 int h = m.length; in gaussianElimination()
160 int w = m[0].length; 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()
173 m[maxrow][i] = t; in gaussianElimination()
176 if (Math.abs(m[y][y]) <= sEPS) { // Singular Matrix in gaussianElimination()
180 double c = m[y2][y] / m[y][y]; in gaussianElimination()
182 m[y2][x] -= m[y][x] * c; in gaussianElimination()
[all …]
/packages/services/Telephony/src/com/android/services/telephony/rcs/
DSipSessionTracker.java257 private boolean startsEarlyDialog(SipMessage m) { in startsEarlyDialog() argument
258 if (!SipMessageParsingUtils.isSipRequest(m.getStartLine())) { in startsEarlyDialog()
262 m.getStartLine()); in startsEarlyDialog()
274 private boolean closesDialog(SipMessage m) { in closesDialog() argument
275 if (!SipMessageParsingUtils.isSipRequest(m.getStartLine())) { in closesDialog()
279 m.getStartLine()); in closesDialog()
286 private Runnable getCreateDialogRunnable(int direction, SipMessage m) { in getCreateDialogRunnable() argument
289 .filter(d -> d.getCallId().equals(m.getCallIdParameter())) in getCreateDialogRunnable()
296 SipDialog dialog = SipDialog.fromSipMessage(m); in getCreateDialogRunnable()
298 SipMessageParsingUtils.splitStartLineAndVerify(m.getStartLine()); in getCreateDialogRunnable()
[all …]
DSipDialog.java73 public static SipDialog fromSipMessage(SipMessage m) { in fromSipMessage() argument
74 if (!SipMessageParsingUtils.isSipRequest(m.getStartLine())) return null; in fromSipMessage()
75 String fromTag = SipMessageParsingUtils.getFromTag(m.getHeaderSection()); in fromSipMessage()
77 m.getHeaderSection()); in fromSipMessage()
78 return new SipDialog(m.getViaBranchParameter(), m.getCallIdParameter(), fromTag, in fromSipMessage()
182 public boolean isResponseAssociatedWithDialog(SipMessage m) { in isResponseAssociatedWithDialog() argument
183 if (!mBranchId.equals(m.getViaBranchParameter())) return false; in isResponseAssociatedWithDialog()
184 if (!mCallId.equals(m.getCallIdParameter())) return false; in isResponseAssociatedWithDialog()
185 String fromTag = SipMessageParsingUtils.getFromTag(m.getHeaderSection()); in isResponseAssociatedWithDialog()
193 public boolean isRequestAssociatedWithDialog(SipMessage m) { in isRequestAssociatedWithDialog() argument
[all …]
/packages/modules/StatsD/statsd/src/
Dhash.cpp52 const uint32_t m = 0x5bd1e995; in Hash32() local
61 k *= m; in Hash32()
63 k *= m; in Hash32()
64 h *= m; in Hash32()
80 h *= m; in Hash32()
86 h *= m; in Hash32()
92 const uint64_t m = 0xc6a4a7935bd1e995; in Hash64() local
95 uint64_t h = seed ^ (n * m); in Hash64()
102 k *= m; in Hash64()
104 k *= m; in Hash64()
[all …]
/packages/modules/NeuralNetworks/common/cpu_operations/
DLSHProjectionTest.cpp140 LSHProjectionOpModel m(LSHProjectionType_DENSE, {4, 2}, {3, 2}, {3}); in TEST() local
142 m.SetInput({12345, 54321, 67890, 9876, -12345678, -87654321}); in TEST()
143 m.SetHash({0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765}); in TEST()
144 m.SetWeight({0.12, 0.34, 0.56}); in TEST()
146 m.Invoke(); in TEST()
148 EXPECT_THAT(m.GetOutput(), ElementsAre(1, 1, 1, 0, 1, 1, 1, 0)); in TEST()
152 LSHProjectionOpModel m(LSHProjectionType_SPARSE_DEPRECATED, {4, 2}, {3, 2}, {0}); in TEST() local
154 m.SetInput({12345, 54321, 67890, 9876, -12345678, -87654321}); in TEST()
155 m.SetHash({0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765}); in TEST()
157 m.Invoke(); in TEST()
[all …]
/packages/modules/Bluetooth/system/profile/avrcp/
Davrcp_message_converter.h70 static std::shared_ptr<::bluetooth::Packet> Parse(tAVRC_MSG* m) { in Parse() argument
73 switch (m->hdr.opcode) { in Parse()
75 tAVRC_MSG_VENDOR* msg = (tAVRC_MSG_VENDOR*)m; in Parse()
76 data.push_back(m->hdr.ctype); in Parse()
77 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
78 data.push_back(m->hdr.opcode); in Parse()
87 tAVRC_MSG_PASS* msg = (tAVRC_MSG_PASS*)m; in Parse()
88 data.push_back(m->hdr.ctype); in Parse()
89 data.push_back((m->hdr.subunit_type << 3) | m->hdr.subunit_id); in Parse()
90 data.push_back(m->hdr.opcode); in Parse()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DObexTime.java52 Matcher m = p.matcher(time); in ObexTime() local
54 if (m.matches()) { in ObexTime()
65 Integer.parseInt(m.group(1)), /* year */ in ObexTime()
66 Integer.parseInt(m.group(2)) - 1, /* month */ in ObexTime()
67 Integer.parseInt(m.group(3))); /* day of month */ in ObexTime()
71 Integer.parseInt(m.group(4)), /* hours */ in ObexTime()
72 Integer.parseInt(m.group(5)), /* minutes */ in ObexTime()
73 Integer.parseInt(m.group(6)), /* seconds */ in ObexTime()
80 if (m.group(7) != null) { in ObexTime()
81 int ohh = Integer.parseInt(m.group(9)); in ObexTime()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DShutterButton.java106 public boolean dispatchTouchEvent(MotionEvent m) { in dispatchTouchEvent() argument
113 if (m.getActionMasked() != MotionEvent.ACTION_MOVE in dispatchTouchEvent()
114 || m.getX() < 0 || m.getY() < 0 in dispatchTouchEvent()
115 || m.getX() >= getWidth() || m.getY() >= getHeight()) { in dispatchTouchEvent()
116 mGestureDetector.onTouchEvent(m); in dispatchTouchEvent()
118 if (m.getActionMasked() == MotionEvent.ACTION_UP) { in dispatchTouchEvent()
119 mTouchCoordinate = new TouchCoordinate(m.getX(), m.getY(), this.getMeasuredWidth(), in dispatchTouchEvent()
122 return super.dispatchTouchEvent(m); in dispatchTouchEvent()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java105 final Matcher m = versionPattern.matcher(version); in getMajorMinorVersion() local
106 if (m.matches()) { in getMajorMinorVersion()
107 final int major = Integer.parseInt(m.group(1)); in getMajorMinorVersion()
108 final int minor = TextUtils.isEmpty(m.group(3)) ? 0 : Integer.parseInt(m.group(3)); in getMajorMinorVersion()
152 final Matcher m = versionPattern.matcher(version); in getMajorMinorSubminorVersion() local
153 if (m.matches()) { in getMajorMinorSubminorVersion()
154 final int major = Integer.parseInt(m.group(1)); in getMajorMinorSubminorVersion()
155 final int minor = Integer.parseInt(m.group(2)); in getMajorMinorSubminorVersion()
156 final int sub = TextUtils.isEmpty(m.group(4)) ? 0 : Integer.parseInt(m.group(4)); in getMajorMinorSubminorVersion()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DTest.java61 for (final Method m : c.getDeclaredMethods()) { in Test()
62 if (m.getName().startsWith("test") && Void.TYPE == m.getReturnType() in Test()
63 && 0 == m.getParameterTypes().length) { in Test()
64 mAllTestMethods.add(m); in Test()
78 for (final Method m : mAllTestMethods) { in getHelp()
80 s.append(m.getName()); in getHelp()
114 for (final Method m : mAllTestMethods) { in runChosenTests()
115 final Class<?> declaringClass = m.getDeclaringClass(); in runChosenTests()
116 if (!mUsedTestMethods.isEmpty() && !mUsedTestMethods.contains(m.getName())) continue; in runChosenTests()
130 m.invoke(instance); in runChosenTests()
/packages/modules/SdkExtensions/gen_sdk/
Dgen_sdk.py108 if not all([m in SdkModule.values() for m in required_modules]):
133 module_names = [m for m in SdkModule.keys() if not m == 'UNKNOWN']
135 module_values = [SdkModule.Value(m) for m in module_names]
147 to_proto = lambda m : ExtensionVersion.ModuleRequirement(module=m, version=new_requirements[m]) argument
148 module_requirements = [to_proto(m) for m in new_requirements]
/packages/modules/NeuralNetworks/runtime/test/
DTestMemoryDomain.cpp305 const RuntimeMemory* m = reinterpret_cast<const RuntimeMemory*>(memory.get()); in TEST_P() local
306 ASSERT_NE(m, nullptr); in TEST_P()
307 EXPECT_NE(m->getIBuffer(), nullptr); in TEST_P()
315 const RuntimeMemory* m = reinterpret_cast<const RuntimeMemory*>(memory.get()); in TEST_P() local
316 ASSERT_NE(m, nullptr); in TEST_P()
317 EXPECT_EQ(m->getIBuffer(), nullptr); in TEST_P()
318 const auto& memory = m->getMemory(); in TEST_P()
343 const RuntimeMemory* m = reinterpret_cast<const RuntimeMemory*>(memory.get()); in TEST_P() local
344 ASSERT_NE(m, nullptr); in TEST_P()
345 EXPECT_NE(m->getIBuffer(), nullptr); in TEST_P()
[all …]
/packages/apps/Gallery2/jni/filters/
Dhsv.c86 int m; in hsv2rgb() local
101 m = ((int)cv*(k1 - (int)cs ))/k1; in hsv2rgb()
116 m=m >> ABITS; in hsv2rgb()
124 rb = m; in hsv2rgb()
129 rb = m; in hsv2rgb()
132 rr = m; in hsv2rgb()
137 rr = m; in hsv2rgb()
143 rg = m; in hsv2rgb()
148 rg = m ; in hsv2rgb()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DMotionEventHelper.java28 public static MotionEvent transformEvent(MotionEvent e, Matrix m) { in transformEvent() argument
32 return transformEventNew(e, m); in transformEvent()
34 return transformEventOld(e, m); in transformEvent()
39 private static MotionEvent transformEventNew(MotionEvent e, Matrix m) { in transformEventNew() argument
41 newEvent.transform(m); in transformEventNew()
46 private static MotionEvent transformEventOld(MotionEvent e, Matrix m) { in transformEventOld() argument
67 m.mapPoints(xy); in transformEventOld()
72 m, pointerCoords[i].orientation); in transformEventOld()
101 private static float transformAngle(Matrix m, float angleRadians) { in transformAngle() argument
108 m.mapVectors(v); in transformAngle()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java217 private static void concatMirrorMatrix(Matrix m, GeometryHolder holder) { in concatMirrorMatrix() argument
231 m.postScale(-1, 1); in concatMirrorMatrix()
233 m.postScale(1, -1); in concatMirrorMatrix()
235 m.postScale(1, -1); in concatMirrorMatrix()
236 m.postScale(-1, 1); in concatMirrorMatrix()
317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(), in applyFullGeometryMatrix() local
327 canvas.drawBitmap(image, m, paint); in applyFullGeometryMatrix()
380 Matrix m = getCropSelectionToScreenMatrix(null, holder, (int) originalWidth, in getOriginalToScreen() local
383 return m; in getOriginalToScreen()
407 Matrix m = getCropSelectionToScreenMatrix(crop, holder, photo.getWidth(), photo.getHeight(), in drawTransformedCropped() local
[all …]

12345678910>>...18