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 …]
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()
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 …]
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.h43 enum Opcode : u1 {
50 enum InstructionFormat : u1 {
60 using OpcodeFlags = u1;
106 enum InstructionIndexType : u1 {
153 u1 data[];
161 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.h394 dex::u1 dbg_opcode = 0;
397 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/
Ddebuginfo_encoder.cc38 dbginfo_.Push<dex::u1>(dex::DBG_ADVANCE_PC); in Visit()
63 dbginfo_.Push<dex::u1>(dex::DBG_ADVANCE_LINE); in Visit()
68 dex::u1 special_opcode = dex::DBG_FIRST_SPECIAL + adj_opcode; in Visit()
69 dbginfo_.Push<dex::u1>(special_opcode); in Visit()
78 dbginfo_.Push<dex::u1>(dex::DBG_START_LOCAL); in Visit()
89 dbginfo_.Push<dex::u1>(dex::DBG_START_LOCAL_EXTENDED); in Visit()
99 dbginfo_.Push<dex::u1>(dbg_annotation->dbg_opcode); in Visit()
105 dbginfo_.Push<dex::u1>(dbg_annotation->dbg_opcode); in Visit()
112 dbginfo_.Push<dex::u1>(dex::DBG_SET_FILE); in Visit()
142 dbginfo_.Push<dex::u1>(dex::DBG_END_SEQUENCE); in Encode()
Dreader.cc30 Reader::Reader(const dex::u1* image, size_t size) : image_(image), size_(size) { in Reader()
78 const dex::u1* strData = GetStringData(index); in GetStringMUTF8()
242 const dex::u1* class_data = dataPtr<dex::u1>(dex_class_def.class_data_off); in ParseClass()
298 const dex::u1* ptr = reinterpret_cast<const dex::u1*>(dex_annotations + 1); in ExtractAnnotations()
322 const dex::u1* ptr = dexAnnotationItem->annotation; in ExtractAnnotationItem()
369 ir::FieldAnnotation* Reader::ParseFieldAnnotation(const dex::u1** pptr) { in ParseFieldAnnotation()
383 ir::MethodAnnotation* Reader::ParseMethodAnnotation(const dex::u1** pptr) { in ParseMethodAnnotation()
398 ir::ParamAnnotation* Reader::ParseParamAnnotation(const dex::u1** pptr) { in ParseParamAnnotation()
413 ir::EncodedField* Reader::ParseEncodedField(const dex::u1** pptr, dex::u4* base_index) { in ParseEncodedField()
433 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 …]
Ddex_format.cc28 const u1* start = reinterpret_cast<const u1*>(header); in ComputeChecksum()
Dcode_ir.cc70 const dex::u1* ptr = in DisassembleTryBlocks()
71 ir_code->catch_handlers.ptr<dex::u1>() + tryBlock.handler_off; in DisassembleTryBlocks()
144 const dex::u1* ptr = ir_debug_info->data.ptr<dex::u1>(); in DisassembleDebugInfo()
145 dex::u1 opcode = 0; in DisassembleDebugInfo()
Dbytecode_encoder.cc606 SLICER_CHECK(reinterpret_cast<dex::u1*>(payload->targets + payload->size) <= in FixupPackedSwitch()
625 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.cc273 dex::u1* new_image = nullptr; in CreateNewImage()
346 std::unique_ptr<dex::u1[]> in_buff(new dex::u1[in_size]); in ProcessDex()