/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
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 | 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 | 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 | 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 …]
|
D | ScriptGroupTest.java | 55 Matrix4f m = new Matrix4f(); in testScriptGroupSingleKernel() local 56 m.set(1, 0, 0.2f); in testScriptGroupSingleKernel() 57 m.set(1, 1, 0.9f); in testScriptGroupSingleKernel() 58 m.set(1, 2, 0.2f); in testScriptGroupSingleKernel() 59 mColorMatrix.setColorMatrix(m); in testScriptGroupSingleKernel() 86 Matrix4f m = new Matrix4f(); in testScriptGroupDisconnectedKernel() local 87 m.set(1, 0, 0.2f); in testScriptGroupDisconnectedKernel() 88 m.set(1, 1, 0.9f); in testScriptGroupDisconnectedKernel() 89 m.set(1, 2, 0.2f); in testScriptGroupDisconnectedKernel() 90 mColorMatrix.setColorMatrix(m); in testScriptGroupDisconnectedKernel() [all …]
|
D | matrix.rs | 22 void setMatrix(rs_matrix4x4 m) { 23 Mat = m;
|
/cts/suite/cts/deviceTests/opengl/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/tests/hardware/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/suite/cts/deviceTests/opengl/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/apps/CameraITS/tests/scene1/ |
D | test_exposure.py | 56 m = 1 57 while s*m < sens_range[1] and e/m > expt_range[0]: 58 mults.append(m) 59 req = its.objects.manual_capture_request(s*m, e/m) 62 its.image.write_image(img, "%s_mult=%3.2f.jpg" % (NAME, m)) 69 m = m * pow(2, 1.0 / 3) 72 if m >= 64.0: 87 m, b = numpy.polyfit(mults, values, 1).tolist() 91 print "Channel %d line fit (y = mx+b): m = %f, b = %f" % (chan, m, b)
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 73 Matcher m = sLineWithTgid.matcher(line); in parseLine() local 74 if (m.matches()) { in parseLine() 76 /*threadname*/ m.group(1), in parseLine() 77 /*pid*/ m.group(3).startsWith("-") ? -1 : Integer.parseInt(m.group(3)), in parseLine() 78 /*tid*/ Integer.parseInt(m.group(2)), in parseLine() 79 /*eventName*/ m.group(6), in parseLine() 80 /*details*/ m.group(7)); in parseLine() 84 m = sLineWithIrqInfo.matcher(line); in parseLine() 85 if (m.matches()) { in parseLine() 87 /*threadname*/ m.group(1), in parseLine() [all …]
|
/cts/tests/tests/renderscript/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/graphics/src/android/graphics/cts/ |
D | ShaderTest.java | 37 Matrix m = new Matrix(); in testAccessLocalMatrix() local 39 shader.setLocalMatrix(m); in testAccessLocalMatrix() 40 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix() 43 assertFalse(shader.getLocalMatrix(m)); in testAccessLocalMatrix()
|
D | CameraTest.java | 135 Matrix m = new Matrix(); in testApplyToCanvas() local 136 mCamera.getMatrix(m); in testApplyToCanvas() 137 c2.concat(m); in testApplyToCanvas() 146 private void preCompare(Matrix m) { in preCompare() argument 147 mCamera.getMatrix(m); in preCompare() 149 m.getValues(f); in preCompare()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VirtualizerTest.java | 312 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_0FormatModeQuery() 315 VIRTUALIZATION_MODES[m]); in test4_0FormatModeQuery() 323 + ") mode: " + VIRTUALIZATION_MODES[m] in test4_0FormatModeQuery() 351 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 355 VIRTUALIZATION_MODES[m]); in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 357 VIRTUALIZATION_MODES[m], angles); in test4_1SpeakerAnglesCapaMatchesFormatModeCapa() 473 for (int m = 0 ; m < VIRTUALIZATION_MODES.length ; m++) { in test4_5ConsistentCapabilitiesWithEnabledDisabled() 477 VIRTUALIZATION_MODES[m]); in test4_5ConsistentCapabilitiesWithEnabledDisabled() 479 VIRTUALIZATION_MODES[m], angles); in test4_5ConsistentCapabilitiesWithEnabledDisabled() 482 values[m][i] = canVirtualize; in test4_5ConsistentCapabilitiesWithEnabledDisabled() [all …]
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | crypto.js | 98 var m = xh*l+h*xl; 99 l = xl*l+((m&0x7fff)<<15)+w_array[j]+(c&0x3fffffff); 100 c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); 116 var m = xh*l+h*xl; 117 l = xl*l+((m&0x3fff)<<14)+w_array[j]+c; 118 c = (l>>28)+(m>>14)+xh*h; 134 var m = xh*l+h*xl; 135 l = xl*l+((m&0x1fff)<<13)+w_array[j]+c; 136 c = (l>>26)+(m>>13)+xh*h; 260 var km = (1<<k)-1, d, m = false, r = "", i = this.t; [all …]
|
D | box2d.js | 30 …ply(this,arguments)}function f(){f.b2Sweep.apply(this,arguments)}function m(){m.b2Transform.apply(… function 31 arguments);this.constructor===m&&this.b2Transform.apply(this,arguments)}function r(){r.b2Vec2.apply… 44 …mon.Math.b2Math=e;Box2D.Common.Math.b2Sweep=f;Box2D.Common.Math.b2Transform=m;Box2D.Common.Math.b2… 53 …his.upperBound.y};B.prototype.RayCast=function(b,e){var f=-Number.MAX_VALUE,m=Number.MAX_VALUE,r=e… 54 …ound.x-r)*J;P=-1;if(T>J){P=T;T=J;J=P;P=1}if(T>f){C.x=P;C.y=0;f=T}m=Math.min(m,J);if(f>m)return fal… 55 T}m=Math.min(m,J);if(f>m)return false}b.fraction=f;return true};B.prototype.TestOverlap=function(b)… 56 …this.proxy,m=this.stabbingCount;this.value=b.value;this.proxy=b.proxy;this.stabbingCount=b.stabbin… 57 …tToLine=function(b,e,f,m){if(m===undefined)m=0;var r,s=0;r=e[0];var v=r.v;r=e[1];var t=r.v,x=f.x*v… argument 58 …m,r){if(f===undefined)f=0;parseInt(b.m_vertexCount);var s=b.m_vertices;b=b.m_normals;var v=parseIn… 59 …);s-=f;r-=e;return s*b+r*m};M.FindMaxSeparation=function(b,e,f,m,r){var s=parseInt(e.m_vertexCount… argument [all …]
|
/cts/suite/cts/deviceTests/opengl/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/hardware/src/android/hardware/camera2/cts/rs/ |
D | RawConverter.java | 665 private static float[] transpose(/*inout*/float[/*9*/] m) { in transpose() 666 float t = m[1]; in transpose() 667 m[1] = m[3]; in transpose() 668 m[3] = t; in transpose() 669 t = m[2]; in transpose() 670 m[2] = m[6]; in transpose() 671 m[6] = t; in transpose() 672 t = m[5]; in transpose() 673 m[5] = m[7]; in transpose() 674 m[7] = t; in transpose() [all …]
|
/cts/tests/tests/renderscript/libbnnmdata/ |
D | test_data.cpp | 22 const int m = 256; variable 30 const int a_count = (m * k); 32 const int c_count = (m * n);
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | MacTest.java | 472 Mac m = (provider != null) in assertMacVerifiesOneShot() local 474 m.init(key); in assertMacVerifiesOneShot() 475 byte[] mac2 = m.doFinal(message); in assertMacVerifiesOneShot() 478 + ", provider: " + m.getProvider().getName() in assertMacVerifiesOneShot() 489 Mac m = Mac.getInstance(algorithm); in assertMacDoesNotVerifyOneShot() local 490 m.init(key); in assertMacDoesNotVerifyOneShot() 491 byte[] mac2 = m.doFinal(message); in assertMacDoesNotVerifyOneShot() 494 + ", provider: " + m.getProvider().getName() in assertMacDoesNotVerifyOneShot() 504 Mac m = Mac.getInstance(algorithm); in assertMacVerifiesFedOneByteAtATime() local 505 m.init(key); in assertMacVerifiesFedOneByteAtATime() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | TestedScreen.java | 107 final Message m = Message.obtain(); in queueIdle() local 108 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle() 110 final Message m = Message.obtain(); in queueIdle() local 111 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle()
|
/cts/tests/app/src/android/app/cts/ |
D | TestedScreen.java | 107 final Message m = Message.obtain(); in queueIdle() local 108 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle() 110 final Message m = Message.obtain(); in queueIdle() local 111 mHandler.sendMessageAtTime(m, SystemClock.uptimeMillis() + 1000); in queueIdle()
|