/art/runtime/base/unix_file/ |
H A D | null_file_test.cc | 29 char buf[256]; local 31 ASSERT_EQ(-EINVAL, f.Read(buf, 0, -1)); 33 ASSERT_EQ(0, f.Read(buf, 128, 0)); 34 ASSERT_EQ(0, f.Read(buf, 128, 128));
|
H A D | null_file.cc | 36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const { argument 54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument
|
H A D | string_file.cc | 38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const { argument 39 CHECK(buf); 50 memcpy(buf, data_.data() + offset, available_bytes); 66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { argument 67 CHECK(buf); 86 data_.replace(offset, byte_count, buf, byte_count);
|
H A D | mapped_file.cc | 112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { argument 121 memcpy(buf, data() + offset, read_size); 125 return FdFile::Read(buf, byte_count, offset); 148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { argument 158 memcpy(data() + offset, buf, write_size); 163 return FdFile::Write(buf, byte_count, offset);
|
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));
|
/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));
|
H A D | elf_writer_quick.h | 129 void SetBuffer(std::vector<uint8_t> buf) { buf_ = buf; } argument
|
/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 | 28 int StringPiece::copy(char* buf, size_type n, size_type pos) const { argument 30 memcpy(buf, ptr_ + pos, ret);
|
/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 | profiler.cc | 722 char buf[4]; local 725 int n = read(fd, buf, 1); // TODO: could speed this up but is it worth it? 729 if (buf[0] == '\n') { 732 line += buf[0];
|
/art/sigchainlib/ |
H A D | sigchain_dummy.cc | 30 char buf[256]; local 33 vsnprintf(buf, sizeof(buf), format, ap); 35 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); 37 std::cout << buf << "\n"; local
|
H A D | sigchain.cc | 83 char buf[256]; local 86 vsnprintf(buf, sizeof(buf), format, ap); 88 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); 90 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 = (uint8_t)(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 | 62 static inline void SetFieldId(uint8_t* buf, FieldId val) { return Set4BE(buf, val); } argument 63 static inline void SetMethodId(uint8_t* buf, MethodId val) { return Set4BE(buf, val); } argument 64 static inline void SetObjectId(uint8_t* buf, ObjectId val) { return Set8BE(buf, val); } argument 65 static inline void SetRefTypeId(uint8_t* buf, RefTypeId val) { return Set8BE(buf, val); } argument 66 static inline void SetFrameId(uint8_t* buf, FrameId val) { return Set8BE(buf, va argument [all...] |
H A D | jdwp_event.cc | 729 uint8_t* buf = expandBufGetBuffer(pReq); local 731 Set4BE(buf, expandBufGetLength(pReq)); 732 Set4BE(buf+4, NextRequestSerial()); 733 Set1(buf+8, 0); /* flags */ 734 Set1(buf+9, kJdwpEventCommandSet); 735 Set1(buf+10, kJdwpCompositeCommand);
|
/art/compiler/utils/ |
H A D | assembler_thumb_test.cc | 221 char buf[FILENAME_MAX]; local 222 snprintf(buf, sizeof(buf), "%s.o", filename); 223 unlink(buf); 225 snprintf(buf, sizeof(buf), "%s.oo", filename); 226 unlink(buf);
|
H A D | assembler_test.h | 620 struct stat buf; local 621 return stat(copy.c_str(), &buf) == 0;
|
/art/compiler/dex/quick/arm/ |
H A D | target_arm.cc | 297 static char* DecodeRegList(int opcode, int vector, char* buf, size_t buf_size) { argument 300 buf[0] = 0; 310 snprintf(buf + strlen(buf), buf_size - strlen(buf), ", r%d", reg_id); 313 snprintf(buf, buf_size, "r%d", reg_id); 317 return buf; 320 static char* DecodeFPCSRegList(int count, int base, char* buf, size_t buf_size) { argument 321 snprintf(buf, buf_size, "s%d", base); 323 snprintf(buf 354 std::string buf; local 492 char buf[256]; local 533 LOG(INFO) << prefix << ": " << buf; local [all...] |
/art/compiler/dex/quick/mips/ |
H A D | target_mips.cc | 195 std::string buf; local 277 buf += tbuf; 280 buf += *fmt++; 283 return buf; 288 char buf[256]; local 289 buf[0] = 0; 292 strcpy(buf, "all"); 300 strcat(buf, num); 305 strcat(buf, "cc "); 308 strcat(buf, "fpc 328 LOG(INFO) << prefix << ": " << buf; local [all...] |
/art/runtime/gc/space/ |
H A D | image_space.cc | 410 struct statvfs buf; local 412 int res = TEMP_FAILURE_RETRY(statvfs(cache_filename.c_str(), &buf)); 419 uint64_t fs_overall_size = buf.f_bsize * static_cast<uint64_t>(buf.f_blocks); 421 uint64_t fs_free_size = buf.f_bsize * static_cast<uint64_t>(buf.f_bavail);
|
/art/compiler/dex/quick/arm64/ |
H A D | target_arm64.cc | 235 static void DecodeRegExtendOrShift(int operand, char *buf, size_t buf_size) { argument 239 snprintf(buf, buf_size, ", %s #%d", shift_name, amount); 244 snprintf(buf, buf_size, ", %s", extend_name); 246 snprintf(buf, buf_size, ", %s #%d", extend_name, amount); 336 std::string buf; local 511 buf += tbuf; 514 buf += *fmt++; 517 return buf; 521 char buf[256]; local 522 buf[ 562 LOG(INFO) << prefix << ": " << buf; local [all...] |