Home
last modified time | relevance | path

Searched refs:StringPrintf (Results 1 – 25 of 100) sorted by relevance

1234

/external/protobuf/src/google/protobuf/stubs/
Dstringprintf_unittest.cc50 EXPECT_EQ("", StringPrintf("")); in TEST()
52 EXPECT_EQ("", StringPrintf("%s", string().c_str())); in TEST()
53 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
59 EXPECT_EQ("123hello w", StringPrintf("%3$d%2$s %1$c", 'w', "hello", 123)); in TEST()
99 string value = StringPrintf("%.*s", 3, kInvalidCodePoint); in TEST()
113 value = StringPrintf("%.*s", n, buf); in TEST()
125 string value = StringPrintf("%.*s", 3, "\375\067s"); in TEST()
135 string value = StringPrintf("Hello, %s!", "World"); in TEST()
145 string value = StringPrintf("%s", buf); in TEST()
Dtime.cc135 return StringPrintf("%03d", nanos / kNanosPerMillisecond); in FormatNanos()
137 return StringPrintf("%06d", nanos / kNanosPerMicrosecond); in FormatNanos()
139 return StringPrintf("%09d", nanos); in FormatNanos()
276 string result = StringPrintf("%04d-%02d-%02dT%02d:%02d:%02d", in FormatTime()
Dstringprintf.cc107 string StringPrintf(const char* format, ...) { in StringPrintf() function
164 return StringPrintf(format, in StringPrintfVector()
/external/libchrome/dbus/
Ddbus_statistics.cc207 line += base::StringPrintf(":"); in GetAsString()
209 line += base::StringPrintf(" Sent (BLOCKING):"); in GetAsString()
211 line += base::StringPrintf(" %d", sent_blocking); in GetAsString()
213 line += base::StringPrintf(" %d/min", sent_blocking / dminutes); in GetAsString()
215 line += base::StringPrintf(" %d (%d/min)", in GetAsString()
219 line += base::StringPrintf(" Sent:"); in GetAsString()
221 line += base::StringPrintf(" %d", sent); in GetAsString()
223 line += base::StringPrintf(" %d/min", sent / dminutes); in GetAsString()
225 line += base::StringPrintf(" %d (%d/min)", sent, sent / dminutes); in GetAsString()
228 line += base::StringPrintf(" Received:"); in GetAsString()
[all …]
/external/libchrome/base/memory/
Dlinked_ptr_unittest.cc19 A(): mynum(num++) { history += base::StringPrintf("A%d ctor\n", mynum); } in A()
20 virtual ~A() { history += base::StringPrintf("A%d dtor\n", mynum); } in ~A()
21 virtual void Use() { history += base::StringPrintf("A%d use\n", mynum); } in Use()
27 B() { history += base::StringPrintf("B%d ctor\n", mynum); } in B()
28 ~B() override { history += base::StringPrintf("B%d dtor\n", mynum); } in ~B()
29 void Use() override { history += base::StringPrintf("B%d use\n", mynum); } in Use()
/external/wpa_supplicant_8/hostapd/hidl/1.1/
Dhostapd.cpp34 using android::base::StringPrintf;
42 StringPrintf(kConfFileNameFmt, interface_name.c_str()); in WriteHostapdConfig()
110 encryption_config_as_string = StringPrintf( in CreateHostapdConfig()
117 encryption_config_as_string = StringPrintf( in CreateHostapdConfig()
135 StringPrintf("%d-%d ", range.start, range.end); in CreateHostapdConfig()
137 chanlist_as_string += StringPrintf("%d ", range.start); in CreateHostapdConfig()
140 channel_config_as_string = StringPrintf( in CreateHostapdConfig()
147 channel_config_as_string = StringPrintf( in CreateHostapdConfig()
179 return StringPrintf( in CreateHostapdConfig()
301 std::string add_iface_param_str = StringPrintf( in addAccessPointInternal_1_1()
/external/libchrome/base/strings/
Dstringprintf_unittest.cc31 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
35 EXPECT_EQ("123hello w", StringPrintf("%3d%2s %1c", 123, "hello", 'w')); in TEST()
37 EXPECT_EQ(L"123hello w", StringPrintf(L"%3d%2ls %1lc", 123, L"hello", 'w')); in TEST()
175 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
Dstringprintf.h19 BASE_EXPORT std::string StringPrintf(_Printf_format_string_ const char* format,
23 BASE_EXPORT std::wstring StringPrintf(
Dstringprintf.cc116 std::string StringPrintf(const char* format, ...) { in StringPrintf() function
126 std::wstring StringPrintf(const wchar_t* format, ...) { in StringPrintf() function
/external/avb/test/
Davb_slot_verify_unittest.cc442 base::StringPrintf( in TEST_F()
504 base::StringPrintf( in TEST_F()
626 base::StringPrintf( in TEST_F()
701 base::StringPrintf("--include_descriptors_from_image %s" in TEST_F()
785 base::StringPrintf("--chain_partition boot:1:%s" in TEST_F()
980 base::StringPrintf("--chain_partition vbmeta_google:1:%s" in TEST_F()
1153 base::StringPrintf("--chain_partition boot:1:%s" in TEST_F()
1233 base::StringPrintf("--chain_partition boot:1:%s" in TEST_F()
1289 base::StringPrintf("--chain_partition boot:1:%s" in TEST_F()
1379 base::StringPrintf("--chain_partition boot:1:%s" in TEST_F()
[all …]
/external/libbrillo/brillo/http/
Dhttp_form_data.cc124 boundary_ = base::StringPrintf("%016" PRIx64, base::RandUint64());
144 return base::StringPrintf( in GetContentType()
179 return base::StringPrintf("--%s\r\n", boundary_.c_str()); in GetBoundaryStart()
183 return base::StringPrintf("--%s--", boundary_.c_str()); in GetBoundaryEnd()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dvalidation_errors.cc81 base::StringPrintf("Validation failed for %s [%s (%s)]", in ReportValidationError()
90 base::StringPrintf("Validation failed for %s [%s]", in ReportValidationError()
/external/libchrome/base/debug/
Dstack_trace_android.cc119 *os << base::StringPrintf("#%02zd " FMT_ADDR " ", i, address); in OutputToStream()
124 *os << base::StringPrintf("%s+" FMT_ADDR, path, rel_pc); in OutputToStream()
/external/libchrome/base/android/orderfile/
Dorderfile_instrumentation.cc195 auto offset_str = base::StringPrintf("%" PRIuS "\n", offset); in DumpToFile()
217 tag_str = base::StringPrintf("%s-", tag.c_str()); in StopAndDumpToFile()
218 auto path = base::StringPrintf( in StopAndDumpToFile()
/external/libbrillo/brillo/
Dcryptohome.cc101 base::StringPrintf("%s%s", g_user_home_prefix, hashed_username.c_str())); in GetHashedUserPath()
113 return FilePath(base::StringPrintf( in GetRootPath()
/external/libchrome/base/message_loop/
Dmessage_loop_task_runner_perftest.cc77 std::string trace = StringPrintf("%d_tasks_per_reload", tasks_per_reload); in Run()
171 std::string trace = StringPrintf("%d_tasks_per_reload", tasks_per_reload); in Run()
/external/libchrome/ui/gfx/geometry/
Dscroll_offset.cc12 return base::StringPrintf("[%f %f]", x_, y_); in ToString()
Dinsets_f.cc13 return base::StringPrintf("%f,%f,%f,%f", top(), left(), bottom(), right()); in ToString()
Dinsets.cc14 return base::StringPrintf("%d,%d,%d,%d", top(), left(), bottom(), right()); in ToString()
/external/libchrome/ipc/
Dipc_mojo_perftest.cc80 base::StringPrintf("IPC_%s_Perf_%dx_%u", label_.c_str(), msg_count_, in OnHello()
308 base::StringPrintf("IPC_%s_Perf_%dx_%zu", label_.c_str(), in OnPong()
451 std::string test_name = base::StringPrintf( in OnInitCallback()
740 base::StringPrintf("Callback_MultiProcess_Perf_%dx_%zu", in OnPong()
770 base::StringPrintf("Callback_SingleThreadNoPostTask_Perf_%dx_%zu", in RunSingleThreadNoPostTaskPingPongServer()
816 base::StringPrintf("Callback_SingleThreadPostTask_Perf_%dx_%zu", in SingleThreadPongPostTask()
Dipc_channel.cc45 return base::StringPrintf("%d.%u.%d", in GenerateUniqueRandomChannelID()
/external/libchrome/base/time/
Dtime_to_iso8601.cc15 return StringPrintf("%04d-%02d-%02dT%02d:%02d:%02d.%03dZ", exploded.year, in TimeToISO8601()
/external/libchrome/base/metrics/
Dsparse_histogram_unittest.cc200 UmaHistogramSparse(StringPrintf("Sparse%d", i), 100); in TEST_P()
293 StringPrintf("TestHistogram.%d", i % kTestCreateCount)); in TEST_P()
359 SparseHistogram::FactoryGet(StringPrintf("ExtremeValues_%zu", i), in TEST_P()
/external/protobuf/src/google/protobuf/util/
Dtime_util.cc108 return StringPrintf("%03d", nanos / kNanosPerMillisecond); in FormatNanos()
110 return StringPrintf("%06d", nanos / kNanosPerMicrosecond); in FormatNanos()
112 return StringPrintf("%09d", nanos); in FormatNanos()
177 result += StringPrintf("%" GOOGLE_LL_FORMAT "d", seconds); in ToString()
/external/libchrome/crypto/
Dnss_util.cc68 result = base::StringPrintf("NSS error code: %d", PR_GetError()); in GetNSSErrorMessage()
446 std::string db_name = base::StringPrintf( in InitializeNSSForChromeOSUser()
667 base::StringPrintf("sql:%s", database_dir.value().c_str()); in NSSInitSingleton()
732 std::string modparams = base::StringPrintf( in LoadModule()
779 base::StringPrintf("configDir='sql:%s' tokenDescription='%s'", in OpenSoftwareNSSDB()

1234