Home
last modified time | relevance | path

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

123456

/cts/tests/camera/src/android/hardware/camera2/cts/
DCtsUtilsTest.java44 final int h = 10; in testCopyYuv() local
45 final FakeImage src = FakeImage.createYuv420(w, h, 14, 8, 10); in testCopyYuv()
46 final FakeImage dst = FakeImage.createYuv420(w, h, 14, 10, 8); in testCopyYuv()
48 drawGradient(src.planes[0], w, h); in testCopyYuv()
49 drawGradient(src.planes[1], w/2, h/2); in testCopyYuv()
50 drawGradient(src.planes[2], w/2, h/2); in testCopyYuv()
54 checkPlane("Y", w, h, src.planes[0], dst.planes[0]); in testCopyYuv()
55 checkPlane("U", w/2, h/2, src.planes[1], dst.planes[1]); in testCopyYuv()
56 checkPlane("V", w/2, h/2, src.planes[2], dst.planes[2]); in testCopyYuv()
62 final int h = 9; in testCopyPad0to0() local
[all …]
/cts/tests/tests/telephony/current/mockmodem/src/android/telephony/mockmodem/
DMockModemConfigInterface.java76 void registerForNumOfLiveModemChanged(int logicalSlotId, Handler h, int what, Object obj); in registerForNumOfLiveModemChanged() argument
78 void unregisterForNumOfLiveModemChanged(int logicalSlotId, Handler h); in unregisterForNumOfLiveModemChanged() argument
81 void registerForPhoneCapabilityChanged(int logicalSlotId, Handler h, int what, Object obj); in registerForPhoneCapabilityChanged() argument
83 void unregisterForPhoneCapabilityChanged(int logicalSlotId, Handler h); in unregisterForPhoneCapabilityChanged() argument
86 void registerForSimultaneousCallingSupportStatusChanged(int logicalSlotId, Handler h, int what, in registerForSimultaneousCallingSupportStatusChanged() argument
89 void unregisterForSimultaneousCallingSupportStatusChanged(Handler h); in unregisterForSimultaneousCallingSupportStatusChanged() argument
92 void registerForSimSlotStatusChanged(int logicalSlotId, Handler h, int what, Object obj); in registerForSimSlotStatusChanged() argument
94 void unregisterForSimSlotStatusChanged(int logicalSlotId, Handler h); in unregisterForSimSlotStatusChanged() argument
98 void registerForBasebandVersionChanged(int logicalSlotId, Handler h, int what, Object obj); in registerForBasebandVersionChanged() argument
100 void unregisterForBasebandVersionChanged(int logicalSlotId, Handler h); in unregisterForBasebandVersionChanged() argument
[all …]
DMockModemConfigBase.java834 int logicalSlotId, Handler h, int what, Object obj) { in registerForNumOfLiveModemChanged() argument
835 mNumOfLiveModemChangedRegistrants.addUnique(h, what, obj); in registerForNumOfLiveModemChanged()
839 public void unregisterForNumOfLiveModemChanged(int logicalSlotId, Handler h) { in unregisterForNumOfLiveModemChanged() argument
840 mNumOfLiveModemChangedRegistrants.remove(h); in unregisterForNumOfLiveModemChanged()
845 int logicalSlotId, Handler h, int what, Object obj) { in registerForPhoneCapabilityChanged() argument
846 mPhoneCapabilityChangedRegistrants.addUnique(h, what, obj); in registerForPhoneCapabilityChanged()
850 public void unregisterForPhoneCapabilityChanged(int logicalSlotId, Handler h) { in unregisterForPhoneCapabilityChanged() argument
851 mPhoneCapabilityChangedRegistrants.remove(h); in unregisterForPhoneCapabilityChanged()
856 int logicalSlotId, Handler h, int what, Object obj) { in registerForSimultaneousCallingSupportStatusChanged() argument
857 mSimultaneousCallingSupportChangedRegistrants.addUnique(h, what, obj); in registerForSimultaneousCallingSupportStatusChanged()
[all …]
/cts/apps/CameraITS/utils/
Dimage_processing_utils.py304 h = cap['height']
315 y = cap['data'][0: w * h]
316 u = cap['data'][w * h: w * h * 5//4]
317 v = cap['data'][w * h * 5//4: w * h * 6//4]
318 return convert_yuv420_planar_to_rgb_image(y, u, v, w, h)
328 y = cap['data'][0: w * h]
329 return convert_y8_to_rgb_image(y, w, h)
346 w, h = cap['width'], cap['height']
350 cap['data'] = unpack_raw10_image(cap['data'].reshape(h, w * 5 // 4))
370 h = img.shape[0]
[all …]
Dimage_fov_utils_tests.py42 w, h = 640, 480
44 e_msg = image_fov_utils.check_ar(circle, ar_gt, w, h, e_msg_stem)
50 e_msg = image_fov_utils.check_ar(circle, ar_gt, w, h, e_msg_stem)
58 w, h = 640, 480
61 e_msg = image_fov_utils.check_crop(circle, cc_gt, w, h,
68 e_msg = image_fov_utils.check_crop(circle, cc_gt, w, h,
Dimage_fov_utils.py58 def check_fov(circle, ref_fov, w, h): argument
60 fov_percent = calc_circle_image_ratio(circle['r'], w, h)
61 chk_percent = calc_expected_circle_image_ratio(ref_fov, w, h)
69 def check_ar(circle, ar_gt, w, h, e_msg_stem): argument
88 max(w, h) * (THRESH_AR_L-THRESH_AR_S) / LARGE_SIZE_IMAGE)
96 def check_crop(circle, cc_gt, w, h, e_msg_stem, crop_thresh_factor): argument
124 thresh_crop_s + h * (thresh_crop_l - thresh_crop_s) / LARGE_SIZE_IMAGE,
251 h = size[0]
267 fov_percent = calc_circle_image_ratio(circle['r'], w, h)
272 ref_fov['h'] = h
Dlow_light_utils.py98 x, y, w, h = cv2.boundingRect(c)
99 aspect_ratio = w / h
101 area = w * h
104 max_box = (x, y, w, h)
109 x, y, w, h = max_box
111 y+_CROP_PADDING:y+h-_CROP_PADDING,
152 x, y, w, h = cv2.boundingRect(c)
153 aspect_ratio = w / h
154 if (w > box_min_size and h > box_min_size and
155 w < box_max_size and h < box_max_size and
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewGroupTest.java234 TestClusterHier h = new TestClusterHier(); in testAddKeyboardNavigationClusters() local
235 h.nestedGroup.setKeyboardNavigationCluster(true); in testAddKeyboardNavigationClusters()
236 h.cluster2.setKeyboardNavigationCluster(false); in testAddKeyboardNavigationClusters()
237 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters()
238 assertTrue(list.contains(h.nestedGroup)); in testAddKeyboardNavigationClusters()
240 h.cluster2.setKeyboardNavigationCluster(true); in testAddKeyboardNavigationClusters()
241 h.top.addKeyboardNavigationClusters(list, View.FOCUS_FORWARD); in testAddKeyboardNavigationClusters()
242 assertFalse(list.contains(h.nestedGroup)); in testAddKeyboardNavigationClusters()
1735 TestClusterHier h = new TestClusterHier(); in testRestoreFocusInCluster() local
1736 h.cluster1.restoreFocusInCluster(View.FOCUS_DOWN); in testRestoreFocusInCluster()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicBase.java75 protected Allocation makeAllocation(int w, int h, Element e, boolean clear) { in makeAllocation() argument
78 tb.setY(h); in makeAllocation()
91 protected Allocation makeAllocation(int w, int h, Element e) { in makeAllocation() argument
92 return makeAllocation(w, h, e, true); in makeAllocation()
95 protected void makeSource(int w, int h, Element e) { in makeSource() argument
96 mAllocSrc = makeAllocation(w, h, e); in makeSource()
103 float f[] = new float[w * h * vs]; in makeSource()
104 for (int y=0; y < h; y++) { in makeSource()
115 byte f[] = new byte[w * h * vs]; in makeSource()
116 for (int y=0; y < h; y++) { in makeSource()
[all …]
DIntrinsicBlur.java48 private void initTest(int w, int h, Element e, Script.LaunchOptions lo) { in initTest() argument
49 makeBuffers(w, h, e); in initTest()
53 tb.setY(h); in initTest()
63 mScript.set_height(h); in initTest()
102 final int h = 97; in testU8_1() local
104 initTest(w, h, e, null); in testU8_1()
116 final int h = 97; in testU8_4() local
118 initTest(w, h, e, null); in testU8_4()
131 final int h = 97; in testU8_1C() local
133 Script.LaunchOptions lo = makeClipper(11, 11, w - 11, h - 11); in testU8_1C()
[all …]
DIntrinsicHistogram.java37 private void createAllocations(int inVSize, int outVSize, int w, int h) { in createAllocations() argument
56 tb.setX(w).setY(h); in createAllocations()
62 private void testNorm(int inVSize, int outVSize, int w, int h, boolean clip) { in testNorm() argument
63 createAllocations(inVSize, outVSize, w, h); in testNorm()
68 byte i[] = new byte[w * h * invs2]; in testNorm()
75 int x1 = 0, y1 = 0, x2 = w, y2 = h; in testNorm()
80 y2 = h - 11; in testNorm()
185 private void testDot(int inVSize, int w, int h, boolean clip) { in testDot() argument
186 createAllocations(inVSize, 1, w, h); in testDot()
190 byte i[] = new byte[w * h * invs2]; in testDot()
[all …]
Dverify.rscript34 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 …]
/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…
Dcve_2019_2245.ts1 …7��Two\|�wF�/ل߆��Wt�La��E5Q��uQ.b(�Q"����f��������h��KJ�Bb4Os�wJ�.2�k�-ޫ^���oI�\� ����jw��c…
17 …���� S�e8��&h6��._����Q.�բ������t�rf�기�l���P��S��Mk�S#PD�-&�5�m��6�R�h�^��ь�g�����jB�V⦸�$!…
38 .g���� ā0�! �u�Ӻ�AK�0�|4�t2c�̦ԏ<��U�[J.�w9�4��R��B^ʣ����h<��LvD�ڴ���6VyH�[Z��� �c�&bo…
83 …Ms]vu]C&s�U�TKQ�k� 5;Б�˖�_���&���E8��t;��m�Ac W�6Q�)�gOl>�d)�����h�}[K���� ���C�G7TA…
91 �����Q1���%UD��^��a�CJ0qS�͚�J!"mc&HL��0-�R�Y�Q�h���^��9V��U�^���c("UW��a�|�p��ЎȺ�66����#�}�e…
97 vH��d�K!2�U[f��eVD�)ú҃��d��+�&]Կ&%T&'̡��8�$��Q �F��f�K V� ��'�)h@����/BKn���P�צ�fIh�i��&��…
122 ���.��T�&��]�jȴ���Q��� >n�&]أ�*>D�C8u����h�����\�Ui�1��3��8j1��mCJ
128 >-����!�AM���z�yD9T�b&!1�\�� CXd�1����D2V�z6���C`t�9�IS�t�&�d�� h˕D�|��BA�PeoB[�:t�v6�蚋4���…
129 ��Q1 7���>�f��e����*�R��B]*�!��h\�9�P�>��0�T�rt@M� ��|5z����J`�$� A����0�e�
131 …{����X���,���H�J�0�������tK�ިƺ$�B�\��H24�s35И�4t#���,��E4�!�!��JG��Mh�h˻�����m�$��������i@u…
[all …]
Dcve_2018_13925.ts1 …7��Two\|�wF�/ل߆��Wt�La��E5Q��uQ.b(�Q"����f��������h��KJ�Bb4Os�wJ�.2�k�-ޫ^���oI�\� ����jw��c…
18 …���� S�e8��&h6��._����Q.�բ������t�rf�기�l���P��S��Mk�S#PD�-&�5�m��6�R�h�^��ь�g�����jB�V⦸�$!…
39 .g���� ā0�! �u�Ӻ�AK�0�|4�t2c�̦ԏ<��U�[J.�w9�4��R��B^ʣ����h<��LvD�ڴ���6VyH�[Z��� �c�&bo…
84 …Ms]vu]C&s�U�TKQ�k� 5;Б�˖�_���&���E8��t;��m�Ac W�6Q�)�gOl>�d)�����h�}[K���� ���C�G7TA…
92 �����Q1���%UD��^��a�CJ0qS�͚�J!"mc&HL��0-�R�Y�Q�h���^��9V��U�^���c("UW��a�|�p��ЎȺ�66����#�}�e…
98 vH��d�K!2�U[f��eVD�)ú҃��d��+�&]Կ&%T&'̡��8�$��Q �F��f�K V� ��'�)h@����/BKn���P�צ�fIh�i��&��…
123 ���.��T�&��]�jȴ���Q��� >n�&]أ�*>D�C8u����h�����\�Ui�1��3��8j1��mCJ
129 >-����!�AM���z�yD9T�b&!1�\�� CXd�1����D2V�z6���C`t�9�IS�t�&�d�� h˕D�|��BA�PeoB[�:t�v6�蚋4���…
130 ��Q1 7���>�f��e����*�R��B]*�!��h\�9�P�>��0�T�rt@M� ��|5z����J`�$� A����0�e�
132 …{����X���,���H�J�0�������tK�ިƺ$�B�\��H24�s35И�4t#���,��E4�!�!��JG��Mh�h˻�����m�$��������i@u…
[all …]
Dcve_2019_2244.ts1 …7��Two\|�wF�/ل߆��Wt�La��E5Q��uQ.b(�Q"����f��������h��KJ�Bb4Os�wJ�.2�k�-ޫ^���oI�\� ����jw��c…
17 …���� S�e8��&h6��._����Q.�բ������t�rf�기�l���P��S��Mk�S#PD�-&�5�m��6�R�h�^��ь�g�����jB�V⦸�$!…
38 .g���� ā0�! �u�Ӻ�AK�0�|4�t2c�̦ԏ<��U�[J.�w9�4��R��B^ʣ����h<��LvD�ڴ���6VyH�[Z��� �c�&bo…
83 …Ms]vu]C&s�U�TKQ�k� 5;Б�˖�_���&���E8��t;��m�Ac W�6Q�)�gOl>�d)�����h�}[K���� ���C�G7TA…
91 �����Q1���%UD��^��a�CJ0qS�͚�J!"mc&HL��0-�R�Y�Q�h���^��9V��U�^���c("UW��a�|�p��ЎȺ�66����#�}�e…
97 vH��d�K!2�U[f��eVD�)ú҃��d��+�&]Կ&%T&'̡��8�$��Q �F��f�K V� ��'�)h@����/BKn���P�צ�fIh�i��&��…
122 ���.��T�&��]�jȴ���Q��� >n�&]أ�*>D�C8u����h�����\�Ui�1��3��8j1��mCJ
128 >-����!�AM���z�yD9T�b&!1�\�� CXd�1����D2V�z6���C`t�9�IS�t�&�d�� h˕D�|��BA�PeoB[�:t�v6�蚋4���…
129 ��Q1 7���>�f��e����*�R��B]*�!��h\�9�P�>��0�T�rt@M� ��|5z����J`�$� A����0�e�
131 …{����X���,���H�J�0�������tK�ިƺ$�B�\��H24�s35И�4t#���,��E4�!�!��JG��Mh�h˻�����m�$��������i@u…
[all …]
/cts/apps/CameraITS/tests/scene9/
Dtest_jpeg_quality.py159 h = int(math.sqrt(dqt_size))
160 logging.debug(' luma:%s', luma.reshape(h, h))
161 logging.debug(' chroma:%s', chroma.reshape(h, h))
172 h = int(math.sqrt(dqt_size))
173 logging.debug(' chroma:%s', matrix.reshape(h, h))
177 h = int(math.sqrt(dqt_size))
178 logging.debug(' luma:%s', matrix.reshape(h, h))
/cts/apps/CameraITS/tests/scene2_b/
Dtest_yuv_jpeg_capture_sameness.py87 w, h = capture_request_utils.get_available_output_sizes(
90 'jpeg', props, match_ar_size=(w, h))
97 jpeg_w, jpeg_h = w, h
98 same_jpeg_and_yuv_available = (w, h) in jpeg_sizes
111 fmt_yuv = {'format': 'yuv', 'width': w, 'height': h,
117 w, h, jpeg_w, jpeg_h)
154 fmt_yuv_use_case = {'format': 'yuv', 'width': w, 'height': 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaPerfUtils.java152 int h, boolean fasterIsOk, double... measuredFps) { in verifyAchievableFrameRates() argument
154 name, mime, w, h, fasterIsOk, /* bFramesEnabled */ false, measuredFps); in verifyAchievableFrameRates()
160 public static String verifyAchievableFrameRates(String name, String mime, int w, int h, in verifyAchievableFrameRates() argument
163 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in verifyAchievableFrameRates()
164 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in verifyAchievableFrameRates()
176 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in verifyAchievableFrameRates()
214 String name, String mime, int w, int h, double... requestedFps) { in areAchievableFrameRates() argument
216 MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h); in areAchievableFrameRates()
217 String kind = "achievable frame rates for " + name + " " + mime + " " + w + "x" + h; in areAchievableFrameRates()
224 Log.d(TAG, name + " " + mime + " " + w + "x" + h + in areAchievableFrameRates()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DEncodeVirtualDisplayWithCompositionTestImpl.java138 final int w, final int h, final boolean runRemotely, final boolean multipleWindows) in runTestRenderingInSeparateThread() argument
141 context, mimeType, w, h, runRemotely, multipleWindows, /* degrees */ 0, null); in runTestRenderingInSeparateThread()
145 final int w, final int h, final boolean runRemotely, final boolean multipleWindows, in runTestRenderingInSeparateThread() argument
152 context, mimeType, w, h, runRemotely, multipleWindows, in runTestRenderingInSeparateThread()
168 private void doTestRenderingOutput(final Context context, String mimeType, int w, int h, in doTestRenderingOutput() argument
172 Log.i(TAG, "doTestRenderingOutput for type:" + mimeType + " w:" + w + " h:" + h); in doTestRenderingOutput()
181 MediaFormat decoderFormat = MediaFormat.createVideoFormat(mimeType, w, h); in doTestRenderingOutput()
191 mDecodingSurface = new OutputSurface(w, h); in doTestRenderingOutput()
199 mEncodingSurface = mEncodingHelper.startEncoding(mimeType, w, h, in doTestRenderingOutput()
243 compositor.startComposition(mEncodingSurface, w, h, multipleWindows ? 3 : 1); in doTestRenderingOutput()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconDrawableTest.java384 final int h = a.getHeight(); in equalBitmaps() local
385 int[] aPix = new int[w * h]; in equalBitmaps()
386 int[] bPix = new int[w * h]; in equalBitmaps()
390 for (int j = 0; j < h; j++) { in equalBitmaps()
404 a.getPixels(aPix, 0, w, 0, 0, w, h); in equalBitmaps()
405 b.getPixels(bPix, 0, w, 0, 0, w, h); in equalBitmaps()
418 final int h = a.getHeight(); in findBitmapDifferences() local
419 int[] aPix = new int[w * h]; in findBitmapDifferences()
420 int[] bPix = new int[w * h]; in findBitmapDifferences()
422 a.getPixels(aPix, 0, w, 0, 0, w, h); in findBitmapDifferences()
[all …]
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rscript40 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/autofillservice/src/android/autofillservice/cts/activities/
DAbstractTimePickerActivity.java69 mTimePicker.setOnTimeChangedListener((v, m, h) -> updateOutputWithTime(m, h)); in onCreate()
99 mTimePicker.setOnTimeChangedListener((v, h, m) -> { in expectAutoFill() argument
100 updateOutputWithTime(h, m); in expectAutoFill()
101 mExpectation.timeListener.onTimeChanged(v, h, m); in expectAutoFill()
/cts/tests/tests/view/src/android/view/cts/util/
DDisplayUtils.java49 final int h = displayMetrics.heightPixels; in isCloseToSquareDisplay() local
50 final float aspectRatio = Math.max(w, h) / (float) Math.min(w, h); in isCloseToSquareDisplay()

123456