Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 114) sorted by relevance

12345

/cts/apps/CameraITS/pymodules/its/
Dimage.py63 h = cap["height"]
71 y = cap["data"][0:w*h]
72 u = cap["data"][w*h:w*h*5/4]
73 v = cap["data"][w*h*5/4:w*h*6/4]
74 return convert_yuv420_planar_to_rgb_image(y, u, v, w, h)
96 h = cap["height"]
97 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
98 analysis_image = img.reshape(2,h,w,4)
99 mean_image = analysis_image[0,:,:,:].reshape(h,w,4)
100 var_image = analysis_image[1,:,:,:].reshape(h,w,4)
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicBase.java63 protected Allocation makeAllocation(int w, int h, Element e, boolean clear) { in makeAllocation() argument
66 tb.setY(h); in makeAllocation()
79 protected Allocation makeAllocation(int w, int h, Element e) { in makeAllocation() argument
80 return makeAllocation(w, h, e, true); in makeAllocation()
83 protected void makeSource(int w, int h, Element e) { in makeSource() argument
87 mAllocSrc = makeAllocation(w, h, e); in makeSource()
94 float f[] = new float[w * h * vs]; in makeSource()
95 for (int y=0; y < h; y++) { in makeSource()
106 byte f[] = new byte[w * h * vs]; in makeSource()
107 for (int y=0; y < h; y++) { in makeSource()
[all …]
DIntrinsicBlur.java33 private void initTest(int w, int h, Element e, Script.LaunchOptions lo) { in initTest() argument
34 makeBuffers(w, h, e); in initTest()
38 tb.setY(h); in initTest()
48 mScript.set_height(h); in initTest()
87 final int h = 97; in testU8_1() local
89 initTest(w, h, e, null); in testU8_1()
101 final int h = 97; in testU8_4() local
103 initTest(w, h, e, null); in testU8_4()
116 final int h = 97; in testU8_1C() local
118 Script.LaunchOptions lo = makeClipper(11, 11, w - 11, h - 11); in testU8_1C()
[all …]
DIntrinsicHistogram.java26 private void createAllocations(int inVSize, int outVSize, int w, int h) { in createAllocations() argument
45 tb.setX(w).setY(h); in createAllocations()
51 private void testNorm(int inVSize, int outVSize, int w, int h, boolean clip) { in testNorm() argument
52 createAllocations(inVSize, outVSize, w, h); in testNorm()
57 byte i[] = new byte[w * h * invs2]; in testNorm()
64 int x1 = 0, y1 = 0, x2 = w, y2 = h; in testNorm()
69 y2 = h - 11; in testNorm()
172 private void testDot(int inVSize, int w, int h, boolean clip) { in testDot() argument
173 createAllocations(inVSize, 1, w, h); in testDot()
177 byte i[] = new byte[w * h * invs2]; in testDot()
[all …]
Dverify.rs34 uint32_t h = rsAllocationGetDimY(in1);
35 for (uint32_t y = 0; y < h; y++) {
55 uint32_t h = rsAllocationGetDimY(in1);
56 for (uint32_t y = 0; y < h; y++) {
75 uint32_t h = rsAllocationGetDimY(in1);
76 for (uint32_t y = 0; y < h; y++) {
94 uint32_t h = rsAllocationGetDimY(in1);
95 for (uint32_t y = 0; y < h; y++) {
113 uint32_t h = rsAllocationGetDimY(in1);
114 for (uint32_t y = 0; y < h; y++) {
[all …]
DIntrinsicConvolve5x5.java24 Element e, float cf[], String name, int num, int w, int h, in test5() argument
36 sr.set_gHeight(h); in test5()
76 …private void testConvolve5(int w, int h, Element.DataType dt, int vecSize, Script.LaunchOptions sc… in testConvolve5() argument
97 makeBuffers(w, h, e); in testConvolve5()
103 test5(sr, si, e, cf1, "test convolve", 1, w, h, sc); in testConvolve5()
104 test5(sr, si, e, cf2, "test convolve", 2, w, h, sc); in testConvolve5()
105 test5(sr, si, e, cf3, "test convolve", 3, w, h, sc); in testConvolve5()
/cts/tests/tests/security/res/raw/
Ddrm_uaf.dm10 ���%*�CNm.�!{�m�<��@�x�ᅊ�� �e��f�&�Q��Ol�~�<�#)��h~� Z��:�#�+�isL��9��,P<��܍^��+�[q̋��%9�2+…
11 ~�*�{P���C!�+ڊ�����<�%�^�,?�*Ȣ���'�0%��~��)���Y�<�>�.�_�_ Y]���f���8p�]�h�P<�"��\��[� �4��…
12h���ꥆ��@.�<��l��6��h�k�υ��fx���H ����<��9�_/*_�?����bQ�ձ�~��oI�a��f�<�y�\�a���Z���� Q��qor�…
18 ]��T�*���UV L���+��<������~ =2��MزF�<�' h�5�<y0���
23h�?��n ��(h+�I�ǽ|�R`<�2��*!��*��p��q�z����%7 �8���<�%�~~<�^�Kv��v_ա�8:��v�|p<����y?-��f�…
24 �7OtT�[^n6�=��K6�]�<�,�6�|P�h.�T��ݞ]<���0PC�yEa<���zC��*�r� � �m�wc!R�XP_<�����(��Ӏș1I�…
26 v�â@<����,;w�n�����}�+h���<y!��A��{I�����ge����齦@� <�
32 …ʕ��t�`��������3`<y',0&�Z��U��<��\A�_�@VQ��<���zh+�J�a�x_#щ@-f5�^�*p<�"��8���ԛ ��kW;qbR…
/cts/tests/tests/os/jni/seccomp-tests/
Dlocal-modifications-android.diff25 diff --git a/tests/test_harness.h b/tests/test_harness.h
27 --- a/tests/test_harness.h
28 +++ b/tests/test_harness.h
30 #include <sys/wait.h>
31 #include <unistd.h>
33 +#include <android/log.h> // ANDROID
Dlocal-modifications-android-2.diff6 #include <linux/prctl.h>
7 #include <linux/ptrace.h>
8 #include <linux/seccomp.h>
9 -#include <poll.h>
10 #include <pthread.h>
11 #include <semaphore.h>
12 #include <signal.h>
14 #include <string.h>
15 #include <linux/elf.h>
16 #include <sys/uio.h>
[all …]
Dlocal-modifications-strict-args-fd88d16.diff6 #include <string.h>
7 #include <linux/elf.h>
8 #include <sys/uio.h>
9 +#include <fcntl.h> // ANDROID
10 +#include <sys/mman.h>
11 +#include <sys/times.h>
14 #include <unistd.h>
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rs40 uint32_t h = rsAllocationGetDimY(in1);
41 for (uint32_t y=0; y < h; y++) {
62 uint32_t h = rsAllocationGetDimY(in1);
63 for (uint32_t y=0; y < h; y++) {
83 uint32_t h = rsAllocationGetDimY(in1);
84 for (uint32_t y=0; y < h; y++) {
103 uint32_t h = rsAllocationGetDimY(in1);
104 for (uint32_t y=0; y < h; y++) {
123 uint32_t h = rsAllocationGetDimY(in1);
124 for (uint32_t y=0; y < h; y++) {
[all …]
/cts/tests/tests/os/jni/seccomp-tests/tests/
DMakefile9 seccomp_bpf_tests: seccomp_bpf_tests.c test_harness.h
12 resumption: resumption.c test_harness.h
15 sigsegv: sigsegv.c test_harness.h
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRGBZ.java162 int h = orig.getHeight(); in setAlphaChannelFromBitmap() local
163 int[] orig_data = new int[w*h]; in setAlphaChannelFromBitmap()
164 int[] depth_data = new int[w*h]; in setAlphaChannelFromBitmap()
166 orig.getPixels(orig_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
167 depth.getPixels(depth_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
174 dest.setPixels(orig_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMotionIndicatorView.java180 protected void onSizeChanged (int w, int h, int oldw, int oldh) { in onSizeChanged() argument
182 mYSize = h; in onSizeChanged()
184 mZBoundOut = new RectF(w/2-w/2.5f, h/2-w/2.5f, w/2+w/2.5f, h/2+w/2.5f); in onSizeChanged()
186 w/2-w/2.5f-ZRING_CURSOR_ADD, h/2-w/2.5f-ZRING_CURSOR_ADD, in onSizeChanged()
187 w/2+w/2.5f+ZRING_CURSOR_ADD, h/2+w/2.5f+ZRING_CURSOR_ADD); in onSizeChanged()
189 w/2-w/2.5f+ZRING_WIDTH, h/2-w/2.5f+ZRING_WIDTH, in onSizeChanged()
190 w/2+w/2.5f-ZRING_WIDTH, h/2+w/2.5f-ZRING_WIDTH); in onSizeChanged()
192 w/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD, h/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD, in onSizeChanged()
193 w/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD, h/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD); in onSizeChanged()
195 if (LOCAL_LOGV) Log.v(TAG, "New view size = ("+w+", "+h+")"); in onSizeChanged()
/cts/tests/tests/media/assets/
Dsegment000001.ts3 ����h�<���e�������@�P����������������������~ AV�@� *�s-K�m�+r������Z��-iWO��?q�7��)��S*v�i…
17 …Hō:���[����������d"o���x"�Մ�����ߝ.~5���x����&�� �q���>�-@]�XK��ƄqTQ�Q�}h߼0t�2N����^ݧ��N�v%…
28 …��L��Qg0�H�;Ǟ%wO��m~z�ȸ��V�-�F�D���S��=H����م?y��SR����L�0c����iy��h���a*�DƝ�L�l&�JMV�…
41 …��ZA L��)�XW�#};4�_���Z��ǡi���7H����_Yf�7��;'׵�Eb�wG�T?����@{M;�-���h��$Q��4���l �1�H49d…
52 …���P R�}:R��w�]-�b����P1��H�юS�O��������[3��[2ƃ��L���c�ߵ�$8߁M���&5ݫ>�h��^%�b���װte�1[ʳ{���…
57 …������������������������������������������������G�e��f��bޓ��L�Z�Y���(TW]�o�h����_���w�fy#1.�e
130 �CBfl�0G�������WX7�������prg�� @���6���.�b��h���{�f����[�P%}��O�� ��- ���Am9�(�
131 ��&͖��$p�i����{P�-���n0S�#0�rOOC��/VViBz{1I ����h�0sϿ�֠��=�OItj�f�����`7B�UϒG���G��h{�…
137 ��7R�^����@7� z�h
141 �E=�-�B�m�Er�!iC�뺸���U�����-d\��:�%37N~�aWv���_ʭh�ߥ���n�M6����r�y4U�ߛ�����G���/F��>րBJ…
[all …]
DfileSequence0.ts17h�Uk/r�"��#�d�}�x����q�n�T3S����J�o���\@!����7��{D�����p3&䔦(qA��]�i��+Va���ʱՎ��7��)6G…
76 …*��p��\@ _�7���5 �@��0 D!�(+r���RѺT��=����C0J3����!j k��G'�sG��Uz���pg� �k!h�9m"q�
80 …sGE�yc���3&oV@ W��\@_���7�68;����P-8���Y!����IT�&"W��μ�ٯ�)��2cg6۔h�Kď>�9���c&6_ƁbP�…
151 …�]���Z���N'�m�<;ٿ#�`��\՗�9�W�g��?����� �v�x������m`���1�����}$a��}�j^軬)h�%�g��\@"����7���
166 �{���N���F��DG��S��%�,XYֈ6�F���1حbG�@�h����x���F�z���c:�M�T� �M���AC���" ���7�* y�_Pl…
183 …�����\@!���7��4 �aaG8P.��p�:0��Q�wh��f�^�\Rѐ�q�A�P��6��O���>�|: K�h��XR��E��>7^{2&���ϟ�…
197 …dș/�b� ��6 �K��S ��?�Ӽ�&Ǐ%UfȮ�$�.@t1�nUJr�N3��jA��B�A�C�P�`���&&�hQlG����i�����M…
214 }L� �>1*��{Y_��� W�Ck���0]A��|!5��$��r������P�`���L�#���AH��ƮBہh�Qh��1*"
217 …�{�A�1�*M ��aJU��IU��%�K�A�άJ���!�\�QvMu13F}O�!����2��{N�i���*J�|��h��N�3ǿg�i+���H�c��u…
247 ����$�G�w2h�A�.��'8pn���Q:��{m`�g49$�����r��
Dsegment000000.ts3 ����h�<�����n�E���H��,� �#��x264 - core 140 r2377+1M a1e1ce5 - H.264/MPEG-4 AVC codec - Copylef…
54 …uFܿR�h*^?�}�r�¥�����;S��SK���ft'���A��f��jE����Ś�.�A���T����ovc� ��2h���$R}��G�u Лw�� ��…
68 �z�m��Y+7�������?�����z�L��k��_˫[`D� �2�R��'k7ޤ�R[���FS���鹦�&�h�4:3���ʂPҫ܈�(�5��:����G…
97 …�lB�q������&�������?����X�A��k�f�d���k�.�x?0 M��uzO_��;2��������+��h!˛ɣb�D�� s�z���L����…
127 ��:�y}�"?�|���������h��?�!z�@�c�^���7���W�?�9^?��E�O7ԙ�O����y¹zDF^���\�?��z�4*�}U
133 q+�.1��+�Ѯ�h�Xׄ�
141 …������~�=$�d�� niNP<�ߟ�)R���s���?����jq��y� -%|'��_�6��d�����z��h-���\��-�W�/��&�%��…
142 `"h3�=Gr2��9G�x�����r�`@G��Ϫۚ�R��(��h}4��n�q��d+�h�&�L�7KU=��W��~[k� ��4`O������|rC…
166 …$�NS�~�� �3uI��>C�����K��G�<��'��_���O2O�F��2��'!�����Gl�<���$���eo>�h��+�!>���~�� ��!���,…
202 a&���a����� Kh�J2�֭�ǠQ*��0A�f Y�]Y�� ��h�Uk/r�"��#�d�}�x����q�n�T3S����J�o�GA����ꀀ!…
[all …]
DfileSequence1.ts4 ]�N��u��ٽE�8q�|�hǿ���DW:����\@#�07��Y��q0\, F�0����%M��j��O��(�F%�xo^�l$f������n�3{+�…
5 t�����E���l�����
6 …�#`��E:kD% ����G�������"pmM�I~�����\@#��07�,9�D���2���ww�.���\|h�n��W��y����\�R���26…
11 Ů�a��h�PJ�����\@%��.7�,K ��Q9�@���G_~Sq�kr�\�=I�Π൨7/sR�y��>������|�x��c���7~r%Ҵ�…
16 …�,+KAr �0�D8�c�� ]X��H�gG�(�A�u��q��6ē�Z:`��0<td� ���s��V������4h���ʓ`���sƿ����y~E��…
19 …B7��*��薉8fjUD�X�-V�0��DH~7���Јѯv�ʥvG����N�:f���Ay}oґD�=p�O㨶���&�2�4v�}�m����-�x"�h�p�@@
49 1/'g����\���ל�mF号�������;�Jq�h���\k�#���Zm��X���{>���"bTh���s���
52 …�\v�������L]��j7%m+����9����9Z(Pb�]:��B���~�Jۇ}#���5�hG���`���@h���p��\@��27� G,…
69 …�O���T͈�hPh��[[>����|g�5��� q���l��jJ`���\@%��47��* �1A,,G+B���@ K�R�h�Ʊ�Kp��d�:��e��\�8…
91 …6,���F����|w�y�(�P�Z:�:����dP�P��l��r�������P�,iߊ*Ec@KJ8�v�}��7���[:9�C�h+@��S��������K.���
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayWithCompositionTest.java206 private void runTestRenderingInSeparateThread(final int w, final int h, in runTestRenderingInSeparateThread() argument
212 doTestRenderingOutput(w, h, runRemotely, multipleWindows); in runTestRenderingInSeparateThread()
227 private void doTestRenderingOutput(int w, int h, boolean runRemotely, boolean multipleWindows) in doTestRenderingOutput() argument
230 Log.i(TAG, "doTestRenderingOutput for w:" + w + " h:" + h); in doTestRenderingOutput()
235 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in doTestRenderingOutput()
236 mDecodingSurface = new OutputSurface(w, h); in doTestRenderingOutput()
242 mEncodingSurface = mEncodingHelper.startEncoding(w, h, in doTestRenderingOutput()
291 compositor.startComposition(mEncodingSurface, w, h, multipleWindows ? 3 : 1); in doTestRenderingOutput()
300 compositor.getWindowSurface(multipleWindows? 1 : 0), w, h); in doTestRenderingOutput()
306 compositor.getWindowSurface(multipleWindows? 1 : 0), w, h); in doTestRenderingOutput()
[all …]
DRemoteVirtualDisplayService.java62 int h = data.readInt(); in onCreate()
63 start(surface, w, h); in onCreate()
96 private void start(Surface surface, int w, int h) { in start() argument
98 mPresentation = new VirtualDisplayPresentation(this, surface, w, h); in start()
119 VirtualDisplayPresentation(Context context, Surface surface, int w, int h) { in VirtualDisplayPresentation() argument
123 mHeight = h; in VirtualDisplayPresentation()
/cts/apps/CameraITS/tests/inprog/
Dtest_rawstats.py39 h,w,_ = mean_image.shape
41 m = mean_image[:,:,ch].reshape(h,w,1)/1023.0
42 v = var_image[:,:,ch].reshape(h,w,1)
Dtest_crop_region.py35 h = r['height']
46 "top": int(region[1] * h),
48 "bottom": int((region[1]+region[3])*h)}
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/formats/
DCameraFormatsActivity.java441 Handler h = new Handler(); in startPreview() local
447 h.postDelayed(mDelayedPreview, 300); in startPreview()
631 int h = mPreviewSize.height; in onPreviewFrame() local
634 int ySize = yStride * h; in onPreviewFrame()
635 int uvSize = uvStride * h / 2; in onPreviewFrame()
668 int h = mPreviewSize.height; in convertFromUnknown() local
675 for (int y = 0; y < h; y++) { in convertFromUnknown()
678 rgbIndex = w * (h - y) - 1; in convertFromUnknown()
696 int h = mPreviewSize.height; in convertFromNV21() local
701 rgbIndex = h * w - 1; in convertFromNV21()
[all …]
/cts/apps/CameraITS/tests/scene5/
Dtest_lens_shading_and_color_uniformity.py67 h = img_size[0][1]
70 print "Captured yuv %dx%d" % (w, h)
84 line_width = max(2, int(max(h, w)/500)) # line width of legend
91 top = int((0.5-spb_r)*h)
92 bottom = int((0.5+spb_r)*h)
117 dist_max = math.sqrt(pow(w, 2)+pow(h, 2))/2
138 top = int((spb_cty-spb_r)*h)
139 bottom = int((spb_cty+spb_r)*h)
143 + pow(abs(spb_cty-0.5)*h, 2))
/cts/tests/tests/rsblas/src/android/renderscript/cts/
Dverify.rs79 uint32_t h = rsAllocationGetDimY(in1);
80 for (uint32_t y = 0; y < h; y++) {
103 uint32_t h = rsAllocationGetDimY(in1);
104 for (uint32_t y = 0; y < h; y++) {
127 uint32_t h = rsAllocationGetDimY(in1);
128 for (uint32_t y = 0; y < h; y++) {
151 uint32_t h = rsAllocationGetDimY(in1);
152 for (uint32_t y = 0; y < h; y++) {

12345