/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | HeaderItem.java | 49 public void read(DexRandomAccessFile file) throws IOException { in read() argument 50 file.getOffsetTracker().getNewOffsettable(file, this); in read() 53 magic[i] = file.readByte(); in read() 55 checksum = file.readUInt(); in read() 58 signature[i] = file.readByte(); in read() 60 fileSize = file.readUInt(); in read() 61 headerSize = file.readUInt(); in read() 62 endianTag = file.readUInt(); in read() 63 linkSize = file.readUInt(); in read() 64 linkOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() [all …]
|
D | ClassDefItem.java | 40 public void read(DexRandomAccessFile file) throws IOException { in read() argument 41 file.getOffsetTracker().getNewOffsettable(file, this); in read() 42 classIdx = file.readUInt(); in read() 43 accessFlags = file.readUInt(); in read() 44 superclassIdx = file.readUInt(); in read() 45 interfacesOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 46 sourceFileIdx = file.readUInt(); in read() 47 annotationsOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 48 classDataOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 49 staticValuesOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() [all …]
|
D | AnnotationsDirectoryItem.java | 31 public void read(DexRandomAccessFile file) throws IOException { in read() argument 32 file.alignForwards(4); in read() 33 file.getOffsetTracker().getNewOffsettable(file, this); in read() 34 classAnnotationsOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 35 fieldsSize = file.readUInt(); in read() 36 annotatedMethodsSize = file.readUInt(); in read() 37 annotatedParametersSize = file.readUInt(); in read() 41 (fieldAnnotations[i] = new FieldAnnotation()).read(file); in read() 47 (methodAnnotations[i] = new MethodAnnotation()).read(file); in read() 53 (parameterAnnotations[i] = new ParameterAnnotation()).read(file); in read() [all …]
|
D | CodeItem.java | 48 public void read(DexRandomAccessFile file) throws IOException { in read() argument 49 file.alignForwards(4); in read() 50 file.getOffsetTracker().getNewOffsettable(file, this); in read() 51 registersSize = file.readUShort(); in read() 52 insSize = file.readUShort(); in read() 53 outsSize = file.readUShort(); in read() 54 triesSize = file.readUShort(); in read() 55 debugInfoOff = file.readUInt(); in read() 56 insnsSize = file.readUInt(); in read() 57 populateInstructionList(file); in read() [all …]
|
D | ProtoIdItem.java | 27 public void read(DexRandomAccessFile file) throws IOException { in read() argument 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 shortyIdx = file.readUInt(); in read() 30 returnTypeIdx = file.readUInt(); in read() 31 parametersOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 35 public void write(DexRandomAccessFile file) throws IOException { in write() argument 36 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 37 file.writeUInt(shortyIdx); in write() 38 file.writeUInt(returnTypeIdx); in write() 39 file.getOffsetTracker().tryToWriteOffset(parametersOff, file, false /* ULEB128 */); in write()
|
D | MapItem.java | 46 public void read(DexRandomAccessFile file) throws IOException { in read() argument 47 type = file.readUShort(); in read() 48 file.readUShort(); // Unused padding. in read() 49 size = file.readUInt(); in read() 51 offset = file.getOffsetTracker().getNewHeaderOffset(file.readUInt()); in read() 53 offset = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 58 public void write(DexRandomAccessFile file) throws IOException { in write() argument 59 file.writeUShort(type); in write() 60 file.writeUShort((short) 0); // Unused padding. in write() 61 file.writeUInt(size); in write() [all …]
|
D | AnnotationSetItem.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 file.alignForwards(4); in read() 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 size = file.readUInt(); in read() 32 (entries[i] = new AnnotationOffItem()).read(file); in read() 37 public void write(DexRandomAccessFile file) throws IOException { in write() argument 38 file.alignForwards(4); in write() 39 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 40 file.writeUInt(size); in write() 42 annotationOffItem.write(file); in write()
|
D | AnnotationSetRefList.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 file.alignForwards(4); in read() 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 size = file.readUInt(); in read() 32 (list[i] = new AnnotationSetRefItem()).read(file); in read() 37 public void write(DexRandomAccessFile file) throws IOException { in write() argument 38 file.alignForwards(4); in write() 39 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 40 file.writeUInt(size); in write() 42 annotationSetRefItem.write(file); in write()
|
D | MethodIdItem.java | 27 public void read(DexRandomAccessFile file) throws IOException { in read() argument 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 classIdx = file.readUShort(); in read() 30 protoIdx = file.readUShort(); in read() 31 nameIdx = file.readUInt(); in read() 35 public void write(DexRandomAccessFile file) throws IOException { in write() argument 36 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 37 file.writeUShort(classIdx); in write() 38 file.writeUShort(protoIdx); in write() 39 file.writeUInt(nameIdx); in write()
|
D | FieldIdItem.java | 27 public void read(DexRandomAccessFile file) throws IOException { in read() argument 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 classIdx = file.readUShort(); in read() 30 typeIdx = file.readUShort(); in read() 31 nameIdx = file.readUInt(); in read() 35 public void write(DexRandomAccessFile file) throws IOException { in write() argument 36 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 37 file.writeUShort(classIdx); in write() 38 file.writeUShort(typeIdx); in write() 39 file.writeUInt(nameIdx); in write()
|
D | StringIdItem.java | 25 public void read(DexRandomAccessFile file) throws IOException { in read() argument 26 file.getOffsetTracker().getNewOffsettable(file, this); in read() 27 stringDataOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 31 public void write(DexRandomAccessFile file) throws IOException { in write() argument 32 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 33 file.getOffsetTracker().tryToWriteOffset(stringDataOff, file, false /* ULEB128 */); in write()
|
D | StringDataItem.java | 31 public void read(DexRandomAccessFile file) throws IOException { in read() argument 32 file.getOffsetTracker().getNewOffsettable(file, this); in read() 33 size = file.readUleb128(); in read() 35 dataAsBytes = file.readDexUtf(size); in read() 44 file.readByte(); in read() 49 public void write(DexRandomAccessFile file) throws IOException { in write() argument 50 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 51 file.writeUleb128(size); in write() 54 file.writeDexUtf(dataAsBytes); in write() 56 file.writeDexUtf(data.getBytes(StandardCharsets.US_ASCII)); in write() [all …]
|
D | ClassDataItem.java | 39 public void read(DexRandomAccessFile file) throws IOException { in read() argument 40 file.getOffsetTracker().getNewOffsettable(file, this); in read() 41 staticFieldsSize = file.readUleb128(); in read() 42 instanceFieldsSize = file.readUleb128(); in read() 43 directMethodsSize = file.readUleb128(); in read() 44 virtualMethodsSize = file.readUleb128(); in read() 48 (staticFields[i] = new EncodedField()).read(file); in read() 52 (instanceFields[i] = new EncodedField()).read(file); in read() 56 (directMethods[i] = new EncodedMethod()).read(file); in read() 60 (virtualMethods[i] = new EncodedMethod()).read(file); in read() [all …]
|
D | AnnotationItem.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 file.getOffsetTracker().getNewOffsettable(file, this); in read() 28 visibility = file.readUnsignedByte(); in read() 29 (annotation = new EncodedAnnotation()).read(file); in read() 33 public void write(DexRandomAccessFile file) throws IOException { in write() argument 34 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 35 file.writeByte(visibility); in write() 36 annotation.write(file); in write()
|
D | TypeList.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 file.alignForwards(4); in read() 28 file.getOffsetTracker().getNewOffsettable(file, this); in read() 29 size = file.readUInt(); in read() 32 (list[i] = new TypeItem()).read(file); in read() 37 public void write(DexRandomAccessFile file) throws IOException { in write() argument 38 file.alignForwards(4); in write() 39 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 40 file.writeUInt(size); in write() 42 typeItem.write(file); in write()
|
D | EncodedArrayItem.java | 25 public void read(DexRandomAccessFile file) throws IOException { in read() argument 26 file.getOffsetTracker().getNewOffsettable(file, this); in read() 27 (value = new EncodedArray()).read(file); in read() 31 public void write(DexRandomAccessFile file) throws IOException { in write() argument 32 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 33 value.write(file); in write()
|
D | TryItem.java | 27 public void read(DexRandomAccessFile file) throws IOException { in read() argument 28 startAddr = file.readUInt(); in read() 29 insnCount = file.readUShort(); in read() 30 handlerOff = file.readUShort(); in read() 34 public void write(DexRandomAccessFile file) throws IOException { in write() argument 35 file.writeUInt(startAddr); in write() 36 file.writeUShort(insnCount); in write() 37 file.writeUShort(handlerOff); in write()
|
D | TypeIdItem.java | 25 public void read(DexRandomAccessFile file) throws IOException { in read() argument 26 file.getOffsetTracker().getNewOffsettable(file, this); in read() 27 descriptorIdx = file.readUInt(); in read() 31 public void write(DexRandomAccessFile file) throws IOException { in write() argument 32 file.getOffsetTracker().updatePositionOfNextOffsettable(file); in write() 33 file.writeUInt(descriptorIdx); in write()
|
D | RawDexFile.java | 53 public void read(DexRandomAccessFile file) throws IOException { in read() argument 55 offsetTracker = file.getOffsetTracker(); in read() 57 file.seek(0); in read() 60 (header = new HeaderItem()).read(file); in read() 71 mapList.read(file); in read() 73 file.getOffsetTracker().associateOffsets(); in read() 77 public void write(DexRandomAccessFile file) throws IOException { in write() argument 78 file.seek(0); in write() 145 header.write(file); in write() 146 file.getOffsetTracker().skipToAfterMapList(); in write() [all …]
|
D | MapList.java | 37 public void read(DexRandomAccessFile file) throws IOException { in read() argument 39 file.seek(rawDexFile.header.mapOff.getOriginalOffset()); in read() 41 file.getOffsetTracker().getNewOffsettable(file, this); in read() 44 size = file.readUInt(); in read() 51 mapItem.read(file); in read() 54 file.getOffsetTracker().rememberPointAfterMapList(); in read() 63 file.seek(mapItem.offset.getOriginalOffset()); in read() 72 newStringId.read(file); in read() 79 newTypeId.read(file); in read() 86 newProtoId.read(file); in read() [all …]
|
D | MethodAnnotation.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 methodIdx = file.readUInt(); in read() 28 annotationsOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 32 public void write(DexRandomAccessFile file) throws IOException { in write() argument 33 file.writeUInt(methodIdx); in write() 34 file.getOffsetTracker().tryToWriteOffset(annotationsOff, file, false /* ULEB128 */); in write()
|
D | ParameterAnnotation.java | 26 public void read(DexRandomAccessFile file) throws IOException { in read() argument 27 methodIdx = file.readUInt(); in read() 28 annotationsOff = file.getOffsetTracker().getNewOffset(file.readUInt()); in read() 32 public void write(DexRandomAccessFile file) throws IOException { in write() argument 33 file.writeUInt(methodIdx); in write() 34 file.getOffsetTracker().tryToWriteOffset(annotationsOff, file, false /* ULEB128 */); in write()
|
/art/libartbase/base/unix_file/ |
D | random_access_file_test.h | 68 std::unique_ptr<RandomAccessFile> file(MakeTestFile()); in TestRead() 72 ASSERT_EQ(0, file->Read(buf, 0, 0)); in TestRead() 73 ASSERT_EQ(0, file->Read(buf, 123, 0)); in TestRead() 76 … ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Write(content.data(), content.size(), 0))); in TestRead() 78 TestReadContent(content, file.get()); in TestRead() 80 CleanUp(file.get()); in TestRead() 83 void TestReadContent(const std::string& content, RandomAccessFile* file) { in TestReadContent() argument 87 ASSERT_EQ(-EINVAL, file->Read(buf.get(), 0, -123)); in TestReadContent() 90 ASSERT_EQ(content.size(), static_cast<uint64_t>(file->Read(buf.get(), buf_size, 0))); in TestReadContent() 96 ASSERT_EQ(short_request, static_cast<uint64_t>(file->Read(buf.get(), short_request, 0))); in TestReadContent() [all …]
|
D | fd_file_test.cc | 48 FdFile file; in TEST_F() local 49 EXPECT_EQ(-1, file.Fd()); in TEST_F() 50 EXPECT_FALSE(file.IsOpened()); in TEST_F() 51 EXPECT_TRUE(file.GetPath().empty()); in TEST_F() 56 FdFile file(good_path, O_CREAT | O_WRONLY, true); in TEST_F() local 57 ASSERT_TRUE(file.IsOpened()); in TEST_F() 58 EXPECT_GE(file.Fd(), 0); in TEST_F() 59 EXPECT_TRUE(file.IsOpened()); in TEST_F() 60 EXPECT_FALSE(file.ReadOnlyMode()); in TEST_F() 61 EXPECT_EQ(0, file.Flush()); in TEST_F() [all …]
|
/art/test/992-source-data/ |
D | expected.txt | 1 class art.Test992 is defined in file "Test992.java" 2 class art.Test992 does not have a known source file extension because java.lang.RuntimeException: J… 3 class art.Test992$Target1 is defined in file "Test992.java" 4 class art.Test992$Target1 does not have a known source file extension because java.lang.RuntimeExce… 5 class art.Target2 is defined in file "Target2.java" 6 class art.Target2 does not have a known source file extension because java.lang.RuntimeException: J… 7 int does not have a known source file because java.lang.RuntimeException: JVMTI_ERROR_ABSENT_INFORM… 8 int does not have a known source file extension because java.lang.RuntimeException: JVMTI_ERROR_ABS… 9 class java.lang.Integer is defined in file "Integer.java" 10 class java.lang.Integer does not have a known source file extension because java.lang.RuntimeExcept… [all …]
|