Home
last modified time | relevance | path

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

1234

/external/dbus-binding-generator/chromeos-dbus-bindings/
Dproxy_generator.cc19 using base::StringPrintf;
39 return StringPrintf(param_def.is_const_ref ? "const %s& %s" : "%s* %s", in GetParamString()
53 text.AddLine(StringPrintf("// - %s", interface.name.c_str())); in GenerateProxies()
56 text.AddLine(StringPrintf("#ifndef %s", header_guard.c_str())); in GenerateProxies()
57 text.AddLine(StringPrintf("#define %s", header_guard.c_str())); in GenerateProxies()
84 text.AddLine(StringPrintf("class %s;", in GenerateProxies()
97 text.AddLine(StringPrintf("#endif // %s", header_guard.c_str())); in GenerateProxies()
111 text.AddLine(StringPrintf("// - %s", interface.name.c_str())); in GenerateMocks()
114 text.AddLine(StringPrintf("#ifndef %s", header_guard.c_str())); in GenerateMocks()
115 text.AddLine(StringPrintf("#define %s", header_guard.c_str())); in GenerateMocks()
[all …]
Dadaptor_generator.cc19 using base::StringPrintf;
34 text.AddLine(StringPrintf("// - %s", interface.name.c_str())); in GenerateAdaptors()
37 text.AddLine(StringPrintf("#ifndef %s", header_guard.c_str())); in GenerateAdaptors()
38 text.AddLine(StringPrintf("#define %s", header_guard.c_str())); in GenerateAdaptors()
54 text.AddLine(StringPrintf("#endif // %s", header_guard.c_str())); in GenerateAdaptors()
72 text->AddLine(StringPrintf("// Interface definition for %s.", in GenerateInterfaceAdaptor()
75 text->AddLine(StringPrintf("class %s {", itf_name.c_str())); in GenerateInterfaceAdaptor()
78 text->AddLine(StringPrintf("virtual ~%s() = default;", itf_name.c_str())); in GenerateInterfaceAdaptor()
84 text->AddLine(StringPrintf("// Interface adaptor for %s.", in GenerateInterfaceAdaptor()
86 text->AddLine(StringPrintf("class %s {", class_name.c_str())); in GenerateInterfaceAdaptor()
[all …]
Dheader_generator.cc25 string guard = base::StringPrintf("____chromeos_dbus_binding__%s", in GenerateHeaderGuard()
45 *type = base::StringPrintf("const %s&", type->c_str()); in MakeConstReferenceIfNeeded()
67 return base::StringPrintf("%s_%s", prefix, name.c_str()); in GetArgName()
Ddbus_signature.cc12 using base::StringPrintf;
184 *output = StringPrintf("%s<%s, %s>", kDictTypename, in GetArrayTypenameForSignature()
194 *output = StringPrintf("%s<%s>", kArrayTypename, child.c_str()); in GetArrayTypenameForSignature()
233 *output = StringPrintf("%s<%s>", kTupleTypename, in GetStructTypenameForSignature()
Dname_parser.cc20 text->AddLine(base::StringPrintf("namespace %s {", name.c_str())); in AddOpenNamespace()
24 text->AddLine(base::StringPrintf("} // namespace %s", name.c_str())); in AddCloseNamespace()
/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()
/external/libchrome/base/trace_event/
Dprocess_memory_maps.cc45 value->SetString("sa", StringPrintf(kHexFmt, region.start_address)); in AsValueInto()
46 value->SetString("sz", StringPrintf(kHexFmt, region.size_in_bytes)); in AsValueInto()
52 "pss", StringPrintf(kHexFmt, region.byte_stats_proportional_resident)); in AsValueInto()
54 "pd", StringPrintf(kHexFmt, region.byte_stats_private_dirty_resident)); in AsValueInto()
56 "pc", StringPrintf(kHexFmt, region.byte_stats_private_clean_resident)); in AsValueInto()
58 "sd", StringPrintf(kHexFmt, region.byte_stats_shared_dirty_resident)); in AsValueInto()
60 "sc", StringPrintf(kHexFmt, region.byte_stats_shared_clean_resident)); in AsValueInto()
61 value->SetString("sw", StringPrintf(kHexFmt, region.byte_stats_swapped)); in AsValueInto()
Dtrace_config_memory_test_util.h18 return StringPrintf( in GetTraceConfig_PeriodicTriggers()
43 return StringPrintf( in GetTraceConfig_EmptyTriggers()
60 return StringPrintf( in GetTraceConfig_NoTriggers()
Dprocess_memory_totals.cc24 StringPrintf("%" PRIx64, resident_set_bytes_)); in AsValueInto()
27 StringPrintf("%" PRIx64, peak_resident_set_bytes_)); in AsValueInto()
32 value->SetString(it.first, StringPrintf("%" PRIx64, it.second)); in AsValueInto()
/external/libchrome/dbus/
Ddbus_statistics.cc224 line += base::StringPrintf(":"); in GetAsString()
226 line += base::StringPrintf(" Sent (BLOCKING):"); in GetAsString()
228 line += base::StringPrintf(" %d", sent_blocking); in GetAsString()
230 line += base::StringPrintf(" %d/min", sent_blocking / dminutes); in GetAsString()
232 line += base::StringPrintf(" %d (%d/min)", in GetAsString()
236 line += base::StringPrintf(" Sent:"); in GetAsString()
238 line += base::StringPrintf(" %d", sent); in GetAsString()
240 line += base::StringPrintf(" %d/min", sent / dminutes); in GetAsString()
242 line += base::StringPrintf(" %d (%d/min)", sent, sent / dminutes); in GetAsString()
245 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/ceres-solver/internal/ceres/
Dconjugate_gradients_solver.cc107 StringPrintf("Convergence. |r| = %e <= %e.", norm_r, tol_r); in Solve()
131 summary.message = StringPrintf("Numerical failure. rho = r'z = %e.", rho); in Solve()
141 summary.message = StringPrintf( in Solve()
154 summary.message = StringPrintf("Numerical failure. p'q = %e.", pq); in Solve()
162 StringPrintf("Numerical failure. alpha = rho / pq = %e", alpha); in Solve()
213 StringPrintf("Convergence: zeta = %e < %e", in Solve()
225 StringPrintf("Convergence. |r| = %e <= %e.", norm_r, tol_r); in Solve()
Dprogram.cc183 *message = StringPrintf( in ParameterBlocksAreFinite()
228 *message = StringPrintf( in IsFeasible()
247 *message = StringPrintf( in IsFeasible()
331 *error = StringPrintf("Evaluation of the residual %d failed during " in RemoveFixedBlocks()
506 ret += StringPrintf("Number of parameter blocks: %d\n", NumParameterBlocks()); in ToString()
507 ret += StringPrintf("Number of parameters: %d\n", NumParameters()); in ToString()
510 ret += StringPrintf("%d: %s\n", in ToString()
Dline_search_minimizer.cc149 summary->message = StringPrintf("Gradient tolerance reached. " in Minimize()
253 StringPrintf("Line search direction failure: specified " in Minimize()
301 StringPrintf("Numerical failure in line search, initial_step_size is " in Minimize()
317 StringPrintf("Numerical failure in line search, failed to find " in Minimize()
382 summary->message = StringPrintf("Gradient tolerance reached. " in Minimize()
395 StringPrintf("Function tolerance reached. " in Minimize()
Dline_search.cc274 StringPrintf("Line search failed: Armijo failed to find a point " in Search()
293 StringPrintf("Line search failed: step_size too small: %.5e " in Search()
567 StringPrintf("Line search failed: Wolfe bracketing phase failed to " in BracketingPhase()
607 StringPrintf("Line search failed: step_size too small: %.5e " in BracketingPhase()
684 StringPrintf("Line search failed: Wolfe zoom phase passed a bracket " in ZoomPhase()
710 StringPrintf("Line search failed: Wolfe zoom phase failed to " in ZoomPhase()
723 StringPrintf("Line search failed: Wolfe zoom bracket width: %.5e " in ZoomPhase()
773 StringPrintf("Line search failed: Wolfe Zoom phase found " in ZoomPhase()
Dcallbacks.cc69 output = StringPrintf(kReportRowFormat, in operator ()()
85 output += StringPrintf(kReportRowFormat, in operator ()()
Dsuitesparse.cc143 *message = StringPrintf("cholmod_analyze failed. error code: %d", in AnalyzeCholesky()
178 *message = StringPrintf("cholmod_analyze failed. error code: %d", in AnalyzeCholeskyWithUserOrdering()
198 *message = StringPrintf("cholmod_analyze failed. error code: %d", in AnalyzeCholeskyWithNaturalOrdering()
303 StringPrintf("Unknown cholmod return code: %d. " in Cholesky()
/external/regex-re2/re2/
Dprog.cc62 return StringPrintf("opcode %d", static_cast<int>(opcode())); in Dump()
65 return StringPrintf("alt -> %d | %d", out(), out1_); in Dump()
68 return StringPrintf("altmatch -> %d | %d", out(), out1_); in Dump()
71 return StringPrintf("byte%s [%02x-%02x] -> %d", in Dump()
76 return StringPrintf("capture %d -> %d", cap_, out()); in Dump()
79 return StringPrintf("emptywidth %#x -> %d", in Dump()
83 return StringPrintf("match! %d", match_id()); in Dump()
86 return StringPrintf("nop -> %d", out()); in Dump()
89 return StringPrintf("fail"); in Dump()
Donepass.cc453 << StringPrintf("Not OnePass: hit node limit %d > %d", in IsOnePass()
475 << StringPrintf("Not OnePass: conflict on byte " in IsOnePass()
495 << StringPrintf("Not OnePass: conflict on byte " in IsOnePass()
526 LOG(ERROR) << StringPrintf("Not OnePass: multiple paths" in IsOnePass()
540 LOG(ERROR) << StringPrintf("Not OnePass: multiple matches" in IsOnePass()
/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(
/external/libweave/third_party/chromium/base/strings/
Dstringprintf_unittest.cc35 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
39 EXPECT_EQ("123hello w", StringPrintf("%3d%2s %1c", 123, "hello", 'w')); in TEST()
41 EXPECT_EQ(L"123hello w", StringPrintf(L"%3d%2ls %1lc", 123, L"hello", 'w')); in TEST()
175 EXPECT_EQ("", StringPrintf("%s", "")); in TEST()
/external/regex-re2/re2/testing/
Ddump.cc130 s->append(StringPrintf("%d,%d ", re->min(), re->max())); in DumpRegexpAppending()
140 s->append(StringPrintf("%#x", rr.lo)); in DumpRegexpAppending()
142 s->append(StringPrintf("%#x-%#x", rr.lo, rr.hi)); in DumpRegexpAppending()
/external/libchrome/base/mac/
Dmach_logging.cc24 return base::StringPrintf(" (%d)", mach_err); in FormatMachErrorNumber()
26 return base::StringPrintf(" (0x%08x)", mach_err); in FormatMachErrorNumber()
/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()

1234