/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | MadTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 73 …ref[i * (stride - skip) + j] = (float)((double)in[idx] * (double)in[idx+stride] + (double)in[idx+s… in getRefArray() 90 ScriptField_mad_input_f32 in = new ScriptField_mad_input_f32(mRS, INPUTSIZE); in testMadF32() local 91 mIn = in.getAllocation(); in testMadF32() 96 ScriptField_mad_input_f32 in = new ScriptField_mad_input_f32(mRS, INPUTSIZE); in testMadF32_relaxed() local 97 mIn = in.getAllocation(); in testMadF32_relaxed() 102 ScriptField_mad_input_f32_2 in = new ScriptField_mad_input_f32_2(mRS, INPUTSIZE); in testMadF32_2() local 103 mIn = in.getAllocation(); in testMadF32_2() 108 ScriptField_mad_input_f32_2 in = new ScriptField_mad_input_f32_2(mRS, INPUTSIZE); in testMadF32_2_relaxed() local 109 mIn = in.getAllocation(); in testMadF32_2_relaxed() [all …]
|
D | CrossTest.java | 56 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 61 ref[idxRef + 0] = in[idx+1] * in[idx+2+stride] - in[idx+2] * in[idx+1+stride]; in getRefArray() 62 ref[idxRef + 1] = in[idx+2] * in[idx+0+stride] - in[idx+0] * in[idx+2+stride]; in getRefArray() 63 ref[idxRef + 2] = in[idx+0] * in[idx+1+stride] - in[idx+1] * in[idx+0+stride]; in getRefArray() 84 ScriptField__cross_f32_3_struct in = new ScriptField__cross_f32_3_struct(mRS, INPUTSIZE); in testCrossF32_3() local 85 mIn = in.getAllocation(); in testCrossF32_3() 103 ScriptField__cross_f32_4_struct in = new ScriptField__cross_f32_4_struct(mRS, INPUTSIZE); in testCrossF32_4() local 104 mIn = in.getAllocation(); in testCrossF32_4()
|
D | ForEachTest.java | 67 Allocation in = Allocation.createTyped(mRS, t); in testForEach() local 70 fe_all.forEach_test_i8(in, out); in testForEach() 73 fe_all.forEach_test_i8(in, badOut); in testForEach() 81 in = Allocation.createTyped(mRS, t); in testForEach() 84 fe_all.forEach_test_i8_2(in, out); in testForEach() 87 fe_all.forEach_test_i8_2(in, badOut); in testForEach() 95 in = Allocation.createTyped(mRS, t); in testForEach() 98 fe_all.forEach_test_i8_3(in, out); in testForEach() 101 fe_all.forEach_test_i8_3(in, badOut); in testForEach() 109 in = Allocation.createTyped(mRS, t); in testForEach() [all …]
|
D | KernelTest.java | 67 Allocation in = Allocation.createTyped(mRS, t); in testForEach() local 70 kernel_all.forEach_test_i8(in, out); in testForEach() 73 kernel_all.forEach_test_i8(in, badOut); in testForEach() 81 in = Allocation.createTyped(mRS, t); in testForEach() 84 kernel_all.forEach_test_i8_2(in, out); in testForEach() 87 kernel_all.forEach_test_i8_2(in, badOut); in testForEach() 95 in = Allocation.createTyped(mRS, t); in testForEach() 98 kernel_all.forEach_test_i8_3(in, out); in testForEach() 101 kernel_all.forEach_test_i8_3(in, badOut); in testForEach() 109 in = Allocation.createTyped(mRS, t); in testForEach() [all …]
|
D | RemainderTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 73 double num = (double)in[idx]; in getRefArray() 74 double den = (double)in[idx+stride]; in getRefArray() 92 ScriptField_remainder_f32 in = new ScriptField_remainder_f32(mRS, INPUTSIZE); in testRemainderF32() local 93 mIn = in.getAllocation(); in testRemainderF32() 98 ScriptField_remainder_f32 in = new ScriptField_remainder_f32(mRS, INPUTSIZE); in testRemainderF32_relaxed() local 99 mIn = in.getAllocation(); in testRemainderF32_relaxed() 104 ScriptField_remainder_f32_2 in = new ScriptField_remainder_f32_2(mRS, INPUTSIZE); in testRemainderF32_2() local 105 mIn = in.getAllocation(); in testRemainderF32_2() 110 ScriptField_remainder_f32_2 in = new ScriptField_remainder_f32_2(mRS, INPUTSIZE); in testRemainderF32_2_relaxed() local [all …]
|
D | StepTest.java | 67 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 72 ref[i * (stride - skip) + j] = in[idx+stride] < in[idx] ? 0.0f : 1.0f; in getRefArray() 89 ScriptField_step_input in = new ScriptField_step_input(mRS, INPUTSIZE); 90 mIn = in.getAllocation(); 95 ScriptField_step_input in = new ScriptField_step_input(mRS, INPUTSIZE); 96 mIn = in.getAllocation(); 101 ScriptField_step_2_input in = new ScriptField_step_2_input(mRS, INPUTSIZE); 102 mIn = in.getAllocation(); 107 ScriptField_step_2_input in = new ScriptField_step_2_input(mRS, INPUTSIZE); 108 mIn = in.getAllocation(); [all …]
|
D | FminTest.java | 67 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 72 ref[i * (stride - skip) + j] = Math.min(in[idx], in[idx+stride]); in getRefArray() 89 ScriptField_fmin_f32_in in = new ScriptField_fmin_f32_in(mRS, INPUTSIZE); in testfminF32() local 90 mIn = in.getAllocation(); in testfminF32() 95 ScriptField_fmin_f32_in in = new ScriptField_fmin_f32_in(mRS, INPUTSIZE); in testfminF32_relaxed() local 96 mIn = in.getAllocation(); in testfminF32_relaxed() 101 ScriptField_fmin_f32_2_in in = new ScriptField_fmin_f32_2_in(mRS, INPUTSIZE); in testfminF32_2() local 102 mIn = in.getAllocation(); in testfminF32_2() 107 ScriptField_fmin_f32_2_in in = new ScriptField_fmin_f32_2_in(mRS, INPUTSIZE); in testfminF32_2_relaxed() local 108 mIn = in.getAllocation(); in testfminF32_2_relaxed() [all …]
|
D | Atan2PiTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 73 …ref[i * (stride - skip) + j] = (float)(Math.atan2((double)in[idx],(double)in[idx+stride]) / Math.P… in getRefArray() 90 ScriptField_atan2pi_float_input in = new ScriptField_atan2pi_float_input(mRS, INPUTSIZE); in testAtan2PiF32() local 91 mIn = in.getAllocation(); in testAtan2PiF32() 96 ScriptField_atan2pi_float_input in = new ScriptField_atan2pi_float_input(mRS, INPUTSIZE); in testAtan2PiF32_relaxed() local 97 mIn = in.getAllocation(); in testAtan2PiF32_relaxed() 102 ScriptField_atan2pi_float2_input in = new ScriptField_atan2pi_float2_input(mRS, INPUTSIZE); in testAtan2PiF32_2() local 103 mIn = in.getAllocation(); in testAtan2PiF32_2() 108 ScriptField_atan2pi_float2_input in = new ScriptField_atan2pi_float2_input(mRS, INPUTSIZE); in testAtan2PiF32_2_relaxed() local 109 mIn = in.getAllocation(); in testAtan2PiF32_2_relaxed() [all …]
|
D | FmaxTest.java | 67 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 72 ref[i * (stride - skip) + j] = Math.max(in[idx], in[idx+stride]); in getRefArray() 89 ScriptField_fmax_f32_in in = new ScriptField_fmax_f32_in(mRS, INPUTSIZE); in testfmaxF32() local 90 mIn = in.getAllocation(); in testfmaxF32() 95 ScriptField_fmax_f32_in in = new ScriptField_fmax_f32_in(mRS, INPUTSIZE); in testfmaxF32_relaxed() local 96 mIn = in.getAllocation(); in testfmaxF32_relaxed() 101 ScriptField_fmax_f32_2_in in = new ScriptField_fmax_f32_2_in(mRS, INPUTSIZE); in testfmaxF32_2() local 102 mIn = in.getAllocation(); in testfmaxF32_2() 107 ScriptField_fmax_f32_2_in in = new ScriptField_fmax_f32_2_in(mRS, INPUTSIZE); in testfmaxF32_2_relaxed() local 108 mIn = in.getAllocation(); in testfmaxF32_2_relaxed() [all …]
|
D | HypotTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 73 … ref[i * (stride - skip) + j] = (float)Math.hypot((double)in[idx], (double)in[idx+stride]); in getRefArray() 90 ScriptField_hypot_f32_in in = new ScriptField_hypot_f32_in(mRS, INPUTSIZE); in testHypotF32() local 91 mIn = in.getAllocation(); in testHypotF32() 96 ScriptField_hypot_f32_in in = new ScriptField_hypot_f32_in(mRS, INPUTSIZE); in testHypotF32_relaxed() local 97 mIn = in.getAllocation(); in testHypotF32_relaxed() 102 ScriptField_hypot_f32_2_in in = new ScriptField_hypot_f32_2_in(mRS, INPUTSIZE); in testHypotF32_2() local 103 mIn = in.getAllocation(); in testHypotF32_2() 108 ScriptField_hypot_f32_2_in in = new ScriptField_hypot_f32_2_in(mRS, INPUTSIZE); in testHypotF32_2_relaxed() local 109 mIn = in.getAllocation(); in testHypotF32_2_relaxed() [all …]
|
D | Atan2Test.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 73 … ref[i * (stride - skip) + j] = (float)Math.atan2((double)in[idx],(double)in[idx+stride]); in getRefArray() 90 ScriptField_atan2_f32_in in = new ScriptField_atan2_f32_in(mRS, INPUTSIZE); in testAtan2F32() local 91 mIn = in.getAllocation(); in testAtan2F32() 96 ScriptField_atan2_f32_in in = new ScriptField_atan2_f32_in(mRS, INPUTSIZE); in testAtan2F32_relaxed() local 97 mIn = in.getAllocation(); in testAtan2F32_relaxed() 102 ScriptField_atan2_f32_2_in in = new ScriptField_atan2_f32_2_in(mRS, INPUTSIZE); in testAtan2F32_2() local 103 mIn = in.getAllocation(); in testAtan2F32_2() 108 ScriptField_atan2_f32_2_in in = new ScriptField_atan2_f32_2_in(mRS, INPUTSIZE); in testAtan2F32_2_relaxed() local 109 mIn = in.getAllocation(); in testAtan2F32_2_relaxed() [all …]
|
D | CopysignTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 74 ref[i*vec_size + j] = Math.copySign(in[idx], in[idx + stride]); in getRefArray() 94 ScriptField_copysign_f32_input in = new ScriptField_copysign_f32_input(mRS, INPUTSIZE); in testCopysignF32() local 95 mIn = in.getAllocation(); in testCopysignF32() 100 ScriptField_copysign_f32_input in = new ScriptField_copysign_f32_input(mRS, INPUTSIZE); in testCopysignF32_relaxed() local 101 mIn = in.getAllocation(); in testCopysignF32_relaxed() 109 ScriptField_copysign_f32_2_input in = new ScriptField_copysign_f32_2_input(mRS, INPUTSIZE); in testCopysignF32_2() local 110 mIn = in.getAllocation(); in testCopysignF32_2() 115 ScriptField_copysign_f32_2_input in = new ScriptField_copysign_f32_2_input(mRS, INPUTSIZE); in testCopysignF32_2_relaxed() local 116 mIn = in.getAllocation(); in testCopysignF32_2_relaxed() [all …]
|
D | PowTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 74 ref[idxRef] = (float)Math.pow((double)in[idx], (double)in[idx+stride]); in getRefArray() 96 ScriptField_PowInputData in = new ScriptField_PowInputData(mRS, INPUTSIZE); in testPowF32() local 97 mIn = in.getAllocation(); in testPowF32() 102 ScriptField_PowInputData in = new ScriptField_PowInputData(mRS, INPUTSIZE); in testPowF32_relaxed() local 103 mIn = in.getAllocation(); in testPowF32_relaxed() 108 ScriptField_PowInputData_2 in = new ScriptField_PowInputData_2(mRS, INPUTSIZE); in testPowF32_2() local 109 mIn = in.getAllocation(); in testPowF32_2() 114 ScriptField_PowInputData_2 in = new ScriptField_PowInputData_2(mRS, INPUTSIZE); in testPowF32_2_relaxed() local 115 mIn = in.getAllocation(); in testPowF32_2_relaxed() [all …]
|
D | PowrTest.java | 68 protected float[] getRefArray(float[] in, int input_size, int stride, int skip) { in getRefArray() argument 74 ref[idxRef] = (float)Math.pow((double)in[idx], (double)in[idx+stride]); in getRefArray() 96 ScriptField_PowInputData in = new ScriptField_PowInputData(mRS, INPUTSIZE); in testPowrF32() local 97 mIn = in.getAllocation(); in testPowrF32() 102 ScriptField_PowInputData in = new ScriptField_PowInputData(mRS, INPUTSIZE); in testPowrF32_relaxed() local 103 mIn = in.getAllocation(); in testPowrF32_relaxed() 108 ScriptField_PowInputData_2 in = new ScriptField_PowInputData_2(mRS, INPUTSIZE); in testPowrF32_2() local 109 mIn = in.getAllocation(); in testPowrF32_2() 114 ScriptField_PowInputData_2 in = new ScriptField_PowInputData_2(mRS, INPUTSIZE); in testPowrF32_2_relaxed() local 115 mIn = in.getAllocation(); in testPowrF32_2_relaxed() [all …]
|
D | GetElementAt.java | 31 private int[] in; field in GetElementAt 50 in = new int[size]; in setupArrays() 52 in[i] = random.nextInt(100); in setupArrays() 61 gIn.copyFrom(in); in testX() 70 assertEquals("idx = " + k, in[k], out[k]); in testX() 82 gIn.copyFrom(in); in testXY() 91 assertEquals("idx = " + k, in[k], out[k]); in testXY()
|
D | InitTest.java | 37 float[] in = new float[INPUTSIZE]; in testInitTest() local 43 in[i] = 0; in testInitTest() 46 mIn.copy1DRangeFrom(0, INPUTSIZE, in); in testInitTest()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AslrTest.java | 39 BufferedReader in = null; in testVaRandomize() local 41 in = new BufferedReader(new FileReader("/proc/sys/kernel/randomize_va_space")); in testVaRandomize() 42 int level = Integer.parseInt(in.readLine().trim()); in testVaRandomize() 49 if (in != null) { in testVaRandomize() 50 in.close(); in testVaRandomize()
|
D | Proc.java | 34 BufferedReader in = null; in findPidFor() local 36 in = new BufferedReader(new FileReader(cmdLine)); in findPidFor() 37 String line = in.readLine(); in findPidFor() 42 if (in != null) { in findPidFor() 43 in.close(); in findPidFor()
|
D | KernelSettingsTest.java | 136 BufferedReader in = null; in getFile() local 138 in = new BufferedReader(new FileReader(filename)); in getFile() 139 return in.readLine().trim(); in getFile() 141 if (in != null) { in getFile() 142 in.close(); in getFile()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ParcelFileDescriptor_AutoCloseInputStreamTest.java | 29 AutoCloseInputStream in = new AutoCloseInputStream(pf); in testAutoCloseInputStream() local 30 assertEquals(0, in.read()); in testAutoCloseInputStream() 32 in.close(); in testAutoCloseInputStream() 35 in.read(); in testAutoCloseInputStream()
|
D | ParcelFileDescriptorTest.java | 53 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testConstructorAndOpen() local 56 assertEquals(0, in.read()); in testConstructorAndOpen() 57 assertEquals(1, in.read()); in testConstructorAndOpen() 58 assertEquals(2, in.read()); in testConstructorAndOpen() 59 assertEquals(3, in.read()); in testConstructorAndOpen() 61 in.close(); in testConstructorAndOpen() 105 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testFromSocket() local 106 assertEquals(DATA, in.read()); in testFromSocket() 107 in.close(); in testFromSocket() 181 AutoCloseInputStream in = new AutoCloseInputStream(pfd); in testWriteToParcel() local [all …]
|
D | MemoryFileTest.java | 74 InputStream in = mMemoryFile.getInputStream(); in testGetOutputStream() local 75 assertEquals(1, in.read()); in testGetOutputStream() 76 assertEquals(2, in.read()); in testGetOutputStream() 77 assertEquals(3, in.read()); in testGetOutputStream() 78 assertEquals(4, in.read()); in testGetOutputStream()
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | Strings.java | 45 BufferedReader in = new BufferedReader(reader); in readStream() local 47 while ((line = in.readLine()) != null) { in readStream() 51 in.close(); in readStream() 60 BufferedReader in = in readFileLines() local 64 while ((line = in.readLine()) != null) { in readFileLines() 67 in.close(); in readFileLines()
|
/cts/tests/tests/drm/ |
D | README | 1 - User of CTS code needs to edit configuration files in 3 of user's DRM plug-in. 4 - If new plug-in is added, user should add corresponding configuration
|
/cts/tools/cfassembler/src/dxconvext/util/ |
D | FileUtils.java | 75 FileInputStream in = new FileInputStream(file); in readFile() local 78 int amt = in.read(result, at, length); in readFile() 85 in.close(); in readFile()
|