/cts/apps/CameraITS/utils/ |
D | capture_request_utils.py | 126 def get_available_output_sizes(fmt, props, max_size=None, match_ar_size=None): argument 153 fmt_configs = [cfg for cfg in configs if cfg['format'] == fmt_codes[fmt]] 214 fmt = 'yuv' 215 size = get_available_output_sizes(fmt, props)[-1] 216 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]} 237 fmt = 'yuv' 238 size = get_available_output_sizes(fmt, props)[-1] 239 out_spec = {'format': fmt, 'width': size[0], 'height': size[1]} 347 fmt = {'format': 'yuv', 'width': size[0], 'height': size[1]} 349 return fmt [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/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 …]
|
/cts/apps/CameraITS/tests/scene2_b/ |
D | test_auto_per_frame_control.py | 50 def _check_delta_luma_vs_delta_gain(fmt, j, lumas, total_gains): argument 93 fmt = capture_request_utils.get_smallest_yuv_format( 96 return (cam.CAP_RAW, fmt) 98 return (fmt,) 155 def _plot_data(lumas, gains, fmt, log_path): argument 166 pylab.figure(fmt) 170 pylab.title(_NAME + ' ' + fmt) 183 '%s_plot_%s.png' % (os.path.join(log_path, _NAME), fmt)) 241 for i, fmt in enumerate(fmts): 242 logging.debug('fmt: %s', str(fmt['format'])) [all …]
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_read_write.py | 72 for fmt in valid_formats: 73 logging.debug('format: %s', fmt) 74 size = capture_request_utils.get_available_output_sizes(fmt, props)[-1] 75 out_surface = {'width': size[0], 'height': size[1], 'format': fmt} 84 index_list.append((fmt, exp, sens)) 94 data[index_list[i]] = (fmt, exposure_read, sensitivity_read)
|
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_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) 71 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 | 54 _, fmt = capture_request_utils.get_fastest_manual_capture_settings(props) 56 caps = cam.do_capture(reqs, 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/suite/audio_quality/lib/src/ |
D | FileUtil.cpp | 110 bool FileUtil::doVprintf(bool fileOnly, int logLevel, const char *fmt, va_list ap) in doVprintf() argument 122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0 in doVprintf() 154 bool FileUtil::doPrintf(const char* fmt, ...) in doPrintf() argument 157 va_start(ap, fmt); in doPrintf() 158 bool result = doVprintf(false, -1, fmt, ap); in doPrintf()
|
D | Log.cpp | 41 void Log::printf(LogLevel level, const char* fmt, ...) in printf() argument 44 va_start(ap, fmt); in printf() 45 FileUtil::doVprintf(level < mLogLevel, level, fmt, ap); in printf()
|
D | Report.cpp | 66 void Report::printf(const char* fmt, ...) in printf() argument 69 va_start(ap, fmt); in printf() 70 FileUtil::doVprintf(false, -1, fmt, ap); in printf()
|
/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/apps/CameraITS/tests/scene1_1/ |
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) 119 caps = cam.do_capture([auto_req] * FRAMES_PER_ITERATION, fmt)
|
D | test_black_white.py | 45 def do_img_capture(cam, s, e, fmt, latency, cap_name, log_path): argument 62 cap = its_session_utils.do_capture_with_latency(cam, req, latency, fmt) 106 fmt = {'format': 'yuv', 'width': VGA_WIDTH, 'height': VGA_HEIGHT} 114 black_means = do_img_capture(cam, s, e, fmt, latency, 'black', log_path) 122 white_means = do_img_capture(cam, s, e, fmt, latency, 'white', log_path)
|
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])
|
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)
|
/cts/suite/audio_quality/lib/include/ |
D | FileUtil.h | 49 virtual bool doPrintf(const char* fmt, ...); 52 virtual bool doVprintf(bool fileOnly, int loglevel, const char *fmt, va_list ap);
|
/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/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/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/scene3/ |
D | test_flip_mirror.py | 41 def test_flip_mirror_impl(cam, props, fmt, chart, debug, log_path): argument 66 cap = cam.do_capture(req, fmt) 149 fmt = {'format': 'yuv', 'width': VGA_W, 'height': VGA_H} 152 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()
|