Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 25 of 103) sorted by relevance

12345

/art/tools/ahat/src/test/com/android/ahat/
DProguardMapTest.java76 assertEquals("SourceFile.java", frame.filename); in runOldProguardMap()
91 assertEquals("SourceFile.java", frame.filename); in runOldProguardMap()
116 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
122 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
128 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
134 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
141 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
148 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
154 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
160 assertEquals("Methods.java", frame.filename); in runOldProguardMap()
[all …]
/art/libartbase/base/
Dscoped_flock.cc32 /* static */ ScopedFlock LockedFile::Open(const char* filename, std::string* error_msg) { in Open() argument
33 return Open(filename, O_CREAT | O_RDWR, true, error_msg); in Open()
36 /* static */ ScopedFlock LockedFile::Open(const char* filename, int flags, bool block, in Open() argument
40 UNUSED(filename); in Open()
52 std::unique_ptr<File> file(OS::OpenFileWithFlags(filename, flags, /* auto_flush= */ false)); in Open()
54 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); in Open()
65 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); in Open()
71 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); in Open()
75 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Open()
77 PLOG(WARNING) << "Failed to stat, will retry: " << filename; in Open()
[all …]
Dzip_archive.cc233 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() argument
234 DCHECK(filename != nullptr); in Open()
237 const int32_t error = OpenArchive(filename, &handle); in Open()
248 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument
249 return OpenFromFdInternal(fd, /*assume_ownership=*/true, filename, error_msg); in OpenFromFd()
252 ZipArchive* ZipArchive::OpenFromOwnedFd(int fd, const char* filename, std::string* error_msg) { in OpenFromOwnedFd() argument
253 return OpenFromFdInternal(fd, /*assume_ownership=*/false, filename, error_msg); in OpenFromOwnedFd()
258 const char* filename, in OpenFromMemory() argument
260 DCHECK(filename != nullptr); in OpenFromMemory()
264 const int32_t error = OpenArchiveFromMemory(data, size, filename, &handle); in OpenFromMemory()
[all …]
Dfile_magic.cc32 File OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument
34 File fd(filename, O_RDONLY, /* check_usage= */ false); in OpenAndReadMagic()
36 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); in OpenAndReadMagic()
40 StringPrintf("Error in reading magic from file %s: %s", filename, error_msg->c_str()); in OpenAndReadMagic()
Dzip_archive.h93 static ZipArchive* Open(const char* filename, std::string* error_msg);
94 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
95 static ZipArchive* OpenFromOwnedFd(int fd, const char* filename, std::string* error_msg);
98 const char* filename,
108 const char* filename,
Dcommon_art_test.cc94 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile() argument
180 if (path.filename() == std::filesystem::path("linux-x86")) { in GetAndroidBuildTop()
186 if (path.filename() == std::filesystem::path("testcases") || in GetAndroidBuildTop()
187 StartsWith(path.filename().string(), "host_testcases")) { in GetAndroidBuildTop()
392 std::string filename(IsHost() ? GetAndroidBuildTop() + location : location); in LoadExpectSingleDexFile() local
393 ArtDexFileLoader dex_file_loader(filename.c_str(), std::string(location)); in LoadExpectSingleDexFile()
395 LOG(FATAL) << "Could not open .dex file '" << filename << "': " << error_msg << "\n"; in LoadExpectSingleDexFile()
398 CHECK_EQ(1U, dex_files.size()) << "Expected only one dex file in " << filename; in LoadExpectSingleDexFile()
412 std::string filename(dirpath); in ClearDirectory() local
413 filename.push_back('/'); in ClearDirectory()
[all …]
Dfile_utils.cc351 std::string filename = GetFirstMainlineFrameworkLibraryFilename(error_msg); in GetFirstMainlineFrameworkLibraryName() local
352 if (filename.empty()) { in GetFirstMainlineFrameworkLibraryName()
356 std::string jar_name = android::base::Basename(filename); in GetFirstMainlineFrameworkLibraryName()
592 std::string* filename, in GetLocationEncodedFilename() argument
605 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str()); in GetLocationEncodedFilename()
611 std::string* filename, in GetDalvikCacheFilename() argument
613 return GetLocationEncodedFilename(location, cache_location, filename, error_msg); in GetDalvikCacheFilename()
700 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { in InsertIsaDirectory() argument
703 size_t pos = filename->rfind('/'); in InsertIsaDirectory()
704 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory()
[all …]
/art/libdexfile/dex/
Dart_dex_file_loader.cc42 bool ArtDexFileLoader::GetMultiDexChecksums(const char* filename, in GetMultiDexChecksums() argument
57 fd = OpenAndReadMagic(filename, &magic, error_msg); in GetMultiDexChecksums()
65 ZipArchive::OpenFromFd(fd.Release(), filename, error_msg)); in GetMultiDexChecksums()
67 *error_msg = StringPrintf("Failed to open zip archive '%s' (error msg: %s)", filename, in GetMultiDexChecksums()
84 filename, in GetMultiDexChecksums()
97 dex_locations->push_back(GetMultiDexLocation(idx, filename)); in GetMultiDexChecksums()
104 ArtDexFileLoader loader(fd.Release(), filename); in GetMultiDexChecksums()
118 *error_msg = StringPrintf("Expected valid zip or dex file: '%s'", filename); in GetMultiDexChecksums()
156 bool ArtDexFileLoader::Open(const char* filename, in Open() argument
162 ArtDexFileLoader loader(filename, location); in Open()
/art/libarttools/tools/
Dart_exec_test.cc159 std::string filename = "/data/local/tmp/art-exec-test-XXXXXX"; in TEST_F() local
160 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F()
169 "cat /proc/self/cgroup > " + filename}; in TEST_F()
172 ASSERT_TRUE(android::base::ReadFileToString(filename, &cgroup)); in TEST_F()
215 std::string filename = "/data/local/tmp/art-exec-test-XXXXXX"; in TEST_F() local
216 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F()
229 ") > {}"_format(file1->Fd(), file2->Fd(), file3->Fd(), filename)}; in TEST_F()
234 ASSERT_TRUE(android::base::ReadFileToString(filename, &open_fds)); in TEST_F()
241 std::string filename = "/data/local/tmp/art-exec-test-XXXXXX"; in TEST_F() local
242 ScratchFile scratch_file(new File(mkstemp(filename.data()), filename, /*check_usage=*/false)); in TEST_F()
[all …]
Dtools_test.cc35 void CreateFile(const std::string& filename) { in CreateFile() argument
36 std::filesystem::path path(filename); in CreateFile()
38 ASSERT_TRUE(WriteStringToFile(/*content=*/"", filename)); in CreateFile()
/art/tools/checker/file_format/c1visualizer/
Dparser.py30 def _parse_c1_line(c1_file, line, line_no, state, filename): argument
48 Logger.fail("Expected output group name", filename, line_no)
62 Logger.fail("Empty method name in output", filename, line_no)
92 Logger.fail("Expected method header", filename, line_no)
99 Logger.fail("C1visualizer line not inside a group", filename, line_no)
102 def parse_c1_visualizer_stream(filename, stream): argument
103 c1_file = C1visualizerFile(filename)
Dstruct.py23 def __init__(self, filename): argument
24 self.base_file_name = os.path.basename(filename)
25 self.full_file_name = filename
55 Logger.fail("C1visualizer pass does not have a name", self.filename, self.start_line_no)
57 Logger.fail("C1visualizer pass does not have a body", self.filename, self.start_line_no)
62 def filename(self): member in C1visualizerPass
/art/test/595-profile-saving/
Dprofile-saving.cc53 jstring filename) { in Java_Main_isForBootImage() argument
54 ScopedUtfChars filename_chars(env, filename); in Java_Main_isForBootImage()
64 jstring filename, in Java_Main_presentInProfile() argument
66 bool for_boot_image = Java_Main_isForBootImage(env, c, filename) == JNI_TRUE; in Java_Main_presentInProfile()
67 ScopedUtfChars filename_chars(env, filename); in Java_Main_presentInProfile()
76 LOG(ERROR) << "Failed to load profile from " << filename; in Java_Main_presentInProfile()
/art/test/071-dexfile-get-static-size/src/
DMain.java20 private static long getDexFileSize(String filename) throws Exception { in getDexFileSize() argument
28 Object dexFile = DexFile_loadDex.invoke(null, filename, null, 0); in getDexFileSize()
33 String filename = System.getenv("DEX_LOCATION") + "/res/" + resource; in test() local
34 long size = getDexFileSize(filename); in test()
/art/runtime/
Dmonitor_android.cc69 const char* filename = nullptr; in LogContentionEvent() local
75 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
78 ctx << filename; in LogContentionEvent()
91 } else if (strcmp(filename, owner_filename) == 0) { in LogContentionEvent()
112 filename, in LogContentionEvent()
/art/build/apex/
Dart_apex_test.py161 path = zipinfo.filename
241 def check_executable(self, filename): argument
242 path = 'bin/%s' % filename
248 def check_executable_symlink(self, filename): argument
249 path = 'bin/%s' % filename
276 def check_art_test_executable(self, filename, multilib=None): argument
279 self.fail('Directories for ART test binary missing: %s', filename)
282 test_path = '%s/%s' % (dir, filename)
290 def check_art_test_data(self, filename): argument
293 self.fail('Directories for ART test data missing: %s', filename)
[all …]
/art/tools/
Dgenerate_operator_out.py33 def Confused(filename, line_number, line): argument
35 (filename, line_number, line))
40 def ProcessFile(filename): argument
41 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
96 Confused(filename, line_number, raw_line)
143 Confused(filename, line_number, raw_line)
172 Confused(filename, line_number, raw_line)
Danalyze-init-failures.py31 def Confused(filename, line_number, line): argument
32 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
37 def ProcessFile(filename): argument
38 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
64 Confused(filename, -1, raw_line)
/art/compiler/utils/
Dassembler_test_base.h190 std::vector<uint8_t> ReadFile(const std::string& filename) { in ReadFile() argument
191 std::unique_ptr<File> file(OS::OpenFileForReading(filename.c_str())); in ReadFile()
195 CHECK(success) << filename; in ReadFile()
199 void WriteFile(const std::string& filename, const void* data, size_t size) { in WriteFile() argument
200 std::unique_ptr<File> file(OS::CreateEmptyFile(filename.c_str())); in WriteFile()
203 CHECK(success) << filename; in WriteFile()
209 void ReadElf(const std::string& filename, /*out*/ std::vector<uint8_t>* code) { in ReadElf() argument
211 std::vector<uint8_t> data = ReadFile(filename); in ReadElf()
220 void WriteElf(const std::string& filename, InstructionSet isa, const std::vector<uint8_t>& code) { in WriteElf() argument
222 std::unique_ptr<File> file(OS::CreateEmptyFile(filename.c_str())); in WriteElf()
/art/tools/dexanalyze/
Ddexanalyze.cc203 for (const std::string& filename : options.filenames_) { in Run() local
206 if (!android::base::ReadFileToString(filename, &content)) { in Run()
207 LOG(ERROR) << "ReadFileToString failed for " + filename << std::endl; in Run()
212 reinterpret_cast<const uint8_t*>(content.data()), content.size(), filename); in Run()
218 LOG(ERROR) << "OpenAll failed for " + filename << " with " << error_msg << std::endl; in Run()
224 LOG(ERROR) << "Failed to process " << filename << " with error " << error_msg; in Run()
227 LOG(INFO) << "Analysis for " << filename << std::endl; in Run()
/art/tools/checker/file_format/checker/
Dstruct.py25 def __init__(self, filename): argument
26 self.file_name = filename
52 Logger.fail("Test case does not have a name", self.filename, self.start_line_no)
57 def filename(self): member in TestCase
86 def filename(self): member in TestStatement
87 return self.parent.filename
108 Logger.fail("CHECK-NOT lines cannot define variables", self.filename, self.line_no)
/art/tools/veridex/
Dhidden_api.cc27 HiddenApi::HiddenApi(const char* filename, const ApiListFilter& api_list_filter) in HiddenApi() argument
29 CHECK(filename != nullptr); in HiddenApi()
31 std::ifstream in(filename); in HiddenApi()
66 CHECK(!errors) << "Errors encountered while parsing file " << filename; in HiddenApi()
/art/tools/ahat/src/main/com/android/ahat/proguard/
DProguardMap.java163 Frame(String method, String signature, String filename, int line) { in Frame() argument
166 this.filename = filename; in Frame()
186 public final String filename; field in ProguardMap.Frame
532 String filename = clearClass; in getFileName() local
533 int dot = filename.lastIndexOf('.'); in getFileName()
535 filename = filename.substring(dot + 1); in getFileName()
538 int dollar = filename.indexOf('$'); in getFileName()
540 filename = filename.substring(0, dollar); in getFileName()
542 return filename + ".java"; in getFileName()
/art/runtime/native/
Ddalvik_system_DexFile.cc566 const char* filename, in GetDexOptNeeded() argument
572 if ((filename == nullptr) || !OS::FileExists(filename)) { in GetDexOptNeeded()
573 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist"; in GetDexOptNeeded()
575 const char* message = (filename == nullptr) ? "<empty file name>" : filename; in GetDexOptNeeded()
608 context->OpenDexFiles(android::base::Dirname(filename), in GetDexOptNeeded()
616 OatFileAssistant oat_file_assistant(filename, in GetDexOptNeeded()
635 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexFileStatus() local
656 OatFileAssistant oat_file_assistant(filename.c_str(), in DexFile_getDexFileStatus()
669 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexFileOptimizationStatus() local
691 filename.c_str(), target_instruction_set, &compilation_filter, &compilation_reason); in DexFile_getDexFileOptimizationStatus()
[all …]
/art/test/
DAndroid.run-test.bp17 filename: "art-run-test-host-data-shard00.zip",
33 filename: "art-run-test-host-data-shard01.zip",
49 filename: "art-run-test-host-data-shard02.zip",
65 filename: "art-run-test-host-data-shard03.zip",
81 filename: "art-run-test-host-data-shard04.zip",
97 filename: "art-run-test-host-data-shard05.zip",
113 filename: "art-run-test-host-data-shard06.zip",
129 filename: "art-run-test-host-data-shard07.zip",
145 filename: "art-run-test-host-data-shard08.zip",
161 filename: "art-run-test-host-data-shard09.zip",
[all …]

12345