/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 …]
|
/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 …]
|
/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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/tests/ |
D | repeated_field_test.rb | 9 m = TestMessage.new 11 … assert m.repeated_string.respond_to?(method_name) == true, "does not respond to #{method_name}" 16 m = TestMessage.new 23 … assert m.repeated_string.respond_to?(method_name) == true, "does not respond to #{method_name}" 28 m = TestMessage.new 30 assert_nil m.send(field_name).first 32 fill_test_msg(m) 33 assert_equal -10, m.repeated_int32.first 34 assert_equal -1_000_000, m.repeated_int64.first 35 assert_equal 10, m.repeated_uint32.first [all …]
|
D | basic.rb | 122 m = TestMessage.new 123 assert m.optional_int32 == 0 124 assert m.optional_int64 == 0 125 assert m.optional_uint32 == 0 126 assert m.optional_uint64 == 0 127 assert m.optional_bool == false 128 assert m.optional_float == 0.0 129 assert m.optional_double == 0.0 130 assert m.optional_string == "" 131 assert m.optional_bytes == "" [all …]
|
/frameworks/rs/rsov/compiler/spirit/ |
D | module_test.cpp | 54 auto m = Deserialize<Module>(mWordsGreyscale); in TEST_F() local 56 ASSERT_NE(nullptr, m); in TEST_F() 58 std::unique_ptr<Module> mDeleter(m); in TEST_F() 63 v->visit(m); in TEST_F() 69 EXPECT_EQ(5, countEntity<AccessChainInst>(m)); in TEST_F() 70 EXPECT_EQ(2, countEntity<BitcastInst>(m)); in TEST_F() 71 EXPECT_EQ(1, countEntity<CapabilityInst>(m)); in TEST_F() 72 EXPECT_EQ(1, countEntity<CompositeConstructInst>(m)); in TEST_F() 73 EXPECT_EQ(5, countEntity<ConstantInst>(m)); in TEST_F() 74 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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/ |
D | proto3_lite_unittest.cc | 52 void SetAllFields(TestAllTypes* m) { in SetAllFields() argument 53 m->set_optional_int32(100); in SetAllFields() 54 m->set_optional_string("asdf"); in SetAllFields() 55 m->set_optional_bytes("jkl;"); in SetAllFields() 56 m->mutable_optional_nested_message()->set_bb(42); in SetAllFields() 57 m->mutable_optional_foreign_message()->set_c(43); in SetAllFields() 58 m->set_optional_nested_enum( in SetAllFields() 60 m->set_optional_foreign_enum( in SetAllFields() 62 m->mutable_optional_lazy_message()->set_bb(45); in SetAllFields() 63 m->add_repeated_int32(100); in SetAllFields() [all …]
|
D | no_field_presence_test.cc | 45 const proto2_nofieldpresence_unittest::TestAllTypes& m) { in CheckDefaultValues() argument 46 EXPECT_EQ(0, m.optional_int32()); in CheckDefaultValues() 47 EXPECT_EQ(0, m.optional_int64()); in CheckDefaultValues() 48 EXPECT_EQ(0, m.optional_uint32()); in CheckDefaultValues() 49 EXPECT_EQ(0, m.optional_uint64()); in CheckDefaultValues() 50 EXPECT_EQ(0, m.optional_sint32()); in CheckDefaultValues() 51 EXPECT_EQ(0, m.optional_sint64()); in CheckDefaultValues() 52 EXPECT_EQ(0, m.optional_fixed32()); in CheckDefaultValues() 53 EXPECT_EQ(0, m.optional_fixed64()); in CheckDefaultValues() 54 EXPECT_EQ(0, m.optional_sfixed32()); in CheckDefaultValues() [all …]
|
D | proto3_arena_lite_unittest.cc | 52 void SetAllFields(TestAllTypes* m) { in SetAllFields() argument 53 m->set_optional_int32(100); in SetAllFields() 54 m->set_optional_string("asdf"); in SetAllFields() 55 m->set_optional_bytes("jkl;"); in SetAllFields() 56 m->mutable_optional_nested_message()->set_bb(42); in SetAllFields() 57 m->mutable_optional_foreign_message()->set_c(43); in SetAllFields() 58 m->set_optional_nested_enum( in SetAllFields() 60 m->set_optional_foreign_enum( in SetAllFields() 62 m->mutable_optional_lazy_message()->set_bb(45); in SetAllFields() 63 m->add_repeated_int32(100); in SetAllFields() [all …]
|
D | proto3_arena_unittest.cc | 52 void SetAllFields(TestAllTypes* m) { in SetAllFields() argument 53 m->set_optional_int32(100); in SetAllFields() 54 m->set_optional_string("asdf"); in SetAllFields() 55 m->set_optional_bytes("jkl;"); in SetAllFields() 56 m->mutable_optional_nested_message()->set_bb(42); in SetAllFields() 57 m->mutable_optional_foreign_message()->set_c(43); in SetAllFields() 58 m->set_optional_nested_enum( in SetAllFields() 60 m->set_optional_foreign_enum( in SetAllFields() 62 m->mutable_optional_lazy_message()->set_bb(45); in SetAllFields() 63 m->add_repeated_int32(100); in SetAllFields() [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/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/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/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/tools/apilint/ |
D | apilint.py | 821 for m in clazz.methods: 822 if re.search("[A-Z]{2,}", m.name) is not None: 823 … warn(clazz, m, "S1", "Method names with acronyms should be getMtu() instead of getMTU()") 824 if re.match("[^a-z]", m.name): 825 error(clazz, m, "S1", "Method name must start with lowercase char") 840 for m in clazz.methods: 841 if not re.match("on[A-Z][a-z]*", m.name): 842 error(clazz, m, "L1", "Callback method names must be onFoo() style") 857 for m in clazz.methods: 858 if not re.match("on[A-Z][a-z]*", m.name): [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_OSX.xcodeproj/ |
D | project.pbxproj | 10 …7B6 /* GPBConcurrencyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5102DABB1891A052002037… 12 …422 /* GPBCodedInputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B48F0F94F99000A0C4… 13 …22 /* GPBCodedOutputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4910F94F99000A0C4… 14 …22 /* GPBExtensionRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4A90F94F99000A0C4… 15 …E00A0C422 /* GPBUnknownField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4AF0F94F99000A0… 16 …30F94FB4E00A0C422 /* GPBMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4BF0F94F9900… 17 …0C422 /* GPBUnknownFieldSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E20F94F99000A0C… 18 …94FB4E00A0C422 /* GPBUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E60F94F99000… 19 …FB4E00A0C422 /* GPBWireFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E80F94F99000A… 23 …BC1EC6 /* GPBWellKnownTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B4248D01A927E1500BC1… [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/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/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 …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_iOS.xcodeproj/ |
D | project.pbxproj | 10 …7B6 /* GPBConcurrencyTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5102DABB1891A052002037… 12 …422 /* GPBCodedInputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B48F0F94F99000A0C4… 13 …22 /* GPBCodedOutputStream.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4910F94F99000A0C4… 14 …22 /* GPBExtensionRegistry.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4A90F94F99000A0C4… 15 …E00A0C422 /* GPBUnknownField.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4AF0F94F99000A0… 16 …30F94FB4E00A0C422 /* GPBMessage.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4BF0F94F9900… 17 …0C422 /* GPBUnknownFieldSet.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E20F94F99000A0C… 18 …94FB4E00A0C422 /* GPBUtilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E60F94F99000… 19 …FB4E00A0C422 /* GPBWireFormat.m in Sources */ = {isa = PBXBuildFile; fileRef = 7461B4E80F94F99000A… 23 …BC1EC6 /* GPBWellKnownTypes.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B4248E21A929C8900BC1… [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 …]
|