/art/compiler/ |
H A D | output_stream_test.cc | 43 uint8_t buf[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; local 44 EXPECT_TRUE(output_stream_->WriteFully(buf, 2)); 48 EXPECT_TRUE(output_stream_->WriteFully(buf, 4)); 50 EXPECT_TRUE(output_stream_->WriteFully(buf, 6));
|
/art/runtime/base/ |
H A D | stringprintf.cc | 51 char* buf = new char[length]; local 55 result = vsnprintf(buf, length, format, backup_ap); 60 dst->append(buf, result); 62 delete[] buf;
|
H A D | stringpiece.cc | 37 StringPiece::size_type StringPiece::copy(char* buf, size_type n, size_type pos) const { argument 39 memcpy(buf, ptr_ + pos, ret);
|
H A D | logging.cc | 48 // host right now: for the device, a stream buf collating output into lines and calling LogLine or 271 char* buf = nullptr; local 274 // Allocate buffer for snprintf(buf, buf_size, "%s:%u] %s", file, line, message) below. 278 buf = reinterpret_cast<char*>(malloc(buf_size)); 280 if (buf != nullptr) { 281 snprintf(buf, buf_size, "%s:%u] %s", file, line, message); 282 android_writeLog(priority, tag, buf); 283 free(buf);
|
/art/runtime/ |
H A D | monitor_android.cc | 30 static void Set4LE(uint8_t* buf, uint32_t val) { argument 31 *buf++ = (uint8_t)(val); 32 *buf++ = (uint8_t)(val >> 8); 33 *buf++ = (uint8_t)(val >> 16); 34 *buf = (uint8_t)(val >> 24);
|
H A D | zip_archive_test.cc | 55 uint8_t buf[kBufSize]; local 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); 61 computed_crc = crc32(computed_crc, buf, bytes_read);
|
H A D | utils.h | 290 void Push32(std::vector<uint8_t, Alloc>* buf, int32_t data) { argument 291 buf->push_back(data & 0xff); 292 buf->push_back((data >> 8) & 0xff); 293 buf->push_back((data >> 16) & 0xff); 294 buf->push_back((data >> 24) & 0xff); 297 void EncodeUnsignedLeb128(uint32_t data, std::vector<uint8_t>* buf); 298 void EncodeSignedLeb128(int32_t data, std::vector<uint8_t>* buf);
|
H A D | oat_file_assistant_test.cc | 822 char buf[MAXPATHLEN]; local 823 std::string cwd = getcwd(buf, MAXPATHLEN);
|
H A D | profiler.cc | 719 char buf[4]; local 722 int n = read(fd, buf, 1); // TODO: could speed this up but is it worth it? 726 if (buf[0] == '\n') { 729 line += buf[0];
|
H A D | trace.cc | 196 static void Append2LE(uint8_t* buf, uint16_t val) { argument 197 *buf++ = static_cast<uint8_t>(val); 198 *buf++ = static_cast<uint8_t>(val >> 8); 202 static void Append4LE(uint8_t* buf, uint32_t val) { argument 203 *buf++ = static_cast<uint8_t>(val); 204 *buf++ = static_cast<uint8_t>(val >> 8); 205 *buf++ = static_cast<uint8_t>(val >> 16); 206 *buf++ = static_cast<uint8_t>(val >> 24); 210 static void Append8LE(uint8_t* buf, uint64_t val) { argument 211 *buf 616 ReadBytes(uint8_t* buf, size_t bytes) argument 624 DumpBuf(uint8_t* buf, size_t buf_size, TraceClockSource clock_source) argument [all...] |
/art/sigchainlib/ |
H A D | sigchain_dummy.cc | 37 char buf[256]; local 40 vsnprintf(buf, sizeof(buf), format, ap); 42 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); 44 std::cout << buf << "\n"; local
|
H A D | sigchain.cc | 102 char buf[256]; local 105 vsnprintf(buf, sizeof(buf), format, ap); 107 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); 109 std::cout << buf << "\n"; local
|
/art/runtime/jdwp/ |
H A D | jdwp_bits.h | 70 static inline void Set1(uint8_t* buf, uint8_t val) { argument 71 *buf = val; 75 static inline void Set2BE(uint8_t* buf, uint16_t val) { argument 76 *buf++ = (uint8_t)(val >> 8); 77 *buf = (uint8_t)(val); 81 static inline void Set4BE(uint8_t* buf, uint32_t val) { argument 82 *buf++ = (uint8_t)(val >> 24); 83 *buf++ = (uint8_t)(val >> 16); 84 *buf++ = (uint8_t)(val >> 8); 85 *buf 89 Set8BE(uint8_t* buf, uint64_t val) argument [all...] |
H A D | jdwp_expand_buf.cc | 153 static void SetUtf8String(uint8_t* buf, const char* str, size_t strLen) { argument 154 Set4BE(buf, strLen); 155 memcpy(buf + sizeof(uint32_t), str, strLen); 179 void expandBufAddLocation(ExpandBuf* buf, const JdwpLocation& location) { argument 180 expandBufAdd1(buf, location.type_tag); 181 expandBufAddObjectId(buf, location.class_id); 182 expandBufAddMethodId(buf, location.method_id); 183 expandBufAdd8BE(buf, location.dex_pc);
|
H A D | jdwp.h | 65 static inline void SetFieldId(uint8_t* buf, FieldId val) { return Set8BE(buf, val); } argument 66 static inline void SetMethodId(uint8_t* buf, MethodId val) { return Set8BE(buf, val); } argument 67 static inline void SetObjectId(uint8_t* buf, ObjectId val) { return Set8BE(buf, val); } argument 68 static inline void SetRefTypeId(uint8_t* buf, RefTypeId val) { return Set8BE(buf, val); } argument 69 static inline void SetFrameId(uint8_t* buf, FrameId val) { return Set8BE(buf, va argument [all...] |
H A D | jdwp_event.cc | 743 uint8_t* buf = expandBufGetBuffer(pReq); local 745 Set4BE(buf + kJDWPHeaderSizeOffset, expandBufGetLength(pReq)); 746 Set4BE(buf + kJDWPHeaderIdOffset, NextRequestSerial()); 747 Set1(buf + kJDWPHeaderFlagsOffset, 0); /* flags */ 748 Set1(buf + kJDWPHeaderCmdSetOffset, kJDWPEventCmdSet); 749 Set1(buf + kJDWPHeaderCmdOffset, kJDWPEventCompositeCmd);
|
/art/compiler/utils/ |
H A D | assembler_thumb_test.cc | 150 char buf[FILENAME_MAX]; local 151 snprintf(buf, sizeof(buf), "%s.o", filename); 152 unlink(buf); 154 snprintf(buf, sizeof(buf), "%s.oo", filename); 155 unlink(buf);
|
H A D | assembler_test_base.h | 448 struct stat buf; local 449 return stat(copy.c_str(), &buf) == 0;
|
/art/runtime/base/unix_file/ |
H A D | random_access_file_test.h | 56 char buf[256]; local 59 while ((n = f->Read(buf, sizeof(buf), offset)) > 0) { 60 s->append(buf, n); 67 char buf[256]; local 72 ASSERT_EQ(0, file->Read(buf, 0, 0)); 73 ASSERT_EQ(0, file->Read(buf, 123, 0)); 85 std::unique_ptr<char> buf(new char[buf_size]); 87 ASSERT_EQ(-EINVAL, file->Read(buf.get(), 0, -123)); 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf 159 char buf[256]; local [all...] |
H A D | fd_file.cc | 138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { argument 140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); 142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); 163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument 165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); 167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); 181 static ssize_t ReadIgnoreOffset(int fd, void *buf, size_t count, off_t offset) { argument 183 return read(fd, buf, count);
|
/art/runtime/interpreter/ |
H A D | unstarted_runtime_test.cc | 181 uint16_t buf[kBaseLen]; local 197 // Copy the char_array into buf. 198 memcpy(buf, h_char_array->GetData(), kBaseLen * sizeof(uint16_t)); 208 success = success && (data[i] == buf[i]); 212 success = success && (data[i] == buf[i - trg_offset + start_index]); 216 success = success && (data[i] == buf[i]);
|
/art/runtime/gc/space/ |
H A D | image_space.cc | 446 struct statvfs buf; local 448 int res = TEMP_FAILURE_RETRY(statvfs(cache_filename.c_str(), &buf)); 455 uint64_t fs_overall_size = buf.f_bsize * static_cast<uint64_t>(buf.f_blocks); 457 uint64_t fs_free_size = buf.f_bsize * static_cast<uint64_t>(buf.f_bavail);
|
/art/compiler/dex/quick/arm/ |
H A D | target_arm.cc | 298 static char* DecodeRegList(int opcode, int vector, char* buf, size_t buf_size) { argument 301 buf[0] = 0; 311 snprintf(buf + strlen(buf), buf_size - strlen(buf), ", r%d", reg_id); 314 snprintf(buf, buf_size, "r%d", reg_id); 318 return buf; 321 static char* DecodeFPCSRegList(int count, int base, char* buf, size_t buf_size) { argument 322 snprintf(buf, buf_size, "s%d", base); 324 snprintf(buf 355 std::string buf; local 516 char buf[256]; local 557 LOG(INFO) << prefix << ": " << buf; local [all...] |
/art/compiler/dex/quick/arm64/ |
H A D | target_arm64.cc | 237 static void DecodeRegExtendOrShift(int operand, char *buf, size_t buf_size) { argument 241 snprintf(buf, buf_size, ", %s #%d", shift_name, amount); 246 snprintf(buf, buf_size, ", %s", extend_name); 248 snprintf(buf, buf_size, ", %s #%d", extend_name, amount); 341 std::string buf; local 519 buf += tbuf; 522 buf += *fmt++; 528 std::string::npos != buf.find(", [")) { 540 buf += " ; "; 541 buf 547 char buf[256]; local 588 LOG(INFO) << prefix << ": " << buf; local [all...] |
/art/compiler/dex/quick/mips/ |
H A D | target_mips.cc | 369 std::string buf; local 455 buf += tbuf; 458 buf += *fmt++; 461 return buf; 466 char buf[256]; local 467 buf[0] = 0; 470 strcpy(buf, "all"); 478 strcat(buf, num); 483 strcat(buf, "cc "); 486 strcat(buf, "fpc 506 LOG(INFO) << prefix << ": " << buf; local [all...] |