Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 20 of 20) sorted by relevance

/art/runtime/
Dstack_map.cc36 ALWAYS_INLINE static bool DecodeTable(BitTable<Accessor>& table, BitMemoryReader& reader) { in DecodeTable() argument
37 bool is_deduped = reader.ReadBit(); in DecodeTable()
39 ssize_t bit_offset = reader.NumberOfReadBits() - reader.ReadVarint(); in DecodeTable()
40 BitMemoryReader reader2(reader.data(), bit_offset); // The offset is negative. in DecodeTable()
43 table.Decode(reader); in DecodeTable()
49 BitMemoryReader reader(data); in Decode() local
50 ForEachHeaderField([this, &reader](auto member_pointer) { in Decode()
51 this->*member_pointer = reader.ReadVarint(); in Decode()
53 ForEachBitTableField([this, &reader](auto member_pointer) { in Decode()
54 DecodeTable(this->*member_pointer, reader); in Decode()
[all …]
Dstack_map.h442 BitMemoryReader reader(data); in DecodeFrameInfo()
444 reader.ReadVarint() * kStackAlignment, // Decode packed_frame_size_ and unpack. in DecodeFrameInfo()
445 reader.ReadVarint(), // core_spill_mask_. in DecodeFrameInfo()
446 reader.ReadVarint()); // fp_spill_mask_. in DecodeFrameInfo()
/art/libartbase/base/
Dbit_table_test.cc39 BitMemoryReader reader(buffer.data()); in TEST() local
40 BitTableBase<1> table(reader); in TEST()
41 EXPECT_EQ(writer.NumberOfWrittenBits(), reader.NumberOfReadBits()); in TEST()
60 BitMemoryReader reader(buffer.data()); in TEST() local
61 BitTableBase<1> table(reader); in TEST()
62 EXPECT_EQ(writer.NumberOfWrittenBits(), reader.NumberOfReadBits()); in TEST()
83 BitMemoryReader reader(buffer.data(), start_bit_offset); in TEST() local
84 BitTableBase<1> table(reader); in TEST()
85 EXPECT_EQ(writer.NumberOfWrittenBits(), reader.NumberOfReadBits()); in TEST()
104 BitMemoryReader reader(buffer.data()); in TEST() local
[all …]
Dbit_table.h46 explicit BitTableBase(BitMemoryReader& reader) { in BitTableBase() argument
47 Decode(reader); in BitTableBase()
50 ALWAYS_INLINE void Decode(BitMemoryReader& reader) { in Decode() argument
52 num_rows_ = reader.ReadVarint(); in Decode()
56 size_t column_end = column_offset_[i] + reader.ReadVarint(); in Decode()
62 table_data_ = reader.ReadRegion(num_rows_ * NumRowBits()); in Decode()
376 BitMemoryReader reader(out.GetWrittenRegion().Subregion(initial_bit_offset)); in Encode()
377 table.Decode(reader); in Encode()
462 BitMemoryReader reader(out.GetWrittenRegion().Subregion(initial_bit_offset)); in Encode()
463 table.Decode(reader); in Encode()
Dbit_memory_region_test.cc44 BitMemoryReader reader(buffer.data(), start_bit_offset); in TEST() local
45 uint32_t result = reader.ReadVarint(); in TEST()
47 EXPECT_EQ(writer.NumberOfWrittenBits(), reader.NumberOfReadBits()); in TEST()
/art/tools/dexfuzz/src/dexfuzz/
DStreamConsumer.java35 private BufferedReader reader; field in StreamConsumer
68 reader = new BufferedReader(new InputStreamReader(stream)); in giveStreamAndStartConsuming()
118 while (reader.ready()) { in consume()
119 output.add(reader.readLine()); in consume()
125 while (reader.ready()) { in consume()
126 output.add(reader.readLine()); in consume()
138 reader.close(); in consume()
DOptions.java282 BufferedReader reader = new BufferedReader(new FileReader(tableFilename)); in setupMutationLikelihoodTable() local
283 String line = reader.readLine(); in setupMutationLikelihoodTable()
296 line = reader.readLine(); in setupMutationLikelihoodTable()
298 reader.close(); in setupMutationLikelihoodTable()
/art/test/983-source-transform-verify/
Dsource_transform_slicer.cc31 dex::Reader reader(class_data, class_data_len); in VerifyClassData() local
32 reader.CreateFullIr(); // This will verify all bytecode. in VerifyClassData()
/art/test/1959-redefine-object-instrument/
Dfake_redef_object.cc54 dex::Reader reader(class_data, class_data_len); in RedefineObjectHook() local
55 dex::u4 class_index = reader.FindClassIndex("Ljava/lang/Object;"); in RedefineObjectHook()
62 reader.CreateClassIr(class_index); in RedefineObjectHook()
63 auto dex_ir = reader.GetIr(); in RedefineObjectHook()
/art/test/980-redefine-object/
Dredef_object.cc53 dex::Reader reader(class_data, class_data_len); in RedefineObjectHook() local
54 dex::u4 class_index = reader.FindClassIndex("Ljava/lang/Object;"); in RedefineObjectHook()
61 reader.CreateClassIr(class_index); in RedefineObjectHook()
62 auto dex_ir = reader.GetIr(); in RedefineObjectHook()
/art/tools/class2greylist/src/com/android/class2greylist/
DClass2Greylist.java238 JarReader reader = new JarReader(mStatus, jarFile); in main() local
239 reader.stream().forEach(clazz -> new AnnotationVisitor(clazz, mStatus, handlers) in main()
241 reader.close(); in main()
253 JarReader reader = new JarReader(status, jarFile); in dumpAllMembers() local
254 reader.stream().forEach(clazz -> new MemberDumpingVisitor(clazz, status) in dumpAllMembers()
256 reader.close(); in dumpAllMembers()
/art/tools/dexfuzz/src/dexfuzz/program/
DMutationSerializer.java49 public static Mutation readMutation(BufferedReader reader) throws IOException { in readMutation() argument
50 String line = reader.readLine(); in readMutation()
DProgram.java509 BufferedReader reader = new BufferedReader(new FileReader(fileName)); in loadMutationsFromDisk() local
510 while (reader.ready()) { in loadMutationsFromDisk()
511 Mutation mutation = MutationSerializer.readMutation(reader); in loadMutationsFromDisk()
514 reader.close(); in loadMutationsFromDisk()
/art/compiler/debug/
Delf_debug_writer.cc208 Reader reader(buffer); in MakeElfFileForJIT() local
209 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char*) { in MakeElfFileForJIT()
214 reader.VisitDebugFrame([&](const Reader::CIE* cie ATTRIBUTE_UNUSED) { in MakeElfFileForJIT()
269 for (Reader& reader : readers) { in PackElfFileForJIT()
270 reader.VisitFunctionSymbols([&](Elf_Sym sym, const char* name) { in PackElfFileForJIT()
298 for (Reader& reader : readers) { in PackElfFileForJIT()
299 reader.VisitDebugFrame([&](const Reader::CIE* cie) { in PackElfFileForJIT()
/art/tools/ahat/src/main/com/android/ahat/proguard/
DProguardMap.java211 BufferedReader reader = new BufferedReader(mapReader); in readFromReader() local
212 String line = reader.readLine(); in readFromReader()
216 line = reader.readLine(); in readFromReader()
235 line = reader.readLine(); in readFromReader()
299 line = reader.readLine(); in readFromReader()
302 reader.close(); in readFromReader()
/art/tools/jvmti-agents/simple-force-redefine/
Dforceredefine.cc157 dex::Reader reader(classData, classDataLen); in CbClassFileLoadHook() local
158 dex::u4 index = reader.FindClassIndex(desc.c_str()); in CbClassFileLoadHook()
159 reader.CreateClassIr(index); in CbClassFileLoadHook()
160 std::shared_ptr<ir::DexFile> ir(reader.GetIr()); in CbClassFileLoadHook()
/art/test/141-class-unload/src/
DMain.java64 BufferedReader reader = new BufferedReader(new FileReader ("/proc/" + pid + "/maps")); in testOatFilesUnloaded() local
67 while ((line = reader.readLine()) != null) { in testOatFilesUnloaded()
/art/test/913-heaps/src/art/
DTest913.java317 BufferedReader reader = new BufferedReader(new FileReader("/proc/" + pid + "/maps")); in hasImage() local
319 while ((line = reader.readLine()) != null) { in hasImage()
321 reader.close(); in hasImage()
325 reader.close(); in hasImage()
/art/test/ti-stress/
Dstress.cc71 dex::Reader reader(in_data, in_len); in DoExtractClassFromData() local
72 dex::u4 class_idx = reader.FindClassIndex(descriptor.c_str()); in DoExtractClassFromData()
74 reader.CreateClassIr(class_idx); in DoExtractClassFromData()
79 auto dex_ir = reader.GetIr(); in DoExtractClassFromData()
/art/dt_fd_forward/
Ddt_fd_forward.cc576 PacketReader reader(this, pkt); in ReadPacket() local
577 if (reader.ReadFully()) { in ReadPacket()