/cts/apps/CameraITS/tests/inprog/ |
D | test_3a_remote.py | 43 cap = cam.do_capture(req) 45 ae_state = cap["metadata"]["android.control.aeState"] 46 awb_state = cap["metadata"]["android.control.awbState"] 47 af_state = cap["metadata"]["android.control.afState"] 48 gains = cap["metadata"]["android.colorCorrection.gains"] 49 transform = cap["metadata"]["android.colorCorrection.transform"] 50 exp_time = cap["metadata"]['android.sensor.exposureTime'] 55 foc_dist = cap["metadata"]['android.lens.focusDistance'] 56 foc_range = cap["metadata"]['android.lens.focusRange'] 62 print "AE region:", cap["metadata"]['android.control.aeRegions'] [all …]
|
D | test_crop_region.py | 58 for i,cap in enumerate(caps): 59 img = its.image.convert_capture_to_rgb_image(cap) 60 crop = cap["metadata"]['android.scaler.cropRegion']
|
D | test_black_level.py | 61 cap = cam.do_capture(req) 62 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap) 63 w = cap["width"] 64 h = cap["height"]
|
D | test_param_edge_mode.py | 42 cap = cam.do_capture(req) 43 img = its.image.convert_capture_to_rgb_image(cap)
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_yuv_jpeg_all.py | 44 cap = cam.do_capture(req, out_surface) 45 assert(cap["format"] == "yuv") 46 assert(cap["width"] == size[0]) 47 assert(cap["height"] == size[1]) 48 print "Captured YUV %dx%d" % (cap["width"], cap["height"]) 49 img = its.image.convert_capture_to_rgb_image(cap) 58 cap = cam.do_capture(req, out_surface) 59 assert(cap["format"] == "jpeg") 60 assert(cap["width"] == size[0]) 61 assert(cap["height"] == size[1]) [all …]
|
D | test_ae_precapture_trigger.py | 56 for cap in caps: 57 assert(cap['metadata']['android.control.aeState'] == INACTIVE) 62 cap = cam.do_capture(auto_req, fmt) 63 state = cap['metadata']['android.control.aeState'] 69 cap = cam.do_capture(auto_req, fmt) 70 state = cap['metadata']['android.control.aeState']
|
D | test_jpeg.py | 41 cap = cam.do_capture(req, out_surface) 42 img = its.image.convert_capture_to_rgb_image(cap) 50 cap = cam.do_capture(req, out_surface) 51 img = its.image.decompress_jpeg_to_rgb_image(cap["data"])
|
D | test_raw_sensitivity.py | 62 cap = cam.do_capture(req, cam.CAP_RAW) 63 gr = its.image.convert_capture_to_planes(cap, props)[1] 66 img = its.image.convert_capture_to_rgb_image(cap, props=props) 76 cap = cam.do_capture(req, 80 _, var_image = its.image.unpack_rawstats_capture(cap)
|
D | test_param_flash_mode.py | 58 cap = cam.do_capture(req, fmt) 59 flash_modes_reported.append(cap['metadata']['android.flash.mode']) 60 flash_states_reported.append(cap['metadata']['android.flash.state']) 61 y, _, _ = its.image.convert_capture_to_planes(cap, props)
|
D | test_dng_noise_model.py | 76 cap = cam.do_capture(req, cam.CAP_RAW) 77 planes = its.image.convert_capture_to_planes(cap, props) 79 cap = cam.do_capture(req, {'format': 'rawStats', 82 mean_img, var_img = its.image.unpack_rawstats_capture(cap) 85 noise_profile = cap['metadata']['android.sensor.noiseProfile'] 96 cap['metadata'])
|
D | test_tonemap_sequence.py | 54 cap = cam.do_capture(req, fmt) 55 img = its.image.convert_capture_to_rgb_image(cap) 63 cap = cam.do_capture(req, fmt) 64 img = its.image.convert_capture_to_rgb_image(cap)
|
D | test_black_white.py | 54 cap = cam.do_capture(req, fmt) 55 img = its.image.convert_capture_to_rgb_image(cap) 69 cap = cam.do_capture(req, fmt) 70 img = its.image.convert_capture_to_rgb_image(cap)
|
D | test_param_noise_reduction.py | 61 cap = cam.do_capture(req) 62 rgb_image = its.image.convert_capture_to_rgb_image(cap) 85 cap = cam.do_capture(req) 86 rgb_image = its.image.convert_capture_to_rgb_image(cap) 89 cap["metadata"]["android.noiseReduction.mode"])
|
D | test_ev_compensation_advanced.py | 84 for cap in caps: 85 if (cap['metadata']['android.control.aeState'] == LOCKED): 86 y = its.image.convert_capture_to_planes(cap)[0] 90 assert(cap['metadata']['android.control.aeState'] == LOCKED)
|
D | test_raw_burst_sensitivity.py | 77 for i, cap in enumerate(caps): 83 gr = its.image.convert_capture_to_planes(cap, props)[1] 86 img = its.image.convert_capture_to_rgb_image(cap, props=props) 92 _, var_image = its.image.unpack_rawstats_capture(cap)
|
/cts/apps/CameraITS/pymodules/its/ |
D | image.py | 49 def convert_capture_to_rgb_image(cap, argument 65 w = cap["width"] 66 h = cap["height"] 67 if cap["format"] == "raw10": 69 cap = unpack_raw10_capture(cap, props) 70 if cap["format"] == "raw12": 72 cap = unpack_raw12_capture(cap, props) 73 if cap["format"] == "yuv": 74 y = cap["data"][0:w*h] 75 u = cap["data"][w*h:w*h*5/4] [all …]
|
/cts/apps/CameraITS/tests/ |
D | tutorial.py | 69 cap = cam.do_capture(req) 73 print "Captured image width:", cap["width"] 74 print "Captured image height:", cap["height"] 75 pprint.pprint(cap["metadata"]) 78 rgbimg = its.image.convert_capture_to_rgb_image(cap) 83 yimg,uimg,vimg = its.image.convert_capture_to_planes(cap) 120 cap = cam.do_capture(req) 121 rgbimg = its.image.convert_capture_to_rgb_image(cap) 166 yimg,_,_ = its.image.convert_capture_to_planes(cap) 178 cap = cam.do_capture(req, cam.CAP_JPEG) [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_test_patterns.py | 34 def check_solid_color(cap, props): argument 44 r, gr, gb, b = its.image.convert_capture_to_planes(cap, props) 59 def check_color_bars(cap, props, mirror=False): argument 75 img = its.image.convert_capture_to_rgb_image(cap, props=props) 89 def check_pattern(cap, props, pattern): argument 102 return check_solid_color(cap, props) 105 striped = check_color_bars(cap, props, mirror=False) 108 striped = check_color_bars(cap, props, mirror=True) 137 cap = cam.do_capture(req, fmt) 138 img = its.image.convert_capture_to_rgb_image(cap, props=props) [all …]
|
D | test_unified_timestamps.py | 35 cap = cam.do_capture(req, fmt) 36 ts_image0 = cap['metadata']['android.sensor.timestamp'] 53 cap = cam.do_capture(req, fmt) 54 ts_image1 = cap['metadata']['android.sensor.timestamp']
|
D | test_capture_result_dump.py | 33 cap = cam.do_capture(req, fmt) 34 pprint.pprint(cap["metadata"])
|
D | test_burst_capture.py | 33 cap = caps[0] 34 img = its.image.convert_capture_to_rgb_image(cap, props=props)
|
/cts/tests/video/src/android/video/cts/ |
D | CodecInfo.java | 66 CodecCapabilities cap = codec.getCodecInfo().getCapabilitiesForType(mimeType); in getSupportedFormatInfo() local 67 if (cap.colorFormats.length == 0) { in getSupportedFormatInfo() 74 for (int color : cap.colorFormats) { in getSupportedFormatInfo() 82 printIntArray("supported colors", cap.colorFormats); in getSupportedFormatInfo() 85 MediaUtils.setMaxEncoderFrameAndBitrates(cap.getVideoCapabilities(), format, maxFps); in getSupportedFormatInfo()
|
/cts/apps/CameraITS/tests/inprog/scene2/ |
D | test_dng_tags.py | 46 cap = cam.do_capture(its.objects.auto_capture_request()) 47 gains = cap["metadata"]["android.colorCorrection.gains"] 49 cap["metadata"]["android.colorCorrection.transform"]) 56 img = its.image.convert_capture_to_rgb_image(cap) 74 cap['metadata']['android.sensor.neutralColorPoint']))
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_lens_position.py | 76 cap = its.image.stationary_lens_cap(cam, req, fmt) 78 data['loc'] = cap['metadata']['android.lens.focusDistance'] 81 y, _, _ = its.image.convert_capture_to_planes(cap, props) 95 for i, cap in enumerate(caps): 97 data['loc'] = cap['metadata']['android.lens.focusDistance'] 98 data['lens_moving'] = (cap['metadata']['android.lens.state'] 100 timestamp = cap['metadata']['android.sensor.timestamp'] * 1E-6 107 y, _, _ = its.image.convert_capture_to_planes(cap, props)
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesTest.java | 250 PrinterCapabilitiesInfo cap = printer.getCapabilities(); in sanePrinterCapabilityInfos() 252 assertEquals(mediaSizeIndex, cap.getMediaSizes().size()); in sanePrinterCapabilityInfos() 254 cap.getDefaults().getMediaSize()); in sanePrinterCapabilityInfos() 256 assertTrue(cap.getMediaSizes().contains(mediaSizes[i])); in sanePrinterCapabilityInfos() 259 assertEquals(resolutionIndex, cap.getResolutions().size()); in sanePrinterCapabilityInfos() 261 cap.getDefaults().getResolution()); in sanePrinterCapabilityInfos() 263 assertTrue(cap.getResolutions().contains(resolutions[i])); in sanePrinterCapabilityInfos() 266 assertEquals(allColors, cap.getColorModes()); in sanePrinterCapabilityInfos() 268 cap.getDefaults().getColorMode()); in sanePrinterCapabilityInfos() 270 assertEquals(allDuplexModes, cap.getDuplexModes()); in sanePrinterCapabilityInfos() [all …]
|