/third_party/protobuf/python/google/protobuf/internal/ |
H A D | encoder.py | 1 # Protocol Buffers - Google's data interchange format 506 def _StructPackEncoder(wire_type, format): 511 format: The format string to pass to struct.pack(). 514 value_size = struct.calcsize(format) 525 write(local_struct_pack(format, element)) 532 write(local_struct_pack(format, element)) 538 return write(local_struct_pack(format, value)) 544 def _FloatingPointEncoder(wire_type, format): 553 format [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/ |
H A D | ap_main.c | 48 char *format, *module_str; in hostapd_logger_cb() local 54 format = os_malloc(maxlen); in hostapd_logger_cb() 55 if (!format) in hostapd_logger_cb() 93 os_snprintf(format, maxlen, "%s: STA " MACSTR_SEC "%s%s: %s", in hostapd_logger_cb() 98 os_snprintf(format, maxlen, "%s:%s%s %s", in hostapd_logger_cb() 102 os_snprintf(format, maxlen, "STA " MACSTR_SEC "%s%s: %s", in hostapd_logger_cb() 106 os_snprintf(format, maxlen, "%s%s%s", in hostapd_logger_cb() 116 wpa_printf(MSG_INFO, "%s", format); in hostapd_logger_cb() 140 syslog(priority, "%s", format); in hostapd_logger_cb() 144 os_free(format); in hostapd_logger_cb() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/ |
H A D | ap_main.c | 48 char *format, *module_str; in hostapd_logger_cb() local 54 format = os_malloc(maxlen); in hostapd_logger_cb() 55 if (!format) in hostapd_logger_cb() 96 os_snprintf(format, maxlen, "%s: STA " MACSTR "%s%s: %s", in hostapd_logger_cb() 101 os_snprintf(format, maxlen, "%s:%s%s %s", in hostapd_logger_cb() 105 os_snprintf(format, maxlen, "STA " MACSTR "%s%s: %s", in hostapd_logger_cb() 109 os_snprintf(format, maxlen, "%s%s%s", in hostapd_logger_cb() 119 wpa_printf(MSG_INFO, "%s", format); in hostapd_logger_cb() 143 syslog(priority, "%s", format); in hostapd_logger_cb() 147 os_free(format); in hostapd_logger_cb() [all...] |
/third_party/vk-gl-cts/modules/gles31/functional/ |
H A D | es31fShaderImageLoadStoreTests.cpp | 168 static inline bool isFormatSupportedForTextureBuffer (const TextureFormat& format) in isFormatSupportedForTextureBuffer() argument 170 switch (format.order) in isFormatSupportedForTextureBuffer() 173 return format.type == TextureFormat::FLOAT || in isFormatSupportedForTextureBuffer() 174 format.type == TextureFormat::SIGNED_INT32 || in isFormatSupportedForTextureBuffer() 175 format.type == TextureFormat::UNSIGNED_INT32; in isFormatSupportedForTextureBuffer() 181 return format.type == TextureFormat::UNORM_INT8 || in isFormatSupportedForTextureBuffer() 182 format.type == TextureFormat::HALF_FLOAT || in isFormatSupportedForTextureBuffer() 183 format.type == TextureFormat::FLOAT || in isFormatSupportedForTextureBuffer() 184 format.type == TextureFormat::SIGNED_INT8 || in isFormatSupportedForTextureBuffer() 185 format in isFormatSupportedForTextureBuffer() 196 getShaderImageFormatQualifier(const TextureFormat& format) getShaderImageFormatQualifier() argument 321 newOneLevelTexture1D(const tcu::TextureFormat& format, int w) newOneLevelTexture1D() argument 328 newOneLevelTexture2D(const tcu::TextureFormat& format, int w, int h) newOneLevelTexture2D() argument 335 newOneLevelTextureCube(const tcu::TextureFormat& format, int size) newOneLevelTextureCube() argument 343 newOneLevelTexture3D(const tcu::TextureFormat& format, int w, int h, int d) newOneLevelTexture3D() argument 350 newOneLevelTexture2DArray(const tcu::TextureFormat& format, int w, int h, int d) newOneLevelTexture2DArray() argument 652 LayeredImage(TextureType type, const TextureFormat& format, int w, int h, int d) LayeredImage() argument 738 const TextureFormat format = glu::mapGLInternalFormat(internalFormat); setTextureStorage() local 1148 ImageStoreCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType textureType, deUint32 caseFlags = 0) ImageStoreCase() argument 1313 ImageLoadAndStoreCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType textureType, deUint32 caseFlags = 0) ImageLoadAndStoreCase() argument 1628 BinaryAtomicOperationCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType imageType, AtomicOperation operation, AtomicOperationCaseType caseType) BinaryAtomicOperationCase() argument 2158 AtomicCompSwapCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType imageType, AtomicOperationCaseType caseType) AtomicCompSwapCase() argument 2588 CoherenceCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType imageType, Qualifier qualifier) CoherenceCase() argument 2833 ImageSizeCase(Context& context, const char* name, const char* description, const TextureFormat& format, TextureType imageType, const IVec3& size, ImageAccess imageAccess) ImageSizeCase() argument 3291 const TextureFormat& format = formats[formatNdx]; init() local [all...] |
/third_party/elfutils/backends/ |
H A D | alpha_auxv.c | 37 EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format) in auxv_info() argument 43 *format = "b" in auxv_info()
|
H A D | sparc_auxv.c | 37 EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format) in auxv_info() argument 43 *format = "b" in auxv_info()
|
H A D | arm_auxv.c | 37 EBLHOOK(auxv_info) (GElf_Xword a_type, const char **name, const char **format) in auxv_info() argument 43 *format = "b" in auxv_info()
|
/third_party/backends/lib/ |
H A D | syslog.c | 7 void syslog(int priority, const char *format, va_list args) in syslog() argument 10 printf(format, args); in syslog()
|
/third_party/rust/crates/minimal-lexical/etc/correctness/test-parse-random/ |
H A D | short-decimals.rs | 25 validate(&format!("{}e{}", i, e)); in main() 26 validate(&format!("{}e-{}", i, e)); in main()
|
/third_party/alsa-utils/alsaloop/ |
H A D | pcmjob.c | 133 err = snd_pcm_hw_params_set_format(handle, params, lhandle->format); in setparams_stream() 135 logit(LOG_CRIT, "Sample format not available for %s: %s\n", lhandle->id, snd_strerror(err)); in setparams_stream() 326 snd_pcm_hw_params_t *pt_params, *ct_params; /* templates with rate, format and channels */ in setparams() 558 if (capt->format == SND_PCM_FORMAT_S32) in buf_add_src() 596 if (capt->format == SND_PCM_FORMAT_S32) in buf_add_src() 974 err = snd_pcm_format_set_silence(play->format, play->buf + play->buf_pos * play->frame_size, in xrun_sync() 1007 err = snd_pcm_format_set_silence(play->format, play->buf + play->buf_pos * play->frame_size, in xrun_sync() 1362 lhandle->frame_size = (snd_pcm_format_physical_width(lhandle->format) in init_handle() 1484 snd_pcm_format_t format = loop->capt->format; in fix_format() local [all...] |
/test/testfwk/xdevice/src/xdevice/_core/context/ |
H A D | upload.py | 76 error_msg = "{}{}".format( 178 LOG.error("Get time error {}".format(error)) 181 LOG.error("Get time error {}".format(error)) 189 LOG.error("Get time error {}".format(error)) 239 error = "{}...".format(error[:MAX_VISIBLE_LENGTH]) 258 "Get upload params: {} result is ignored".format(case_id)) 262 error = "{}...".format(error[:MAX_VISIBLE_LENGTH]) 275 case_id = "{}#{}#{}#{}".format(cls.get_session().task_name, package_name,
|
/test/testfwk/developer_test/local_coverage/code_coverage/ |
H A D | multiprocess_code_coverage.py | 54 print("execute command: {}".format(" ".join(cmd_list))) 58 print("Error : command {} execute faild!".format(cmd_list)) 194 cmd = "lcov -c -b {} -d {} --gcov-tool {} --config-file {} -o {} --ignore-errors source,gcov".format( 218 cmd = "lcov --remove {} {} -o {}".format(trace_file, remove, output_name) 297 cmd = "lcov -a {} -o {}".format( 332 cmd = "lcov -a {} -o {}".format( 349 cmd = "genhtml --branch-coverage --demangle-cpp -o {} -p {} --ignore-errors source {}".format( 367 OUTPUT = "out/{}".format(get_product_name(CODEPATH))
|
/test/xts/acts/ai/nncore/nncoretest/src/ |
H A D | HdiTensorDescTest.cpp | 220 * @tc.desc: 设置TensorDescFormat,遍历设置format 241 OH_NN_Format format = OH_NN_FORMAT_NONE; in HWTEST_F() local 242 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNTensorDesc_GetFormat(nullptr, &format)); in HWTEST_F() 254 OH_NN_Format format = OH_NN_FORMAT_NONE; in HWTEST_F() local 255 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetFormat(tensorDesc, &format)); in HWTEST_F() 256 ASSERT_EQ(OH_NN_FORMAT_NONE, format); in HWTEST_F() 270 OH_NN_Format format = OH_NN_FORMAT_NONE; in HWTEST_F() local 271 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetFormat(tensorDesc, &format)); in HWTEST_F() 272 ASSERT_EQ(OH_NN_FORMAT_NCHW, format); in HWTEST_F()
|
/test/xts/acts/graphic/graphicnapitest/ |
H A D | NativeBufferTest.cpp | 45 .format = GRAPHIC_PIXEL_FMT_RGBA_8888, 138 checkConfig.format = 0x0; in HWTEST_F() 143 ASSERT_EQ(checkConfig.format, 0x0); in HWTEST_F() 511 .format = GRAPHIC_PIXEL_FMT_RGBA_8888, in HWTEST_F() 590 .format = GRAPHIC_PIXEL_FMT_YCBCR_420_SP, in HWTEST_F() 598 requestConfig.format = formatType[i]; in HWTEST_F() 631 .format = GRAPHIC_PIXEL_FMT_YCBCR_420_SP, in HWTEST_F() 637 requestConfig.format = formatType; in HWTEST_F()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libjxldec.c | 96 static enum AVPixelFormat libjxl_get_pix_fmt(void *avctx, const JxlBasicInfo *basic_info, JxlPixelFormat *format) in libjxl_get_pix_fmt() argument 98 format->endianness = JXL_NATIVE_ENDIAN; in libjxl_get_pix_fmt() 99 format->num_channels = basic_info->num_color_channels + (basic_info->alpha_bits > 0); in libjxl_get_pix_fmt() 103 format->data_type = JXL_TYPE_UINT8; in libjxl_get_pix_fmt() 109 format->data_type = JXL_TYPE_FLOAT; in libjxl_get_pix_fmt() 112 format->data_type = JXL_TYPE_UINT16; in libjxl_get_pix_fmt() 119 format->data_type = JXL_TYPE_UINT8; in libjxl_get_pix_fmt() 126 format->data_type = JXL_TYPE_UINT16; in libjxl_get_pix_fmt() 372 av_log(avctx, AV_LOG_ERROR, "Bad libjxl pixel format\n"); in libjxl_decode_frame()
|
/third_party/ffmpeg/libavdevice/ |
H A D | lavfi.c | 326 par->format = av_buffersink_get_format(sink); in lavfi_read_header() 330 av_get_padded_bits_per_pixel(av_pix_fmt_desc_get(par->format)); in lavfi_read_header() 339 par->format = av_buffersink_get_format(sink); in lavfi_read_header() 340 par->codec_id = av_get_pcm_codec(par->format, -1); in lavfi_read_header() 343 "Could not find PCM codec for sample format %s.\n", in lavfi_read_header() 344 av_get_sample_fmt_name(par->format)); in lavfi_read_header() 434 size = av_image_get_buffer_size(frame->format, frame->width, frame->height, 1); in lavfi_read_packet() 439 frame->format, frame->width, frame->height, 1); in lavfi_read_packet() 441 size = frame->nb_samples * av_get_bytes_per_sample(frame->format) * in lavfi_read_packet()
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_yadif_cuda.c | 59 CUarray_format format, int channels, in call_kernel() 87 .res.pitch2D.format = format, in call_kernel() 140 CUarray_format format; in filter() local 153 av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n", y->csp->name); in filter() 159 format = CU_AD_FORMAT_UNSIGNED_INT8; in filter() 163 format = CU_AD_FORMAT_UNSIGNED_INT16; in filter() 166 av_log(ctx, AV_LOG_ERROR, "Unsupported pixel format: %s\n", y->csp->name); in filter() 176 format, channels, in filter() 269 output_frames->format in config_output() 57 call_kernel(AVFilterContext *ctx, CUfunction func, CUdeviceptr prev, CUdeviceptr cur, CUdeviceptr next, CUarray_format format, int channels, int src_width, int src_height, int src_pitch, CUdeviceptr dst, int dst_width, int dst_height, int dst_pitch, int parity, int tff) call_kernel() argument [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_lfloat.c | 60 int snd_pcm_lfloat_get_s32_index(snd_pcm_format_t format) in snd_pcm_lfloat_get_s32_index() argument 64 switch (format) { in snd_pcm_lfloat_get_s32_index() 77 endian = snd_pcm_format_big_endian(format); in snd_pcm_lfloat_get_s32_index() 79 endian = snd_pcm_format_little_endian(format); in snd_pcm_lfloat_get_s32_index() 84 int snd_pcm_lfloat_put_s32_index(snd_pcm_format_t format) in snd_pcm_lfloat_put_s32_index() argument 86 return snd_pcm_lfloat_get_s32_index(format); in snd_pcm_lfloat_put_s32_index() 282 dst_format = slave->format; in snd_pcm_lfloat_hw_params() 284 src_format = slave->format; in snd_pcm_lfloat_hw_params() 374 * \param sformat Slave (destination) format 427 linear<->float conversion PCM to given slave PCM. The channel count, format an [all...] |
H A D | pcm_linear.c | 299 snd_pcm_format_t format; in snd_pcm_linear_hw_params() local 307 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &format); in snd_pcm_linear_hw_params() 310 linear->use_getput = (snd_pcm_format_physical_width(format) == 24 || in snd_pcm_linear_hw_params() 312 snd_pcm_format_width(format) == 20 || in snd_pcm_linear_hw_params() 316 linear->get_idx = snd_pcm_linear_get_index(format, SND_PCM_FORMAT_S32); in snd_pcm_linear_hw_params() 320 linear->put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, format); in snd_pcm_linear_hw_params() 324 linear->conv_idx = snd_pcm_linear_convert_index(format, in snd_pcm_linear_hw_params() 328 format); in snd_pcm_linear_hw_params() 419 * \param sformat Slave (destination) format 471 slave PCM. The channel count, format an [all...] |
H A D | pcm_rate_linear.c | 137 /* optimized version for S16 format */ 258 /* optimized version for S16 format */ 333 rate->get_idx = snd_pcm_linear_get_index(info->in.format, SND_PCM_FORMAT_S16); in linear_init() 334 rate->put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S16, info->out.format); in linear_init() 336 if (info->in.format == info->out.format && info->in.format == SND_PCM_FORMAT_S16) in linear_init() 342 if (info->in.format == info->out.format && info->in.format in linear_init() [all...] |
/third_party/alsa-utils/axfer/test/ |
H A D | mapper-test.c | 85 snd_pcm_format_t format; in test_demux() local 93 format = sample_format; in test_demux() 100 err = container_context_pre_process(cntrs + i, &format, in test_demux() 105 assert(format == sample_format); in test_demux() 175 snd_pcm_format_t format; in test_mux() local 183 format = sample_format; in test_mux() 189 err = container_context_pre_process(cntrs + i, &format, in test_mux() 195 assert(format == sample_format); in test_mux()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | numfmtdatadriventest.cpp | 50 format(const DecimalFormat& fmt, const DecimalQuantity& digitList, UnicodeString& appendTo, in format() function 56 return fmt.format(digitList, appendTo, fpos, status); in format() 61 format(const DecimalFormat& fmt, T value, UnicodeString& appendTo, UErrorCode& status) { in format() function 66 return fmt.format(value, appendTo, fpos, status); in format() 242 strToDigitList(tuple.format, digitList, status); in isFormatPass() 245 format(*fmtPtr, digitList, appendTo, status); in isFormatPass() 261 format(*fmtPtr, doubleVal, appendTo, status); in isFormatPass() 276 format(*fmtPtr, intVal, appendTo, status); in isFormatPass() 383 // If this happens, assume that tuple.output is exactly the same format as in isParsePass() 436 // If this happens, assume that tuple.output is exactly the same format a in isParseCurrencyPass() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | BigNumberFormatTest.java | 9 package com.ibm.icu.dev.test.format; 42 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent() 345 String saw = fmt.format(n); in expect() 399 String s = f.format(a); in Test4161100() 424 String output = fmt.format(bd); in TestBigDecimalJ28() 444 String jdk = jdkFormat.format(bd); in TestBigDecimalRounding() 445 String icu = icuFormat.format(bd); in TestBigDecimalRounding() 453 jdk = jdkFormat.format(d); in TestBigDecimalRounding() 454 icu = icuFormat.format(d); in TestBigDecimalRounding()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | BigNumberFormatTest.java | 10 package ohos.global.icu.dev.test.format; 45 expect(fmt1, "1.234E+3", n); // Either format should parse "E+3" in TestExponent() 348 String saw = fmt.format(n); in expect() 402 String s = f.format(a); in Test4161100() 427 String output = fmt.format(bd); in TestBigDecimalJ28() 447 String jdk = jdkFormat.format(bd); in TestBigDecimalRounding() 448 String icu = icuFormat.format(bd); in TestBigDecimalRounding() 456 jdk = jdkFormat.format(d); in TestBigDecimalRounding() 457 icu = icuFormat.format(d); in TestBigDecimalRounding()
|
/third_party/libsnd/tests/ |
H A D | ogg_opus_test.c | 70 sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_OPUS ; in ogg_opus_short_test() 128 sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_OPUS ; in ogg_opus_int_test() 177 sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_OPUS ; in ogg_opus_float_test() 226 sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_OPUS ; in ogg_opus_double_test() 262 ogg_opus_stereo_seek_test (const char * filename, int format) in ogg_opus_stereo_seek_test() argument 282 sfinfo.format = format ; in ogg_opus_stereo_seek_test() 348 sfinfo.format = SF_FORMAT_OGG | SF_FORMAT_OPUS ; in ogg_opus_original_samplerate_test()
|