/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Matrix2fTest.java | 28 void checkIdentity(Matrix2f m, float delta) { in checkIdentity() argument 32 assertEquals(1.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 34 assertEquals(0.0f, m.getArray()[i*2 + j], delta); in checkIdentity() 53 void checkData(Matrix2f m, float[] data, float delta) { in checkData() argument 55 assertEquals(data[i], m.getArray()[i], delta); in checkData() 59 void checkData(Matrix2f m, float[] data) { in checkData() argument 60 String s1 = getString(m.getArray()); in checkData() 66 Matrix2f m = new Matrix2f(); in testCreation() local 67 assertTrue(m.getArray() != null); in testCreation() 68 checkIdentity(m, 0.0f); in testCreation() [all …]
|
D | Matrix4fTest.java | 30 void checkIdentity(Matrix4f m, float delta) { in checkIdentity() argument 34 assertEquals(1.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 36 assertEquals(0.0f, m.getArray()[i*4 + j], delta); in checkIdentity() 55 void checkData(Matrix4f m, float[] data, float delta) { in checkData() argument 57 assertEquals(data[i], m.getArray()[i], delta); in checkData() 61 void checkData(Matrix4f m, float[] data) { in checkData() argument 62 String s1 = getString(m.getArray()); in checkData() 68 Matrix4f m = new Matrix4f(); in testCreation() local 69 assertTrue(m.getArray() != null); in testCreation() 70 checkIdentity(m, 0.0f); in testCreation() [all …]
|
D | Matrix3fTest.java | 29 void checkIdentity(Matrix3f m, float delta) { in checkIdentity() argument 33 assertEquals(1.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 35 assertEquals(0.0f, m.getArray()[i*3 + j], delta); in checkIdentity() 54 void checkData(Matrix3f m, float[] data, float delta) { in checkData() argument 56 assertEquals(data[i], m.getArray()[i], delta); in checkData() 60 void checkData(Matrix3f m, float[] data) { in checkData() argument 61 String s1 = getString(m.getArray()); in checkData() 67 Matrix3f m = new Matrix3f(); in testCreation() local 68 assertTrue(m.getArray() != null); in testCreation() 69 checkIdentity(m, 0.0f); in testCreation() [all …]
|
D | matrix.rs | 22 void setMatrix(rs_matrix4x4 m) { 23 Mat = m;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | KernelDataForRenderScript.java | 122 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScript() 123 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() 127 infoArray[m * 4] = offset; in KernelDataForRenderScript() 128 infoArray[m * 4 + 1] = kernelRadius; in KernelDataForRenderScript() 129 infoArray[m * 4 + 2] = kernelRadius; in KernelDataForRenderScript() 144 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScript() 145 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() 149 kernelInfo.set_offset(m, offset, true); in KernelDataForRenderScript() 150 kernelInfo.set_radius_x(m, kernelRadius, true); in KernelDataForRenderScript() 151 kernelInfo.set_radius_y(m, kernelRadius, true); in KernelDataForRenderScript()
|
/cts/tests/openglperf2/test/ |
D | MatrixTest.cpp | 50 Matrix m; in TEST() local 57 checkValues(m.mData, expected, Matrix::MATRIX_SIZE); in TEST() 154 Matrix* m = Matrix::newLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, in TEST() local 156 ASSERT_TRUE(m != NULL); in TEST() 163 checkValues(m->mData, expected, Matrix::MATRIX_SIZE); in TEST() 164 delete m; in TEST() 176 Matrix* m = Matrix::newFrustum(left, right, bottom, top, near, far); in TEST() local 177 ASSERT_TRUE(m != NULL); in TEST() 184 checkValues(m->mData, expected, Matrix::MATRIX_SIZE); in TEST() 185 delete m; in TEST() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorManagerStaticTest.java | 621 private static float [] mat9to16(float [] m) { in mat9to16() argument 622 assertTrue(m.length == 9); in mat9to16() 627 n[i+i/3] = m[i]; in mat9to16() 633 private static float [] mat16to9(float [] m) { in mat16to9() argument 634 assertTrue(m.length == 16); in mat16to9() 639 n[i] = m[i + i/3]; in mat16to9() 644 private static float [] mat9Mul(float [] m, float [] n) { in mat9Mul() argument 645 assertTrue(m.length == 9 && n.length == 9); in mat9Mul() 653 r[i * 3 + j] += m[i * 3 + k] * n[k * 3 + j]; in mat9Mul() 658 private static float [] mat9T(float [] m) { in mat9T() argument [all …]
|
/cts/tests/openglperf2/jni/graphics/ |
D | Matrix.cpp | 77 Matrix* m = newTranslate(x, y, z); in translate() local 79 if (m != NULL && temp != NULL) { in translate() 80 multiply(*temp, *m); in translate() 82 delete m; in translate() 87 Matrix* m = newScale(x, y, z); in scale() local 89 if (m != NULL && temp != NULL) { in scale() 90 multiply(*temp, *m); in scale() 92 delete m; in scale() 97 Matrix* m = newRotate(radians, x, y, z); in rotate() local 99 if (m != NULL && temp != NULL) { in rotate() [all …]
|
D | Vector2D.cpp | 53 float m = magnitude(); in normalize() local 54 if (m > 0) { in normalize() 55 scale(1 / m); in normalize()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 74 Matcher m = sLineWithTgid.matcher(line); in parseLine() local 75 if (m.matches()) { in parseLine() 77 /*threadname*/ m.group(1), in parseLine() 78 /*pid*/ m.group(3).startsWith("-") ? -1 : Integer.parseInt(m.group(3)), in parseLine() 79 /*tid*/ Integer.parseInt(m.group(2)), in parseLine() 80 /*eventName*/ m.group(6), in parseLine() 81 /*details*/ m.group(7)); in parseLine() 85 m = sLineWithIrqInfo.matcher(line); in parseLine() 86 if (m.matches()) { in parseLine() 88 /*threadname*/ m.group(1), in parseLine() [all …]
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BNNMTest.java | 129 private byte[] runBNNM(int m, int n, int k, byte[] a_byte, int a_offset, byte[] b_byte, in runBNNM() argument 133 Type a_type = builder.setX(k).setY(m).create(); in runBNNM() 135 Type c_type = builder.setX(n).setY(m).create(); in runBNNM() 148 int c_count = (m * n); in runBNNM() 204 final int m = a_cols; in testSmallMatrices() local 208 byte[] c_byte_output = runBNNM(m, n, k, a_data, a_offset, b_data, b_offset, in testSmallMatrices() 249 final int m = a_cols; in testMediumMatrices1() local 253 byte[] c_byte_output = runBNNM(m, n, k, a_data, a_offset, b_data, b_offset, in testMediumMatrices1() 301 final int m = a_cols; in testMediumMatrices2() local 305 byte[] c_byte_output = runBNNM(m, n, k, a_data, a_offset, b_data, b_offset, in testMediumMatrices2() [all …]
|
/cts/tests/tests/rsblas/assets/ |
D | blas_gen.py | 58 def sMatGen(m, n, scale): argument 59 a = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 63 def dMatGen(m, n, scale): argument 64 a = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) 68 def cMatGen(m, n, scale): argument 69 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 70 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f4')/scale) 75 def zMatGen(m, n, scale): argument 76 a_real = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) 77 a_img = mat(random.randint(1, 10, size=(m, n)).astype('f8')/scale) [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VirtualizerTest.java | 314 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_0FormatModeQuery() 317 VIRTUALIZATION_MODES[m]); in test4_0FormatModeQuery() 325 + ") mode: " + VIRTUALIZATION_MODES[m] in test4_0FormatModeQuery() 353 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 357 VIRTUALIZATION_MODES[m]); in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 359 VIRTUALIZATION_MODES[m], angles); in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 475 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_5ConsistentCapabilitiesWithEnabledDisabled() 479 VIRTUALIZATION_MODES[m]); in test4_5ConsistentCapabilitiesWithEnabledDisabled() 481 VIRTUALIZATION_MODES[m], angles); in test4_5ConsistentCapabilitiesWithEnabledDisabled() 484 values[m][i] = canVirtualize; in test4_5ConsistentCapabilitiesWithEnabledDisabled() [all …]
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_exposure.py | 86 m = 1.0 87 while s*m < sens_range[1] and e/m > expt_range[0]: 88 mults.append(m) 89 s_test = round(s*m) 107 its.image.write_image(img, '%s_mult=%3.2f.jpg' % (NAME, m)) 132 m *= pow(2, 1.0 / 3) 135 if m >= 64.0: 167 m, b = numpy.polyfit(mults, values, 1).tolist() 171 print 'Channel %d line fit (y = mx+b): m = %f, b = %f' % (chan, m, b) 182 m, b = numpy.polyfit(mults, values, 1).tolist() [all …]
|
D | test_raw_exposure.py | 104 mean = [m * white_level for tile in tiles 105 for m in its.image.compute_image_means(tile)] 118 r = [m[0] for m in means[1:]] 119 gr = [m[1] for m in means[1:]] 120 gb = [m[2] for m in means[1:]] 121 b = [m[3] for m in means[1:]]
|
/cts/tests/tests/security/res/raw/ |
D | drm_uaf.dm | 10 ���%*�CNm.�!{�m�<��@�x�ᅊ�� �e��f�&�Q��Ol�~�<�#)��h~�Z��:�#�+�isL��9��,P<��܍^��+�[q̋��%9�2+… 23 …�F �P<}���r0ߥ�:c/�͆�X/�'V��rAx <�)���������*��q��m�?0q��0GP<qw�� �h�t��_���*��.QV�}�m=Z… 24 �7OtT�[^n6�=��K6�]�<�,�6�|P�h.�T��ݞ]<���0PC�yEa<���zC��*�r���m�wc!R�XP_<����(��Ӏș1I�… 38 …e�-#�g�O�������0<�]�<x_�ڦ�)G�\��y�@��G��(�@<Y->xf��ARv�j�� ��6H㷕Ӱ<m�x�xx�y����hp��?�馨… 39 q�<>�*��tǶ"G����b�^���<�Z���,~�&�i�6�)l���G�12�`<�m� 40 …�g�� _�w�W��%�P��g���q��� <�"x��Å�AI\*�)�Xו�:���_��`<�����)'��̪i�m�;�"_�M�Y��<�����… 42 …m�F�~�*�X���ͻ}�'�X�0h��`��<�,t)���+�P�A'���0�խO��FsB@<����x�K���4���֩��l&�t�aF��<{,�1L]8… 53 ~a�<�$�0��[��]m�M�����ޢ��'�0<r0�~[��+��-a,H�mz-Ik'�I��<�$����~�]����?� ܇qn����H <y��… 57 …8T�K�:5�)�Gm{�_��#U���<������:*��vԅ7��@�����Ʈ!�`<q���C_���B[v5�����$J����<�Ε�4m>[�� 61 �cl��O�<�6�!Nz>��*�Q����B�m�}�N�R��<��z��w��:��ОK�P�y��ĿbJ���p<�0y+nl������� 6��q�y&�\�… [all …]
|
/cts/tests/openglperf2/jni/primitive/shaderperf/ |
D | ShaderPerfRenderer.cpp | 125 uint32_t* m = new uint32_t[SIZE]; in setUp() local 126 if (m != NULL) { in setUp() 127 uint32_t* d = m; in setUp() 134 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, SIZE, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in setUp() 139 delete[] m; in setUp()
|
/cts/suite/audio_quality/test_description/conf/ |
D | detect_usb_audio.py | 37 m = re.search("card(\d+)$", sound_dev) 38 if m != None: 44 print "___CTS_AUDIO_PASS___ " + line + " " + m.group(1)
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/ |
D | KernelDataForRenderScriptF32.java | 62 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScriptF32() 63 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptF32() 66 System.arraycopy(kernelMatrix, 0, kernelStack, kernelInfo.get_offset(m), in KernelDataForRenderScriptF32()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/ |
D | KernelDataForRenderScriptd1new.java | 61 for (int m = 0; m < numDepths; ++m) { in KernelDataForRenderScriptd1new() 62 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptd1new() 67 System.arraycopy(kernelMatrix, 0, kernelStack, (int)infoArray[4*m], in KernelDataForRenderScriptd1new()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsIncidentTest.java | 208 SystemProto.Misc m = s.getMisc(); in testSystemProto() local 209 assertTrue(0 <= m.getScreenOnDurationMs()); in testSystemProto() 210 assertTrue(0 <= m.getPhoneOnDurationMs()); in testSystemProto() 211 assertTrue(0 <= m.getFullWakelockTotalDurationMs()); in testSystemProto() 212 assertTrue(0 <= m.getPartialWakelockTotalDurationMs()); in testSystemProto() 213 assertTrue(0 <= m.getMobileRadioActiveDurationMs()); in testSystemProto() 214 assertTrue(0 <= m.getMobileRadioActiveAdjustedTimeMs()); in testSystemProto() 215 assertTrue(0 <= m.getMobileRadioActiveCount()); in testSystemProto() 216 assertTrue(0 <= m.getMobileRadioActiveUnknownDurationMs()); in testSystemProto() 217 assertTrue(0 <= m.getInteractiveDurationMs()); in testSystemProto() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | CameraTest.java | 56 Matrix m = new Matrix(); in testMatrixPreCompare() local 57 mCamera.getMatrix(m); in testMatrixPreCompare() 59 m.getValues(f); in testMatrixPreCompare() 160 Matrix m = new Matrix(); in testApplyToCanvas() local 161 mCamera.getMatrix(m); in testApplyToCanvas() 162 c2.concat(m); in testApplyToCanvas()
|
/cts/tests/signature/src/android/signature/cts/ |
D | InterfaceChecker.java | 108 .filter(m -> !Modifier.isStatic(m.getModifiers())) in checkInterfaceMethodCompliance() 109 .filter(m -> !HIDDEN_INTERFACE_METHOD_WHITELIST.contains(m.toGenericString())) in checkInterfaceMethodCompliance() 110 .filter(m -> !findMethod(classDescription, m)) in checkInterfaceMethodCompliance()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | AbstractTimePickerActivity.java | 65 mTimePicker.setOnTimeChangedListener((v, m, h) -> updateOutputWithTime(m, h)); in onCreate() 95 mTimePicker.setOnTimeChangedListener((v, h, m) -> { in expectAutoFill() argument 96 updateOutputWithTime(h, m); in expectAutoFill() 97 mExpectation.timeListener.onTimeChanged(v, h, m); in expectAutoFill()
|
/cts/tests/tests/selinux/common/src/android/security/ |
D | SELinuxTargetSdkTestBase.java | 65 Matcher m = p.matcher(getFile("/proc/self/attr/current")); in appDomainContext() local 68 assertTrue(msg, m.matches()); in appDomainContext() 78 Matcher m = p.matcher(getFileContext(appDataDir.getAbsolutePath())); in appDataContext() local 81 assertTrue(msg, m.matches()); in appDataContext()
|