/cts/tests/media/jni/ |
D | NativeMediaFormatUnitTest.cpp | 64 bool validateFormatInt32(AMediaFormat* fmt, int offset = 0, bool isClear = false); 65 bool validateFormatInt64(AMediaFormat* fmt, int offset = 0, bool isClear = false); 66 bool validateFormatFloat(AMediaFormat* fmt, float offset = 0.0f, bool isClear = false); 67 bool validateFormatDouble(AMediaFormat* fmt, double offset = 0.0, bool isClear = false); 68 bool validateFormatSize(AMediaFormat* fmt, size_t offset = 0, bool isClear = false); 69 bool validateFormatString(AMediaFormat* fmt, int offset = 0, bool isClear = false); 70 bool validateFormatRect(AMediaFormat* fmt, int offset = 0, bool isClear = false); 71 bool validateFormatBuffer(AMediaFormat* fmt, int offset = 0, bool isClear = false); 72 bool validateFormat(AMediaFormat* fmt, int offset = 0, bool isClear = false); 74 void configureFormatInt32(AMediaFormat* fmt, int offset = 0); [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/peripheralprofile/ |
D | AudioStringsHelper.java | 42 static private String encodingToString(int fmt) { in encodingToString() argument 43 return fmt < formatStrings.length ? formatStrings[fmt] : ("" + fmt + " Unknown Format "); in encodingToString() 46 static private String encodingToShortString(int fmt) { in encodingToShortString() argument 47 return fmt < shortFormatStrings.length in encodingToShortString() 48 ? shortFormatStrings[fmt] in encodingToShortString() 49 : ("" + fmt + " Unknown Format "); in encodingToShortString()
|
/cts/apps/CameraITS/utils/ |
D | capture_request_utils.py | 144 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument 171 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_codes[fmt]] 232 fmt = 'yuv' 233 size = get_available_output_sizes(fmt, props)[-1] 234 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]} 255 fmt = 'yuv' 256 size = get_available_output_sizes(fmt, props)[-1] 257 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]} 365 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]} 367 return fmt [all …]
|
/cts/apps/CameraITS/tests/scene4/ |
D | test_multi_camera_alignment.py | 48 def convert_cap_and_prep_img(cap, props, fmt, img_name, debug): argument 73 if fmt == 'raw': 135 def determine_valid_out_surfaces(cam, props, fmt, cap_camera_ids, sizes): argument 153 {'format': fmt, 'physicalCamera': cap_camera_ids[0], 156 {'format': fmt, 'physicalCamera': cap_camera_ids[1], 165 out_surface = {'format': fmt, 'physicalCamera': cap_id, 177 def take_images(cam, caps, props, fmt, cap_camera_ids, out_surfaces, log_path, argument 199 if fmt == 'raw': 203 _, caps[(fmt, 204 cap_camera_ids[0])], caps[(fmt, [all …]
|
D | test_aspect_ratio_and_crop.py | 280 for fmt in format_list: 281 fmt_iter = fmt['iter'] 282 fmt_cmpr = fmt['cmpr'] 285 fmt_cmpr, props, fmt['cmpr_size']) 290 fmt_iter, props, fmt['iter_max']):
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_solid_color_test_pattern.py | 74 def check_solid_color(img, exp_values, color, fmt): argument 86 if fmt == 'raw': 219 fmt = {'format': 'raw'} 221 fmt = {'format': 'yuv'} 222 logging.debug('Using format: %s', fmt['format']) 223 caps = cam.do_capture([req]*num_frames, fmt) 229 if fmt['format'] == 'yuv': 244 img, color['RGB'], color['color'], fmt['format']) 247 img, _BLACK['RGB'], _BLACK['color'], fmt['format'])
|
D | test_read_write.py | 73 for fmt in valid_formats: 74 logging.debug('format: %s', fmt) 75 size = capture_request_utils.get_available_output_sizes(fmt, props)[-1] 76 out_surface = {'width': size[0], 'height': size[1], 'format': fmt} 85 index_list.append((fmt, exp, sens)) 95 data[index_list[i]] = (fmt, exposure_read, sensitivity_read)
|
D | test_unified_timestamps.py | 47 req, fmt = capture_request_utils.get_fastest_manual_capture_settings( 50 req, fmt = capture_request_utils.get_fastest_auto_capture_settings( 52 cap = cam.do_capture(req, fmt) 72 cap = cam.do_capture(req, fmt)
|
D | test_capture_result_dump.py | 41 req, fmt = capture_request_utils.get_fastest_manual_capture_settings( 43 cap = cam.do_capture(req, fmt)
|
D | test_param_sensitivity_burst.py | 55 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props) 57 caps = cam.do_capture(reqs, fmt)
|
/cts/apps/CameraITS/tests/scene1_1/ |
D | test_ev_compensation_basic.py | 110 fmt = capture_request_utils.get_smallest_yuv_format( 112 if fmt['width'] * fmt['height'] > VGA_W * VGA_H: 113 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H} 114 logging.debug('YUV size: %d x %d', fmt['width'], fmt['height']) 120 caps = cam.do_capture([req]*THRESH_CONVERGE_FOR_EV, fmt)
|
D | test_ae_precapture_trigger.py | 68 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props) 84 caps = cam.do_capture(manual_reqs, fmt) 96 cap = cam.do_capture(auto_req, fmt) 107 cap = cam.do_capture(auto_req, fmt) 120 caps = cam.do_capture([auto_req] * FRAMES_PER_ITERATION, fmt)
|
D | test_black_white.py | 47 def do_img_capture(cam, s, e, fmt, latency, cap_name, log_path): argument 64 cap = its_session_utils.do_capture_with_latency(cam, req, latency, fmt) 108 fmt = {'format': 'yuv', 'width': VGA_WIDTH, 'height': VGA_HEIGHT} 116 black_means = do_img_capture(cam, s, e, fmt, latency, 'black', log_path) 124 white_means = do_img_capture(cam, s, e, fmt, latency, 'white', log_path)
|
D | test_auto_vs_manual.py | 91 fmt = capture_request_utils.get_smallest_yuv_format( 103 cap_auto = cam.do_capture(req, fmt) 111 cap_man1 = cam.do_capture(req, fmt) 120 cap_man2 = cam.do_capture(req, fmt)
|
D | test_burst_sameness_manual.py | 74 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props) 78 w, h = fmt['width'], fmt['height'] 88 caps = cam.do_capture([req]*BURST_LEN, [fmt])
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8431/ |
D | poc.c | 25 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument 26 #define ERR(fmt, ...) printf(fmt " %d %s\n", ##__VA_ARGS__, errno, strerror(errno)) argument
|
/cts/tests/video/src/android/video/cts/ |
D | CodecEncoderPerformanceTestBase.java | 86 MediaFormat fmt = new MediaFormat(); in setUpEncoderFormat() local 87 fmt.setString(MediaFormat.KEY_MIME, mime); in setUpEncoderFormat() 88 fmt.setInteger(MediaFormat.KEY_WIDTH, format.getInteger(MediaFormat.KEY_WIDTH)); in setUpEncoderFormat() 89 fmt.setInteger(MediaFormat.KEY_HEIGHT, format.getInteger(MediaFormat.KEY_HEIGHT)); in setUpEncoderFormat() 90 fmt.setInteger(MediaFormat.KEY_BIT_RATE, bitrate); in setUpEncoderFormat() 91 fmt.setInteger(MediaFormat.KEY_FRAME_RATE, in setUpEncoderFormat() 93 fmt.setFloat(MediaFormat.KEY_I_FRAME_INTERVAL, 1.0f); in setUpEncoderFormat() 94 fmt.setInteger(MediaFormat.KEY_COLOR_FORMAT, in setUpEncoderFormat() 96 return fmt; in setUpEncoderFormat()
|
/cts/apps/CameraITS/tests/inprog/ |
D | test_burst_sameness_auto.py | 45 _, fmt = its.objects.get_fastest_manual_capture_settings(props) 46 w,h = fmt["width"], fmt["height"] 65 caps = cam.do_capture([req]*BURST_LEN, [fmt])
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8432/ |
D | poc.c | 29 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument 30 #define ERR(fmt, ...) printf(fmt " %d %s\n", ##__VA_ARGS__, errno, strerror(errno)) argument
|
/cts/apps/CameraITS/tests/scene2_a/ |
D | test_auto_flash.py | 59 def take_captures_with_flash(cam, fmt): argument 88 still_capture_req, fmt) 126 fmt = {'format': fmt_name} 139 cap = cam.do_capture(no_flash_req, fmt) 169 cap = take_captures_with_flash(cam, fmt) 219 cap = cam.do_capture(req, fmt)
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8482/ |
D | poc.c | 36 #define LOG(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument 37 #define ERR(fmt, ...) printf(fmt ": %d(%d)\n", ##__VA_ARGS__, errno, errno) argument
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_tonemap_sequence.py | 43 cam, req, fmt, num_frames_per_cap, tonemap, log_path): argument 60 cap = cam.do_capture([req]*num_frames_per_cap, fmt) 102 fmt = capture_request_utils.get_smallest_yuv_format( 135 cam, req, fmt, num_frames_per_cap, tonemap, log_path))
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_flip_mirror.py | 41 def test_flip_mirror_impl(cam, props, fmt, chart, debug, log_path): argument 62 cap = cam.do_capture(req, fmt) 147 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H} 150 test_flip_mirror_impl(cam, props, fmt, chart, debug, self.log_path)
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | BurstCaptureTest.java | 85 private void testBurst(int fmt, int burstSize, boolean checkFrameRate, boolean testStillBokeh) in testBurst() argument 123 burstTestByCamera(id, fmt, burstSize, checkFrameRate, testStillBokeh); in testBurst() 131 private void burstTestByCamera(String cameraId, int fmt, int burstSize, in burstTestByCamera() argument 143 cameraId, mCameraManager, fmt, /*bound*/null).get(0); in burstTestByCamera() 155 config.getOutputMinFrameDuration(fmt, stillSize); in burstTestByCamera() 171 int burstTemplate = (fmt == ImageFormat.JPEG) ? in burstTestByCamera() 200 fmt, resultListener, in burstTestByCamera()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8425/ |
D | poc.c | 31 #define ERR(fmt, ...) printf(fmt ": %d(%s)\n", ##__VA_ARGS__, errno, strerror(errno)) argument
|