/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
H A D | AstroTest.java | 289 errln("FAIL: " + day.format(cal.getTime()) + in TestSunriseTimes() 290 ", Sunrise: " + df2.format(sunrise) + in TestSunriseTimes() 291 " (USNO " + df.format(exprise) + in TestSunriseTimes() 294 logln(day.format(cal.getTime()) + in TestSunriseTimes() 295 ", Sunrise: " + df.format(sunrise) + in TestSunriseTimes() 296 " (USNO " + df.format(exprise) + ")"); in TestSunriseTimes() 299 errln("FAIL: " + day.format(cal.getTime()) + in TestSunriseTimes() 300 ", Sunset: " + df2.format(sunset) + in TestSunriseTimes() 301 " (USNO " + df.format(expset) + in TestSunriseTimes() 304 logln(day.format(ca in TestSunriseTimes() [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
H A D | AstroTest.java | 286 errln("FAIL: " + day.format(cal.getTime()) + in TestSunriseTimes() 287 ", Sunrise: " + df2.format(sunrise) + in TestSunriseTimes() 288 " (USNO " + df.format(exprise) + in TestSunriseTimes() 291 logln(day.format(cal.getTime()) + in TestSunriseTimes() 292 ", Sunrise: " + df.format(sunrise) + in TestSunriseTimes() 293 " (USNO " + df.format(exprise) + ")"); in TestSunriseTimes() 296 errln("FAIL: " + day.format(cal.getTime()) + in TestSunriseTimes() 297 ", Sunset: " + df2.format(sunset) + in TestSunriseTimes() 298 " (USNO " + df.format(expset) + in TestSunriseTimes() 301 logln(day.format(ca in TestSunriseTimes() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_blend.c | 215 enum pipe_format format = options->format[rt]; in nir_blend_logicop() local 217 util_format_description(format); in nir_blend_logicop() 231 if (util_format_is_unorm(format)) { in nir_blend_logicop() 234 } else if (util_format_is_snorm(format)) { in nir_blend_logicop() 238 assert(util_format_is_pure_integer(format)); in nir_blend_logicop() 251 if (util_format_is_unorm(format)) { in nir_blend_logicop() 253 } else if (util_format_is_snorm(format)) { in nir_blend_logicop() 256 assert(util_format_is_pure_integer(format)); in nir_blend_logicop() 299 enum pipe_format format in nir_blend() local [all...] |
/third_party/nghttp2/doc/ |
H A D | mkapiref.py | 42 out.write('.. {}:: {}\n'.format(self.domain, self.name)) 45 out.write(' {}\n'.format(line)) 56 out.write('.. type:: {}\n'.format(self.name)) 59 out.write(' {}\n'.format(line)) 62 out.write(' .. {}:: {}\n'.format(self.member_domain, name)) 65 out.write(' {}\n'.format(line)) 76 out.write('.. type:: {}\n'.format(self.name)) 79 out.write(' {}\n'.format(line)) 82 out.write(' .. enum:: {}\n'.format(name)) 85 out.write(' {}\n'.format(lin [all...] |
/third_party/pulseaudio/src/tests/ |
H A D | resampler-test.c | 51 switch (ss->format) { in dump_block() 99 printf("%4.3g ", ss->format == PA_SAMPLE_FLOAT32NE ? *u : PA_READ_FLOAT32RE(u)); in dump_block() 135 switch (ss->format) { in generate_block() 221 if (ss->format == PA_SAMPLE_FLOAT32RE) in generate_block() 259 " --from-format=SAMPLEFORMAT From sample type (defaults to s16le)\n" in help() 262 " --to-format=SAMPLEFORMAT To sample type (defaults to s16le)\n" in help() 313 {"from-format", 1, NULL, ARG_FROM_SAMPLEFORMAT}, in main() 316 {"to-format", 1, NULL, ARG_TO_SAMPLEFORMAT}, in main() 335 a.format = b.format in main() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkDeviceMemoryExternalAndroid.cpp | 26 uint32_t GetAHBFormatFromVkFormat(VkFormat format) in GetAHBFormatFromVkFormat() argument 28 switch(format) in GetAHBFormatFromVkFormat() 57 UNSUPPORTED("AHardwareBufferExternalMemory::VkFormat %d", int(format)); in GetAHBFormatFromVkFormat() 149 VkFormat format = AHardwareBufferExternalMemory::GetVkFormatFromAHBFormat(ahbFormat); in GetVkFormatFeaturesFromAHBFormat() local 151 vk::PhysicalDevice::GetFormatProperties(vk::Format(format), &formatProperties); in GetVkFormatFeaturesFromAHBFormat() 156 // The correct formatFeatureFlags depends on consumer and format in GetVkFormatFeaturesFromAHBFormat() 252 ahbDesc.format = GetAHBFormatFromVkFormat(image->getFormat()); in allocateAndroidHardwareBuffer() 262 ahbDesc.format = AHARDWAREBUFFER_FORMAT_BLOB; in allocateAndroidHardwareBuffer() 267 // Android Hardware Buffer Buffer Resources: "Android hardware buffers with a format of in allocateAndroidHardwareBuffer() 274 ahbDesc.format in allocateAndroidHardwareBuffer() [all...] |
/third_party/vixl/src/aarch64/ |
H A D | disasm-aarch64.h | 260 int SubstituteField(const Instruction* instr, const char* format); 261 int SubstituteRegisterField(const Instruction* instr, const char* format); 263 const char* format); 264 int SubstituteImmediateField(const Instruction* instr, const char* format); 265 int SubstituteLiteralField(const Instruction* instr, const char* format); 267 const char* format); 268 int SubstituteShiftField(const Instruction* instr, const char* format); 269 int SubstituteExtendField(const Instruction* instr, const char* format); 270 int SubstituteConditionField(const Instruction* instr, const char* format); 271 int SubstitutePCRelAddressField(const Instruction* instr, const char* format); [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/message2/ |
H A D | NumberFormatterFactory.java | 73 return format(toFormat, variableOptions).toString(); in formatToString() 80 public FormattedPlaceholder format(Object toFormat, Map<String, Object> variableOptions) { in format() method in NumberFormatterFactory.NumberFormatterImpl 104 throw new NullPointerException("Argument to format can't be null"); in format() 106 result = realFormatter.format((double) toFormat - offset); in format() 108 result = realFormatter.format((long) toFormat - offset); in format() 110 result = realFormatter.format((int) toFormat - offset); in format() 113 result = realFormatter.format(bd.subtract(BigDecimal.valueOf(offset))); in format() 115 result = realFormatter.format(((Number) toFormat).doubleValue() - offset); in format() 117 result = realFormatter.format((CurrencyAmount) toFormat); in format() 124 result = realFormatter.format(nrValu in format() [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
H A D | LocalizedNumberFormatter.java | 23 * A NumberFormatter that has a locale associated with it; this means .format() methods are available. 49 * The number to format. 54 public FormattedNumber format(long input) { in format() method in LocalizedNumberFormatter 55 return format(new DecimalQuantity_DualStorageBCD(input)); in format() 63 * The number to format. 68 public FormattedNumber format(double input) { in format() method in LocalizedNumberFormatter 69 return format(new DecimalQuantity_DualStorageBCD(input)); in format() 77 * The number to format. 82 public FormattedNumber format(Number input) { in format() method in LocalizedNumberFormatter 83 return format(ne in format() 100 public FormattedNumber format(Measure input) { format() method in LocalizedNumberFormatter 127 private FormattedNumber format(DecimalQuantity fq) { format() method in LocalizedNumberFormatter [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/ |
H A D | NumberFormatSpecificationTest.java | 10 package ohos.global.icu.dev.test.format; 49 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters() 50 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters() 137 assertEquals("", "JPY ****433", fmt.format(433.22)); in TestPadding() 143 assertEquals("", "USD (433.22)", fmt.format(-433.22)); in TestPadding() 150 assertEquals("", "QU**43,3EE-1", fmt.format(4.33)); in TestPadding() 159 return fmt.format(d).replace('\u00a0', ' '); in formatFrWithPattern() 167 private static String format(double d, NumberFormat nf) { in format() method in NumberFormatSpecificationTest 168 return nf.format(d).replace('\u00a0', ' '); in format()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | NumberFormatSpecificationTest.java | 9 package com.ibm.icu.dev.test.format; 46 assertEquals("", "34 567,89", format(1234567.89, nf)); in TestNfSetters() 47 assertEquals("", "0 034,56", format(34.56, nf)); in TestNfSetters() 133 assertEquals("", "JPY ****433", fmt.format(433.22)); in TestPadding() 138 assertEquals("", "USD (433.22)", fmt.format(-433.22)); in TestPadding() 145 assertEquals("", "QU**43,3EE-1", fmt.format(4.33)); in TestPadding() 154 return fmt.format(d).replace('\u00a0', ' '); in formatFrWithPattern() 162 private static String format(double d, NumberFormat nf) { in format() method in NumberFormatSpecificationTest 163 return nf.format(d).replace('\u00a0', ' '); in format()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/ |
H A D | LocalizedNumberFormatter.java | 23 * A NumberFormatter that has a locale associated with it; this means .format() methods are available. 48 * The number to format. 52 public FormattedNumber format(long input) { in format() method in LocalizedNumberFormatter 53 return format(new DecimalQuantity_DualStorageBCD(input)); in format() 61 * The number to format. 65 public FormattedNumber format(double input) { in format() method in LocalizedNumberFormatter 66 return format(new DecimalQuantity_DualStorageBCD(input)); in format() 74 * The number to format. 78 public FormattedNumber format(Number input) { in format() method in LocalizedNumberFormatter 79 return format(ne in format() 95 public FormattedNumber format(Measure input) { format() method in LocalizedNumberFormatter 119 private FormattedNumber format(DecimalQuantity fq) { format() method in LocalizedNumberFormatter [all...] |
/third_party/node/src/ |
H A D | debug_utils.h | 36 inline std::string SPrintF(const char* format, Args&&... args); 38 inline void FPrintF(FILE* file, const char* format, Args&&... args); 92 const char* format, 101 Debug(Environment* env, DebugCategory cat, const char* format, Args&&... args); 110 const std::string& format, 122 const char* format, 127 const char* format, 132 const std::string& format, 177 const char* format,
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesShaderIntrinsicsBase.hpp | 89 std::string getOpTypeImageComponent (const tcu::TextureFormat& format); 91 std::string getImageComponentTypeName (const tcu::TextureFormat& format); 93 std::string getImageComponentVec4TypeName (const tcu::TextureFormat& format); 96 const tcu::TextureFormat& format, 100 const vk::VkFormat format, 113 const vk::VkFormat format, in SparseShaderIntrinsicsCaseBase() 119 , m_format(format) in SparseShaderIntrinsicsCaseBase() 159 const vk::VkFormat format) in SparseShaderIntrinsicsInstanceBase() 164 , m_format(format) in SparseShaderIntrinsicsInstanceBase() 108 SparseShaderIntrinsicsCaseBase(tcu::TestContext& testCtx, const std::string& name, const SpirVFunction function, const ImageType imageType, const tcu::UVec3& imageSize, const vk::VkFormat format, const std::string& operand) SparseShaderIntrinsicsCaseBase() argument 155 SparseShaderIntrinsicsInstanceBase(Context& context, const SpirVFunction function, const ImageType imageType, const tcu::UVec3& imageSize, const vk::VkFormat format) SparseShaderIntrinsicsInstanceBase() argument
|
/third_party/skia/third_party/externals/spirv-tools/utils/ |
H A D | generate_language_headers.py | 79 return " {}{} = {},".format(prefix, use_name, value) 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 89 guard = 'SPIRV_EXTINST_{}_H_'.format(grammar.name) 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 123 parts.append('#endif // {}'.format(guard)) 138 return 'enum {0} {1}{2} = {3}, {1}{2}_BitWidthPadding = 0x7fffffff {4};'.format( 142 return 'enum {}{} {}'.format(prefix, name, '{') 145 return ' {}{}Max = 0x7ffffff\n{};\n'.format(prefix, enum, '}')
|
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/ |
H A D | utilities.h | 50 GLsizei width, GLsizei height, GLenum format, GLenum type, Texture *texture); 52 GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, Texture *texture); 54 bool ValidateReadPixelsFormatType(const Framebuffer *framebuffer, GLenum format, GLenum type); 55 bool IsDepthTexture(GLint format); 56 bool IsStencilTexture(GLint format); 61 GLenum ValidateTextureFormatType(GLenum format, GLenum type, GLint internalformat, GLenum target); 63 sw::Format ConvertReadFormatType(GLenum format, GLenum type); 114 GLenum ConvertBackBufferFormat(sw::Format format); 115 GLenum ConvertDepthStencilFormat(sw::Format format);
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/ |
H A D | generate_language_headers.py | 79 return " {}{} = {},".format(prefix, use_name, value) 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 89 guard = 'SPIRV_EXTINST_{}_H_'.format(grammar.name) 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 123 parts.append('#endif // {}'.format(guard)) 138 return 'enum {0} {1}{2} = {3}, {1}{2}_BitWidthPadding = 0x7fffffff {4};'.format( 142 return 'enum {}{} {}'.format(prefix, name, '{') 145 return ' {}{}Max = 0x7ffffff\n{};\n'.format(prefix, enum, '}')
|
/third_party/tzdata/ |
H A D | date.c | 50 register const char * format = "+%+"; in main() local 105 format = argv[optind]; in main() 106 if (*format != '+') { in main() 107 fprintf(stderr, _("date: unknown operand: %s\n"), format); in main() 112 display(format, t); in main() 162 " [+format]\n")); in usage() 168 display(char const *format, time_t now) in display() argument 179 timeout(stdout, format, tmp); in display() 191 timeout(FILE *fp, char const *format, struct tm const *tmp) in timeout() argument 211 result = strftime(cp, size, format, tm in timeout() [all...] |
/third_party/vixl/tools/ |
H A D | verify_assembler_traces.py | 154 return "{}.{} {}, {}, {}".format(matches[0], dt, matches[2], matches[3], matches[4]) 271 return "mov.w {}, #{}".format(*matches) 273 return "mov {}, #{}".format(*matches) 320 instruction_matcher = "^" + pattern.format(**pattern_matchers) + "$" 328 # `result` is a string, use it as the format string. 330 llvm_instruction.append(result.format(*match.groups())) 337 raise Exception("Unsupported instruction {}.".format(instruction)) 379 [llvm_mc, '-assemble', '-triple={}'.format(triple), '-mattr=v8,crc', 415 """.format("fewer" if len(llvm_encodings) < len(vixl_encodings) else "more")) 422 """.format(instructio [all...] |
/third_party/spirv-tools/utils/ |
H A D | generate_language_headers.py | 79 return " {}{} = {},".format(prefix, use_name, value) 86 parts.extend(["{}{}".format(self.comment_prefix(), f) for f in grammar.copyright]) 89 guard = 'SPIRV_EXTINST_{}_H_'.format(grammar.name) 91 parts.append('#ifndef {}'.format(guard)) 92 parts.append('#define {}'.format(guard)) 123 parts.append('#endif // {}'.format(guard)) 138 return 'enum {0} {1}{2} = {3}, {1}{2}_BitWidthPadding = 0x7fffffff {4};'.format( 142 return 'enum {}{} {}'.format(prefix, name, '{') 145 return ' {}{}Max = 0x7ffffff\n{};\n'.format(prefix, enum, '}')
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesShaderIntrinsicsBase.hpp | 89 std::string getOpTypeImageComponent (const tcu::TextureFormat& format); 91 std::string getImageComponentTypeName (const tcu::TextureFormat& format); 93 std::string getImageComponentVec4TypeName (const tcu::TextureFormat& format); 96 const tcu::TextureFormat& format, 100 const vk::VkFormat format, 113 const vk::VkFormat format, in SparseShaderIntrinsicsCaseBase() 119 , m_format(format) in SparseShaderIntrinsicsCaseBase() 159 const vk::VkFormat format) in SparseShaderIntrinsicsInstanceBase() 164 , m_format(format) in SparseShaderIntrinsicsInstanceBase() 108 SparseShaderIntrinsicsCaseBase(tcu::TestContext& testCtx, const std::string& name, const SpirVFunction function, const ImageType imageType, const tcu::UVec3& imageSize, const vk::VkFormat format, const std::string& operand) SparseShaderIntrinsicsCaseBase() argument 155 SparseShaderIntrinsicsInstanceBase(Context& context, const SpirVFunction function, const ImageType imageType, const tcu::UVec3& imageSize, const vk::VkFormat format) SparseShaderIntrinsicsInstanceBase() argument
|
/kernel/linux/linux-6.6/drivers/media/usb/uvc/ |
H A D | uvc_v4l2.c | 160 * given frame format and size. This should be done by the device as part of 196 static u32 uvc_v4l2_get_bytesperline(const struct uvc_format *format, in uvc_v4l2_get_bytesperline() argument 199 switch (format->fcc) { in uvc_v4l2_get_bytesperline() 207 return format->bpp * frame->wWidth / 8; in uvc_v4l2_get_bytesperline() 216 const struct uvc_format *format = NULL; in uvc_v4l2_try_format() local 229 uvc_dbg(stream->dev, FORMAT, "Trying format 0x%08x (%c%c%c%c): %ux%u\n", in uvc_v4l2_try_format() 235 * Check if the hardware supports the requested format, use the default in uvc_v4l2_try_format() 236 * format otherwise. in uvc_v4l2_try_format() 239 format = &stream->formats[i]; in uvc_v4l2_try_format() 240 if (format in uvc_v4l2_try_format() 367 const struct uvc_format *format; uvc_v4l2_get_format() local 402 const struct uvc_format *format; uvc_v4l2_set_format() local 469 const struct uvc_format *format; uvc_v4l2_set_streamparm() local 701 const struct uvc_format *format; uvc_ioctl_enum_fmt() local 1253 const struct uvc_format *format = NULL; uvc_ioctl_enum_framesizes() local 1293 const struct uvc_format *format = NULL; uvc_ioctl_enum_frameintervals() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 33 * struct camss_format_info - ISP media bus format information 34 * @code: V4L2 media bus format code 35 * @pixelformat: V4L2 pixel format FCC identifier 241 * @mbus: v4l2_mbus_framefmt format (input) 242 * @pix: v4l2_pix_format_mplane format (output) 246 * Fill the output pix structure with information from the input mbus format. 292 struct v4l2_format *format) in video_get_subdev_format() 310 ret = video_find_format(fmt.format.code, in video_get_subdev_format() 311 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 316 format in video_get_subdev_format() 291 video_get_subdev_format(struct camss_video *video, struct v4l2_format *format) video_get_subdev_format() argument 331 const struct v4l2_pix_format_mplane *format = video_queue_setup() local 360 const struct v4l2_pix_format_mplane *format = video_buf_init() local 388 const struct v4l2_pix_format_mplane *format = video_buf_prepare() local 417 struct v4l2_format format; video_check_format() local 898 struct v4l2_format format = { msm_video_init_format() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/dispnv50/ |
H A D | wndw.c | 207 switch (asyw->state.fb->format->format) { in nv50_wndw_atomic_check_acquire_yuv() 209 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_VE8YO8UE8YE8; in nv50_wndw_atomic_check_acquire_yuv() 212 asyw->image.format = NV507E_SURFACE_SET_PARAMS_FORMAT_YO8VE8YE8UE8; in nv50_wndw_atomic_check_acquire_yuv() 226 switch (asyw->state.fb->format->format) { in nv50_wndw_atomic_check_acquire_rgb() 228 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_I8; in nv50_wndw_atomic_check_acquire_rgb() 232 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_A8R8G8B8; in nv50_wndw_atomic_check_acquire_rgb() 235 asyw->image.format = NV507C_SURFACE_SET_PARAMS_FORMAT_R5G6B5; in nv50_wndw_atomic_check_acquire_rgb() 239 asyw->image.format in nv50_wndw_atomic_check_acquire_rgb() 657 nv50_plane_format_mod_supported(struct drm_plane *plane, u32 format, u64 modifier) nv50_plane_format_mod_supported() argument 699 nv50_wndw_new_(const struct nv50_wndw_func *func, struct drm_device *dev, enum drm_plane_type type, const char *name, int index, const u32 *format, u32 heads, enum nv50_disp_interlock_type interlock_type, u32 interlock_data, struct nv50_wndw **pwndw) nv50_wndw_new_() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/ |
H A D | camss-video.c | 33 * struct camss_format_info - ISP media bus format information 34 * @code: V4L2 media bus format code 35 * @pixelformat: V4L2 pixel format FCC identifier 292 * @mbus: v4l2_mbus_framefmt format (input) 293 * @pix: v4l2_pix_format_mplane format (output) 297 * Fill the output pix structure with information from the input mbus format. 343 struct v4l2_format *format) in video_get_subdev_format() 362 ret = video_find_format(fmt.format.code, in video_get_subdev_format() 363 format->fmt.pix_mp.pixelformat, in video_get_subdev_format() 368 format in video_get_subdev_format() 342 video_get_subdev_format(struct camss_video *video, struct v4l2_format *format) video_get_subdev_format() argument 383 const struct v4l2_pix_format_mplane *format = video_queue_setup() local 412 const struct v4l2_pix_format_mplane *format = video_buf_init() local 440 const struct v4l2_pix_format_mplane *format = video_buf_prepare() local 469 struct v4l2_format format; video_check_format() local 941 struct v4l2_format format = { msm_video_init_format() local [all...] |