Home
last modified time | relevance | path

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

12345678910>>...25

/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DMatrix.java31 public double[] m; field in Matrix
35 double[] v = {m[0], m[4], m[8]}; in makeRotation()
37 m[0] = v[0]; in makeRotation()
38 m[4] = v[1]; in makeRotation()
39 m[8] = v[2]; in makeRotation()
42 double[] v = {m[1], m[5], m[9]}; in makeRotation()
44 m[1] = v[0]; in makeRotation()
45 m[5] = v[1]; in makeRotation()
46 m[9] = v[2]; in makeRotation()
49 double[] v = {m[2], m[6], m[10]}; in makeRotation()
[all …]
DTransform.java44 Matrix m = new Matrix(); in updateAllMatrix() local
45 m.setToUnit(); in updateAllMatrix()
46 mAllMat[0][0] = m; in updateAllMatrix()
47 mAllMat[1][1] = m; in updateAllMatrix()
48 mAllMat[2][2] = m; in updateAllMatrix()
51 m = new Matrix(); in updateAllMatrix()
52 m.setToUnit(); in updateAllMatrix()
56 m.m[0] = 1 / mVoxelDim[0]; in updateAllMatrix()
57 m.m[5] = 1 / mVoxelDim[1]; in updateAllMatrix()
58 m.m[10] = 1 / mVoxelDim[2]; in updateAllMatrix()
[all …]
/frameworks/rs/driver/runtime/
Drs_matrix.c16 rsMatrixLoadIdentity(rs_matrix4x4 *m) { in rsMatrixLoadIdentity() argument
17 m->m[0] = 1.f; in rsMatrixLoadIdentity()
18 m->m[1] = 0.f; in rsMatrixLoadIdentity()
19 m->m[2] = 0.f; in rsMatrixLoadIdentity()
20 m->m[3] = 0.f; in rsMatrixLoadIdentity()
21 m->m[4] = 0.f; in rsMatrixLoadIdentity()
22 m->m[5] = 1.f; in rsMatrixLoadIdentity()
23 m->m[6] = 0.f; in rsMatrixLoadIdentity()
24 m->m[7] = 0.f; in rsMatrixLoadIdentity()
25 m->m[8] = 0.f; in rsMatrixLoadIdentity()
[all …]
Drs_quaternion.c32 rsQuaternionGetMatrixUnit(rs_matrix4x4* m, const rs_quaternion* q) { in rsQuaternionGetMatrixUnit() argument
43 m->m[0] = 1.0f - 2.0f * ( yy + zz ); in rsQuaternionGetMatrixUnit()
44 m->m[4] = 2.0f * ( xy - zw ); in rsQuaternionGetMatrixUnit()
45 m->m[8] = 2.0f * ( xz + yw ); in rsQuaternionGetMatrixUnit()
46 m->m[1] = 2.0f * ( xy + zw ); in rsQuaternionGetMatrixUnit()
47 m->m[5] = 1.0f - 2.0f * ( xx + zz ); in rsQuaternionGetMatrixUnit()
48 m->m[9] = 2.0f * ( yz - xw ); in rsQuaternionGetMatrixUnit()
49 m->m[2] = 2.0f * ( xz - yw ); in rsQuaternionGetMatrixUnit()
50 m->m[6] = 2.0f * ( yz + xw ); in rsQuaternionGetMatrixUnit()
51 m->m[10] = 1.0f - 2.0f * ( xx + yy ); in rsQuaternionGetMatrixUnit()
[all …]
/frameworks/rs/
DrsMatrix4x4.cpp52 (m[c0 + 4*r0] * (m[c1 + 4*r1] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r1])) in inverse()
53 - (m[c0 + 4*r1] * (m[c1 + 4*r0] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r0])) in inverse()
54 + (m[c0 + 4*r2] * (m[c1 + 4*r0] * m[c2 + 4*r1] - m[c1 + 4*r1] * m[c2 + 4*r0])); in inverse()
58 result.m[4*i + j] = cofactor; in inverse()
63 float det = m[0]*result.m[0] + m[4]*result.m[1] + in inverse()
64 m[8]*result.m[2] + m[12]*result.m[3]; in inverse()
72 m[i] = result.m[i] * det; in inverse()
93 … float minor = (m[c0 + 4*r0] * (m[c1 + 4*r1] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r1])) in inverseTranspose()
94 … - (m[c0 + 4*r1] * (m[c1 + 4*r0] * m[c2 + 4*r2] - m[c1 + 4*r2] * m[c2 + 4*r0])) in inverseTranspose()
95 … + (m[c0 + 4*r2] * (m[c1 + 4*r0] * m[c2 + 4*r1] - m[c1 + 4*r1] * m[c2 + 4*r0])); in inverseTranspose()
[all …]
DrsRuntime.h51 void rsrVpLoadProjectionMatrix(Context *, const rsc_Matrix *m);
52 void rsrVpLoadModelMatrix(Context *, const rsc_Matrix *m);
53 void rsrVpLoadTextureMatrix(Context *, const rsc_Matrix *m);
55 void rsrVpGetProjectionMatrix(Context *, rsc_Matrix *m);
178 void rsrMatrixSet(rs_matrix4x4 *m, uint32_t row, uint32_t col, float v);
179 float rsrMatrixGet(const rs_matrix4x4 *m, uint32_t row, uint32_t col);
180 void rsrMatrixSet(rs_matrix3x3 *m, uint32_t row, uint32_t col, float v);
181 float rsrMatrixGet(const rs_matrix3x3 *m, uint32_t row, uint32_t col);
182 void rsrMatrixSet(rs_matrix2x2 *m, uint32_t row, uint32_t col, float v);
183 float rsrMatrixGet(const rs_matrix2x2 *m, uint32_t row, uint32_t col);
[all …]
DrsMatrix2x2.cpp29 m[0] = 1.f; in loadIdentity()
30 m[1] = 0.f; in loadIdentity()
31 m[2] = 0.f; in loadIdentity()
32 m[3] = 1.f; in loadIdentity()
36 memcpy(m, v, sizeof(m)); in load()
40 memcpy(m, v->m, sizeof(m)); in load()
62 float temp = m[1]; in transpose()
63 m[1] = m[2]; in transpose()
64 m[2] = temp; in transpose()
DrsMatrix3x3.cpp29 m[0] = 1.f; in loadIdentity()
30 m[1] = 0.f; in loadIdentity()
31 m[2] = 0.f; in loadIdentity()
32 m[3] = 0.f; in loadIdentity()
33 m[4] = 1.f; in loadIdentity()
34 m[5] = 0.f; in loadIdentity()
35 m[6] = 0.f; in loadIdentity()
36 m[7] = 0.f; in loadIdentity()
37 m[8] = 1.f; in loadIdentity()
41 memcpy(m, v, sizeof(m)); in load()
[all …]
/frameworks/base/core/java/android/hardware/
DGeomagneticField.java182 for (int m = 2; m < MAX_N; ++m) { in GeomagneticField()
185 int x = m >> 1; in GeomagneticField()
186 sinMLon[m] = sinMLon[m-x] * cosMLon[x] + cosMLon[m-x] * sinMLon[x]; in GeomagneticField()
187 cosMLon[m] = cosMLon[m-x] * cosMLon[x] - sinMLon[m-x] * sinMLon[x]; in GeomagneticField()
203 for (int m = 0; m <= n; m++) { in GeomagneticField()
205 float g = G_COEFF[n][m] + yearsSinceBase * DELTA_G[n][m]; in GeomagneticField()
206 float h = H_COEFF[n][m] + yearsSinceBase * DELTA_H[n][m]; in GeomagneticField()
214 * (g * cosMLon[m] + h * sinMLon[m]) in GeomagneticField()
215 * legendre.mPDeriv[n][m] in GeomagneticField()
216 * SCHMIDT_QUASI_NORM_FACTORS[n][m]; in GeomagneticField()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuRuntimeMath.cpp55 static void SC_MatrixLoadRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixLoadRotate() argument
56 m->loadRotate(rot, x, y, z); in SC_MatrixLoadRotate()
58 static void SC_MatrixLoadScale(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixLoadScale() argument
59 m->loadScale(x, y, z); in SC_MatrixLoadScale()
61 static void SC_MatrixLoadTranslate(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixLoadTranslate() argument
62 m->loadTranslate(x, y, z); in SC_MatrixLoadTranslate()
64 static void SC_MatrixRotate(Matrix4x4 *m, float rot, float x, float y, float z) { in SC_MatrixRotate() argument
65 m->rotate(rot, x, y, z); in SC_MatrixRotate()
67 static void SC_MatrixScale(Matrix4x4 *m, float x, float y, float z) { in SC_MatrixScale() argument
68 m->scale(x, y, z); in SC_MatrixScale()
[all …]
/frameworks/base/opengl/java/android/opengl/
DMatrix.java112 public static void transposeM(float[] mTrans, int mTransOffset, float[] m, in transposeM() argument
116 mTrans[i + mTransOffset] = m[mBase]; in transposeM()
117 mTrans[i + 4 + mTransOffset] = m[mBase + 1]; in transposeM()
118 mTrans[i + 8 + mTransOffset] = m[mBase + 2]; in transposeM()
119 mTrans[i + 12 + mTransOffset] = m[mBase + 3]; in transposeM()
135 public static boolean invertM(float[] mInv, int mInvOffset, float[] m, in invertM() argument
140 final float src0 = m[mOffset + 0]; in invertM()
141 final float src4 = m[mOffset + 1]; in invertM()
142 final float src8 = m[mOffset + 2]; in invertM()
143 final float src12 = m[mOffset + 3]; in invertM()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DSP800Derive.java45 final Mac m = Mac.getInstance("HmacSHA256"); in getMac() local
46 m.init(new SecretKeySpec(mKeyBytes, m.getAlgorithm())); in getMac()
47 return m; in getMac()
53 private static void update32(Mac m, int v) { in update32() argument
54 m.update(ByteBuffer.allocate(Integer.BYTES).putInt(v).array()); in update32()
61 final Mac m = getMac(); in fixedInput() local
62 update32(m, 1); // Hardwired counter value in fixedInput()
63 m.update(fixedInput); in fixedInput()
64 return m.doFinal(); in fixedInput()
72 final Mac m = getMac(); in withContext() local
[all …]
/frameworks/base/libs/hwui/apex/java/android/graphics/
DColorMatrix.java236 float[] m = mArray; in setSaturation() local
243 m[0] = R + sat; m[1] = G; m[2] = B; in setSaturation()
244 m[5] = R; m[6] = G + sat; m[7] = B; in setSaturation()
245 m[10] = R; m[11] = G; m[12] = B + sat; in setSaturation()
253 float[] m = mArray; in setRGB2YUV() local
255 m[0] = 0.299f; m[1] = 0.587f; m[2] = 0.114f; in setRGB2YUV()
256 m[5] = -0.16874f; m[6] = -0.33126f; m[7] = 0.5f; in setRGB2YUV()
257 m[10] = 0.5f; m[11] = -0.41869f; m[12] = -0.08131f; in setRGB2YUV()
265 float[] m = mArray; in setYUV2RGB() local
267 m[2] = 1.402f; in setYUV2RGB()
[all …]
/frameworks/base/core/java/android/os/
DMessage.java156 Message m = sPool; in obtain() local
157 sPool = m.next; in obtain()
158 m.next = null; in obtain()
159 m.flags = 0; // clear in-use flag in obtain()
161 return m; in obtain()
174 Message m = obtain(); in obtain() local
175 m.what = orig.what; in obtain()
176 m.arg1 = orig.arg1; in obtain()
177 m.arg2 = orig.arg2; in obtain()
178 m.obj = orig.obj; in obtain()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskChangeNotificationController.java82 private final TaskStackConsumer mNotifyTaskStackChanged = (l, m) -> {
86 private final TaskStackConsumer mNotifyTaskCreated = (l, m) -> {
87 l.onTaskCreated(m.arg1, (ComponentName) m.obj);
90 private final TaskStackConsumer mNotifyTaskRemoved = (l, m) -> {
91 l.onTaskRemoved(m.arg1);
94 private final TaskStackConsumer mNotifyTaskMovedToFront = (l, m) -> {
95 l.onTaskMovedToFront((RunningTaskInfo) m.obj);
98 private final TaskStackConsumer mNotifyTaskDescriptionChanged = (l, m) -> {
99 l.onTaskDescriptionChanged((RunningTaskInfo) m.obj);
102 private final TaskStackConsumer mNotifyBackPressedOnTaskRoot = (l, m) -> {
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp49 void setupTestMapper(DistortionMapper *m, in setupTestMapper() argument
66 m->setupStaticInfo(deviceInfo); in setupTestMapper()
89 DistortionMapper m; in TEST() local
91 ASSERT_FALSE(m.calibrationValid()); in TEST()
93 ASSERT_NE(m.setupStaticInfo(deviceInfo), OK); in TEST()
95 ASSERT_FALSE(m.calibrationValid()); in TEST()
109 ASSERT_EQ(m.setupStaticInfo(deviceInfo), OK); in TEST()
111 ASSERT_TRUE(m.calibrationValid()); in TEST()
115 ASSERT_NE(m.updateCalibration(captureResult), OK); in TEST()
122 ASSERT_EQ(m.updateCalibration(captureResult), OK); in TEST()
[all …]
/frameworks/base/libs/hwui/
DMatrix.h31 #define SK_MATRIX_ARGS(m) \ argument
32 (m)->get(0), (m)->get(1), (m)->get(2), (m)->get(3), (m)->get(4), (m)->get(5), (m)->get(6), \
33 (m)->get(7), (m)->get(8)
38 #define MATRIX_4_ARGS(m) \ argument
39 (m)->data[0], (m)->data[4], (m)->data[8], (m)->data[12], (m)->data[1], (m)->data[5], \
40 (m)->data[9], (m)->data[13], (m)->data[2], (m)->data[6], (m)->data[10], (m)->data[14], \
41 (m)->data[3], (m)->data[7], (m)->data[11], (m)->data[15]
/frameworks/rs/script_api/
Drs_quaternion.spec69 arg: rs_matrix4x4* m, "Resulting matrix."
85 m->m[0] = 1.0f - 2.0f * ( yy + zz );
86 m->m[4] = 2.0f * ( xy - zw );
87 m->m[8] = 2.0f * ( xz + yw );
88 m->m[1] = 2.0f * ( xy + zw );
89 m->m[5] = 1.0f - 2.0f * ( xx + zz );
90 m->m[9] = 2.0f * ( yz - xw );
91 m->m[2] = 2.0f * ( xz - yw );
92 m->m[6] = 2.0f * ( yz + xw );
93 m->m[10] = 1.0f - 2.0f * ( xx + yy );
[all …]
Drs_matrix.spec63 left->x = viewProj->m[3] + viewProj->m[0];
64 left->y = viewProj->m[7] + viewProj->m[4];
65 left->z = viewProj->m[11] + viewProj->m[8];
66 left->w = viewProj->m[15] + viewProj->m[12];
68 right->x = viewProj->m[3] - viewProj->m[0];
69 right->y = viewProj->m[7] - viewProj->m[4];
70 right->z = viewProj->m[11] - viewProj->m[8];
71 right->w = viewProj->m[15] - viewProj->m[12];
73 top->x = viewProj->m[3] - viewProj->m[1];
74 top->y = viewProj->m[7] - viewProj->m[5];
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DColorMatrix.java36 Matrix4f m = new Matrix4f(); in createTest() local
37 m.set(1, 0, 0.2f); in createTest()
38 m.set(1, 1, 0.9f); in createTest()
39 m.set(1, 2, 0.2f); in createTest()
46 mIntrinsic.setColorMatrix(m); in createTest()
50 mScript.invoke_setMatrix(m); in createTest()
55 Matrix4f m = new Matrix4f(); in animateBars() local
56 m.set(1, 0, (time + 0.2f) % 1.0f); in animateBars()
57 m.set(1, 1, (time + 0.9f) % 1.0f); in animateBars()
58 m.set(1, 2, (time + 0.4f) % 1.0f); in animateBars()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java54 ModemPowerStats m = new ModemPowerStats(); in buildProto() local
57 m.loggingDurationMs = stats.getLoggingDurationMillis(); in buildProto()
58 m.energyConsumedMah = stats.getEnergyConsumedMaMillis() in buildProto()
60 m.numPacketsTx = stats.getNumPacketsTx(); in buildProto()
61 m.cellularKernelActiveTimeMs = stats.getKernelActiveTimeMillis(); in buildProto()
66 m.timeInVeryPoorRxSignalLevelMs = timeInVeryPoorRxSignalLevelMs; in buildProto()
69 m.sleepTimeMs = stats.getSleepTimeMillis(); in buildProto()
70 m.idleTimeMs = stats.getIdleTimeMillis(); in buildProto()
71 m.rxTimeMs = stats.getRxTimeMillis(); in buildProto()
80 m.txTimeMs = txTimeMillis.stream().mapToLong(Long::longValue).toArray(); in buildProto()
[all …]
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
DKernelDataForRenderScript.java105 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScript()
106 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript()
110 infoArray[m*4] = offset; in KernelDataForRenderScript()
111 infoArray[m*4 + 1] = kernelRadius; in KernelDataForRenderScript()
112 infoArray[m*4 + 2] = kernelRadius; in KernelDataForRenderScript()
127 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScript()
128 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript()
132 kernelInfo.set_offset(m, offset, true); in KernelDataForRenderScript()
133 kernelInfo.set_radius_x(m, kernelRadius, true); in KernelDataForRenderScript()
134 kernelInfo.set_radius_y(m, kernelRadius, true); in KernelDataForRenderScript()
/frameworks/rs/driver/
DrsdMesh.cpp30 bool rsdMeshInit(const Context *rsc, const Mesh *m) { in rsdMeshInit() argument
32 if(m->mHal.drv) { in rsdMeshInit()
33 drv = (RsdMeshObj*)m->mHal.drv; in rsdMeshInit()
36 drv = new RsdMeshObj(rsc, m); in rsdMeshInit()
37 m->mHal.drv = drv; in rsdMeshInit()
41 void rsdMeshDraw(const Context *rsc, const Mesh *m, uint32_t primIndex, uint32_t start, uint32_t le… in rsdMeshDraw() argument
42 if(m->mHal.drv) { in rsdMeshDraw()
48 RsdMeshObj *drv = (RsdMeshObj*)m->mHal.drv; in rsdMeshDraw()
53 void rsdMeshDestroy(const Context *rsc, const Mesh *m) { in rsdMeshDestroy() argument
54 if(m->mHal.drv) { in rsdMeshDestroy()
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DColorMatrix.java43 Matrix4f m = new Matrix4f(); in createTest() local
44 m.set(1, 0, 0.2f); in createTest()
45 m.set(1, 1, 0.9f); in createTest()
46 m.set(1, 2, 0.2f); in createTest()
53 mIntrinsic.setColorMatrix(m); in createTest()
57 mScript.invoke_setMatrix(m); in createTest()
62 Matrix4f m = new Matrix4f(); in animateBars() local
63 m.set(1, 0, (time + 0.2f) % 1.0f); in animateBars()
64 m.set(1, 1, (time + 0.9f) % 1.0f); in animateBars()
65 m.set(1, 2, (time + 0.4f) % 1.0f); in animateBars()
[all …]
/frameworks/rs/script_api/include/
Drs_matrix.rsh72 left->x = viewProj->m[3] + viewProj->m[0];
73 left->y = viewProj->m[7] + viewProj->m[4];
74 left->z = viewProj->m[11] + viewProj->m[8];
75 left->w = viewProj->m[15] + viewProj->m[12];
77 right->x = viewProj->m[3] - viewProj->m[0];
78 right->y = viewProj->m[7] - viewProj->m[4];
79 right->z = viewProj->m[11] - viewProj->m[8];
80 right->w = viewProj->m[15] - viewProj->m[12];
82 top->x = viewProj->m[3] - viewProj->m[1];
83 top->y = viewProj->m[7] - viewProj->m[5];
[all …]

12345678910>>...25