Searched refs:buffer (Results 1 - 25 of 62) sorted by relevance

123

/art/test/712-varhandle-invocations/src/
H A DVarHandleUnitTestHelpers.java88 public static boolean getBytesAs_boolean(ByteBuffer buffer, int index, ByteOrder order) { argument
89 return buffer.order(order).get(index) != 0;
92 public static byte getBytesAs_byte(ByteBuffer buffer, int index, ByteOrder order) { argument
93 return buffer.order(order).get(index);
96 public static char getBytesAs_char(ByteBuffer buffer, int index, ByteOrder order) { argument
97 return buffer.order(order).getChar(index);
100 public static short getBytesAs_short(ByteBuffer buffer, int index, ByteOrder order) { argument
101 return buffer.order(order).getShort(index);
104 public static int getBytesAs_int(ByteBuffer buffer, int index, ByteOrder order) { argument
105 return buffer
108 getBytesAs_long(ByteBuffer buffer, int index, ByteOrder order) argument
112 getBytesAs_float(ByteBuffer buffer, int index, ByteOrder order) argument
116 getBytesAs_double(ByteBuffer buffer, int index, ByteOrder order) argument
152 setBytesAs_boolean( ByteBuffer buffer, int index, boolean value, ByteOrder order) argument
157 setBytesAs_byte(ByteBuffer buffer, int index, byte value, ByteOrder order) argument
161 setBytesAs_char(ByteBuffer buffer, int index, char value, ByteOrder order) argument
165 setBytesAs_short( ByteBuffer buffer, int index, short value, ByteOrder order) argument
170 setBytesAs_int(ByteBuffer buffer, int index, int value, ByteOrder order) argument
174 setBytesAs_long(ByteBuffer buffer, int index, long value, ByteOrder order) argument
178 setBytesAs_float( ByteBuffer buffer, int index, float value, ByteOrder order) argument
183 setBytesAs_double( ByteBuffer buffer, int index, double value, ByteOrder order) argument
194 alignedOffset_char(ByteBuffer buffer, int start) argument
198 alignedOffset_short(ByteBuffer buffer, int start) argument
210 alignedOffset_int(ByteBuffer buffer, int start) argument
224 alignedOffset_long(ByteBuffer buffer, int start) argument
239 alignedOffset_float(ByteBuffer buffer, int start) argument
243 alignedOffset_double(ByteBuffer buffer, int start) argument
[all...]
H A DVarHandleBadCoordinateTests.java580 for (ByteBuffer buffer : buffers) {
582 vh.get(buffer, -1);
587 vh.get(buffer, buffer.limit());
592 vh.get(buffer, Integer.MAX_VALUE - 1);
597 vh.get(buffer, buffer.limit() - Integer.SIZE / 8 + 1);
601 vh.get(buffer, buffer.limit() - Integer.SIZE / 8);
630 for (ByteBuffer buffer
[all...]
/art/libartbase/base/
H A Dutils_test.cc118 char buffer[64]; local
119 const char* buffer_end = buffer + ArrayCount(buffer);
120 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(nullptr, buffer, buffer_end), nullptr);
121 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer, buffer, buffer_end),
122 reinterpret_cast<const uint64_t*>(buffer));
123 EXPECT_EQ(BoundsCheckedCast<const uint64_t*>(buffer + 56, buffer, buffer_end),
124 reinterpret_cast<const uint64_t*>(buffer
[all...]
/art/compiler/linker/
H A Dfile_output_stream.cc29 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument
30 return file_->WriteFully(buffer, byte_count);
H A Dbuffered_output_stream.cc33 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument
38 return out_->WriteFully(buffer, byte_count);
45 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
H A Dfile_output_stream.h33 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
H A Dvector_output_stream.h35 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE {
37 const uint8_t* start = reinterpret_cast<const uint8_t*>(buffer);
43 memcpy(&(*vector_)[offset_], buffer, byte_count);
H A Dbuffered_output_stream.h35 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
H A Derror_delaying_output_stream.h40 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE {
42 if (!output_->WriteFully(buffer, byte_count)) {
H A Doutput_stream.h45 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
/art/libartbase/base/unix_file/
H A Dfd_file_test.cc77 uint8_t buffer[16]; local
78 EXPECT_FALSE(file.ReadFully(&buffer, 4));
108 char buffer[sizeof(read_suffix)]; local
109 EXPECT_TRUE(file.PreadFully(buffer, sizeof(read_suffix), offset));
110 EXPECT_STREQ(&read_suffix[0], &buffer[0]);
212 uint8_t buffer[16] = { 0 }; local
213 EXPECT_TRUE(file.WriteFully(&buffer, sizeof(buffer)));
224 std::vector<uint8_t> buffer; local
227 buffer
[all...]
H A Dfd_file.cc257 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument
258 char* ptr = static_cast<char*>(buffer);
267 ptr += bytes_read; // Move the buffer forward.
273 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument
274 return ReadFullyGeneric<ReadIgnoreOffset>(fd_, buffer, byte_count, 0);
277 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { argument
278 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset);
282 bool FdFile::WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset) { argument
286 const char* ptr = static_cast<const char*>(buffer);
295 ptr += bytes_written; // Move the buffer forwar
301 PwriteFully(const void* buffer, size_t byte_count, size_t offset) argument
305 WriteFully(const void* buffer, size_t byte_count) argument
[all...]
H A Dfd_file.h125 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED;
126 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED;
127 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
128 bool PwriteFully(const void* buffer, size_t byte_count, size_t offset) WARN_UNUSED;
179 bool WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset);
/art/compiler/debug/
H A Delf_debug_frame_writer.h34 std::vector<uint8_t>* buffer) {
61 WriteCIE(is64bit, return_reg, opcodes, format, buffer);
84 WriteCIE(is64bit, return_reg, opcodes, format, buffer);
108 WriteCIE(is64bit, return_reg, opcodes, format, buffer);
134 WriteCIE(is64bit, return_reg, opcodes, format, buffer);
160 WriteCIE(is64bit, return_reg, opcodes, format, buffer);
218 std::vector<uint8_t> buffer; // Small temporary buffer. local
219 WriteCIE(builder->GetIsa(), format, &buffer);
220 cfi_section->WriteFully(buffer
32 WriteCIE(InstructionSet isa, dwarf::CFIFormat format, std::vector<uint8_t>* buffer) argument
248 std::vector<uint8_t> buffer; local
[all...]
H A Delf_gnu_debugdata_writer.h56 const uint8_t* buffer = reinterpret_cast<const uint8_t*>(buf); local
57 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size);
88 std::vector<uint8_t> buffer; local
89 buffer.reserve(KB);
90 linker::VectorOutputStream out("Mini-debug-info ELF file", &buffer);
107 compressed_buffer.reserve(buffer.size() / 4);
108 XzCompress(&buffer, &compressed_buffer);
H A Delf_debug_writer.cc151 std::vector<uint8_t> buffer; local
152 buffer.reserve(KB);
153 linker::VectorOutputStream out("Debug ELF file", &buffer);
187 return buffer;
208 std::vector<uint8_t> buffer; local
209 buffer.reserve(KB);
210 linker::VectorOutputStream out("Debug ELF file", &buffer);
223 return buffer;
/art/compiler/debug/dwarf/
H A Dexpression.h114 explicit Expression(std::vector<uint8_t>* buffer) : Writer<>(buffer) { argument
115 buffer->clear();
H A Ddebug_abbrev_writer.h44 explicit DebugAbbrevWriter(Vector* buffer) argument
45 : Writer<Vector>(buffer),
46 current_abbrev_(buffer->get_allocator()) {
H A Dheaders.h45 std::vector<uint8_t>* buffer) {
48 Writer<> writer(buffer);
87 uint64_t buffer_address, // Address of buffer in linked application.
88 std::vector<uint8_t>* buffer,
93 Writer<> writer(buffer);
97 uint32_t cie_pointer = (buffer_address + buffer->size()) - cie_address;
106 code_address -= buffer_address + buffer->size();
110 patch_locations->push_back(buffer_address + buffer->size() - section_address);
41 WriteCIE(bool is64bit, Reg return_address_register, const DebugFrameOpCodeWriter<Vector>& opcodes, CFIFormat format, std::vector<uint8_t>* buffer) argument
80 WriteFDE(bool is64bit, uint64_t section_address, uint64_t cie_address, uint64_t code_address, uint64_t code_size, const ArrayRef<const uint8_t>& opcodes, CFIFormat format, uint64_t buffer_address, std::vector<uint8_t>* buffer, std::vector<uintptr_t>* patch_locations) argument
/art/compiler/utils/
H A Dassembler.h125 // Move a chunk of the buffer from oldposition to newposition.
171 // To emit an instruction to the assembler buffer, the EnsureCapacity helper
175 // AssemblerBuffer buffer;
176 // AssemblerBuffer::EnsureCapacity ensured(&buffer);
183 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument
184 if (buffer->cursor() > buffer->limit()) {
185 buffer->ExtendCapacity(buffer->Size() + kMinimumGap);
187 // In debug mode, we save the assembler buffer alon
224 EnsureCapacity(AssemblerBuffer* buffer) argument
297 DebugFrameOpCodeWriterForAssembler(Assembler* buffer) argument
[all...]
/art/compiler/optimizing/
H A Dliveness_test.cc38 std::ostream& buffer,
41 buffer << prefix;
42 buffer << '(';
44 buffer << vector->IsBitSet(i);
46 buffer << ")\n";
59 std::ostringstream buffer; local
61 buffer << "Block " << block->GetBlockId() << std::endl;
64 DumpBitVector(live_in, buffer, ssa_values, " live in: ");
66 DumpBitVector(live_out, buffer, ssa_values, " live out: ");
68 DumpBitVector(kill, buffer, ssa_value
37 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument
[all...]
/art/dexlayout/
H A Ddex_writer.cc35 static size_t EncodeIntValue(int32_t value, uint8_t* buffer) { argument
39 buffer[length++] = static_cast<uint8_t>(value);
44 buffer[length++] = static_cast<uint8_t>(value);
48 buffer[length++] = static_cast<uint8_t>(value);
52 static size_t EncodeUIntValue(uint32_t value, uint8_t* buffer) { argument
55 buffer[length++] = static_cast<uint8_t>(value);
61 static size_t EncodeLongValue(int64_t value, uint8_t* buffer) { argument
65 buffer[length++] = static_cast<uint8_t>(value);
70 buffer[length++] = static_cast<uint8_t>(value);
74 buffer[lengt
83 EncodeFloatValue(float value, uint8_t* buffer) argument
100 EncodeDoubleValue(double value, uint8_t* buffer) argument
120 uint8_t buffer[8]; local
187 uint8_t buffer[1] = { static_cast<uint8_t>((value_arg << 5) | value_type) }; local
301 uint32_t buffer[3]; local
321 uint16_t buffer[4]; local
338 uint16_t buffer[4]; local
[all...]
/art/tools/ahat/src/main/com/android/ahat/heapdump/
H A DAhatClassInstance.java195 public final byte[] buffer; field in class:AhatClassInstance.BitmapInfo
197 public BitmapInfo(int width, int height, byte[] buffer) { argument
200 this.buffer = buffer;
223 byte[] buffer = getByteArrayField("mBuffer");
224 if (buffer == null) {
228 if (buffer.length < 4 * height * width) {
232 return new BitmapInfo(width, height, buffer);
247 (((int) info.buffer[i * 4 + 3] & 0xFF) << 24)
248 + (((int) info.buffer[
[all...]
/art/runtime/jit/
H A Dprofile_compilation_info.cc295 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) {
297 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count));
302 buffer += bytes_written; // Move the buffer forward.
307 // Add the string bytes to the buffer.
308 static void AddStringToBuffer(std::vector<uint8_t>* buffer, const std::string& value) {
309 buffer->insert(buffer->end(), value.begin(), value.end());
312 // Insert each byte, from low to high into the buffer.
314 static void AddUintToBuffer(std::vector<uint8_t>* buffer,
[all...]
/art/libdexfile/dex/
H A Dcompact_dex_file_test.cc54 uint16_t buffer[sizeof(CompactDexFile::CodeItem) +
57 &buffer[CompactDexFile::CodeItem::kMaxPreHeaderSize]);
64 ASSERT_GT(preheader_ptr, buffer);

Completed in 1382 milliseconds

123