/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Matrix.java | 31 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 …]
|
D | Transform.java | 44 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/ |
D | rs_matrix.c | 16 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 …]
|
D | rs_quaternion.c | 32 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/ |
D | rsMatrix4x4.cpp | 52 (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 …]
|
D | rsRuntime.h | 51 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 …]
|
D | rsMatrix2x2.cpp | 29 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()
|
D | rsMatrix3x3.cpp | 29 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/ |
D | GeomagneticField.java | 182 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/ |
D | rsCpuRuntimeMath.cpp | 55 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/ |
D | Matrix.java | 112 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | Matrix.java | 24 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 …]
|
/frameworks/base/cmds/statsd/tests/ |
D | UidMap_test.cpp | 43 sp<UidMap> m = new UidMap(); in TEST() local 48 StatsLogProcessor p(m, pullerManager, anomalyAlarmMonitor, subscriberAlarmMonitor, 0, in TEST() 57 EXPECT_EQ(101, m->getHostUidOrSelf(101)); in TEST() 60 EXPECT_EQ(100, m->getHostUidOrSelf(101)); in TEST() 68 EXPECT_EQ(101, m->getHostUidOrSelf(101)); in TEST() 72 UidMap m; in TEST() local 89 m.updateMap(1, uids, versions, versionStrings, apps, installers); in TEST() 90 EXPECT_TRUE(m.hasApp(1000, kApp1)); in TEST() 91 EXPECT_TRUE(m.hasApp(1000, kApp2)); in TEST() 92 EXPECT_FALSE(m.hasApp(1000, "not.app")); in TEST() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | ColorMatrix.java | 236 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/services/core/java/com/android/server/locksettings/ |
D | SP800Derive.java | 45 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/core/java/android/os/ |
D | Message.java | 156 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/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | ModemPowerMetrics.java | 46 ModemPowerStats m = new ModemPowerStats(); in buildProto() local 49 m.loggingDurationMs = stats.getLoggingDurationMs(); in buildProto() 50 m.energyConsumedMah = stats.getEnergyConsumedMaMs() in buildProto() 52 m.numPacketsTx = stats.getNumPacketsTx(); in buildProto() 53 m.cellularKernelActiveTimeMs = stats.getKernelActiveTimeMs(); in buildProto() 56 m.timeInVeryPoorRxSignalLevelMs = stats.getTimeInRxSignalStrengthLevelMs()[0]; in buildProto() 58 m.sleepTimeMs = stats.getSleepTimeMs(); in buildProto() 59 m.idleTimeMs = stats.getIdleTimeMs(); in buildProto() 60 m.rxTimeMs = stats.getRxTimeMs(); in buildProto() 62 m.txTimeMs = new long[t.length]; in buildProto() [all …]
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 193 const GLfixed* const m = matrix.m; in picker() local 203 if (!(notZero(m[3]) | notZero(m[7]) | notZero(m[11]) | notOne(m[15]))) { in picker() 218 GLfixed const * const m = matrix.m; in dump() local 222 m[I(0,i)], m[I(1,i)], m[I(2,i)], m[I(3,i)], in dump() 223 fixedToFloat(m[I(0,i)]), in dump() 224 fixedToFloat(m[I(1,i)]), in dump() 225 fixedToFloat(m[I(2,i)]), in dump() 226 fixedToFloat(m[I(3,i)])); in dump() 236 GLfixed* xp = m; in load() 253 GLfloat const* const m = lhs.m; in multiply() local [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskChangeNotificationController.java | 79 private final TaskStackConsumer mNotifyTaskStackChanged = (l, m) -> { 83 private final TaskStackConsumer mNotifyTaskCreated = (l, m) -> { 84 l.onTaskCreated(m.arg1, (ComponentName) m.obj); 87 private final TaskStackConsumer mNotifyTaskRemoved = (l, m) -> { 88 l.onTaskRemoved(m.arg1); 91 private final TaskStackConsumer mNotifyTaskMovedToFront = (l, m) -> { 92 l.onTaskMovedToFront((RunningTaskInfo) m.obj); 95 private final TaskStackConsumer mNotifyTaskDescriptionChanged = (l, m) -> { 96 l.onTaskDescriptionChanged((RunningTaskInfo) m.obj); 99 private final TaskStackConsumer mNotifyBackPressedOnTaskRoot = (l, m) -> { [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 151 CameraMetadataNative m = new CameraMetadataNative(); in createCharacteristics() local 153 mapCharacteristicsFromInfo(m, info.info); in createCharacteristics() 157 mapCharacteristicsFromParameters(m, params); in createCharacteristics() 162 m.dumpToLog(); in createCharacteristics() 166 m.setCameraId(cameraId); in createCharacteristics() 167 m.setDisplaySize(displaySize); in createCharacteristics() 169 return new CameraCharacteristics(m); in createCharacteristics() 172 private static void mapCharacteristicsFromInfo(CameraMetadataNative m, CameraInfo i) { in mapCharacteristicsFromInfo() argument 173 m.set(LENS_FACING, i.facing == CameraInfo.CAMERA_FACING_BACK ? in mapCharacteristicsFromInfo() 175 m.set(SENSOR_ORIENTATION, i.orientation); in mapCharacteristicsFromInfo() [all …]
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 31 #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/ |
D | rs_quaternion.spec | 69 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 …]
|
/frameworks/av/services/camera/libcameraservice/tests/ |
D | DistortionMapperTest.cpp | 49 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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiPowerMetrics.java | 63 WifiPowerStats m = new WifiPowerStats(); in buildProto() local 66 m.loggingDurationMs = stats.getLoggingDurationMs(); in buildProto() 67 m.energyConsumedMah = stats.getEnergyConsumedMaMs() in buildProto() 69 m.idleTimeMs = stats.getIdleTimeMs(); in buildProto() 70 m.rxTimeMs = stats.getRxTimeMs(); in buildProto() 71 m.txTimeMs = stats.getTxTimeMs(); in buildProto() 72 m.wifiKernelActiveTimeMs = stats.getKernelActiveTimeMs(); in buildProto() 73 m.numPacketsTx = stats.getNumPacketsTx(); in buildProto() 74 m.numBytesTx = stats.getNumBytesTx(); in buildProto() 75 m.numPacketsRx = stats.getNumPacketsRx(); in buildProto() [all …]
|
/frameworks/rs/script_api/include/ |
D | rs_matrix.rsh | 72 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 …]
|