Home
last modified time | relevance | path

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

12

/tools/netsim/rust/cli/src/
Ddisplay.rs22 use std::fmt;
48 impl fmt::Display for Displayer<ListDeviceResponse> {
49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
65 impl fmt::Display for Displayer<&model::Device> {
66 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
86 impl fmt::Display for Displayer<&model::Chip> {
87 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
175 impl fmt::Display for Displayer<&model::chip::BleBeacon> {
176 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
213 impl fmt::Display for Displayer<&model::Position> {
[all …]
/tools/security/remote_provisioning/hwtrust/src/rkp/
Dprotected_data.rs3 use std::{collections::HashMap, fmt};
43 impl fmt::Debug for ProtectedData {
44 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
45 fmt.debug_struct("ProtectedData") in fmt()
53 impl fmt::Debug for UdsCertsEntry {
54 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
56 Self::X509Chain(v) => format_x509_chain(fmt, v), in fmt()
61 fn format_x509_chain(fmt: &mut fmt::Formatter, chain: &Vec<Vec<u8>>) -> fmt::Result { in format_x509_chain()
63 fmt.write_str(&x509_der_to_pem(c).unwrap_or("[INVALID CERTIFICATE]".to_string()))?; in format_x509_chain()
Dcsr.rs1 use std::fmt;
32 impl fmt::Debug for Csr {
33 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
35 Csr::V2 { device_info, challenge, protected_data } => fmt in fmt()
41 Csr::V3 { device_info, dice_chain } => fmt in fmt()
Ddevice_info.rs3 use std::fmt;
44 impl fmt::Debug for DeviceInfo {
45 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
46 let security_level: &dyn fmt::Debug = self.security_level.as_ref().map_or(&"<none>", |s| s); in fmt()
47 let os_version: &dyn fmt::Debug = self.os_version.as_ref().map_or(&"<none>", |v| v); in fmt()
49 fmt.debug_struct("DeviceInfo") in fmt()
/tools/treble/hacksaw/client/
Dcommand.go53 return fmt.Errorf("Codebase name and path are required\n"+
63 fmt.Println("Added codebase", name)
69 return fmt.Errorf("Codebase name is required\n"+
77 fmt.Println("Default codebase set to", name)
86 fmt.Println("Default codebase:")
87 fmt.Println("\t", def)
90 fmt.Println("Codebases:")
92 fmt.Println("\t", name, path)
98 return fmt.Errorf("Codebase name required\n"+
107 fmt.Println("Removed codebase", name)
[all …]
/tools/netsim/src/util/
Dlog.h23 #define BtsLog(fmt, ...) __BtsLog(3, __FILE__, __LINE__, fmt, ##__VA_ARGS__) argument
24 #define BtsLogInfo(fmt, ...) __BtsLog(2, __FILE__, __LINE__, fmt, ##__VA_ARGS__) argument
25 #define BtsLogWarn(fmt, ...) __BtsLog(1, __FILE__, __LINE__, fmt, ##__VA_ARGS__) argument
26 #define BtsLogError(fmt, ...) \ argument
27 __BtsLog(0, __FILE__, __LINE__, fmt, ##__VA_ARGS__)
29 void __BtsLog(int priority, const char *file, int line, const char *fmt, ...);
Dlog.cc70 void __BtsLog(int priority, const char *file, int line, const char *fmt, ...) { in __BtsLog() argument
74 va_start(arglist, fmt); in __BtsLog()
75 vsnprintf(buffer, sizeof(buffer), fmt, arglist); in __BtsLog()
/tools/security/remote_provisioning/hwtrust/src/dice/
Dprofile.rs2 use std::fmt::{self, Display, Formatter};
20 fn fmt(&self, f: &mut Formatter) -> fmt::Result { in fmt() method
35 impl fmt::Display for ParseProfileVersionError {
36 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
37 write!(fmt, "unknown profile version") in fmt()
Dchain.rs5 use std::fmt::{self, Display, Formatter};
104 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
115 impl fmt::Debug for Chain {
116 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
117 let mut debug = fmt.debug_struct("Chain"); in fmt()
178 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
Dentry.rs2 use std::fmt::{self, Display, Formatter};
88 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
110 impl fmt::Debug for Payload {
111 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
265 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
318 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() method
/tools/treble/build/treble_build/cmd/
Dmain.go62 items = append(items, fmt.Sprintf("%s:%s", fl.Project, fl.Revision))
240 addProfileData(fmt.Sprintf("Build %s", t))
255 log.Fatal(fmt.Sprintf("Report failure <%s>", err))
281 log.Fatal(fmt.Sprintf("Failed to build %d targets", buildErrors))
286 fmt.Fprintln(w, "Metric Report")
292 fmt.Fprintln(w, "")
293 fmt.Fprintln(w, " Commit Results")
295 fmt.Fprintf(w, " %-120s : %s\n", c.Project.Project, c.Project.Revision)
296 fmt.Fprintf(w, " SHA : %s\n", c.Commit.Sha)
297 fmt.Fprintf(w, " Files : \n")
[all …]
Dhost.go61 fmt.Fprintln(w, " Host Tools")
62 fmt.Fprintf(w, " %-20s : %s\n", "Directory", rsp.Host.Path)
63 fmt.Fprintf(w, " %-20s : %d\n", "Tools", len(rsp.Host.Targets))
64 fmt.Fprintf(w, " %-20s : %d\n", "Prebuilts", rsp.Host.SymLinks)
65 fmt.Fprintf(w, " %-20s : %d\n", "Inputs", len(hostSourceFileMap))
66 fmt.Fprintf(w, " %-20s : %d\n", "Projects", len(hostSourceProjectMap))
70 fmt.Fprintf(w, " %s\n", proj)
/tools/treble/hacksaw/workspace/
Dcompose.go59 fmt.Print("Composing")
67 fmt.Print(".") //Display some progress
75 fmt.Print("\n")
90 fmt.Print("\n")
95 fmt.Print("\n")
96 fmt.Println("Workspace composed")
114 fmt.Print("Dismantling")
117 fmt.Print(".") //Display some progress
119 fmt.Print("\n")
124 fmt.Print("\n")
[all …]
Dworkspace.go46 return "", fmt.Errorf("Codebase %s does not exist", codebaseName)
49 return "", fmt.Errorf("Workspace %s already exists", workspaceName)
75 return "", fmt.Errorf("Workspace %s does not exist", workspaceName)
96 return "", fmt.Errorf("Workspace %s not found", workspaceName)
107 return "", fmt.Errorf("Workspace %s not found", workspaceName)
193 fmt.Print(".")
199 return fmt.Errorf("Command\n%s\nfailed with the following:\n%s\n%s",
207 return fmt.Errorf("Command\n%s\nfailed with the following:\n%s\n%s",
218 return cfg, fmt.Errorf("Workspace %s not found", remove)
228 fmt.Print("Detaching worktrees")
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java136 final String fmt = "%1$s Upper/Lower bound along horizontal axis not found"; in analyzeImage() local
137 final String err = String.format(fmt, FN_TAG); in analyzeImage()
146 final String fmt = "%1$s: Upper/Lower bound along vertical axis not found"; in analyzeImage() local
147 final String err = String.format(fmt, FN_TAG); in analyzeImage()
222 final String fmt = "%1$s: Duration outside range, value=%2$f, range=(%3$f,%4$f)"; in analyzeDuration() local
223 return handleError(fmt, FN_TAG, duration, durationMin, durationMax); in analyzeDuration()
282 final String fmt = "%1$s: Not enough amplitude columns, value=%2$d"; in analyzeDuration() local
283 return handleError(fmt, FN_TAG, amplitudes.size()); in analyzeDuration()
300 final String fmt = in analyzeDuration() local
303 return handleError(fmt, FN_TAG, oldColumnHeight, currentColumnHeight, i); in analyzeDuration()
[all …]
/tools/security/fuzzing/fuzzer_parser/
Dfuzzparser.go27 fmt.Fprintln(os.Stderr, err)
36 fmt.Fprintln(os.Stderr, violation)
37 fmt.Fprintln(os.Stderr, "usage: fuzzparser [flags] [path ...]")
98 fmt.Printf("---> target value for %s: %s\n", default_name ,value)
153 fmt.Fprintln(os.Stderr, err)
155 return fmt.Errorf("%d parsing errors", len(errs))
178 fmt.Printf("ERROR")
183 fmt.Printf("Parsing %s recursively...\n", path)
193 fmt.Printf("Root %s\n", Root)
206 fmt.Printf("-------------------------------------\n")
[all …]
/tools/netsim/rust/proto/src/
Dfrontend.rs140 impl ::std::fmt::Display for VersionResponse {
141 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
142 ::protobuf::text_format::fmt(self, f) in fmt()
263 impl ::std::fmt::Display for CreateDeviceRequest {
264 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
265 ::protobuf::text_format::fmt(self, f) in fmt()
386 impl ::std::fmt::Display for CreateDeviceResponse {
387 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
388 ::protobuf::text_format::fmt(self, f) in fmt()
508 impl ::std::fmt::Display for DeleteChipRequest {
[all …]
Dstartup.rs141 impl ::std::fmt::Display for StartupInfo {
142 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
143 ::protobuf::text_format::fmt(self, f) in fmt()
284 impl ::std::fmt::Display for Device {
285 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
286 ::protobuf::text_format::fmt(self, f) in fmt()
426 impl ::std::fmt::Display for ChipInfo {
427 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
428 ::protobuf::text_format::fmt(self, f) in fmt()
693 impl ::std::fmt::Display for Chip {
[all …]
Dconfig.rs428 impl ::std::fmt::Display for SlirpOptions {
429 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
430 ::protobuf::text_format::fmt(self, f) in fmt()
586 impl ::std::fmt::Display for HostapdOptions {
587 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
588 ::protobuf::text_format::fmt(self, f) in fmt()
728 impl ::std::fmt::Display for WiFi {
729 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
730 ::protobuf::text_format::fmt(self, f) in fmt()
887 impl ::std::fmt::Display for Bluetooth {
[all …]
Dconfiguration.rs344 impl ::std::fmt::Display for ControllerFeatures {
345 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
346 ::protobuf::text_format::fmt(self, f) in fmt()
559 impl ::std::fmt::Display for ControllerQuirks {
560 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
561 ::protobuf::text_format::fmt(self, f) in fmt()
737 impl ::std::fmt::Display for VendorFeatures {
738 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
739 ::protobuf::text_format::fmt(self, f) in fmt()
975 impl ::std::fmt::Display for Controller {
[all …]
Dmodel.rs176 impl ::std::fmt::Display for Position {
177 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
178 ::protobuf::text_format::fmt(self, f) in fmt()
334 impl ::std::fmt::Display for Orientation {
335 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
336 ::protobuf::text_format::fmt(self, f) in fmt()
808 impl ::std::fmt::Display for Chip {
809 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { in fmt() method
810 ::protobuf::text_format::fmt(self, f) in fmt()
1016 impl ::std::fmt::Display for Radio {
[all …]
/tools/netsim/scripts/
Dtime_formatter.py28 def __init__(self, fmt=None): argument
30 super(TimeFormatter, self).__init__(fmt)
33 fmt = datefmt or "%H:%M:%S"
40 return "{}({})".format(time.strftime(fmt, ct), dt_fmt)
/tools/security/remote_provisioning/hwtrust/src/
Dpublickey.rs9 use std::fmt;
121 impl fmt::Debug for PKeyPublicWrapper {
122 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { in fmt() method
123 fmt.write_str(&self.to_pem()) in fmt()
131 impl fmt::Display for TryFromPKeyError {
132 fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
133 write!(fmt, "unsupported public key conversion attempted") in fmt()
/tools/treble/hacksaw/codebase/
Dcodebase.go39 return cfg, fmt.Errorf("Codebase %s already exists", name)
50 return nil, fmt.Errorf("Codebase %s not found", remove)
71 return fmt.Errorf("Codebase %s not found", def)
88 return dir, fmt.Errorf("Codebase %s not found",
/tools/netsim/rust/daemon/src/devices/
Dchip.rs30 use std::fmt;
42 impl fmt::Display for ChipIdentifier {
43 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method
48 impl fmt::Display for FacadeIdentifier {
49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() method

12