Home
last modified time | relevance | path

Searched refs:m2 (Results 1 – 20 of 20) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java50 Matrix m2 = new Matrix(20, 0); in testDegenerate() local
51 assertEquals(m1, m2.transpose()); in testDegenerate()
60 Matrix m2 = new Matrix(2, new double[]{10, 20, 30, 40}); in testAddition() local
62 assertEquals(m3, m1.plus(m2)); in testAddition()
71 Matrix m2 = new Matrix(2, new double[]{10, 20, 30, 40}); in testSubtraction() local
73 assertEquals(m1, m3.minus(m2)); in testSubtraction()
83 Matrix m2 = new Matrix(2, new double[]{x * 1, x * 2, x * 3, x * 4}); in testScalarMultiplication() local
84 assertEquals(m2, m1.times(x)); in testScalarMultiplication()
93 Matrix m2 = new Matrix(2, new double[]{-3, 3, 7, 1}); in testMultiplication() local
95 assertEquals(m3, m1.dot(m2)); in testMultiplication()
[all …]
/frameworks/native/libs/ui/tests/
DBufferHubMetadata_test.cpp46 BufferHubMetadata m2 = BufferHubMetadata::import(std::move(h2)); in TEST_F() local
56 EXPECT_TRUE(m2.isValid()); in TEST_F()
57 BufferHubDefs::MetadataHeader* mh2 = m2.metadataHeader(); in TEST_F()
72 BufferHubMetadata m2 = std::move(m1); in TEST_F() local
76 EXPECT_NE(m2.metadataHeader(), nullptr); in TEST_F()
79 EXPECT_NE(m2.ashmemFd().get(), -1); in TEST_F()
82 EXPECT_EQ(m2.userMetadataSize(), sizeof(int)); in TEST_F()
84 BufferHubMetadata m3{std::move(m2)}; in TEST_F()
87 EXPECT_EQ(m2.metadataHeader(), nullptr); in TEST_F()
90 EXPECT_EQ(m2.ashmemFd().get(), -1); in TEST_F()
[all …]
/frameworks/native/libs/math/tests/
Dmat_test.cpp71 mat4 m2(vec4(2)); in TEST_F() local
72 mat4 m3(m2); in TEST_F()
74 EXPECT_EQ(m1, m2); in TEST_F()
75 EXPECT_EQ(m2, m3); in TEST_F()
85 mat4 m2(vec4(2)); in TEST_F() local
87 m1 += m2; in TEST_F()
90 m2 -= m1; in TEST_F()
91 EXPECT_EQ(mat4(-2), m2); in TEST_F()
123 mat4 m2(vec4(1, 5, 9, 13), vec4(2, 6, 10, 14), vec4(3, 7, 11, 15), vec4(4, 8, 12, 16)); in TEST_F() local
124 EXPECT_EQ(m1, transpose(m2)); in TEST_F()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLinkLayerStatsTest.java58 int m2 = ~a & b; in bumpCounters() local
60 assertEquals(-1, m0 + m1 + m2 + m3); in bumpCounters()
72 s.rxmpdu_vi += rxg & m2; in bumpCounters()
73 s.txmpdu_vi += txg & m2; in bumpCounters()
74 s.lostmpdu_vi += txb & m2; in bumpCounters()
75 s.retries_vi += txr & m2; in bumpCounters()
/frameworks/base/tests/JankBench/app/src/main/jni/
Dtest.cpp117 uint8_t * m2 = (uint8_t *)malloc(1024*1024*64); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest() local
120 memset(m2, 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()
152 free (m2); in Java_com_android_benchmark_synthetic_TestInterface_nMemoryTest()
/frameworks/rs/support/java/src/androidx/renderscript/
DMatrix4f.java330 Matrix4f m2 = new Matrix4f(); in loadProjectionNormalized() local
340 m2.loadRotate(180, 0, 1, 0); in loadProjectionNormalized()
341 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
343 m2.loadScale(-2, 2, 1); in loadProjectionNormalized()
344 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
346 m2.loadTranslate(0, 0, 2); in loadProjectionNormalized()
347 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
/frameworks/base/rs/java/android/renderscript/
DMatrix4f.java329 Matrix4f m2 = new Matrix4f(); in loadProjectionNormalized() local
339 m2.loadRotate(180, 0, 1, 0); in loadProjectionNormalized()
340 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
342 m2.loadScale(-2, 2, 1); in loadProjectionNormalized()
343 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
345 m2.loadTranslate(0, 0, 2); in loadProjectionNormalized()
346 m1.loadMultiply(m1, m2); in loadProjectionNormalized()
/frameworks/layoutlib/bridge/tests/src/android/graphics/
DMatrix_DelegateTest.java39 Matrix m2 = new Matrix(m1); in testCopyConstructor() local
44 m2.getValues(v2); in testCopyConstructor()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAdvancedBlendActivity.java71 Matrix m2 = new Matrix(); in ShadersView() local
72 m2.setScale(0.5f, 0.5f); in ShadersView()
73 mScaledShader.setLocalMatrix(m2); in ShadersView()
DMoreShadersActivity.java73 Matrix m2 = new Matrix(); in ShadersView() local
74 m2.setScale(0.1f, 0.1f); in ShadersView()
75 mScaledShader.setLocalMatrix(m2); in ShadersView()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java172 … boolean m2 = (ai.getSuggestActionMsg() != null) && (ai.getSuggestActionMsg().length() > 0); in checkSearchable()
175 assertTrue(m1 || m2 || m3); in checkSearchable()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DModuleInfoProviderTest.java35 Collections.sort(mi, (ModuleInfo m1, ModuleInfo m2) -> in testSuccessfulParse()
/frameworks/base/cmds/statsd/tests/
Dstatsd_test_util.h199 DimensionsPair(DimensionsValue m1, DimensionsValue m2) : dimInWhat(m1), dimInCondition(m2){}; in DimensionsPair()
/frameworks/opt/setupwizard/library/
Dself.gradle12 maven { url "$rootDir/prebuilts/tools/common/m2/repository" }
/frameworks/native/libs/vr/libbufferhub/
Dbuffer_hub-test.cpp522 Metadata m2 = {}; in TEST_F() local
523 EXPECT_EQ(0, c->Acquire(&fence, &m2, sizeof(m2))); in TEST_F()
524 EXPECT_EQ(m.field1, m2.field1); in TEST_F()
525 EXPECT_EQ(m.field2, m2.field2); in TEST_F()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java700 MonitoredPackage m2 = wd.new MonitoredPackage(APP_B, LONG_DURATION, false); in testPackageHealthCheckStateTransitions() local
716 assertEquals(MonitoredPackage.STATE_INACTIVE, m2.getHealthCheckStateLocked()); in testPackageHealthCheckStateTransitions()
718 assertEquals(MonitoredPackage.STATE_ACTIVE, m2.setHealthCheckActiveLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions()
720 assertEquals(MonitoredPackage.STATE_FAILED, m2.handleElapsedTimeLocked(SHORT_DURATION)); in testPackageHealthCheckStateTransitions()
/frameworks/base/packages/SystemUI/docs/
Ddagger.md211 [/prebuilts/tools/common/m2/repository/com/google/dagger/](http://cs/android/prebuilts/tools/common…
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DWallpaperCropActivity.java743 Matrix m2 = new Matrix(); local
744 m2.setRotate(mRotation);
751 c1.setConcat(m2, m1);
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_no_password83 …9_n��en���!i�3͌j�Ӧ_����o>my�L�5�+�J��f6�Dx6#B��H��Hǎ!��f�#����h���m2�6��k�Fvk������l�"�…
Dbackup_telephony_with_password161 …,]kE/h��X��thD��'��Zӑ6���镰yּj��RNL�?4��Ή'p��� 8���B.���T���+�����e��Z�! ���A�z�W*mˬ�m2�t…