Home
last modified time | relevance | path

Searched refs:raw (Results 1 – 25 of 50) sorted by relevance

12

/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
DRawInsnHelper.java27 public static long getSignedByteFromByte(byte[] raw, int idx) { in getSignedByteFromByte() argument
28 return (long) raw[idx]; in getSignedByteFromByte()
34 public static long getUnsignedByteFromByte(byte[] raw, int idx) { in getUnsignedByteFromByte() argument
35 return ((long) raw[idx]) & 0xff; in getUnsignedByteFromByte()
41 public static long getUnsignedLowNibbleFromByte(byte[] raw, int idx) { in getUnsignedLowNibbleFromByte() argument
42 return ((long) raw[idx]) & 0xf; in getUnsignedLowNibbleFromByte()
48 public static long getUnsignedHighNibbleFromByte(byte[] raw, int idx) { in getUnsignedHighNibbleFromByte() argument
49 return (((long) raw[idx]) >> 4) & 0xf; in getUnsignedHighNibbleFromByte()
55 public static long getUnsignedShortFromTwoBytes(byte[] raw, int idx) { in getUnsignedShortFromTwoBytes() argument
56 return (long) ( (((long) raw[idx]) & 0xff) in getUnsignedShortFromTwoBytes()
[all …]
DFormat3rmi.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
46 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 4); in getC()
DFormat3rms.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
46 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 4); in getC()
DFormat23x.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedByteFromByte(raw, 2); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
46 return RawInsnHelper.getUnsignedByteFromByte(raw, 3); in getC()
DFormat22cs.java37 public long getA(byte[] raw) throws IOException { in getA() argument
38 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
42 public long getB(byte[] raw) throws IOException { in getB() argument
43 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
47 public long getC(byte[] raw) throws IOException { in getC() argument
48 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getC()
DFormat35ms.java37 public long getA(byte[] raw) throws IOException { in getA() argument
38 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getA()
42 public long getB(byte[] raw) throws IOException { in getB() argument
43 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
47 public long getC(byte[] raw) throws IOException { in getC() argument
48 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 4); in getC()
DFormat22t.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
45 return RawInsnHelper.getSignedShortFromTwoBytes(raw, 2); in getC()
DFormat35mi.java37 public long getA(byte[] raw) throws IOException { in getA() argument
38 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getA()
42 public long getB(byte[] raw) throws IOException { in getB() argument
43 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
47 public long getC(byte[] raw) throws IOException { in getC() argument
48 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 4); in getC()
DFormat22b.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedByteFromByte(raw, 2); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
46 return RawInsnHelper.getSignedByteFromByte(raw, 3); in getC()
DFormat22s.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
45 return RawInsnHelper.getSignedShortFromTwoBytes(raw, 2); in getC()
DFormat12x.java33 public long getA(byte[] raw) throws IOException { in getA() argument
34 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
38 public long getB(byte[] raw) throws IOException { in getB() argument
39 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
43 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat20bc.java38 public long getA(byte[] raw) throws IOException { in getA() argument
39 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
43 public long getB(byte[] raw) throws IOException { in getB() argument
44 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 1); in getB()
48 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat22x.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat3rc.java37 public long getA(byte[] raw) throws IOException { in getA() argument
38 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
42 public long getB(byte[] raw) throws IOException { in getB() argument
43 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
47 public long getC(byte[] raw) throws IOException { in getC() argument
48 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 4); in getC()
DFormat32x.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 4); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat22c.java36 public long getA(byte[] raw) throws IOException { in getA() argument
37 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
41 public long getB(byte[] raw) throws IOException { in getB() argument
42 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
46 public long getC(byte[] raw) throws IOException { in getC() argument
47 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getC()
DFormat31t.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getSignedIntFromFourBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat11n.java33 public long getA(byte[] raw) throws IOException { in getA() argument
34 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 1); in getA()
38 public long getB(byte[] raw) throws IOException { in getB() argument
39 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getB()
43 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat21t.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getSignedShortFromTwoBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat35c.java39 public long getA(byte[] raw) throws IOException { in getA() argument
40 return RawInsnHelper.getUnsignedHighNibbleFromByte(raw, 1); in getA()
44 public long getB(byte[] raw) throws IOException { in getB() argument
45 return RawInsnHelper.getUnsignedShortFromTwoBytes(raw, 2); in getB()
49 public long getC(byte[] raw) throws IOException { in getC() argument
50 return RawInsnHelper.getUnsignedLowNibbleFromByte(raw, 4); in getC()
DFormat31i.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getSignedIntFromFourBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat21s.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getSignedShortFromTwoBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat21h.java34 public long getA(byte[] raw) throws IOException { in getA() argument
35 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
39 public long getB(byte[] raw) throws IOException { in getB() argument
40 return RawInsnHelper.getSignedShortFromTwoBytes(raw, 2); in getB()
44 public long getC(byte[] raw) throws IOException { in getC() argument
DFormat31c.java35 public long getA(byte[] raw) throws IOException { in getA() argument
36 return RawInsnHelper.getUnsignedByteFromByte(raw, 1); in getA()
40 public long getB(byte[] raw) throws IOException { in getB() argument
41 return RawInsnHelper.getUnsignedIntFromFourBytes(raw, 2); in getB()
45 public long getC(byte[] raw) throws IOException { in getC() argument
/art/libdexfile/dex/
Dart_dex_file_loader_test.cc61 std::unique_ptr<const DexFile> raw(OpenTestDexFile("Main")); in TEST_F() local
62 EXPECT_NE(raw->GetHeader().checksum_, raw->GetLocationChecksum()); in TEST_F()
98 std::unique_ptr<const DexFile> raw(OpenTestDexFile("Nested")); in TEST_F() local
99 ASSERT_TRUE(raw.get() != nullptr); in TEST_F()
100 EXPECT_EQ(3U, raw->NumClassDefs()); in TEST_F()
102 const dex::ClassDef& c0 = raw->GetClassDef(0); in TEST_F()
103 EXPECT_STREQ("LNested$1;", raw->GetClassDescriptor(c0)); in TEST_F()
105 const dex::ClassDef& c1 = raw->GetClassDef(1); in TEST_F()
106 EXPECT_STREQ("LNested$Inner;", raw->GetClassDescriptor(c1)); in TEST_F()
108 const dex::ClassDef& c2 = raw->GetClassDef(2); in TEST_F()
[all …]

12