/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/rs/rsov/compiler/spirit/ |
D | module_test.cpp | 52 auto m = Deserialize<Module>(mWordsGreyscale); in TEST_F() local 54 ASSERT_NE(nullptr, m); in TEST_F() 56 std::unique_ptr<Module> mDeleter(m); in TEST_F() 61 v->visit(m); in TEST_F() 67 EXPECT_EQ(5, countEntity<AccessChainInst>(m)); in TEST_F() 68 EXPECT_EQ(2, countEntity<BitcastInst>(m)); in TEST_F() 69 EXPECT_EQ(1, countEntity<CapabilityInst>(m)); in TEST_F() 70 EXPECT_EQ(1, countEntity<CompositeConstructInst>(m)); in TEST_F() 71 EXPECT_EQ(5, countEntity<ConstantInst>(m)); in TEST_F() 72 EXPECT_EQ(1, countEntity<ConstantCompositeInst>(m)); in TEST_F() [all …]
|
D | builder_test.cpp | 31 Module *m = b.MakeModule(); in TEST() local 33 ASSERT_NE(nullptr, m); in TEST() 35 m->addCapability(Capability::Shader); in TEST() 36 m->addCapability(Capability::Addresses); in TEST() 37 m->setMemoryModel(AddressingModel::Physical32, MemoryModel::GLSL450); in TEST() 39 m->addExtInstImport("GLSL.std.450"); in TEST() 42 m->addSource(SourceLanguage::GLSL, 450); in TEST() 43 m->addSourceExtension("GL_ARB_separate_shader_objects"); in TEST() 44 m->addSourceExtension("GL_ARB_shading_language_420pack"); in TEST() 45 m->addSourceExtension("GL_GOOGLE_cpp_style_line_directive"); in TEST() [all …]
|
D | pass_queue_test.cpp | 67 Module *run(Module *m, int *error) override { in run() argument 68 m->getFloatType(64); in run() 72 return m; in run() 94 std::unique_ptr<Module> m(Deserialize<Module>(mWordsGreyscale)); in TEST_F() local 96 ASSERT_NE(nullptr, m); in TEST_F() 98 EXPECT_EQ(1, countEntity<IAddInst>(m.get())); in TEST_F() 99 EXPECT_EQ(1, countEntity<IMulInst>(m.get())); in TEST_F() 103 auto m1 = passes.run(m.get()); in TEST_F() 114 std::unique_ptr<Module> m(Deserialize<Module>(mWordsGreyscale)); in TEST_F() local 116 ASSERT_NE(nullptr, m); in TEST_F() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | GeomagneticField.java | 178 for (int m = 2; m < MAX_N; ++m) { in GeomagneticField() 181 int x = m >> 1; in GeomagneticField() 182 sinMLon[m] = sinMLon[m-x] * cosMLon[x] + cosMLon[m-x] * sinMLon[x]; in GeomagneticField() 183 cosMLon[m] = cosMLon[m-x] * cosMLon[x] - sinMLon[m-x] * sinMLon[x]; in GeomagneticField() 199 for (int m = 0; m <= n; m++) { in GeomagneticField() 201 float g = G_COEFF[n][m] + yearsSinceBase * DELTA_G[n][m]; in GeomagneticField() 202 float h = H_COEFF[n][m] + yearsSinceBase * DELTA_H[n][m]; in GeomagneticField() 210 * (g * cosMLon[m] + h * sinMLon[m]) in GeomagneticField() 211 * legendre.mPDeriv[n][m] in GeomagneticField() 212 * 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/tools/apilint/ |
D | apilint.py | 301 for m in clazz.methods: 302 if re.search("[A-Z]{2,}", m.name) is not None: 303 … warn(clazz, m, "S1", "Method names with acronyms should be getMtu() instead of getMTU()") 304 if re.match("[^a-z]", m.name): 305 error(clazz, m, "S1", "Method name must start with lowercase char") 323 for m in clazz.methods: 324 if not re.match("on[A-Z][a-z]*", m.name): 325 error(clazz, m, "L1", "Callback method names must be onFoo() style") 339 for m in clazz.methods: 340 if not re.match("on[A-Z][a-z]*", m.name): [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/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/core/java/android/os/ |
D | Message.java | 127 Message m = sPool; in obtain() local 128 sPool = m.next; in obtain() 129 m.next = null; in obtain() 130 m.flags = 0; // clear in-use flag in obtain() 132 return m; in obtain() 145 Message m = obtain(); in obtain() local 146 m.what = orig.what; in obtain() 147 m.arg1 = orig.arg1; in obtain() 148 m.arg2 = orig.arg2; in obtain() 149 m.obj = orig.obj; in obtain() [all …]
|
/frameworks/rs/rsov/compiler/ |
D | Wrapper_test.cpp | 52 Module m(&b); in TEST_F() local 53 auto elemType = m.getIntType(32); in TEST_F() 54 VariableInst *buffer = AddBuffer(elemType, 2, b, &m); in TEST_F() 57 GlobalSection *gs = m.getGlobalSection(); in TEST_F() 65 std::unique_ptr<Module> m(Deserialize<Module>(mWordsGreyscale)); in TEST_F() local 67 ASSERT_NE(nullptr, m); in TEST_F() 69 m->resolveIds(); in TEST_F() 72 m->setBuilder(&b); in TEST_F() 77 EXPECT_FALSE(AddWrapper("foo", sig, 1, b, m.get())); in TEST_F() 79 EXPECT_TRUE(AddWrapper("greyscale(vf4;", sig, 1, b, m.get())); in TEST_F() [all …]
|
D | Wrapper.cpp | 40 Module *m) { in AddBuffer() argument 41 auto ArrTy = m->getRuntimeArrayType(elementType); in AddBuffer() 42 const size_t stride = m->getSize(elementType); in AddBuffer() 44 auto StructTy = m->getStructType(ArrTy); in AddBuffer() 48 auto StructPtrTy = m->getPointerType(StorageClass::Uniform, StructTy); in AddBuffer() 53 m->addVariable(bufferVar); in AddBuffer() 59 const uint32_t numInput, Builder &b, Module *m) { in AddWrapper() argument 60 FunctionDefinition *kernel = m->lookupFunctionDefinitionByName(name); in AddWrapper() 87 TypeVoidInst *VoidTy = m->getVoidType(); in AddWrapper() 88 TypeFunctionInst *FuncTy = m->getFunctionType(VoidTy, nullptr, 0); in AddWrapper() [all …]
|
/frameworks/native/opengl/libagl/ |
D | matrix.cpp | 194 const GLfixed* const m = matrix.m; in picker() local 204 if (!(notZero(m[3]) | notZero(m[7]) | notZero(m[11]) | notOne(m[15]))) { in picker() 219 GLfixed const * const m = matrix.m; in dump() local 223 m[I(0,i)], m[I(1,i)], m[I(2,i)], m[I(3,i)], in dump() 224 fixedToFloat(m[I(0,i)]), in dump() 225 fixedToFloat(m[I(1,i)]), in dump() 226 fixedToFloat(m[I(2,i)]), in dump() 227 fixedToFloat(m[I(3,i)])); in dump() 237 GLfixed* xp = m; in load() 254 GLfloat const* const m = lhs.m; in multiply() local [all …]
|
/frameworks/base/libs/hwui/ |
D | Matrix.h | 30 #define SK_MATRIX_ARGS(m) \ argument 31 (m)->get(0), (m)->get(1), (m)->get(2), \ 32 (m)->get(3), (m)->get(4), (m)->get(5), \ 33 (m)->get(6), (m)->get(7), (m)->get(8) 37 #define MATRIX_4_ARGS(m) \ argument 38 (m)->data[0], (m)->data[4], (m)->data[8], (m)->data[12], \ 39 (m)->data[1], (m)->data[5], (m)->data[9], (m)->data[13], \ 40 (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/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyMetadataMapper.java | 147 CameraMetadataNative m = new CameraMetadataNative(); in createCharacteristics() local 149 mapCharacteristicsFromInfo(m, info.info); in createCharacteristics() 153 mapCharacteristicsFromParameters(m, params); in createCharacteristics() 158 m.dumpToLog(); in createCharacteristics() 162 return new CameraCharacteristics(m); in createCharacteristics() 165 private static void mapCharacteristicsFromInfo(CameraMetadataNative m, CameraInfo i) { in mapCharacteristicsFromInfo() argument 166 m.set(LENS_FACING, i.facing == CameraInfo.CAMERA_FACING_BACK ? in mapCharacteristicsFromInfo() 168 m.set(SENSOR_ORIENTATION, i.orientation); in mapCharacteristicsFromInfo() 171 private static void mapCharacteristicsFromParameters(CameraMetadataNative m, in mapCharacteristicsFromParameters() argument 177 m.set(COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES, in mapCharacteristicsFromParameters() [all …]
|
/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/base/services/core/java/com/android/server/am/ |
D | TaskChangeNotificationController.java | 69 private final TaskStackConsumer mNotifyTaskStackChanged = (l, m) -> { 73 private final TaskStackConsumer mNotifyTaskCreated = (l, m) -> { 74 l.onTaskCreated(m.arg1, (ComponentName) m.obj); 77 private final TaskStackConsumer mNotifyTaskRemoved = (l, m) -> { 78 l.onTaskRemoved(m.arg1); 81 private final TaskStackConsumer mNotifyTaskMovedToFront = (l, m) -> { 82 l.onTaskMovedToFront(m.arg1); 85 private final TaskStackConsumer mNotifyTaskDescriptionChanged = (l, m) -> { 86 l.onTaskDescriptionChanged(m.arg1, (TaskDescription) m.obj); 89 private final TaskStackConsumer mNotifyActivityRequestedOrientationChanged = (l, m) -> { [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | ColorMatrix.java | 36 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 …]
|