/cts/apps/CameraITS/tests/ |
D | tutorial.py | 100 cap = cam.do_capture(req) 107 cap['width'], cap['height']) 108 logging.debug('metadata\n%s', str(cap['metadata'])) 111 rgbimg = image_processing_utils.convert_capture_to_rgb_image(cap) 116 yimg, uimg, vimg = image_processing_utils.convert_capture_to_planes(cap) 152 cap = cam.do_capture(req) 153 rgbimg = image_processing_utils.convert_capture_to_rgb_image(cap) 190 yimg, _, _ = image_processing_utils.convert_capture_to_planes(cap) 202 cap = cam.do_capture(req, cam.CAP_JPEG) 203 rgbimg = image_processing_utils.convert_capture_to_rgb_image(cap) [all …]
|
/cts/apps/CameraITS/utils/ |
D | image_processing_utils.py | 140 def assert_capture_width_and_height(cap, width, height): argument 141 if cap['width'] != width or cap['height'] != height: 144 width, height, cap['width'], cap['height'] 289 def convert_capture_to_rgb_image(cap, argument 303 w = cap['width'] 304 h = cap['height'] 305 if cap['format'] == 'raw10' or cap['format'] == 'raw10QuadBayer': 307 is_quad_bayer = cap['format'] == 'raw10QuadBayer' 308 cap = unpack_raw10_capture(cap, is_quad_bayer) 310 if cap['format'] == 'raw12': [all …]
|
D | image_fov_utils.py | 213 cap = cam.do_capture(req, out_surface) 214 logging.debug('Captured RAW %dx%d', cap['width'], cap['height']) 216 cap, props=props) 220 fd = float(cap['metadata']['android.lens.focalLength']) 222 props, cap['metadata'], True, fd 244 cap = cam.do_capture(req, fmt) 245 logging.debug('Captured JPEG %dx%d', cap['width'], cap['height']) 246 img = image_processing_utils.convert_capture_to_rgb_image(cap, props) 247 size = (cap['height'], cap['width'])
|
/cts/apps/CameraITS/tests/scene2_d/ |
D | test_autoframing.py | 41 def save_image(self, cap, props, faces): argument 42 img, img_name, faces_cropped = self.get_image_data(cap, props, faces) 47 def assert_no_face_distortion(self, cap, props, faces): argument 48 img, img_name, faces_cropped = self.get_image_data(cap, props, faces) 54 def get_image_data(self, cap, props, faces): argument 56 cap, props=props) 59 crop_region = cap['metadata']['android.scaler.cropRegion'] 101 for i, cap in enumerate(caps): 102 faces = cap['metadata']['android.statistics.faces'] 103 autoframing_state = cap['metadata']['android.control.autoframingState'] [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_test_patterns.py | 40 def check_solid_color(cap, props): argument 51 r, gr, gb, b = image_processing_utils.convert_capture_to_planes(cap, props) 66 def check_color_bars(cap, props, mirror=False): argument 83 img = image_processing_utils.convert_capture_to_rgb_image(cap, props=props) 103 def check_pattern(cap, props, pattern): argument 115 return check_solid_color(cap, props) 117 striped = check_color_bars(cap, props, mirror=False) 120 striped = check_color_bars(cap, props, mirror=True) 149 cap = cam.do_capture(req, fmt) 151 cap, props=props) [all …]
|
D | test_unified_timestamps.py | 56 cap = cam.do_capture(req, fmt) 57 ts_image0 = cap['metadata']['android.sensor.timestamp'] 76 cap = cam.do_capture(req, fmt) 77 ts_image1 = cap['metadata']['android.sensor.timestamp']
|
/cts/apps/CameraITS/tools/ |
D | check_alignment.py | 50 cap = cam.do_capture(req, fmt) 51 logging.debug('Captured %s %dx%d', _FMT, cap['width'], cap['height']) 52 img = image_processing_utils.convert_capture_to_rgb_image(cap, props) 53 size = (cap['height'], cap['width'])
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_yuv_jpeg_all.py | 70 cap_raw, cap = cam.do_capture(req, out_surfaces) 77 cap = cam.do_capture(req, out_surface) 79 cap['metadata']['android.sensor.exposureTime'], 80 cap['metadata']['android.sensor.sensitivity'], 81 cap['metadata']['android.lens.focusDistance']) 83 if cap['format'] != 'jpeg': 85 img = image_processing_utils.decompress_jpeg_to_rgb_image(cap['data']) 87 if cap['format'] != img_type: 89 img = image_processing_utils.convert_capture_to_rgb_image(cap) 90 if cap['width'] != size[0]: [all …]
|
D | test_param_tonemap_mode.py | 40 def compute_means_and_save(cap, img_name): argument 50 img = image_processing_utils.convert_capture_to_rgb_image(cap) 119 cap = cam.do_capture(req, fmt) 121 means_1.append(compute_means_and_save(cap, img_name)) 143 cap = cam.do_capture(req) 145 means_2.append(compute_means_and_save(cap, img_name))
|
/cts/apps/CameraITS/tests/scene_flash/ |
D | test_flash_strength.py | 72 cap = cam.do_capture(cap_req, out_surfaces) 75 cap = capture_request_utils.take_captures_with_flash_strength( 78 img = image_processing_utils.convert_capture_to_rgb_image(cap) 81 return cap 84 def _get_mean(cap, props): argument 95 metadata = cap['metadata'] 109 cap, props) 215 cap = _take_captures(out_surfaces, cam, img_name, ae_mode, strength) 216 formats_means.append(_get_mean(cap, props))
|
D | test_led_snapshot.py | 69 cap = cam.do_capture(cap_req, out_surfaces) 71 cap = capture_request_utils.take_captures_with_flash(cam, out_surfaces) 73 img = image_processing_utils.convert_capture_to_rgb_image(cap) 76 return cap 204 cap = _take_captures(out_surfaces, cam, flash_img_name, flash=True) 205 img = image_processing_utils.convert_capture_to_rgb_image(cap) 208 metadata = cap['metadata']
|
D | test_torch_strength.py | 89 cap = cam.do_capture(cap_req, out_surfaces) 94 return [cap] 116 for i, cap in enumerate(caps): 117 img = image_processing_utils.convert_capture_to_rgb_image(cap) 135 for cap in caps: 136 metadata = cap['metadata'] 151 cap, props)
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 63 CodecCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mimeType); in getSupportedFormatInfo() local 64 if (cap.colorFormats.length == 0) { in getSupportedFormatInfo() 71 for (int color : cap.colorFormats) { in getSupportedFormatInfo() 79 printIntArray("supported colors", cap.colorFormats); in getSupportedFormatInfo() 82 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_ae_precapture_trigger.py | 85 for i, cap in enumerate(caps): 86 state = cap['metadata']['android.control.aeState'] 96 cap = cam.do_capture(auto_req, fmt) 97 state = cap['metadata']['android.control.aeState'] 107 cap = cam.do_capture(auto_req, fmt) 108 state = cap['metadata']['android.control.aeState']
|
D | test_ev_compensation_basic.py | 113 for i, cap in enumerate(caps): 114 if cap['metadata']['android.control.aeState'] == _LOCKED: 115 ev_meta = cap['metadata']['android.control.aeExposureCompensation'] 116 exp = cap['metadata']['android.sensor.exposureTime'] 117 iso = cap['metadata']['android.sensor.sensitivity'] 123 cap, _PATCH_X, _PATCH_Y, _PATCH_W, _PATCH_H)
|
D | test_jpeg.py | 95 cap = its_session_utils.do_capture_with_latency( 97 img = image_processing_utils.convert_capture_to_rgb_image(cap) 103 cap = its_session_utils.do_capture_with_latency( 105 img = image_processing_utils.decompress_jpeg_to_rgb_image(cap['data'])
|
D | test_dng_noise_model.py | 95 cap = cam.do_capture(req, cam.CAP_RAW) 96 planes = image_processing_utils.convert_capture_to_planes(cap, props) 97 s_read = cap['metadata']['android.sensor.sensitivity'] 101 cap, props=props) 106 noise_profile = cap['metadata']['android.sensor.noiseProfile'] 118 props, cap['metadata'])[i]
|
D | test_ev_compensation_advanced.py | 119 for cap in caps: 120 if cap['metadata']['android.control.aeState'] == _LOCKED: 121 ev_meta = cap['metadata']['android.control.aeExposureCompensation'] 126 image_processing_utils.convert_capture_to_rgb_image(cap)) 128 cap, _PATCH_X, _PATCH_Y, _PATCH_W, _PATCH_H))
|
D | test_auto_vs_manual.py | 36 def extract_awb_gains_and_xform(cap, cap_name, log_path): argument 47 img = image_processing_utils.convert_capture_to_rgb_image(cap) 51 awb_gains = cap['metadata']['android.colorCorrection.gains'] 53 cap['metadata']['android.colorCorrection.transform'])
|
/cts/apps/CameraITS/tests/scene_extensions/scene_low_light/ |
D | test_night_extension.py | 45 def _convert_capture(cap, file_stem=None): argument 54 img = image_processing_utils.convert_capture_to_rgb_image(cap) 79 cap = cam.do_capture_with_extensions(req, _EXTENSION_NIGHT, out_surfaces) 80 metadata = cap['metadata'] 85 return cap 148 cap = cam.do_capture( 150 y_plane, _, _ = image_processing_utils.convert_capture_to_planes(cap)
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesTest.java | 251 PrinterCapabilitiesInfo cap = printer.getCapabilities(); in sanePrinterCapabilityInfos() 253 assertEquals(mediaSizeIndex, cap.getMediaSizes().size()); in sanePrinterCapabilityInfos() 255 cap.getDefaults().getMediaSize()); in sanePrinterCapabilityInfos() 257 assertTrue(cap.getMediaSizes().contains(mediaSizes[i])); in sanePrinterCapabilityInfos() 260 assertEquals(resolutionIndex, cap.getResolutions().size()); in sanePrinterCapabilityInfos() 262 cap.getDefaults().getResolution()); in sanePrinterCapabilityInfos() 264 assertTrue(cap.getResolutions().contains(resolutions[i])); in sanePrinterCapabilityInfos() 267 assertEquals(allColors, cap.getColorModes()); in sanePrinterCapabilityInfos() 269 cap.getDefaults().getColorMode()); in sanePrinterCapabilityInfos() 271 assertEquals(allDuplexModes, cap.getDuplexModes()); in sanePrinterCapabilityInfos() [all …]
|
/cts/hostsidetests/appsecurity/certs/pkgsigverify/ |
D | Android.bp | 95 name: "ec-p256-por_1_2-no-shUid-cap", 97 "ec-p256-por_1_2-no-shUid-cap", 102 name: "ec-p256-por_1_2-no-perm-cap", 104 "ec-p256-por_1_2-no-perm-cap",
|
/cts/apps/CameraITS/tests/scene6/ |
D | test_low_latency_zoom.py | 147 for i, cap in enumerate(caps): 148 z_result = cap['metadata']['android.control.zoomRatio'] 149 af_state = cap['metadata']['android.control.afState'] 154 cap, props=props) 159 cap_fl = cap['metadata']['android.lens.focalLength']
|
/cts/apps/CameraITS/tests/scene2_a/ |
D | test_effects.py | 79 cap = cam.do_capture(req, fmt) 83 cap, props=props) 92 cap, props) 111 cap, props)
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_aspect_ratio_and_crop.py | 64 def _check_basic_correctness(cap, fmt_iter, w_iter, h_iter): argument 66 if cap['format'] != fmt_iter: 68 if cap['width'] != w_iter: 70 if cap['height'] != h_iter: 329 cap = cam.do_capture(req, out_surface)[0] 330 _check_basic_correctness(cap, fmt_iter, w_iter, h_iter) 333 img = image_processing_utils.convert_capture_to_rgb_image(cap)
|