Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java51 Matrix m1 = new Matrix(0, 20); in testDegenerate() local
53 assertEquals(m1, m2.transpose()); in testDegenerate()
61 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testAddition() local
64 assertEquals(m3, m1.plus(m2)); in testAddition()
72 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testSubtraction() local
75 assertEquals(m1, m3.minus(m2)); in testSubtraction()
83 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testScalarMultiplication() local
86 assertEquals(m2, m1.times(x)); in testScalarMultiplication()
94 Matrix m1 = new Matrix(2, new double[]{1, 2, 3, 4}); in testMultiplication() local
97 assertEquals(m3, m1.dot(m2)); in testMultiplication()
[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/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/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.java60 int m1 = a & ~b; in bumpCounters() local
63 assertEquals(-1, m0 + m1 + m2 + m3); in bumpCounters()
70 s.rxmpdu_bk += rxg & m1; in bumpCounters()
71 s.txmpdu_bk += txg & m1; in bumpCounters()
72 s.lostmpdu_bk += txb & m1; in bumpCounters()
73 s.retries_bk += txr & m1; in bumpCounters()
/frameworks/base/rs/java/android/renderscript/
DMatrix4f.java328 Matrix4f m1 = new Matrix4f(); in loadProjectionNormalized() local
333 m1.loadFrustum(-aspect,aspect, -1,1, 1,100); in loadProjectionNormalized()
336 m1.loadFrustum(-1,1, -aspect,aspect, 1,100); in loadProjectionNormalized()
340 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
343 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
346 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
348 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.java52 Collections.sort(mi, (ModuleInfo m1, ModuleInfo m2) -> in testSuccessfulParse()
53 m1.getPackageName().compareTo(m1.getPackageName())); in testSuccessfulParse()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyEventDispatcherTest.java567 Message m1 = getTimedMessage(mInputEventsHandler, 1); in assertTwoKeyEventsSentToFrameworkInOrder() local
568 assertEquals(SEND_FRAMEWORK_KEY_EVENT, m1.what); in assertTwoKeyEventsSentToFrameworkInOrder()
569 assertEquals(WindowManagerPolicy.FLAG_PASS_TO_USER, m1.arg1); in assertTwoKeyEventsSentToFrameworkInOrder()
570 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()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h348 DimensionsPair(DimensionsValue m1, google::protobuf::RepeatedPtrField<StateValue> m2) in DimensionsPair()
349 : dimInWhat(m1), stateValues(m2){}; in DimensionsPair()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java738 MonitoredPackage m1 = wd.newMonitoredPackage(APP_A, LONG_DURATION, in testPackageHealthCheckStateTransitions() local
746 assertThat(m1.getHealthCheckStateLocked()).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()
748 assertThat(m1.handleElapsedTimeLocked(SHORT_DURATION)).isEqualTo(HealthCheckState.INACTIVE); in testPackageHealthCheckStateTransitions()
750 assertThat(m1.setHealthCheckActiveLocked(SHORT_DURATION)).isEqualTo( in testPackageHealthCheckStateTransitions()
753 assertThat(m1.tryPassHealthCheckLocked()).isEqualTo(HealthCheckState.PASSED); in testPackageHealthCheckStateTransitions()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java738 Matrix m1 = new Matrix(); local
739 m1.setTranslate(-crop.getWidth() / 2f, -crop.getHeight() / 2f);
748 c1.setConcat(m2, m1);
/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp1203 std::map<int, std::pair<std::string, int>> m1 = {{0, {"a", 2}}, in TEST() local
1205 Serialize(m1, &result); in TEST()
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_no_password157 …1��&�LM���Ā�|��ۀ|�;�M?j�Md�/��l��bw�ٲ���m1*��Mԧ��ݡ{��������;��J�s��›�ZJF�=-߽�͋�����¨��f4��|=]…