Home
last modified time | relevance | path

Searched refs:format (Results 1 – 25 of 693) sorted by relevance

12345678910>>...28

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_str.py110 def test(value, format, expected): argument
112 self.assertEqual(value.__format__(format), expected)
113 self.assertEqual(value.__format__(format + 's'), expected)
142 self.assertEqual(''.format(), '')
143 self.assertEqual('a'.format(), 'a')
144 self.assertEqual('ab'.format(), 'ab')
145 self.assertEqual('a{{'.format(), 'a{')
146 self.assertEqual('a}}'.format(), 'a}')
147 self.assertEqual('{{b'.format(), '{b')
148 self.assertEqual('}}b'.format(), '}b')
[all …]
Dtest_unicode.py1068 def test(value, format, expected): argument
1070 self.assertEqual(value.__format__(format), expected)
1071 self.assertEqual(value.__format__(format + u's'), expected)
1104 self.assertEqual(u''.format(), u'')
1105 self.assertEqual(u'a'.format(), u'a')
1106 self.assertEqual(u'ab'.format(), u'ab')
1107 self.assertEqual(u'a{{'.format(), u'a{')
1108 self.assertEqual(u'a}}'.format(), u'a}')
1109 self.assertEqual(u'{{b'.format(), u'{b')
1110 self.assertEqual(u'}}b'.format(), u'}b')
[all …]
Dtest_complex.py61 self.fail(msg.format(x, y))
545 self.assertEqual(format(1+3j, ''), str(1+3j))
546 self.assertEqual(format(1.5+3.5j, ''), str(1.5+3.5j))
547 self.assertEqual(format(3j, ''), str(3j))
548 self.assertEqual(format(3.2j, ''), str(3.2j))
549 self.assertEqual(format(3+0j, ''), str(3+0j))
550 self.assertEqual(format(3.2+0j, ''), str(3.2+0j))
554 self.assertEqual(format(3.2+0j, '-'), str(3.2+0j))
555 self.assertEqual(format(3.2+0j, '<'), str(3.2+0j))
557 self.assertEqual(format(z, ''), str(z))
[all …]
Dtest_string.py114 self.assertEqual(fmt.format("foo"), "foo")
116 self.assertEqual(fmt.format("foo{0}", "bar"), "foobar")
117 self.assertEqual(fmt.format("foo{1}{0}-{1}", "bar", 6), "foo6bar-6")
118 self.assertEqual(fmt.format("-{arg!r}-", arg='test'), "-'test'-")
137 self.assertEqual(fmt.format("{greeting}, world!"), 'hello, world!')
143 return format(value(), format_spec)
146 self.assertEqual(fmt.format('*{0}*', lambda : 'result'), '*result*')
157 self.assertEqual(fmt.format("{0!r}:{0!x}", 'foo', 'foo'), "'foo':None")
174 self.assertEqual(fmt.format('*|+0:^10s|*', 'foo'), '* foo *')
190 self.assertEqual(fmt.format("{0}", 10), "10")
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DGLESTextureUtils.cpp21 static int computePixelSize(GLenum format, GLenum type) { in computePixelSize() argument
23 #define FORMAT_ERROR(format, type) \ in computePixelSize() argument
24 ALOGE("%s:%d unknown format/type 0x%x 0x%x", __FUNCTION__, __LINE__, format, type) \ in computePixelSize()
28 switch(format) { in computePixelSize()
49 default: FORMAT_ERROR(format, type); in computePixelSize()
53 switch(format) { in computePixelSize()
80 default: FORMAT_ERROR(format, type); in computePixelSize()
84 switch(format) { in computePixelSize()
93 default: FORMAT_ERROR(format, type); in computePixelSize()
97 switch(format) { in computePixelSize()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/stringlib/
Dformatter.h148 DEBUG_PRINT_FORMAT_SPEC(InternalFormatSpec *format)
150 printf("internal format spec: fill_char %d\n", format->fill_char);
151 printf("internal format spec: align %d\n", format->align);
152 printf("internal format spec: alternate %d\n", format->alternate);
153 printf("internal format spec: sign %d\n", format->sign);
154 printf("internal format spec: width %zd\n", format->width);
156 format->thousands_separators);
157 printf("internal format spec: precision %zd\n", format->precision);
158 printf("internal format spec: type %c\n", format->type);
173 InternalFormatSpec *format, in parse_internal_render_format_spec() argument
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/stringlib/
Dformatter.h146 DEBUG_PRINT_FORMAT_SPEC(InternalFormatSpec *format)
148 printf("internal format spec: fill_char %d\n", format->fill_char);
149 printf("internal format spec: align %d\n", format->align);
150 printf("internal format spec: alternate %d\n", format->alternate);
151 printf("internal format spec: sign %d\n", format->sign);
152 printf("internal format spec: width %zd\n", format->width);
154 format->thousands_separators);
155 printf("internal format spec: precision %zd\n", format->precision);
156 printf("internal format spec: type %c\n", format->type);
171 InternalFormatSpec *format, in parse_internal_render_format_spec() argument
[all …]
/device/generic/goldfish-opengl/android-emu/android/utils/
Ddebug.c25 dprint( const char* format, ... ) in dprint() argument
28 va_start( args, format ); in dprint()
30 vfprintf( stdout, format, args ); in dprint()
37 dprintn( const char* format, ... ) in dprintn() argument
40 va_start( args, format ); in dprintn()
41 vfprintf( stdout, format, args ); in dprintn()
46 dprintnv( const char* format, va_list args ) in dprintnv() argument
48 vfprintf( stdout, format, args ); in dprintnv()
53 dwarning( const char* format, ... ) in dwarning() argument
56 va_start( args, format ); in dwarning()
[all …]
Ddebug.h100 #define VERBOSE_DPRINT(tag,format,...) \ argument
102 dprintn(format "\n", \
105 #define VERBOSE_FUNCTION_PRINT(tag,format,...) \ argument
107 dprintn("emulator: %s: " format "\n", \
111 #define VERBOSE_FUNCTION_DPRINT(tag,format,...) \ argument
113 dprintn("%s: " format "\n", \
149 extern void dprint( const char* format, ... );
150 extern void dprintn( const char* format, ... );
151 extern void dprintnv( const char* format, va_list args );
152 extern void dwarning( const char* format, ... );
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/
DbgenOutput.py57 def Output(format = "", *args): argument
58 VaOutput(format, args)
60 def VaOutput(format, args): argument
69 text = format % args
96 def OutIndent(format = "", *args): argument
101 if format: VaOutput(format, args)
104 def OutDedent(format = "", *args): argument
109 if format: VaOutput(format, args)
112 def OutLbrace(format = "", *args): argument
117 if format:
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dgetargs.c54 PyArg_Parse(PyObject *args, const char *format, ...) in PyArg_Parse() argument
59 va_start(va, format); in PyArg_Parse()
60 retval = vgetargs1(args, format, &va, FLAG_COMPAT); in PyArg_Parse()
66 _PyArg_Parse_SizeT(PyObject *args, char *format, ...) in _PyArg_Parse_SizeT() argument
71 va_start(va, format); in _PyArg_Parse_SizeT()
72 retval = vgetargs1(args, format, &va, FLAG_COMPAT|FLAG_SIZE_T); in _PyArg_Parse_SizeT()
79 PyArg_ParseTuple(PyObject *args, const char *format, ...) in PyArg_ParseTuple() argument
84 va_start(va, format); in PyArg_ParseTuple()
85 retval = vgetargs1(args, format, &va, 0); in PyArg_ParseTuple()
91 _PyArg_ParseTuple_SizeT(PyObject *args, char *format, ...) in _PyArg_ParseTuple_SizeT() argument
[all …]
Dmysnprintf.c42 PyOS_snprintf(char *str, size_t size, const char *format, ...) in PyOS_snprintf() argument
47 va_start(va, format); in PyOS_snprintf()
48 rc = PyOS_vsnprintf(str, size, format, va); in PyOS_snprintf()
54 PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) in PyOS_vsnprintf() argument
65 assert(format != NULL); in PyOS_vsnprintf()
75 len = vsnprintf(str, size, format, va); in PyOS_vsnprintf()
84 len = vsprintf(buffer, format, va); in PyOS_vsnprintf()
Dmodsupport.c110 countformat(const char *format, int endchar) in countformat() argument
114 while (level > 0 || *format != endchar) { in countformat()
115 switch (*format) { in countformat()
144 format++; in countformat()
480 Py_BuildValue(const char *format, ...) in Py_BuildValue() argument
484 va_start(va, format); in Py_BuildValue()
485 retval = va_build_value(format, va, 0); in Py_BuildValue()
491 _Py_BuildValue_SizeT(const char *format, ...) in _Py_BuildValue_SizeT() argument
495 va_start(va, format); in _Py_BuildValue_SizeT()
496 retval = va_build_value(format, va, FLAG_SIZE_T); in _Py_BuildValue_SizeT()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dgetargs.c54 PyArg_Parse(PyObject *args, const char *format, ...) in PyArg_Parse() argument
59 va_start(va, format); in PyArg_Parse()
60 retval = vgetargs1(args, format, &va, FLAG_COMPAT); in PyArg_Parse()
66 _PyArg_Parse_SizeT(PyObject *args, char *format, ...) in _PyArg_Parse_SizeT() argument
71 va_start(va, format); in _PyArg_Parse_SizeT()
72 retval = vgetargs1(args, format, &va, FLAG_COMPAT|FLAG_SIZE_T); in _PyArg_Parse_SizeT()
79 PyArg_ParseTuple(PyObject *args, const char *format, ...) in PyArg_ParseTuple() argument
84 va_start(va, format); in PyArg_ParseTuple()
85 retval = vgetargs1(args, format, &va, 0); in PyArg_ParseTuple()
91 _PyArg_ParseTuple_SizeT(PyObject *args, char *format, ...) in _PyArg_ParseTuple_SizeT() argument
[all …]
Dmysnprintf.c42 PyOS_snprintf(char *str, size_t size, const char *format, ...) in PyOS_snprintf() argument
47 va_start(va, format); in PyOS_snprintf()
48 rc = PyOS_vsnprintf(str, size, format, va); in PyOS_snprintf()
54 PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va) in PyOS_vsnprintf() argument
65 assert(format != NULL); in PyOS_vsnprintf()
75 len = vsnprintf(str, size, format, va); in PyOS_vsnprintf()
84 len = vsprintf(buffer, format, va); in PyOS_vsnprintf()
Dmodsupport.c110 countformat(const char *format, int endchar) in countformat() argument
114 while (level > 0 || *format != endchar) { in countformat()
115 switch (*format) { in countformat()
144 format++; in countformat()
480 Py_BuildValue(const char *format, ...) in Py_BuildValue() argument
484 va_start(va, format); in Py_BuildValue()
485 retval = va_build_value(format, va, 0); in Py_BuildValue()
491 _Py_BuildValue_SizeT(const char *format, ...) in _Py_BuildValue_SizeT() argument
495 va_start(va, format); in _Py_BuildValue_SizeT()
496 retval = va_build_value(format, va, FLAG_SIZE_T); in _Py_BuildValue_SizeT()
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/
DStringFormat.cpp19 std::string StringFormatRaw(const char* format, ...) { in StringFormatRaw() argument
21 va_start(args, format); in StringFormatRaw()
22 auto result = StringFormatWithArgs(format, args); in StringFormatRaw()
27 std::string StringFormatWithArgs(const char* format, va_list args) { in StringFormatWithArgs() argument
29 StringAppendFormatWithArgs(&result, format, args); in StringFormatWithArgs()
33 void StringAppendFormatRaw(std::string* string, const char* format, ...) { in StringAppendFormatRaw() argument
35 va_start(args, format); in StringAppendFormatRaw()
36 StringAppendFormatWithArgs(string, format, args); in StringAppendFormatRaw()
41 const char* format, in StringAppendFormatWithArgs() argument
48 int ret = vsnprintf(&(*string)[cur_size], extra, format, args2); in StringAppendFormatWithArgs()
DStringFormat.h27 std::string StringFormatRaw(const char* format, ...);
31 std::string StringFormatWithArgs(const char* format, va_list args);
37 void StringAppendFormatRaw(std::string* string, const char* format, ...);
42 const char* format,
67 std::string StringFormat(const char* format, Args&&... args) { in StringFormat() argument
68 return StringFormatRaw(format, unpackFormatArg(std::forward<Args>(args))...); in StringFormat()
73 const char* format, in StringAppendFormat() argument
75 StringAppendFormatRaw(string, format, in StringAppendFormat()
/device/google/contexthub/util/nanotool/
Dlog.cpp43 #define LOG_EX_VARARGS(level, format) \ argument
46 va_start(arg_list, format); \
47 Log::LogEx(level, format, arg_list); \
51 void Log::Error(const char *format, ...) { in Error() argument
52 LOG_EX_VARARGS(LogLevel::Error, format); in Error()
55 void Log::Warn(const char *format, ...) { in Warn() argument
56 LOG_EX_VARARGS(LogLevel::Warn, format); in Warn()
59 void Log::Info(const char *format, ...) { in Info() argument
60 LOG_EX_VARARGS(LogLevel::Info, format); in Info()
63 void Log::Debug(const char *format, ...) { in Debug() argument
[all …]
Dlog.h45 virtual void Output(const char *format, va_list arg_list) = 0;
64 static void Error(const char *format, ...);
67 static void Warn(const char *format, ...);
70 static void Info(const char *format, ...);
73 static void Debug(const char *format, ...);
83 static void LogEx(LogLevel level, const char *format, va_list arg_list);
93 void Output(const char *format, va_list arg_list);
/device/google/cuttlefish_common/guest/hals/gralloc/legacy/
Dgralloc_vsoc_priv.h71 int format; member
86 private_handle_t(int fd, int size, int format, int x_res, int y_res,
91 format(format), in fd()
154 static inline int formatToBytesPerPixel(int format) { in formatToBytesPerPixel() argument
155 switch (format) { in formatToBytesPerPixel()
182 ALOGE("%s: unknown format=%d", __FUNCTION__, format); in formatToBytesPerPixel()
187 inline const char* pixel_format_to_string(int format) { in pixel_format_to_string() argument
188 switch (format) { in pixel_format_to_string()
279 int format, int width, int height, void* base_v, android_ycbcr* out) { in formatToYcbcr() argument
283 switch (format) { in formatToYcbcr()
[all …]
/device/generic/goldfish-opengl/system/vulkan_enc/
Dvk_format_info.h94 vk_format_aspects(VkFormat format) in vk_format_aspects() argument
96 switch (format) { in vk_format_aspects()
146 vk_format_is_color(VkFormat format) in vk_format_is_color() argument
148 return vk_format_aspects(format) == VK_IMAGE_ASPECT_COLOR_BIT; in vk_format_is_color()
152 vk_format_is_depth_or_stencil(VkFormat format) in vk_format_is_depth_or_stencil() argument
154 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_is_depth_or_stencil()
159 vk_format_has_depth(VkFormat format) in vk_format_has_depth() argument
161 const VkImageAspectFlags aspects = vk_format_aspects(format); in vk_format_has_depth()
/device/google/cuttlefish_common/guest/hals/gralloc/
Dgralloc.cpp34 int format, int width, int height, void* base_v, android_ycbcr* ycbcr) { in formatToYcbcr() argument
38 switch (format) { in formatToYcbcr()
51 ALOGE("%s: can't deal with format=0x%x", __FUNCTION__, format); in formatToYcbcr()
55 inline int formatToBytesPerPixel(int format) { in formatToBytesPerPixel() argument
56 switch (format) { in formatToBytesPerPixel()
77 ALOGE("%s: unknown format=%d", __FUNCTION__, format); in formatToBytesPerPixel()
82 inline int formatToBytesPerFrame(int format, int w, int h) { in formatToBytesPerFrame() argument
83 int bytes_per_pixel = formatToBytesPerPixel(format); in formatToBytesPerFrame()
87 switch (format) { in formatToBytesPerFrame()
97 formatToYcbcr(format, w, h, NULL, &strides); in formatToBytesPerFrame()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
D_strptime.py240 def pattern(self, format): argument
252 format = regex_chars.sub(r"\\\1", format)
254 format = whitespace_replacement.sub('\s+', format)
255 while '%' in format:
256 directive_index = format.index('%')+1
258 format[:directive_index-1],
259 self[format[directive_index]])
260 format = format[directive_index+1:]
261 return "%s%s" % (processed_format, format)
263 def compile(self, format): argument
[all …]
/device/generic/goldfish-opengl/fuchsia/
Dport.cc24 int __android_log_print(int priority, const char* tag, const char* format, in __android_log_print() argument
35 va_start(ap, format); in __android_log_print()
36 vprintf(format, ap); in __android_log_print()
43 const char* format, ...) { in __android_log_assert() argument
49 if (format) { in __android_log_assert()
51 va_start(ap, format); in __android_log_assert()
52 vprintf(format, ap); in __android_log_assert()

12345678910>>...28