Home
last modified time | relevance | path

Searched refs:m1 (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java49 Matrix m1 = new Matrix(0, 20); in testDegenerate() local
51 assertEquals(m1, m2.transpose()); in testDegenerate()
59 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testAddition() local
62 assertEquals(m3, m1.plus(m2)); in testAddition()
70 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testSubtraction() local
73 assertEquals(m1, m3.minus(m2)); in testSubtraction()
81 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testScalarMultiplication() local
84 assertEquals(m2, m1.times(x)); in testScalarMultiplication()
92 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testMultiplication() local
95 assertEquals(m3, m1.dot(m2)); in testMultiplication()
[all …]
/frameworks/rs/rsov/compiler/spirit/
Dpass_queue_test.cpp103 auto m1 = passes.run(m.get()); in TEST_F() local
105 ASSERT_NE(nullptr, m1); in TEST_F()
107 ASSERT_TRUE(m1->resolveIds()); in TEST_F()
109 EXPECT_EQ(2, countEntity<IAddInst>(m1)); in TEST_F()
110 EXPECT_EQ(0, countEntity<IMulInst>(m1)); in TEST_F()
124 auto m1 = passes.run(m.get()); in TEST_F() local
126 ASSERT_NE(nullptr, m1); in TEST_F()
128 ASSERT_TRUE(m1->resolveIds()); in TEST_F()
130 EXPECT_EQ(1, countEntity<IAddInst>(m1)); in TEST_F()
131 EXPECT_EQ(1, countEntity<IMulInst>(m1)); in TEST_F()
[all …]
Dtransformer_test.cpp87 std::unique_ptr<Module> m1(trans.run(m.get())); in TEST_F() local
89 ASSERT_NE(nullptr, m1); in TEST_F()
91 ASSERT_TRUE(m1->resolveIds()); in TEST_F()
93 EXPECT_EQ(2, countEntity<IAddInst>(m1.get())); in TEST_F()
94 EXPECT_EQ(0, countEntity<IMulInst>(m1.get())); in TEST_F()
105 std::unique_ptr<Module> m1(trans.run(m.get())); in TEST_F() local
107 ASSERT_NE(nullptr, m1.get()); in TEST_F()
109 EXPECT_EQ(1, countEntity<IAddInst>(m1.get())); in TEST_F()
110 EXPECT_EQ(0, countEntity<IMulInst>(m1.get())); in TEST_F()
123 std::unique_ptr<Module> m1(trans.run(m.get())); in TEST_F() local
[all …]
Dbuilder_test.cpp186 auto m1 = Deserialize<Module>(words); in TEST() local
187 ASSERT_NE(nullptr, m1); in TEST()
189 auto words1 = Serialize<Module>(m1); in TEST()
224 auto m1 = Deserialize<Module>(words); in TEST() local
225 ASSERT_NE(nullptr, m1); in TEST()
227 auto words1 = Serialize<Module>(m1); in TEST()
Dpass.cpp38 auto m1 = run(module, &intermediateError); in runAndSerialize() local
45 return Serialize<Module>(m1); in runAndSerialize()
/frameworks/native/libs/ui/tests/
DBufferHubMetadata_test.cpp28 BufferHubMetadata m1 = BufferHubMetadata::create(std::numeric_limits<uint32_t>::max()); in TEST_F() local
29 EXPECT_FALSE(m1.isValid()); in TEST_F()
33 BufferHubMetadata m1 = BufferHubMetadata::create(kEmptyUserMetadataSize); in TEST_F() local
34 EXPECT_TRUE(m1.isValid()); in TEST_F()
35 EXPECT_NE(m1.metadataHeader(), nullptr); in TEST_F()
39 BufferHubMetadata m1 = BufferHubMetadata::create(kEmptyUserMetadataSize); in TEST_F() local
40 EXPECT_TRUE(m1.isValid()); in TEST_F()
41 EXPECT_NE(m1.metadataHeader(), nullptr); in TEST_F()
43 unique_fd h2 = unique_fd(dup(m1.ashmemFd().get())); in TEST_F()
48 EXPECT_TRUE(m1.isValid()); in TEST_F()
[all …]
/frameworks/native/libs/math/tests/
Dmat_test.cpp43 mat4 m1(2); in TEST_F() local
46 EXPECT_TRUE(m0 != m1); in TEST_F()
48 EXPECT_FALSE(m0 == m1); in TEST_F()
70 mat4 m1(2); in TEST_F() local
74 EXPECT_EQ(m1, m2); in TEST_F()
76 EXPECT_EQ(m3, m1); in TEST_F()
79 EXPECT_NE(m4, m1); in TEST_F()
84 mat4 m1(2); in TEST_F() local
87 m1 += m2; in TEST_F()
88 EXPECT_EQ(mat4(4), m1); in TEST_F()
[all …]
/frameworks/layoutlib/bridge/tests/src/android/graphics/
DMatrix_DelegateTest.java29 Matrix m1 = new Matrix(); in testIdentity() local
31 assertTrue(m1.isIdentity()); in testIdentity()
33 m1.setValues(new float[]{1, 0, 0, 0, 1, 0, 0, 0, 1}); in testIdentity()
34 assertTrue(m1.isIdentity()); in testIdentity()
38 Matrix m1 = new Matrix(); in testCopyConstructor() local
39 Matrix m2 = new Matrix(m1); in testCopyConstructor()
43 m1.getValues(v1); in testCopyConstructor()
52 Matrix m1 = new Matrix(); in testInvert() local
54 m1.setValues(new float[]{1, 2, 3, 4, 5, 6, 7, 8, 9}); in testInvert()
55 assertFalse(m1.invert(inverse)); in testInvert()
[all …]
/frameworks/av/include/media/
DInterpolator.h143 S m0, m1; in findY() local
150 m1 = high2 != this->end() in findY()
156 m1 = (sec1 + sec) * 0.5f; in findY()
167 m1 = constrainSlope(m1, maxSlope); in findY()
170 m1 = constrainSlope(m1, 3 * sec1); in findY()
178 m1 *= interval; in findY()
182 const S c2 = 3 * dy - 2 * m0 - m1; in findY()
183 const S c3 = m0 + m1 - 2 * dy; in findY()
193 return h00 * low->second + (h10 * m0 + h11 * m1) * interval + h01 * high->second; in findY()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLinkLayerStatsTest.java57 int m1 = a & ~b; in bumpCounters() local
60 assertEquals(-1, m0 + m1 + m2 + m3); in bumpCounters()
67 s.rxmpdu_bk += rxg & m1; in bumpCounters()
68 s.txmpdu_bk += txg & m1; in bumpCounters()
69 s.lostmpdu_bk += txb & m1; in bumpCounters()
70 s.retries_bk += txr & m1; in bumpCounters()
/frameworks/base/rs/java/android/renderscript/
DMatrix4f.java329 Matrix4f m1 = new Matrix4f(); in loadProjectionNormalized() local
334 m1.loadFrustum(-aspect,aspect, -1,1, 1,100); in loadProjectionNormalized()
337 m1.loadFrustum(-1,1, -aspect,aspect, 1,100); in loadProjectionNormalized()
341 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
344 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
347 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
349 load(m1); in loadProjectionNormalized()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix4f.java329 Matrix4f m1 = new Matrix4f(); in loadProjectionNormalized() local
334 m1.loadFrustum(-aspect,aspect, -1,1, 1,100); in loadProjectionNormalized()
337 m1.loadFrustum(-1,1, -aspect,aspect, 1,100); in loadProjectionNormalized()
341 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
344 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
347 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
349 load(m1); in loadProjectionNormalized()
/frameworks/base/tests/JankBench/app/src/main/jni/
Dtest.cpp116 uint8_t * volatile m1 = (uint8_t *)malloc(1024*1024*64); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest() local
119 memset(m1, 0, 1024*1024*16); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
128 memcpy(m1, m2, subtest); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
138 memcpy(m1, m2, subtest); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
151 free (m1); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DModuleInfoProviderTest.java34 Collections.sort(mi, (ModuleInfo m1, ModuleInfo m2) -> in testSuccessfulParse()
35 m1.getPackageName().compareTo(m1.getPackageName())); in testSuccessfulParse()
/frameworks/rs/rsov/compiler/
DBuiltin_test.cpp39 std::unique_ptr<Module> m1(Deserialize<Module>(words1)); in TEST() local
41 ASSERT_NE(nullptr, m1); in TEST()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmessage.js1167 jspb.Message.difference = function(m1, m2) { argument
1168 if (!(m1 instanceof m2.constructor)) {
1171 var arr1 = m1.toArray();
1176 if (m1.getJsPbMessageId()) {
1177 res[0] = m1.getJsPbMessageId();
1185 return new m1.constructor(res);
1196 jspb.Message.equals = function(m1, m2) { argument
1197 return m1 == m2 || (!!(m1 && m2) && (m1 instanceof m2.constructor) &&
1198 jspb.Message.compareFields(m1.toArray(), m2.toArray()));
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Drepeated_field_reflection_unittest.cc552 TestAllTypes m0, m1, m2; in TEST() local
559 m1.add_repeated_int32(Func(i, 11)); in TEST()
560 m1.add_repeated_double(Func(i, 12)); in TEST()
561 m1.add_repeated_string(StrFunc(i, 15)); in TEST()
562 m1.add_repeated_foreign_message()->set_c(Func(i, 16)); in TEST()
563 m1.add_repeated_nested_enum(TestAllTypes::BAR); in TEST()
603 refl->GetRepeatedFieldRef<int32>(m1, fd_repeated_int32)); in TEST()
605 refl->GetRepeatedFieldRef<double>(m1, fd_repeated_double)); in TEST()
607 refl->GetRepeatedFieldRef<string>(m1, fd_repeated_string)); in TEST()
610 m1, fd_repeated_foreign_message)); in TEST()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DAbstractMessageTest.java501 private void checkNotEqual(Message m1, Message m2) { in checkNotEqual() argument
502 String equalsError = String.format("%s should not be equal to %s", m1, m2); in checkNotEqual()
503 assertFalse(equalsError, m1.equals(m2)); in checkNotEqual()
504 assertFalse(equalsError, m2.equals(m1)); in checkNotEqual()
507 String.format("%s should have a different hash code from %s", m1, m2), in checkNotEqual()
508 m1.hashCode() == m2.hashCode()); in checkNotEqual()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DAbstractMessageTest.java524 private void checkNotEqual(Message m1, Message m2) { in checkNotEqual() argument
525 String equalsError = String.format("%s should not be equal to %s", m1, m2); in checkNotEqual()
526 assertFalse(equalsError, m1.equals(m2)); in checkNotEqual()
527 assertFalse(equalsError, m2.equals(m1)); in checkNotEqual()
530 String.format("%s should have a different hash code from %s", m1, m2), in checkNotEqual()
531 m1.hashCode() == m2.hashCode()); in checkNotEqual()
DMapTest.java634 TestMap m1 = b1.build(); in testEqualsAndHashCode() local
642 assertEquals(m1, m2); in testEqualsAndHashCode()
643 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualsAndHashCode()
648 assertFalse(m1.equals(m2)); in testEqualsAndHashCode()
656 assertFalse(m1.equals(m2)); in testEqualsAndHashCode()
657 assertFalse(m2.equals(m1)); in testEqualsAndHashCode()
913 Message m1 = b1.build(); in testReflectionEqualsAndHashCode() local
921 assertEquals(m1, m2); in testReflectionEqualsAndHashCode()
922 assertEquals(m1.hashCode(), m2.hashCode()); in testReflectionEqualsAndHashCode()
927 assertFalse(m1.equals(m2)); in testReflectionEqualsAndHashCode()
DMapForProto2Test.java599 TestMap m1 = b1.build(); in testEqualsAndHashCode() local
607 assertEquals(m1, m2); in testEqualsAndHashCode()
608 assertEquals(m1.hashCode(), m2.hashCode()); in testEqualsAndHashCode()
613 assertFalse(m1.equals(m2)); in testEqualsAndHashCode()
801 Message m1 = b1.build(); in testReflectionEqualsAndHashCode() local
809 assertEquals(m1, m2); in testReflectionEqualsAndHashCode()
810 assertEquals(m1.hashCode(), m2.hashCode()); in testReflectionEqualsAndHashCode()
815 assertFalse(m1.equals(m2)); in testReflectionEqualsAndHashCode()
/frameworks/native/opengl/libagl/
Dlight.cpp50 const GLfixed* m0, const GLfixed* m1, const GLfixed* a);
52 const GLfixed* m0, const GLfixed* m1);
163 const GLfixed* m0, const GLfixed* m1, const GLfixed* a) in vmla3() argument
165 d[0] = gglMulAddx(m0[0], m1[0], a[0]); in vmla3()
166 d[1] = gglMulAddx(m0[1], m1[1], a[1]); in vmla3()
167 d[2] = gglMulAddx(m0[2], m1[2], a[2]); in vmla3()
171 void vmul3(GLfixed* d, const GLfixed* m0, const GLfixed* m1) { in vmul3() argument
172 d[0] = gglMulx(m0[0], m1[0]); in vmul3()
173 d[1] = gglMulx(m0[1], m1[1]); in vmul3()
174 d[2] = gglMulx(m0[2], m1[2]); in vmul3()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dmessage_test.py523 m1 = message_module.TestAllTypes()
525 m1.repeated_int32.append(0)
526 m1.repeated_int32.append(1)
527 m1.repeated_int32.append(2)
531 m1.repeated_nested_message.add().bb = 1
532 m1.repeated_nested_message.add().bb = 2
533 m1.repeated_nested_message.add().bb = 3
541 _ = m1 < m2
542 _ = m1.repeated_nested_message < m2.repeated_nested_message
546 self.assertEqual(cmp(m1, m2), 0)
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java562 Message m1 = getTimedMessage(mInputEventsHandler, 1); in assertTwoKeyEventsSentToFrameworkInOrder() local
563 assertEquals(SEND_FRAMEWORK_KEY_EVENT, m1.what); in assertTwoKeyEventsSentToFrameworkInOrder()
564 assertEquals(WindowManagerPolicy.FLAG_PASS_TO_USER, m1.arg1); in assertTwoKeyEventsSentToFrameworkInOrder()
565 assertTrue(new KeyEventMatcher(second).matches(m1.obj)); in assertTwoKeyEventsSentToFrameworkInOrder()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java171 boolean m1 = (ai.getQueryActionMsg() != null) && (ai.getQueryActionMsg().length() > 0); in checkSearchable()
175 assertTrue(m1 || m2 || m3); in checkSearchable()

12