/art/runtime/jdwp/ |
D | jdwp_bits.h | 70 static inline void Set1(uint8_t* buf, uint8_t val) { in Set1() argument 71 *buf = (uint8_t)(val); in Set1() 75 static inline void Set2BE(uint8_t* buf, uint16_t val) { in Set2BE() argument 76 *buf++ = (uint8_t)(val >> 8); in Set2BE() 77 *buf = (uint8_t)(val); in Set2BE() 81 static inline void Set4BE(uint8_t* buf, uint32_t val) { in Set4BE() argument 82 *buf++ = (uint8_t)(val >> 24); in Set4BE() 83 *buf++ = (uint8_t)(val >> 16); in Set4BE() 84 *buf++ = (uint8_t)(val >> 8); in Set4BE() 85 *buf = (uint8_t)(val); in Set4BE() [all …]
|
D | jdwp_expand_buf.cc | 153 static void SetUtf8String(uint8_t* buf, const char* str, size_t strLen) { in SetUtf8String() argument 154 Set4BE(buf, strLen); in SetUtf8String() 155 memcpy(buf + sizeof(uint32_t), str, strLen); in SetUtf8String() 179 void expandBufAddLocation(ExpandBuf* buf, const JdwpLocation& location) { in expandBufAddLocation() argument 180 expandBufAdd1(buf, location.type_tag); in expandBufAddLocation() 181 expandBufAddObjectId(buf, location.class_id); in expandBufAddLocation() 182 expandBufAddMethodId(buf, location.method_id); in expandBufAddLocation() 183 expandBufAdd8BE(buf, location.dex_pc); in expandBufAddLocation()
|
D | jdwp.h | 62 static inline void SetFieldId(uint8_t* buf, FieldId val) { return Set4BE(buf, val); } in SetFieldId() argument 63 static inline void SetMethodId(uint8_t* buf, MethodId val) { return Set4BE(buf, val); } in SetMethodId() argument 64 static inline void SetObjectId(uint8_t* buf, ObjectId val) { return Set8BE(buf, val); } in SetObjectId() argument 65 static inline void SetRefTypeId(uint8_t* buf, RefTypeId val) { return Set8BE(buf, val); } in SetRefTypeId() argument 66 static inline void SetFrameId(uint8_t* buf, FrameId val) { return Set8BE(buf, val); } in SetFrameId() argument
|
/art/runtime/base/unix_file/ |
D | random_access_file_test.h | 56 char buf[256]; in ReadString() local 59 while ((n = f->Read(buf, sizeof(buf), offset)) > 0) { in ReadString() 60 s->append(buf, n); in ReadString() 67 char buf[256]; in TestRead() local 72 ASSERT_EQ(0, file->Read(buf, 0, 0)); in TestRead() 73 ASSERT_EQ(0, file->Read(buf, 123, 0)); in TestRead() 85 std::unique_ptr<char> buf(new char[buf_size]); in TestReadContent() 87 ASSERT_EQ(-EINVAL, file->Read(buf.get(), 0, -123)); in TestReadContent() 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent() 91 ASSERT_EQ(std::string(buf.get(), content.size()), content); in TestReadContent() [all …]
|
D | string_file.cc | 38 int64_t StringFile::Read(char *buf, int64_t byte_count, int64_t offset) const { in Read() argument 39 CHECK(buf); in Read() 50 memcpy(buf, data_.data() + offset, available_bytes); in Read() 66 int64_t StringFile::Write(const char *buf, int64_t byte_count, int64_t offset) { in Write() argument 67 CHECK(buf); in Write() 86 data_.replace(offset, byte_count, buf, byte_count); in Write()
|
D | random_access_file_utils.cc | 26 std::vector<char> buf(4096); in CopyFile() local 29 while ((n = src.Read(&buf[0], buf.size(), offset)) > 0) { in CopyFile() 30 if (dst->Write(&buf[0], n, offset) != n) { in CopyFile()
|
D | null_file_test.cc | 29 char buf[256]; in TEST_F() local 31 ASSERT_EQ(-EINVAL, f.Read(buf, 0, -1)); in TEST_F() 33 ASSERT_EQ(0, f.Read(buf, 128, 0)); in TEST_F() 34 ASSERT_EQ(0, f.Read(buf, 128, 128)); in TEST_F()
|
D | mapped_file.cc | 112 int64_t MappedFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 121 memcpy(buf, data() + offset, read_size); in Read() 125 return FdFile::Read(buf, byte_count, offset); in Read() 148 int64_t MappedFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 158 memcpy(data() + offset, buf, write_size); in Write() 163 return FdFile::Write(buf, byte_count, offset); in Write()
|
D | fd_file.cc | 138 int64_t FdFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 140 int rc = TEMP_FAILURE_RETRY(pread64(fd_, buf, byte_count, offset)); in Read() 142 int rc = TEMP_FAILURE_RETRY(pread(fd_, buf, byte_count, offset)); in Read() 163 int64_t FdFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument 165 int rc = TEMP_FAILURE_RETRY(pwrite64(fd_, buf, byte_count, offset)); in Write() 167 int rc = TEMP_FAILURE_RETRY(pwrite(fd_, buf, byte_count, offset)); in Write()
|
D | random_access_file.h | 45 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const = 0; 60 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset) = 0;
|
D | null_file.cc | 36 int64_t NullFile::Read(char* buf, int64_t byte_count, int64_t offset) const { in Read() argument 54 int64_t NullFile::Write(const char* buf, int64_t byte_count, int64_t offset) { in Write() argument
|
D | null_file.h | 39 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 42 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
D | string_file.h | 42 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 45 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
D | mapped_file.h | 69 virtual int64_t Read(char* buf, int64_t byte_count, int64_t offset) const; 76 virtual int64_t Write(const char* buf, int64_t byte_count, int64_t offset);
|
/art/sigchainlib/ |
D | sigchain_dummy.cc | 30 char buf[256]; in log() local 33 vsnprintf(buf, sizeof(buf), format, ap); in log() 35 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); in log() 37 std::cout << buf << "\n"; in log()
|
D | sigchain.cc | 83 char buf[256]; in log() local 86 vsnprintf(buf, sizeof(buf), format, ap); in log() 88 __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); in log() 90 std::cout << buf << "\n"; in log()
|
/art/compiler/dex/quick/arm/ |
D | target_arm.cc | 297 static char* DecodeRegList(int opcode, int vector, char* buf, size_t buf_size) { in DecodeRegList() argument 300 buf[0] = 0; in DecodeRegList() 310 snprintf(buf + strlen(buf), buf_size - strlen(buf), ", r%d", reg_id); in DecodeRegList() 313 snprintf(buf, buf_size, "r%d", reg_id); in DecodeRegList() 317 return buf; in DecodeRegList() 320 static char* DecodeFPCSRegList(int count, int base, char* buf, size_t buf_size) { in DecodeFPCSRegList() argument 321 snprintf(buf, buf_size, "s%d", base); in DecodeFPCSRegList() 323 snprintf(buf + strlen(buf), buf_size - strlen(buf), ", s%d", base + i); in DecodeFPCSRegList() 325 return buf; in DecodeFPCSRegList() 354 std::string buf; in BuildInsnString() local [all …]
|
/art/runtime/base/ |
D | stringprintf.cc | 51 char* buf = new char[length]; in StringAppendV() local 55 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV() 60 dst->append(buf, result); in StringAppendV() 62 delete[] buf; in StringAppendV()
|
/art/compiler/dex/quick/mips/ |
D | target_mips.cc | 195 std::string buf; in BuildInsnString() local 277 buf += tbuf; in BuildInsnString() 280 buf += *fmt++; in BuildInsnString() 283 return buf; in BuildInsnString() 288 char buf[256]; in DumpResourceMask() local 289 buf[0] = 0; in DumpResourceMask() 292 strcpy(buf, "all"); in DumpResourceMask() 300 strcat(buf, num); in DumpResourceMask() 305 strcat(buf, "cc "); in DumpResourceMask() 308 strcat(buf, "fpcc "); in DumpResourceMask() [all …]
|
/art/runtime/ |
D | monitor_android.cc | 30 static void Set4LE(uint8_t* buf, uint32_t val) { in Set4LE() argument 31 *buf++ = (uint8_t)(val); in Set4LE() 32 *buf++ = (uint8_t)(val >> 8); in Set4LE() 33 *buf++ = (uint8_t)(val >> 16); in Set4LE() 34 *buf = (uint8_t)(val >> 24); in Set4LE()
|
D | trace.cc | 211 static void Append2LE(uint8_t* buf, uint16_t val) { in Append2LE() argument 212 *buf++ = static_cast<uint8_t>(val); in Append2LE() 213 *buf++ = static_cast<uint8_t>(val >> 8); in Append2LE() 217 static void Append4LE(uint8_t* buf, uint32_t val) { in Append4LE() argument 218 *buf++ = static_cast<uint8_t>(val); in Append4LE() 219 *buf++ = static_cast<uint8_t>(val >> 8); in Append4LE() 220 *buf++ = static_cast<uint8_t>(val >> 16); in Append4LE() 221 *buf++ = static_cast<uint8_t>(val >> 24); in Append4LE() 225 static void Append8LE(uint8_t* buf, uint64_t val) { in Append8LE() argument 226 *buf++ = static_cast<uint8_t>(val); in Append8LE() [all …]
|
D | zip_archive_test.cc | 55 uint8_t buf[kBufSize]; in TEST_F() local 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); in TEST_F() 61 computed_crc = crc32(computed_crc, buf, bytes_read); in TEST_F()
|
/art/compiler/dex/quick/arm64/ |
D | target_arm64.cc | 235 static void DecodeRegExtendOrShift(int operand, char *buf, size_t buf_size) { in DecodeRegExtendOrShift() argument 239 snprintf(buf, buf_size, ", %s #%d", shift_name, amount); in DecodeRegExtendOrShift() 244 snprintf(buf, buf_size, ", %s", extend_name); in DecodeRegExtendOrShift() 246 snprintf(buf, buf_size, ", %s #%d", extend_name, amount); in DecodeRegExtendOrShift() 336 std::string buf; in BuildInsnString() local 511 buf += tbuf; in BuildInsnString() 514 buf += *fmt++; in BuildInsnString() 517 return buf; in BuildInsnString() 521 char buf[256]; in DumpResourceMask() local 522 buf[0] = 0; in DumpResourceMask() [all …]
|
/art/compiler/ |
D | output_stream_test.cc | 43 uint8_t buf[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; in GenerateTestOutput() local 44 EXPECT_TRUE(output_stream_->WriteFully(buf, 2)); in GenerateTestOutput() 48 EXPECT_TRUE(output_stream_->WriteFully(buf, 4)); in GenerateTestOutput()
|
/art/compiler/dex/quick/x86/ |
D | target_x86.cc | 334 std::string buf; in BuildInsnString() local 339 buf += fmt[i]; in BuildInsnString() 347 buf += "!"; in BuildInsnString() 356 buf += x86CondName[operand]; in BuildInsnString() 359 buf += StringPrintf("%d", operand); in BuildInsnString() 364 buf +=StringPrintf("%" PRId64, value); in BuildInsnString() 368 buf += StringPrintf("0x%08x", tab_rec->offset); in BuildInsnString() 374 buf += StringPrintf("xmm%d", fp_reg); in BuildInsnString() 378 buf += x86RegName[reg_num]; in BuildInsnString() 382 buf += StringPrintf("0x%08" PRIxPTR " (L%p)", in BuildInsnString() [all …]
|