Home
last modified time | relevance | path

Searched refs:props (Results 1 – 25 of 69) sorted by relevance

123

/cts/apps/CameraITS/pymodules/its/
Dcaps.py40 def full(props): argument
49 return props.has_key("android.info.supportedHardwareLevel") and \
50 props["android.info.supportedHardwareLevel"] == 1
52 def limited(props): argument
61 return props.has_key("android.info.supportedHardwareLevel") and \
62 props["android.info.supportedHardwareLevel"] == 0
64 def legacy(props): argument
73 return props.has_key("android.info.supportedHardwareLevel") and \
74 props["android.info.supportedHardwareLevel"] == 2
76 def manual_sensor(props): argument
[all …]
Dobjects.py74 sensitivity, exp_time, linear_tonemap=False, props=None): argument
112 assert(props is not None)
114 if 0 in props["android.tonemap.availableToneMapModes"]:
120 elif 3 in props["android.tonemap.availableToneMapModes"]:
140 def fastest_auto_capture_request(props): argument
151 turn_slow_filters_off(props, req)
155 def get_available_output_sizes(fmt, props): argument
168 configs = props['android.scaler.streamConfigurationMap']\
176 def set_filter_off_or_fast_if_possible(props, req, available_modes, filter): argument
188 if props.has_key(available_modes):
[all …]
Dimage.py49 props=None): argument
65 assert(props is not None)
66 cap = unpack_raw10_capture(cap, props)
68 assert(props is not None)
69 cap = unpack_raw12_capture(cap, props)
78 assert(props is not None)
79 r,gr,gb,b = convert_capture_to_planes(cap, props)
80 return convert_raw_to_rgb_image(r,gr,gb,b, props, cap["metadata"])
84 def unpack_raw10_capture(cap, props): argument
134 def unpack_raw12_capture(cap, props): argument
[all …]
/cts/apps/CameraITS/tests/scene0/
Dtest_camera_properties.py25 props = cam.get_camera_properties()
27 pprint.pprint(props)
29 its.caps.skip_unless(its.caps.manual_sensor(props))
32 assert(props.has_key('android.sensor.info.sensitivityRange'))
33 assert(props.has_key('android.sensor.orientation'))
34 assert(props.has_key('android.scaler.streamConfigurationMap'))
35 assert(props.has_key('android.lens.facing'))
37 print "JPG sizes:", its.objects.get_available_output_sizes("jpg", props)
38 print "RAW sizes:", its.objects.get_available_output_sizes("raw", props)
39 print "YUV sizes:", its.objects.get_available_output_sizes("yuv", props)
Dtest_metadata.py26 global md, props, failed
31 props = cam.get_camera_properties()
37 print " Legacy:", its.caps.legacy(props)
38 print " Limited:", its.caps.limited(props)
39 print " Full:", its.caps.full(props)
41 print " Manual sensor:", its.caps.manual_sensor(props)
42 print " Manual post-proc:", its.caps.manual_post_proc(props)
43 print " Raw:", its.caps.raw(props)
44 print " Sensor fusion:", its.caps.sensor_fusion(props)
51 manual_sensor = its.caps.manual_sensor(props)
[all …]
Dtest_param_sensitivity_burst.py30 props = cam.get_camera_properties()
31 its.caps.skip_unless(its.caps.manual_sensor(props) and
32 its.caps.per_frame_control(props))
34 sens_range = props['android.sensor.info.sensitivityRange']
37 e = min(props['android.sensor.info.exposureTimeRange'])
39 _,fmt = its.objects.get_fastest_manual_capture_settings(props)
/cts/apps/CameraITS/tests/scene1/
Dtest_latching.py35 props = cam.get_camera_properties()
36 its.caps.skip_unless(its.caps.full(props) and
37 its.caps.per_frame_control(props))
39 _,fmt = its.objects.get_fastest_manual_capture_settings(props)
48 its.objects.manual_capture_request(s, e, True, props),
49 its.objects.manual_capture_request(s, e, True, props),
50 its.objects.manual_capture_request(s*2,e, True, props),
51 its.objects.manual_capture_request(s*2,e, True, props),
52 its.objects.manual_capture_request(s, e, True, props),
53 its.objects.manual_capture_request(s, e, True, props),
[all …]
Dtest_param_shading_mode.py36 props = cam.get_camera_properties()
38 its.caps.skip_unless(its.caps.per_frame_control(props) and
39 its.caps.lsc_map(props) and
40 its.caps.lsc_off(props))
42 assert(props.has_key("android.lens.info.shadingMapSize") and
43 props["android.lens.info.shadingMapSize"] != None)
46 assert(props.has_key("android.shading.availableModes") and
47 set(props["android.shading.availableModes"]) == set([0, 1, 2]))
49 num_map_gains = props["android.lens.info.shadingMapSize"]["width"] * \
50 props["android.lens.info.shadingMapSize"]["height"] * 4
Dtest_raw_sensitivity.py37 props = cam.get_camera_properties()
38 its.caps.skip_unless(its.caps.raw16(props) and
39 its.caps.manual_sensor(props) and
40 its.caps.read_3a(props) and
41 its.caps.per_frame_control(props))
44 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
60 plane = its.image.convert_capture_to_planes(cap, props)[1]
65 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_raw_burst_sensitivity.py39 props = cam.get_camera_properties()
40 its.caps.skip_unless(its.caps.raw16(props) and
41 its.caps.manual_sensor(props) and
42 its.caps.read_3a(props) and
43 its.caps.per_frame_control(props))
46 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
67 plane = its.image.convert_capture_to_planes(cap, props)[1]
72 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_dng_noise_model.py42 props = cam.get_camera_properties()
43 its.caps.skip_unless(its.caps.raw(props) and
44 its.caps.raw16(props) and
45 its.caps.manual_sensor(props) and
46 its.caps.read_3a(props) and
47 its.caps.per_frame_control(props))
49 white_level = float(props['android.sensor.info.whiteLevel'])
50 black_levels = props['android.sensor.blackLevelPattern']
51 cfa_idxs = its.image.get_canonical_cfa_order(props)
55 sens_min, sens_max = props['android.sensor.info.sensitivityRange']
[all …]
Dtest_reprocess_noise_reduction.py44 props = cam.get_camera_properties()
46 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
47 its.caps.per_frame_control(props) and
48 its.caps.noise_reduction_mode(props, 0) and
49 (its.caps.yuv_reprocess(props) or
50 its.caps.private_reprocess(props)))
53 assert(its.caps.noise_reduction_mode(props, 4))
56 if (its.caps.yuv_reprocess(props)):
58 if (its.caps.private_reprocess(props)):
74 size = its.objects.get_available_output_sizes("jpg", props)[0]
[all …]
Dtest_yuv_plus_raw12.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw12(props) and
34 its.caps.per_frame_control(props))
39 req = its.objects.manual_capture_request(s, e, True, props)
51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_yuv_plus_raw10.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw10(props) and
34 its.caps.per_frame_control(props))
39 req = its.objects.manual_capture_request(s, e, True, props)
51 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_yuv_plus_raw.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.raw16(props) and
34 its.caps.per_frame_control(props))
39 req = its.objects.manual_capture_request(s, e, True, props)
50 img = its.image.convert_capture_to_rgb_image(cap_raw, props=props)
Dtest_jpeg.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.per_frame_control(props))
36 req = its.objects.manual_capture_request(s, e, True, props)
39 size = its.objects.get_available_output_sizes("yuv", props)[0]
48 size = its.objects.get_available_output_sizes("jpg", props)[0]
Dtest_ev_compensation_advanced.py33 props = cam.get_camera_properties()
34 its.caps.skip_unless(its.caps.manual_sensor(props) and
35 its.caps.manual_post_proc(props) and
36 its.caps.per_frame_control(props) and
37 its.caps.ev_compensation(props))
39 ev_compensation_range = props['android.control.aeCompensationRange']
43 props['android.control.aeCompensationStep'])
Dtest_param_flash_mode.py28 props = cam.get_camera_properties()
29 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
30 its.caps.flash(props) and
31 its.caps.per_frame_control(props))
42 req = its.objects.manual_capture_request(s, e, True, props)
Dtest_crop_region_raw.py32 props = cam.get_camera_properties()
33 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
34 its.caps.raw16(props) and
35 its.caps.per_frame_control(props))
38 a = props['android.sensor.info.activeArraySize']
51 zoom = min(3.0, its.objects.get_max_digital_zoom(props))
67 req = its.objects.manual_capture_request(s,e, True, props)
87 img = its.image.convert_capture_to_rgb_image(cap, props=props)
Dtest_param_noise_reduction.py49 props = cam.get_camera_properties()
50 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
51 its.caps.per_frame_control(props) and
52 its.caps.noise_reduction_mode(props, 0))
72 if not its.caps.noise_reduction_mode(props, mode):
112 if its.caps.noise_reduction_mode(props, 3):
119 if its.caps.noise_reduction_mode(props, 4):
123 elif its.caps.noise_reduction_mode(props, 4):
Dtest_yuv_jpeg_all.py31 props = cam.get_camera_properties()
32 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
33 its.caps.per_frame_control(props))
38 req = its.objects.manual_capture_request(s, e, True, props)
42 for size in its.objects.get_available_output_sizes("yuv", props):
56 for size in its.objects.get_available_output_sizes("jpg", props):
Dtest_format_combos.py35 props = cam.get_camera_properties()
36 its.caps.skip_unless(its.caps.compute_target_exposure(props) and
37 its.caps.raw16(props))
51 wyuv,hyuv = its.objects.get_available_output_sizes("yuv", props)[-1]
52 wjpg,hjpg = its.objects.get_available_output_sizes("jpg", props)[-1]
91 props=props)
Dtest_locked_burst.py40 props = cam.get_camera_properties()
41 its.caps.skip_unless(its.caps.ae_lock(props) and
42 its.caps.awb_lock(props))
48 req = its.objects.fastest_auto_capture_request(props)
73 if its.caps.manual_sensor(props) else SPREAD_THRESH
/cts/apps/CameraITS/tests/scene3/
Dtest_reprocess_edge_enhancement.py90 props = cam.get_camera_properties()
92 its.caps.skip_unless(its.caps.read_3a(props) and
93 its.caps.per_frame_control(props) and
94 its.caps.edge_mode(props, 0) and
95 (its.caps.yuv_reprocess(props) or
96 its.caps.private_reprocess(props)))
99 assert(its.caps.edge_mode(props, 3))
102 if (its.caps.yuv_reprocess(props)):
104 if (its.caps.private_reprocess(props)):
107 size = its.objects.get_available_output_sizes("jpg", props)[0]
[all …]
/cts/tests/tests/calendarcommon/src/com/android/calendarcommon2/
DICalendar.java58 ArrayList<Property> props = mPropsMap.get(name); in addProperty() local
59 if (props == null) { in addProperty()
60 props = new ArrayList<Property>(); in addProperty()
61 mPropsMap.put(name, props); in addProperty()
63 props.add(prop); in addProperty()

123