Home
last modified time | relevance | path

Searched refs:file (Results 51 – 75 of 645) sorted by relevance

12345678910>>...26

/art/tools/dexfuzz/src/dexfuzz/rawdex/
DTypeItem.java25 public void read(DexRandomAccessFile file) throws IOException { in read() argument
26 typeIdx = file.readUShort(); in read()
30 public void write(DexRandomAccessFile file) throws IOException { in write() argument
31 file.writeUShort(typeIdx); in write()
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
DFormat35c.java28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
29 file.writeByte((byte) insn.info.value); in writeToFile()
30 file.writeByte((byte) (insn.invokeFormatInfo.vregG | (insn.vregA << 4))); in writeToFile()
31 file.writeUShort((short) insn.vregB); in writeToFile()
32 file.writeByte((byte) ((insn.invokeFormatInfo.vregD << 4) | insn.vregC)); in writeToFile()
33 file.writeByte((byte) ((insn.invokeFormatInfo.vregF << 4) in writeToFile()
DFormat22b.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeByte((byte) insn.vregB); in writeToFile()
30 file.writeByte((byte) insn.vregC); in writeToFile()
DFormat3rc.java28 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
29 file.writeByte((byte) insn.info.value); in writeToFile()
30 file.writeByte((byte) insn.vregA); in writeToFile()
31 file.writeUShort((short) insn.vregB); in writeToFile()
32 file.writeUShort((short) insn.vregC); in writeToFile()
DFormat20bc.java30 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
31 file.writeByte((byte) insn.info.value); in writeToFile()
32 file.writeByte((byte) insn.vregA); in writeToFile()
33 file.writeUShort((short) insn.vregB); in writeToFile()
DFormat22x.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUShort((short) insn.vregB); in writeToFile()
DFormat30t.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) 0); // padding in writeToFile()
29 file.writeUInt((int) insn.vregA); in writeToFile()
DFormat20t.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) 0); // padding in writeToFile()
29 file.writeUShort((short) insn.vregA); in writeToFile()
DFormat21t.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUShort((short) insn.vregB); in writeToFile()
DFormat31t.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUInt((int) insn.vregB); in writeToFile()
DFormat21h.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUShort((short) insn.vregB); in writeToFile()
DFormat21s.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUShort((short) insn.vregB); in writeToFile()
DFormat31i.java26 public void writeToFile(DexRandomAccessFile file, Instruction insn) throws IOException { in writeToFile() argument
27 file.writeByte((byte) insn.info.value); in writeToFile()
28 file.writeByte((byte) insn.vregA); in writeToFile()
29 file.writeUInt((int) insn.vregB); in writeToFile()
/art/runtime/gc/space/
Dimage_space_fs.h62 std::string file = android::base::StringPrintf("%s/%s", dir.c_str(), name); in DeleteDirectoryContents() local
66 DeleteDirectoryContents(file, recurse); in DeleteDirectoryContents()
68 if (rmdir(file.c_str()) != 0) { in DeleteDirectoryContents()
69 PLOG(ERROR) << "Unable to rmdir " << file; in DeleteDirectoryContents()
77 if (unlink(file.c_str()) != 0) { in DeleteDirectoryContents()
78 PLOG(ERROR) << "Unable to unlink " << file; in DeleteDirectoryContents()
/art/test/712-varhandle-invocations/util-src/
Dgenerate_java.py707 print(s, file=src_file)
763 print("try {", file=body_text)
766 print("{0} result = ({0}) ".format(return_type), end="", file=body_text)
767 print("vh.{0}(this".format(accessor.method_name), end="", file=body_text)
770 … print(", SampleValues.get_{0}({1})".format(value_type.boxed_type, i), end="", file=body_text)
771 print(");", file=body_text)
774 file=body_text)
776 print("failUnreachable();", file=body_text)
777 print("} catch (WrongMethodTypeException e) {", file=body_text)
778 print("} catch (UnsupportedOperationException e) {", file=body_text)
[all …]
/art/dex2oat/linker/
Delf_writer_test.cc66 std::unique_ptr<File> file(OS::OpenFileForReading(elf_filename.c_str())); in TEST_F() local
67 ASSERT_TRUE(file.get() != nullptr) << elf_filename; in TEST_F()
70 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
82 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
94 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
111 ef->Load(file.get(), /*executable=*/ false, /*low_4gb=*/ false, &reservation, &error_msg); in TEST_F()
128 std::unique_ptr<File> file(OS::OpenFileForReading(elf_filename.c_str())); in TEST_F() local
129 ASSERT_TRUE(file.get() != nullptr); in TEST_F()
132 std::unique_ptr<ElfFile> ef(ElfFile::Open(file.get(), in TEST_F()
/art/test/983-source-transform-verify/
Dexpected.txt1 Dex file hook for art/Test983$Transform
2 Dex file hook for java/lang/Object
3 Dex file hook for java/lang/ClassLoader
/art/test/2230-profile-save-hotness/src-art/
DMain.java37 File file = null; in main() local
39 file = createTempFile(); in main()
41 VMRuntime.registerAppInfo(file.getPath(), new String[] {codePath}); in main()
48 if (!presentInProfile(file.getPath(), appMethod)) { in main()
61 if (file != null) { in main()
62 file.delete(); in main()
/art/test/992-source-data/
Dsource_file.cc43 char* file = nullptr; in Java_art_Test992_getSourceFileName() local
44 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetSourceFileName(target, &file))) { in Java_art_Test992_getSourceFileName()
47 jstring ret = env->NewStringUTF(file); in Java_art_Test992_getSourceFileName()
48 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(file)); in Java_art_Test992_getSourceFileName()
/art/test/663-odd-dex-size2/
Dinfo.txt1 Test for two files with an odd size in a vdex file.
3 The code in boths file is:
11 The generated dex file was then manually edited to:
13 2) Add 1 byte to the file.
/art/runtime/
Doat_file_assistant.cc215 const OatFile* file = oat_.GetFile(); in GetStatusDump() local
216 if (file == nullptr) { in GetStatusDump()
223 status << "compilation_filter=" << CompilerFilter::NameOfFilter(file->GetCompilerFilter()); in GetStatusDump()
236 const OatFile* file = odex_.GetFile(); in GetStatusDump() local
237 if (file == nullptr) { in GetStatusDump()
240 status << "compilation_filter=" << CompilerFilter::NameOfFilter(file->GetCompilerFilter()); in GetStatusDump()
318 bool OatFileAssistant::DexChecksumUpToDate(const VdexFile& file, std::string* error_msg) { in DexChecksumUpToDate() argument
326 uint32_t number_of_dex_files = file.GetVerifierDepsHeader().GetNumberOfDexFiles(); in DexChecksumUpToDate()
336 uint32_t actual_checksum = file.GetLocationChecksum(i); in DexChecksumUpToDate()
351 bool OatFileAssistant::DexChecksumUpToDate(const OatFile& file, std::string* error_msg) { in DexChecksumUpToDate() argument
[all …]
/art/tools/
Dtest_presubmit.py53 print("[DEBUG]: " + msg, file=sys.stderr)
119 print("[FATAL] Error when running tool (return code %s)" %(success), file=sys.stderr)
120 print("$> %s" %(" ".join(command_line_for_tool(tool_dict, tmp_file))), file=sys.stderr)
126 print("-----------------------------------------------------------", file=sys.stderr)
127 …("File '%s' diverged from generated file; please re-run tools:" %(reference_file), file=sys.stderr)
128 … print("$> %s" %(" ".join(command_line_for_tool(tool_dict, reference_file))), file=sys.stderr)
148 …print("WARNING: Not running as a pre-upload hook. Assuming commit to check = 'HEAD'", file=sys.std…
/art/test/663-odd-dex-size3/
Dinfo.txt1 Test for a dex file with an odd size followed by an aligned dex file.
11 The generated dex file was then manually edited to:
13 2) Add 1 byte to the file.
/art/test/663-odd-dex-size4/
Dinfo.txt1 Test for an aligned dex file followed by a dex file with an odd size.
16 The generated dex file was then manually edited to:
18 2) Add 1 byte to the file.
/art/libartbase/base/
Dlogging.cc96 const char* file, in InitLogging() argument
101 logd_logger_(id, severity, tag, file, line, message); in InitLogging()
125 void LogHelper::LogLineLowStack(const char* file, in LogLineLowStack() argument
138 buf_size = strlen(file) + 1 /* ':' */ + std::numeric_limits<decltype(line)>::max_digits10 + in LogLineLowStack()
143 snprintf(buf, buf_size, "%s:%u] %s", file, line, message); in LogLineLowStack()
161 TEMP_FAILURE_RETRY(write(STDERR_FILENO, file, strlen(file))); in LogLineLowStack()
171 File file(file_name, O_RDONLY, false); in PrintFileToLog() local
172 if (!file.IsOpened()) { in PrintFileToLog()
181 int64_t n = TEMP_FAILURE_RETRY(read(file.Fd(), &buf[filled_to], kBufSize - filled_to)); in PrintFileToLog()

12345678910>>...26