Home
last modified time | relevance | path

Searched refs:in (Results 1 – 25 of 2085) sorted by relevance

12345678910>>...84

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DMadTest.java68 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 …]
DCrossTest.java56 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()
DForEachTest.java67 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 …]
DKernelTest.java67 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 …]
DRemainderTest.java68 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 …]
DStepTest.java67 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 …]
DFminTest.java67 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 …]
DAtan2PiTest.java68 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 …]
DFmaxTest.java67 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 …]
DHypotTest.java68 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 …]
DAtan2Test.java68 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 …]
DCopysignTest.java68 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 …]
DPowTest.java68 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 …]
DPowrTest.java68 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 …]
DGetElementAt.java31 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()
DInitTest.java37 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/
DAslrTest.java39 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()
DProc.java34 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()
DKernelSettingsTest.java136 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/
DParcelFileDescriptor_AutoCloseInputStreamTest.java29 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()
DParcelFileDescriptorTest.java53 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 …]
DMemoryFileTest.java74 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/
DStrings.java45 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/
DREADME1 - 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/
DFileUtils.java75 FileInputStream in = new FileInputStream(file); in readFile() local
78 int amt = in.read(result, at, length); in readFile()
85 in.close(); in readFile()

12345678910>>...84