Home
last modified time | relevance | path

Searched refs:u1 (Results 1 – 16 of 16) sorted by relevance

/tools/dexter/slicer/export/slicer/
Ddex_format.h30 typedef uint8_t u1; typedef
45 constexpr u1 kVisibilityBuild = 0x00;
46 constexpr u1 kVisibilityRuntime = 0x01;
47 constexpr u1 kVisibilitySystem = 0x02;
50 constexpr u1 kVisibilityEncoded = 0xff;
53 constexpr u1 kEncodedByte = 0x00;
54 constexpr u1 kEncodedShort = 0x02;
55 constexpr u1 kEncodedChar = 0x03;
56 constexpr u1 kEncodedInt = 0x04;
57 constexpr u1 kEncodedLong = 0x06;
[all …]
Dreader.h39 Reader(const dex::u1* image, size_t size);
78 ir::FieldAnnotation* ParseFieldAnnotation(const dex::u1** pptr);
79 ir::MethodAnnotation* ParseMethodAnnotation(const dex::u1** pptr);
80 ir::ParamAnnotation* ParseParamAnnotation(const dex::u1** pptr);
81 ir::EncodedField* ParseEncodedField(const dex::u1** pptr, dex::u4* baseIndex);
82 ir::Annotation* ParseAnnotation(const dex::u1** pptr);
85 ir::EncodedValue* ParseEncodedValue(const dex::u1** pptr);
86 ir::EncodedArray* ParseEncodedArray(const dex::u1** pptr);
91 ir::EncodedMethod* ParseEncodedMethod(const dex::u1** pptr, dex::u4* baseIndex);
126 const dex::u1* GetStringData(dex::u4 index) const { in GetStringData()
[all …]
Ddex_leb128.h28 inline u4 ReadULeb128(const u1** pptr) { in ReadULeb128()
29 const u1* ptr = *pptr; in ReadULeb128()
58 inline s4 ReadSLeb128(const u1** pptr) { in ReadSLeb128()
59 const u1* ptr = *pptr; in ReadSLeb128()
96 inline u1* WriteULeb128(u1* ptr, u4 data) { in WriteULeb128()
98 u1 out = data & 0x7f; in WriteULeb128()
112 inline u1* WriteSLeb128(u1* ptr, s4 value) { in WriteSLeb128()
114 u1 out = value & 0x7f; in WriteSLeb128()
Dbuffer.h131 dex::u1 tmp[4]; in PushULeb128()
132 dex::u1* end = dex::WriteULeb128(tmp, value); in PushULeb128()
138 dex::u1 tmp[4]; in PushSLeb128()
139 dex::u1* end = dex::WriteSLeb128(tmp, value); in PushSLeb128()
155 const dex::u1* data() const { in data()
165 buff_ = static_cast<dex::u1*>(::realloc(buff_, capacity_)); in Expand()
172 dex::u1* buff_ = nullptr;
Ddex_bytecode.h39 enum Opcode : u1 {
48 enum InstructionFormat : u1 {
83 using OpcodeFlags = u1;
129 enum InstructionIndexType : u1 {
176 u1 data[];
184 u1 flags; // Set of Flags.
Ddex_ir.h131 dex::u1 type;
166 const dex::u1* strData = data.ptr<dex::u1>(); in c_str()
266 dex::u1 visibility;
Dcode_ir.h382 dex::u1 dbg_opcode = 0;
385 explicit DbgInfoAnnotation(dex::u1 dbg_opcode) : dbg_opcode(dbg_opcode) {} in DbgInfoAnnotation()
Dwriter.h186 dex::u1* CreateImage(Allocator* allocator, size_t* new_image_size);
/tools/dexter/slicer/
Dreader.cc29 Reader::Reader(const dex::u1* image, size_t size) : image_(image), size_(size) { in Reader()
77 const dex::u1* strData = GetStringData(index); in GetStringMUTF8()
241 const dex::u1* class_data = dataPtr<dex::u1>(dex_class_def.class_data_off); in ParseClass()
297 const dex::u1* ptr = reinterpret_cast<const dex::u1*>(dex_annotations + 1); in ExtractAnnotations()
321 const dex::u1* ptr = dexAnnotationItem->annotation; in ExtractAnnotationItem()
368 ir::FieldAnnotation* Reader::ParseFieldAnnotation(const dex::u1** pptr) { in ParseFieldAnnotation()
382 ir::MethodAnnotation* Reader::ParseMethodAnnotation(const dex::u1** pptr) { in ParseMethodAnnotation()
397 ir::ParamAnnotation* Reader::ParseParamAnnotation(const dex::u1** pptr) { in ParseParamAnnotation()
412 ir::EncodedField* Reader::ParseEncodedField(const dex::u1** pptr, dex::u4* base_index) { in ParseEncodedField()
432 static T ParseIntValue(const dex::u1** pptr, size_t size) { in ParseIntValue()
[all …]
Dwriter.cc41 static void WriteEncodedValueHeader(dex::u1 type, int arg, Section& data) { in WriteEncodedValueHeader()
44 dex::u1 header = dex::u1(type | (arg << dex::kEncodedValueArgShift)); in WriteEncodedValueHeader()
45 data.Push<dex::u1>(header); in WriteEncodedValueHeader()
50 static void WriteIntValue(dex::u1 type, T value, Section& data) { in WriteIntValue()
51 dex::u1 buff[sizeof(T)] = {}; in WriteIntValue()
52 dex::u1* dst = buff; in WriteIntValue()
76 static void WriteFloatValue(dex::u1 type, T value, Section& data) { in WriteFloatValue()
77 dex::u1 buff[sizeof(T)] = {}; in WriteFloatValue()
78 auto src = reinterpret_cast<const dex::u1*>(&value); in WriteFloatValue()
104 dex::u1 type = ir_value->type; in WriteEncodedValue()
[all …]
Ddebuginfo_encoder.cc35 dbginfo_.Push<dex::u1>(dex::DBG_ADVANCE_PC); in Visit()
60 dbginfo_.Push<dex::u1>(dex::DBG_ADVANCE_LINE); in Visit()
65 dex::u1 special_opcode = dex::DBG_FIRST_SPECIAL + adj_opcode; in Visit()
66 dbginfo_.Push<dex::u1>(special_opcode); in Visit()
75 dbginfo_.Push<dex::u1>(dex::DBG_START_LOCAL); in Visit()
86 dbginfo_.Push<dex::u1>(dex::DBG_START_LOCAL_EXTENDED); in Visit()
96 dbginfo_.Push<dex::u1>(dbg_annotation->dbg_opcode); in Visit()
102 dbginfo_.Push<dex::u1>(dbg_annotation->dbg_opcode); in Visit()
109 dbginfo_.Push<dex::u1>(dex::DBG_SET_FILE); in Visit()
136 dbginfo_.Push<dex::u1>(dex::DBG_END_SEQUENCE); in Encode()
Dcode_ir.cc71 const dex::u1* ptr = in DissasembleTryBlocks()
72 ir_code->catch_handlers.ptr<dex::u1>() + tryBlock.handler_off; in DissasembleTryBlocks()
145 const dex::u1* ptr = ir_debug_info->data.ptr<dex::u1>(); in DissasembleDebugInfo()
146 dex::u1 opcode = 0; in DissasembleDebugInfo()
Ddex_format.cc27 const u1* start = reinterpret_cast<const u1*>(header); in ComputeChecksum()
Dbytecode_encoder.cc555 SLICER_CHECK(reinterpret_cast<dex::u1*>(payload->targets + payload->size) <= in FixupPackedSwitch()
574 SLICER_CHECK(reinterpret_cast<dex::u1*>(targets + payload->size) <= in FixupSparseSwitch()
/tools/test/connectivity/acts/framework/acts/
Dlogger.py131 for u1, u2 in zip(dt1, dt2):
132 if u1 < u2:
134 elif u1 > u2:
/tools/dexter/dexter/
Ddexter.cc271 dex::u1* new_image = nullptr; in CreateNewImage()
336 std::unique_ptr<dex::u1[]> in_buff(new dex::u1[in_size]); in ProcessDex()