/art/runtime/base/ |
stringprintf_test.cc | 17 #include "stringprintf.h" 25 EXPECT_STREQ("00107e59", StringPrintf("%08zx", size).c_str()); 26 EXPECT_STREQ("0x00107e59", StringPrintf("0x%08zx", size).c_str());
|
stringprintf.h | 26 std::string StringPrintf(const char* fmt, ...)
|
scoped_flock.cc | 23 #include "base/stringprintf.h" 35 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); 40 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); 46 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); 68 *error_msg = StringPrintf("Failed to duplicate open file '%s': %s", 74 *error_msg = StringPrintf(
|
/external/protobuf/src/google/protobuf/stubs/ |
stringprintf_unittest.cc | 33 #include <google/protobuf/stubs/stringprintf.h> 50 EXPECT_EQ("", StringPrintf("")); 52 EXPECT_EQ("", StringPrintf("%s", string().c_str())); 53 EXPECT_EQ("", StringPrintf("%s", "")); 59 EXPECT_EQ("123hello w", StringPrintf("%3$d%2$s %1$c", 'w', "hello", 123)); 90 // StringPrintf should return an empty string instead of running 99 string value = StringPrintf("%.*s", 3, kInvalidCodePoint); 113 value = StringPrintf("%.*s", n, buf); 125 string value = StringPrintf("%.*s", 3, "\375\067s"); 135 string value = StringPrintf("Hello, %s!", "World") [all...] |
stringprintf.h | 31 // from google3/base/stringprintf.h 36 // string result = StringPrintf("%d %s\n", 10, "hello"); 53 LIBPROTOBUF_EXPORT extern string StringPrintf(const char* format, ...);
|
/system/core/base/ |
stringprintf_test.cpp | 17 #include "base/stringprintf.h" 25 EXPECT_EQ("00107e59", android::base::StringPrintf("%08zx", size)); 26 EXPECT_EQ("0x00107e59", android::base::StringPrintf("0x%08zx", size)); 37 android::base::StringPrintf("hello %s", "world"); 45 std::string s(android::base::StringPrintf("%s", buf));
|
/art/compiler/optimizing/ |
graph_checker.cc | 24 #include "base/stringprintf.h" 49 AddError(StringPrintf( 75 AddError(StringPrintf( 85 AddError(StringPrintf("Block %d does not end with a branch instruction.", 94 AddError(StringPrintf("Block %d has a non-phi in its phi list.", 98 AddError(StringPrintf("The recorded last phi of block %d does not match " 111 AddError(StringPrintf("Block %d has a phi in its non-phi list.", 115 AddError(StringPrintf("The recorded last instruction of block %d does not match " 126 AddError(StringPrintf("Instruction %s:%d is a HBoundsCheck, " 138 AddError(StringPrintf("Instruction id %d is duplicate in graph." [all...] |
/art/runtime/ |
dex_instruction.cc | 24 #include "base/stringprintf.h" 129 os << StringPrintf("0x%04x", insn[i]) << " "; 145 os << StringPrintf("%02x%02x", static_cast<uint8_t>(insn[i] & 0x00FF), 159 case k12x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_12x(), VRegB_12x()); break; 160 case k11n: os << StringPrintf("%s v%d, #%+d", opcode, VRegA_11n(), VRegB_11n()); break; 161 case k11x: os << StringPrintf("%s v%d", opcode, VRegA_11x()); break; 162 case k10t: os << StringPrintf("%s %+d", opcode, VRegA_10t()); break; 163 case k20t: os << StringPrintf("%s %+d", opcode, VRegA_20t()); break; 164 case k22x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_22x(), VRegB_22x()); break; 165 case k21t: os << StringPrintf("%s v%d, %+d", opcode, VRegA_21t(), VRegB_21t()); break [all...] |
elf_file.cc | 25 #include "base/stringprintf.h" 177 *error_msg = StringPrintf("Failed to get length of file: '%s' fd=%d: %s", 183 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF header of " 200 *error_msg = StringPrintf("File size of %zd bytes not large enough to contain ELF program " 208 *error_msg = StringPrintf("Failed to map ELF program headers: %s", error_msg->c_str()); 216 *error_msg = StringPrintf("Failed to map ELF file: %s", error_msg->c_str()); 236 *error_msg = StringPrintf("Failed to find shstrtab section header in ELF file: '%s'", 244 *error_msg = StringPrintf("Failed to find PT_DYNAMIC program header in ELF file: '%s'", 258 *error_msg = StringPrintf("Failed to find section header for section %d in ELF file: '%s'", 345 *error_msg = StringPrintf("Offset %d is out of range for %s in ELF file: '%s'", offset, label [all...] |
oat_file.cc | 144 *error_msg = StringPrintf("Failed to open oat filename for reading: %s", strerror(errno)); 228 *error_msg = StringPrintf("Failed to find absolute path for '%s'", elf_filename.c_str()); 239 *error_msg = StringPrintf("Failed to dlopen '%s': %s", elf_filename.c_str(), dlerror()); 244 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s': %s", elf_filename.c_str(), 250 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: " 257 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s': %s", elf_filename.c_str(), 272 *error_msg = StringPrintf("Failed to find oatbasslastword symbol in '%s'", 343 *error_msg = StringPrintf("Failed to find oatdata symbol in '%s'", file->GetPath().c_str()); 348 *error_msg = StringPrintf("Failed to find oatdata symbol at expected address: " 355 *error_msg = StringPrintf("Failed to find oatlastword symbol in '%s'", file->GetPath().c_str()) [all...] |
reference_table_test.cc | 70 EXPECT_NE(oss.str().find(StringPrintf("Last %zd entries (of %zd):", 78 EXPECT_NE(oss.str().find(StringPrintf("%zd of short[] (1 unique instances)", i + 1)), 103 EXPECT_NE(oss.str().find(StringPrintf("%zd of short[] (1 unique instances)", 10 - i - 1)),
|
/system/core/base/include/base/ |
stringprintf.h | 27 std::string StringPrintf(const char* fmt, ...)
|
/system/vold/ |
EmulatedVolume.cpp | 20 #include <base/stringprintf.h> 32 using android::base::StringPrintf; 48 setId(StringPrintf("emulated:%u,%u", major(device), minor(device))); 64 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", label.c_str()); 65 mFuseRead = StringPrintf("/mnt/runtime/read/%s", label.c_str()); 66 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", label.c_str()); 69 setPath(StringPrintf("/storage/%s", label.c_str()));
|
PublicVolume.cpp | 23 #include <base/stringprintf.h> 35 using android::base::StringPrintf; 46 setId(StringPrintf("public:%u,%u", major(device), minor(device))); 47 mDevPath = StringPrintf("/dev/block/vold/%s", getId().c_str()); 113 mRawPath = StringPrintf("/mnt/media_rw/%s", stableName.c_str()); 115 mFuseDefault = StringPrintf("/mnt/runtime/default/%s", stableName.c_str()); 116 mFuseRead = StringPrintf("/mnt/runtime/read/%s", stableName.c_str()); 117 mFuseWrite = StringPrintf("/mnt/runtime/write/%s", stableName.c_str()); 121 setPath(StringPrintf("/storage/%s", stableName.c_str()));
|
/art/disassembler/ |
disassembler.cc | 22 #include "base/stringprintf.h" 51 return StringPrintf("%p", begin); 54 return StringPrintf("0x%08zx", offset);
|
disassembler_x86.cc | 25 #include "base/stringprintf.h" 155 hex << StringPrintf("%02X", begin[i]); 169 address << StringPrintf("[0x%x]", *address_bits); 171 address << StringPrintf("[RIP + 0x%x]", *reinterpret_cast<const uint32_t*>(*instr)); 201 address << StringPrintf(" * %d", 1 << scale); 208 address << StringPrintf(" + %d", *reinterpret_cast<const int32_t*>(*instr)); 212 address << StringPrintf("%d", *address_bits); 217 address << StringPrintf(" + %d", *reinterpret_cast<const int8_t*>(*instr)); 220 address << StringPrintf(" + %d", *reinterpret_cast<const int32_t*>(*instr)); 234 address << StringPrintf(" + %d", *reinterpret_cast<const int8_t*>(*instr)) [all...] |
/external/ceres-solver/internal/ceres/ |
conjugate_gradients_solver.cc | 47 #include "ceres/stringprintf.h" 107 StringPrintf("Convergence. |r| = %e <= %e.", norm_r, tol_r); 131 summary.message = StringPrintf("Numerical failure. rho = r'z = %e.", rho); 141 summary.message = StringPrintf( 154 summary.message = StringPrintf("Numerical failure. p'q = %e.", pq); 162 StringPrintf("Numerical failure. alpha = rho / pq = %e", alpha); 213 StringPrintf("Convergence: zeta = %e < %e", 225 StringPrintf("Convergence. |r| = %e <= %e.", norm_r, tol_r);
|
stringprintf.h | 34 // string result = StringPrintf("%d %s\n", 10, "hello"); 66 extern string StringPrintf(const char* format, ...)
|
callbacks.cc | 34 #include "ceres/stringprintf.h" 69 output = StringPrintf(kReportRowFormat, 85 output += StringPrintf(kReportRowFormat,
|
/system/core/libbacktrace/ |
Backtrace.cpp | 25 #include <base/stringprintf.h> 37 using android::base::StringPrintf; 104 std::string line(StringPrintf("#%02zu pc %" PRIPTR " %s", frame->num, relative_pc, map_name)); 108 line += " (offset " + StringPrintf("0x%" PRIxPTR, frame->map.offset) + ")"; 113 line += StringPrintf("+%" PRIuPTR, frame->func_offset);
|
/system/netd/server/ |
InterfaceController.cpp | 23 #include <base/stringprintf.h> 30 using android::base::StringPrintf; 55 std::string path(StringPrintf("%s/%s/%s", dirname, subdirname, basename)); 165 std::string value(StringPrintf("%d", tableOrOffset)); 179 std::string value(StringPrintf("%u", millis));
|
/art/oatdump/ |
oatdump.cc | 378 os << StringPrintf("0x%08x\n\n", oat_header.GetChecksum()); 396 os << StringPrintf("0x%08x", oat_header.offset()); \ 398 os << StringPrintf(" (%p)", oat_file_.Begin() + oat_header.offset()); \ 400 os << StringPrintf("\n\n"); 420 os << StringPrintf("%d (0x%08x)\n\n", 425 os << StringPrintf("0x%08x\n\n", oat_header.GetImageFileLocationOatChecksum()); 428 os << StringPrintf("0x%08x\n\n", oat_header.GetImageFileLocationOatDataBegin()); 460 os << StringPrintf("0x%08x\n\n", resolved_addr2instr_); 587 os << StringPrintf("location: %s\n", oat_dex_file.GetDexFileLocation().c_str()); 588 os << StringPrintf("checksum: 0x%08x\n", oat_dex_file.GetDexFileLocationChecksum()) [all...] |
/system/core/init/ |
signal_handler.cpp | 26 #include <base/stringprintf.h> 43 return android::base::StringPrintf("exited with status %d", WEXITSTATUS(status)); 45 return android::base::StringPrintf("killed by signal %d", WTERMSIG(status)); 47 return android::base::StringPrintf("stopped by signal %d", WSTOPSIG(status)); 67 name = android::base::StringPrintf("Service '%s' (pid %d)", svc->name, pid); 69 name = android::base::StringPrintf("Untracked pid %d", pid);
|
/external/regex-re2/re2/ |
prog.cc | 62 return StringPrintf("opcode %d", static_cast<int>(opcode())); 65 return StringPrintf("alt -> %d | %d", out(), out1_); 68 return StringPrintf("altmatch -> %d | %d", out(), out1_); 71 return StringPrintf("byte%s [%02x-%02x] -> %d", 76 return StringPrintf("capture %d -> %d", cap_, out()); 79 return StringPrintf("emptywidth %#x -> %d", 83 return StringPrintf("match! %d", match_id()); 86 return StringPrintf("nop -> %d", out()); 89 return StringPrintf("fail");
|
/external/regex-re2/re2/testing/ |
dump.cc | 130 s->append(StringPrintf("%d,%d ", re->min(), re->max())); 140 s->append(StringPrintf("%#x", rr.lo)); 142 s->append(StringPrintf("%#x-%#x", rr.lo, rr.hi));
|