Home
last modified time | relevance | path

Searched refs:StringFormat (Results 1 – 24 of 24) sorted by relevance

/developtools/profiler/device/base/include/
Dlogging.h134 static inline std::string StringFormat(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
136 static inline std::string StringFormat(const char* fmt, ...) in StringFormat() function
160 HILOG_DEBUG(type, "%{public}s", logging::StringFormat(fmt, ##__VA_ARGS__).c_str())
162 HILOG_INFO(type, "%{public}s", logging::StringFormat(fmt, ##__VA_ARGS__).c_str())
164 HILOG_WARN(type, "%{public}s", logging::StringFormat(fmt, ##__VA_ARGS__).c_str())
166 HILOG_ERROR(type, "%{public}s", logging::StringFormat(fmt, ##__VA_ARGS__).c_str())
191 …std::string str = std::string("CHECK_NOTNULL(") + logging::StringFormat(fmt, ##__VA_ARGS__) + …
202 …std::string str = std::string("CHECK_TRUE(") + logging::StringFormat(fmt, ##__VA_ARGS__) + …
220 HILOG_WARN(LOG_CORE, "%{public}s", logging::StringFormat(fmt, ##__VA_ARGS__).c_str()); \
/developtools/hdc/hdc_rust/src/cffi/
Dbase.cpp18 const std::string StringFormat(const char * const formater, va_list &vaArgs) in StringFormat() function
29 const std::string StringFormat(const char * const formater, ...) in StringFormat() function
33 std::string ret = StringFormat(formater, vaArgs); in StringFormat()
Dusb_util.cpp61 const std::string StringFormat(const char * const formater, va_list &vaArgs) in StringFormat() function
72 const std::string StringFormat(const char * const formater, ...) in StringFormat() function
76 std::string ret = StringFormat(formater, vaArgs); in StringFormat()
108 std::string stringBuf = StringFormat("param set %s %s", key, value); in SetDevItem()
Dusb_util.h29 const std::string StringFormat(const char * const formater, va_list &vaArgs);
31 const std::string StringFormat(const char * const formater, ...);
Dbase.h41 const std::string StringFormat(const char * const formater, va_list &vaArgs);
43 const std::string StringFormat(const char * const formater, ...);
Dsystem_depend.cpp36 string stringBuf = StringFormat("param set %s %s", key, value); in SetDevItem()
52 string sFailString = StringFormat("Get parameter \"%s\" fail", key); in GetDevItem()
/developtools/hdc/src/test/
Dut_mod.cpp139 string localFile = Base::StringFormat("%s/file.local", UT_TMP_PATH.c_str()); in TestFileCommand()
140 string remoteFile = Base::StringFormat("%s/file.remote", UT_TMP_PATH.c_str()); in TestFileCommand()
143 string cmd = Base::StringFormat("find /usr > %s", localFile.c_str()); in TestFileCommand()
276 string localFile = Base::StringFormat("%s/forward.result", UT_TMP_PATH.c_str()); in TestForwardCommand()
290 string localFile = Base::StringFormat("%s/app.hap", UT_TMP_PATH.c_str()); in TestAppCommand()
291 …string cmd = Base::StringFormat("id --help > %s", localFile.c_str()); // I know it is a invalid h… in TestAppCommand()
Dut_command.cpp83 … bufString = Base::StringFormat("file send %s/file.local %s/file.remote", UT_TMP_PATH.c_str(), in TestTaskCommand()
105 bufString = Base::StringFormat("install %s/app.hap", UT_TMP_PATH.c_str()); in TestTaskCommand()
Dut_runtime.cpp214 string utFile = Base::StringFormat("%s/%s", UT_TMP_PATH.c_str(), file.c_str()); in ResetUtTmpFile()
/developtools/hdc/src/daemon/
Dsystem_depend.cpp43 string stringBuf = Base::StringFormat("param set %s %s", key, value); in SetDevItem()
59 string sFailString = Base::StringFormat("Get parameter \"%s\" fail", key); in GetDevItem()
Ddaemon_app.cpp134 doBuf = Base::StringFormat("bm install %s -p %s", options, package.c_str()); in PackageShell()
137 doBuf = Base::StringFormat("bm install %s %s", options, package.c_str()); in PackageShell()
144 doBuf = Base::StringFormat("bm uninstall %s -n %s", options, package.c_str()); in PackageShell()
147 doBuf = Base::StringFormat("bm uninstall %s %s", options, package.c_str()); in PackageShell()
Ddaemon_tcp.cpp62 string sendBuf = Base::StringFormat("%s-%d", HANDSHAKE_MESSAGE.c_str(), tcpListenPort); in TransmitConfig()
/developtools/hdc/src/common/
Dbase.h102 const string StringFormat(const char * const formater, ...);
103 const string StringFormat(const char * const formater, va_list &vaArgs);
Dbase.cpp53 debugInfo = StringFormat("%s:%d", tmpString.c_str(), line); in GetLogDebugFunctionName()
59 … threadIdString = StringFormat("[%x]", std::hash<std::thread::id> {}(std::this_thread::get_id())); in GetLogDebugFunctionName()
89 msTimeSurplus = StringFormat(".%03llu", sSinceUnix0Rest); in GetLogLevelAndTime()
95 timeString = StringFormat("%s%s", buffer, msTimeSurplus.c_str()); in GetLogLevelAndTime()
165 string last = StringFormat("%s.%d", path, 0); in RollLogFile()
247 … string logBuf = StringFormat("[%s][%s]%s%s %s%s", logLevelString.c_str(), timeString.c_str(), in PrintLogEx()
1346 const string StringFormat(const char * const formater, ...) in StringFormat() function
1350 string ret = StringFormat(formater, vaArgs); in StringFormat()
1355 const string StringFormat(const char * const formater, va_list &vaArgs) in StringFormat() function
1374 string ver = StringFormat("%x.%x.%x%c", major, minor, version, a + fix); in GetVersion()
Dtask.cpp76 string log = Base::StringFormat(msg, vaArgs); in LogMsg()
Dasync_cmd.cpp114 string sFailString = Base::StringFormat("Get parameter \"%s\" fail", key); in GetDevItem()
Dtransfer.cpp603 localPath = Base::StringFormat("%s%c%s", localPath.c_str(), Base::GetPathSep(), optName); in SmartSlavePath()
Dsession.cpp1278 string log = Base::StringFormat(msg, vaArgs); in LogMsg()
/developtools/hdc/src/host/
Dmain.cpp126 outCommand += Base::StringFormat("\"%s\"", utf8Path.c_str()); in AppendCwdWhenTransfer()
149 string packageCmd = Base::StringFormat("\"%s\"", argv[i]); in SplitOptionAndCommand()
154 outOption += Base::StringFormat("\"%s\"", argv[i]); in SplitOptionAndCommand()
Dserver.cpp260 …out = Base::StringFormat("%s\t\t%s\t%s\t%s\n", hdi->connectKey.c_str(), sConn.c_str(), sStatus.c_s… in BuildDaemonVisableLine()
264 out = Base::StringFormat("%s\n", hdi->connectKey.c_str()); in BuildDaemonVisableLine()
619 … buf = Base::StringFormat("%s %s %s\n", hfi->connectKey.c_str(), hfi->taskString.c_str(), in BuildForwardVisableLine()
622 buf = Base::StringFormat("%s\n", hfi->taskString.c_str()); in BuildForwardVisableLine()
Dhost_usb.cpp231 …string szTmpKey = Base::StringFormat("%d-%d", libusb_get_bus_number(dev), libusb_get_device_addres… in WatchUsbNodeChange()
332 di.usbMountPoint = Base::StringFormat("%d-%d", hUSB->busId, hUSB->devId); in UpdateUSBDaemonInfo()
Dext_client.cpp298 … std::string remove = Base::StringFormat("%s %s \"%s\" ", argv[i], argv[i + 1], argv[i + 2]); in RemoveRemoteCwd()
Dclient.cpp67 … string path = Base::StringFormat("%s%c.%s.pid", bufPath, Base::GetPathSep(), SERVER_NAME.c_str()); in GetLastPID()
Dserver_for_client.cpp181 string log = logInfo + Base::StringFormat(msg, vaArgs); in EchoClient()