Home
last modified time | relevance | path

Searched refs:fmt (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/packages/modules/Bluetooth/tools/rootcanal/lib/
Dlog.cc39 static std::array<fmt::text_style, 5> text_style = {
40 fmt::fg(fmt::color::dim_gray),
41 fmt::fg(fmt::color::floral_white),
42 fmt::emphasis::bold | fmt::fg(fmt::color::yellow),
43 fmt::emphasis::bold | fmt::fg(fmt::color::orange_red),
44 fmt::emphasis::bold | fmt::fg(fmt::color::red),
47 static std::array<fmt::color, 16> text_color = {
48 fmt::color::cadet_blue, fmt::color::aquamarine,
49 fmt::color::indian_red, fmt::color::blue_violet,
50 fmt::color::chartreuse, fmt::color::medium_sea_green,
[all …]
/packages/modules/Bluetooth/system/log/include/bluetooth/
Dlog.h58 fmt::string_view fmt, fmt::format_args vargs);
85 log(fmt::format_string<T...> fmt, T&&... args,
87 vlog(level, LOG_TAG, location, static_cast<fmt::string_view>(fmt),
88 fmt::make_format_args(format_replace(args)...));
95 log(fmt::format_string<T...>, T&&...) -> log<level, T...>;
140 error(fmt::format_string<T...>, T&&...) -> error<T...>;
142 warn(fmt::format_string<T...>, T&&...) -> warn<T...>;
144 info(fmt::format_string<T...>, T&&...) -> info<T...>;
146 debug(fmt::format_string<T...>, T&&...) -> debug<T...>;
148 verbose(fmt::format_string<T...>, T&&...) -> verbose<T...>;
[all …]
/packages/modules/Virtualization/libs/bssl/error/src/
Dcode.rs15 use core::fmt;
33 impl fmt::Display for ReasonCode {
34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
60 impl fmt::Display for GlobalError {
61 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
102 impl fmt::Display for CipherError {
103 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
157 impl fmt::Display for EcError {
158 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
185 impl fmt::Display for EcdsaError {
[all …]
/packages/modules/DnsResolver/
Dres_debug.cpp149 if (errno != ENODEV) fmt::format_to(out, "ns_parserr: {}", strerror(errno)); in do_section()
156 fmt::format_to(out, ";; {} SECTION:\n", p_section(section, opcode)); in do_section()
159 fmt::format_to(out, ";;\t{}, type = {}, class = {}\n", ns_rr_name(rr), in do_section()
166 fmt::format_to(out, "; EDNS: version: {}, udp={}, flags={}\n", (rr.ttl >> 16) & 0xff, in do_section()
176 fmt::format_to(out, "; NSID: "); in do_section()
178 fmt::format_to(out, "; NSID\n"); in do_section()
180 fmt::format_to(out, "; NSID: "); in do_section()
182 fmt::format_to(out, "{:02x} ", cp[i]); in do_section()
184 fmt::format_to(out, " ("); in do_section()
186 fmt::format_to(out, "{} ", isprint(cp[i]) ? cp[i] : '.'); in do_section()
[all …]
/packages/modules/Virtualization/vmbase/src/hvc/
Dtrng.rs15 use core::fmt;
33 impl fmt::Display for Error {
34 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
66 impl fmt::Display for Version {
67 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
72 impl fmt::Debug for Version {
73 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
74 fmt::Display::fmt(self, f) in fmt()
/packages/modules/Connectivity/staticlibs/native/tcutils/
Dlogging.h28 static inline void ALOGE(const char *fmt...) { in ALOGE() argument
30 va_start(args, fmt); in ALOGE()
31 __android_log_vprint(ANDROID_LOG_ERROR, LOG_TAG, fmt, args); in ALOGE()
35 static inline void ALOGW(const char *fmt...) { in ALOGW() argument
37 va_start(args, fmt); in ALOGW()
38 __android_log_vprint(ANDROID_LOG_WARN, LOG_TAG, fmt, args); in ALOGW()
42 static inline void ALOGI(const char *fmt...) { in ALOGI() argument
44 va_start(args, fmt); in ALOGI()
45 __android_log_vprint(ANDROID_LOG_INFO, LOG_TAG, fmt, args); in ALOGI()
49 static inline void ALOGD(const char *fmt...) { in ALOGD() argument
[all …]
/packages/modules/Bluetooth/system/log/src/
Dtruncating_buffer_test.cc30 fmt::format_to(std::back_insert_iterator(buffer_1), "ab");
31 fmt::format_to(std::back_insert_iterator(buffer_2), "ab");
41 fmt::format_to(std::back_insert_iterator(buffer_1), "αβ");
42 fmt::format_to(std::back_insert_iterator(buffer_2), "αβ");
43 fmt::format_to(std::back_insert_iterator(buffer_3), "αβ");
55 fmt::format_to(std::back_insert_iterator(buffer_1), "ພຮ");
56 fmt::format_to(std::back_insert_iterator(buffer_2), "ພຮ");
57 fmt::format_to(std::back_insert_iterator(buffer_3), "ພຮ");
58 fmt::format_to(std::back_insert_iterator(buffer_4), "ພຮ");
72 fmt::format_to(std::back_insert_iterator(buffer_1), "����");
[all …]
Dvlog_android.cc30 fmt::string_view fmt, fmt::format_args vargs) { in vlog() argument
49 fmt::format_to(std::back_insert_iterator(buffer), "{}:{} {}: ", file_name, in vlog()
51 fmt::vformat_to(std::back_insert_iterator(buffer), fmt, vargs); in vlog()
Dvlog_syslog.cc52 fmt::string_view fmt, fmt::format_args vargs) { in vlog() argument
85 fmt::format_to(std::back_insert_iterator(buffer), "{} {}:{} {}: ", tag, in vlog()
89 fmt::vformat_to(std::back_insert_iterator(buffer), fmt, vargs); in vlog()
/packages/modules/Virtualization/vmbase/src/
Dexceptions.rs23 use core::fmt;
46 impl fmt::Display for HandleExceptionError {
47 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
92 impl fmt::Display for Esr {
93 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
110 impl fmt::Display for ArmException {
111 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
127 pub fn print<T: fmt::Display>(&self, exception_name: &str, obj: T, elr: u64) { in print()
Drand.rs18 use core::fmt;
54 impl fmt::Display for Error {
55 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
66 impl fmt::Debug for Error {
67 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/packages/modules/Connectivity/clatd/
Dlogging.c31 void logmsg(int prio, const char *fmt, ...) { in logmsg() argument
34 va_start(ap, fmt); in logmsg()
35 __android_log_vprint(prio, "clatd", fmt, ap); in logmsg()
46 void logmsg_dbg(int prio, const char *fmt, ...) { in logmsg_dbg() argument
49 va_start(ap, fmt); in logmsg_dbg()
50 __android_log_vprint(prio, "clatd", fmt, ap); in logmsg_dbg()
54 void logmsg_dbg(__attribute__((unused)) int prio, __attribute__((unused)) const char *fmt, ...) {} in logmsg_dbg() argument
/packages/services/Car/cpp/evs/sampleDriver/hidl/
DVideoCapture.cpp92 format.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; in open()
93 format.fmt.pix.width = width; in open()
94 format.fmt.pix.height = height; in open()
95 LOG(INFO) << "Requesting format: " << ((char*)&format.fmt.pix.pixelformat)[0] in open()
96 << ((char*)&format.fmt.pix.pixelformat)[1] << ((char*)&format.fmt.pix.pixelformat)[2] in open()
97 << ((char*)&format.fmt.pix.pixelformat)[3] << "(" << std::hex << std::setw(8) in open()
98 << format.fmt.pix.pixelformat << ")"; in open()
107 mFormat = format.fmt.pix.pixelformat; in open()
108 mWidth = format.fmt.pix.width; in open()
109 mHeight = format.fmt.pix.height; in open()
[all …]
/packages/services/Car/cpp/evs/sampleDriver/aidl/src/
DVideoCapture.cpp92 format.fmt.pix.pixelformat = V4L2_PIX_FMT_YUYV; in open()
93 format.fmt.pix.width = width; in open()
94 format.fmt.pix.height = height; in open()
95 LOG(INFO) << "Requesting format: " << ((char*)&format.fmt.pix.pixelformat)[0] in open()
96 << ((char*)&format.fmt.pix.pixelformat)[1] << ((char*)&format.fmt.pix.pixelformat)[2] in open()
97 << ((char*)&format.fmt.pix.pixelformat)[3] << "(" << std::hex << std::setw(8) in open()
98 << format.fmt.pix.pixelformat << ")"; in open()
107 mFormat = format.fmt.pix.pixelformat; in open()
108 mWidth = format.fmt.pix.width; in open()
109 mHeight = format.fmt.pix.height; in open()
[all …]
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/
DLog.h128 void log(const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3))) { in log() argument
132 va_start(ap, fmt); in log()
133 StringAppendV(&result, fmt, ap); in log()
143 void info(const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3))) { in info() argument
147 va_start(ap, fmt); in info()
148 StringAppendV(&result, fmt, ap); in info()
158 void warn(const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3))) { in warn() argument
162 va_start(ap, fmt); in warn()
163 StringAppendV(&result, fmt, ap); in warn()
173 void error(const char* fmt, ...) __attribute__((__format__(__printf__, 2, 3))) { in error() argument
[all …]
/packages/modules/Virtualization/vmbase/src/memory/
Derror.rs17 use core::fmt;
58 impl fmt::Display for MemoryTrackerError {
59 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
69 Self::Hypervisor(e) => e.fmt(f), in fmt()
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h107 #define AKLOGE(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument
108 #define AKLOGI(fmt, ...) printf(fmt "\n", ##__VA_ARGS__) argument
110 #define AKLOGE(fmt, ...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, fmt, ##__VA_ARGS__) argument
111 #define AKLOGI(fmt, ...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, fmt, ##__VA_ARGS__) argument
167 #define AKLOGE(fmt, ...) argument
168 #define AKLOGI(fmt, ...) argument
/packages/modules/Bluetooth/system/stack/mmc/test/mock/
Dmock_embdrv_lc3.h44 enum lc3_pcm_format fmt, void* pcm, int stride)>
46 enum lc3_pcm_format fmt, void* pcm,
49 enum lc3_pcm_format fmt, void* pcm, int stride) { in operator()
50 return body(decoder, in, nbytes, fmt, pcm, stride); in operator()
82 std::function<int(struct lc3_encoder* encoder, enum lc3_pcm_format fmt,
84 body{[](struct lc3_encoder* encoder, enum lc3_pcm_format fmt,
87 int operator()(struct lc3_encoder* encoder, enum lc3_pcm_format fmt, in operator()
89 return body(encoder, fmt, pcm, stride, nbytes, out); in operator()
/packages/modules/Virtualization/vmbase/src/hyp/
Derror.rs17 use core::{fmt, result};
38 impl fmt::Display for Error {
39 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/packages/modules/Virtualization/pvmfw/avb/src/
Derror.rs19 use core::fmt;
46 impl fmt::Display for PvmfwVerifyError {
47 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/packages/modules/Virtualization/libs/dice/open_dice/src/
Derror.rs18 use std::{fmt, result};
38 impl fmt::Display for DiceError {
39 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method
/packages/modules/DnsResolver/doh/
Dboot_time.rs29 use std::fmt;
48 impl fmt::Display for Elapsed {
49 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
50 "deadline has elapsed".fmt(fmt) in fmt()
/packages/modules/Bluetooth/floss/hcidoc/src/groups/
Dinformational.rs6 use std::fmt;
48 impl fmt::Display for AddressType {
49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
84 impl fmt::Display for InitiatorType {
85 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
169 impl fmt::Display for DeviceInformation {
170 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
366 impl fmt::Display for AclInformation {
367 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
400 impl fmt::Display for ProfileType {
[all …]
/packages/services/DeviceAsWebcam/tests/
Dlinux_webcam_test.py217 fmt = v4l2.v4l2_format()
218 fmt.type = v4l2.V4L2_BUF_TYPE_VIDEO_CAPTURE
219 fmt.fmt.pix.pixelformat = fmtdesc.pixelformat
224 fmt.fmt.pix.width = frmsize.discrete.width
225 fmt.fmt.pix.height = frmsize.discrete.height
227 ioctl_retry_error(video_device, v4l2.VIDIOC_S_FMT, fmt,
230 ioctl_retry_error(video_device, v4l2.VIDIOC_G_FMT, fmt,
/packages/modules/Bluetooth/system/gd/rust/common/src/
Dinit_flags.rs5 use std::fmt;
149 impl fmt::Display for $name { impl
150 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
191 impl fmt::Display for ExplicitTagSettings {
192 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt() method

12345678910>>...14