Home
last modified time | relevance | path

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

123

/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 …]
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()
Dcommon_art_test.cc64 ScratchFile::ScratchFile(const std::string& filename) : filename_(filename) { in ScratchFile() argument
295 std::string filename(dirpath); in ClearDirectory() local
296 filename.push_back('/'); in ClearDirectory()
297 filename.append(e->d_name); in ClearDirectory()
298 int stat_result = lstat(filename.c_str(), &s); in ClearDirectory()
299 ASSERT_EQ(0, stat_result) << "unable to stat " << filename; in ClearDirectory()
302 ClearDirectory(filename.c_str()); in ClearDirectory()
303 int rmdir_result = rmdir(filename.c_str()); in ClearDirectory()
304 ASSERT_EQ(0, rmdir_result) << filename; in ClearDirectory()
307 int unlink_result = unlink(filename.c_str()); in ClearDirectory()
[all …]
Dfile_utils.cc265 std::string* filename, std::string* error_msg) { in GetDalvikCacheFilename() argument
278 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str()); in GetDalvikCacheFilename()
286 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { in InsertIsaDirectory() argument
289 size_t pos = filename->rfind('/'); in InsertIsaDirectory()
290 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory()
291 filename->insert(pos, "/", 1); in InsertIsaDirectory()
292 filename->insert(pos + 1, GetInstructionSetString(isa)); in InsertIsaDirectory()
298 std::string filename(location); in GetSystemImageFilename() local
299 InsertIsaDirectory(isa, &filename); in GetSystemImageFilename()
300 return filename; in GetSystemImageFilename()
[all …]
Dzip_archive.cc225 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() argument
226 DCHECK(filename != nullptr); in Open()
229 const int32_t error = OpenArchive(filename, &handle); in Open()
240 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument
241 DCHECK(filename != nullptr); in OpenFromFd()
245 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
Dscoped_flock.h48 static ScopedFlock Open(const char* filename, int flags, bool block,
52 static ScopedFlock Open(const char* filename, std::string* error_msg);
Dzip_archive.h88 static ZipArchive* Open(const char* filename, std::string* error_msg);
89 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
Dfile_utils.h68 std::string* filename, std::string* error_msg);
81 std::string ReplaceFileExtension(const std::string& filename, const std::string& new_extension);
/art/tools/ahat/src/test/com/android/ahat/
DProguardMapTest.java68 assertEquals("SourceFile.java", frame.filename); in proguardMap()
83 assertEquals("SourceFile.java", frame.filename); in proguardMap()
108 assertEquals("Methods.java", frame.filename); in proguardMap()
114 assertEquals("Methods.java", frame.filename); in proguardMap()
120 assertEquals("Methods.java", frame.filename); in proguardMap()
126 assertEquals("Methods.java", frame.filename); in proguardMap()
133 assertEquals("Methods.java", frame.filename); in proguardMap()
140 assertEquals("Methods.java", frame.filename); in proguardMap()
146 assertEquals("Methods.java", frame.filename); in proguardMap()
152 assertEquals("Methods.java", frame.filename); in proguardMap()
[all …]
/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/tools/
Dgenerate-boot-image-profile.sh55 filename="$jar_dir/$file.jar"
56 jar_args+=("--apk=$filename")
57 jar_args+=("--dex-location=$filename")
Dgenerate_operator_out.py33 def Confused(filename, line_number, line): argument
34 sys.stderr.write('%s:%d: confused by:\n%s\n' % (filename, line_number, line))
39 def ProcessFile(filename): argument
40 lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
102 Confused(filename, line_number, raw_line)
129 Confused(filename, line_number, raw_line)
157 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)
Dstream-trace-converter.py181 def ProcessFile(self, filename): argument
182 input = open(filename, 'rb') # Input file
183 header = open(filename + '.header', 'w') # Header part
184 body = open(filename + '.body', 'wb') # Body part
/art/runtime/
Dmonitor_android.cc70 const char* filename = nullptr; in LogContentionEvent() local
75 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
78 ctx << filename; in LogContentionEvent()
90 } else if (strcmp(filename, owner_filename) == 0) { in LogContentionEvent()
Dmodule_exclusion_test.cc76 std::vector<std::string> filename = GetLibCoreDexFileNames({ module_ }); in GetModuleFileName() local
77 CHECK_EQ(filename.size(), 1u); in GetModuleFileName()
78 return filename[0]; in GetModuleFileName()
84 std::string filename = GetModuleFileName(); in LoadModule() local
85 std::vector<std::unique_ptr<const DexFile>> dex_files = OpenDexFiles(filename.c_str()); in LoadModule()
/art/build/apex/
Dart_apex_test.py149 path = zipinfo.filename
216 def check_executable(self, filename): argument
217 path = 'bin/%s' % filename
223 def check_executable_symlink(self, filename): argument
224 path = 'bin/%s' % filename
236 def check_single_library(self, filename): argument
237 lib_path = 'lib/%s' % filename
238 lib64_path = 'lib64/%s' % filename
246 self.fail('Library missing: %s', filename)
274 def check_symlinked_multilib_executable(self, filename): argument
[all …]
/art/tools/dexanalyze/
Ddexanalyze.cc202 for (const std::string& filename : options.filenames_) { in Run() local
205 if (!android::base::ReadFileToString(filename.c_str(), &content)) { in Run()
206 LOG(ERROR) << "ReadFileToString failed for " + filename << std::endl; in Run()
213 filename.c_str(), in Run()
219 LOG(ERROR) << "OpenAll failed for " + filename << " with " << error_msg << std::endl; in Run()
225 LOG(ERROR) << "Failed to process " << filename << " with error " << error_msg; in Run()
228 LOG(INFO) << "Analysis for " << filename << std::endl; in Run()
/art/tools/ahat/src/main/com/android/ahat/proguard/
DProguardMap.java136 Frame(String method, String signature, String filename, int line) { in Frame() argument
139 this.filename = filename; in Frame()
159 public final String filename; field in ProguardMap.Frame
439 String filename = clearClass; in getFileName() local
440 int dot = filename.lastIndexOf('.'); in getFileName()
442 filename = filename.substring(dot + 1); in getFileName()
445 int dollar = filename.indexOf('$'); in getFileName()
447 filename = filename.substring(0, dollar); in getFileName()
449 return filename + ".java"; in getFileName()
/art/runtime/native/
Ddalvik_system_DexFile.cc525 const char* filename, in GetDexOptNeeded() argument
531 if ((filename == nullptr) || !OS::FileExists(filename)) { in GetDexOptNeeded()
532 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist"; in GetDexOptNeeded()
534 const char* message = (filename == nullptr) ? "<empty file name>" : filename; in GetDexOptNeeded()
571 OatFileAssistant oat_file_assistant(filename, target_instruction_set, false); in GetDexOptNeeded()
588 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexFileStatus() local
607 OatFileAssistant oat_file_assistant(filename.c_str(), target_instruction_set, in DexFile_getDexFileStatus()
618 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexFileOptimizationStatus() local
640 filename.c_str(), target_instruction_set, &compilation_filter, &compilation_reason); in DexFile_getDexFileOptimizationStatus()
669 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexOptNeeded() local
[all …]
/art/cmdline/
Dcmdline.h47 std::string* filename) { in LocationToFilename() argument
78 *filename = system_filename; in LocationToFilename()
81 *filename = cache_filename; in LocationToFilename()
84 *filename = system_filename; in LocationToFilename()
177 const char* filename = output_name_.c_str(); in Parse() local
178 out_.reset(new std::ofstream(filename)); in Parse()
180 fprintf(stderr, "Failed to open output filename %s\n", filename); in Parse()
/art/test/595-profile-saving/
Dprofile-saving.cc53 jstring filename, in Java_Main_presentInProfile() argument
55 ScopedUtfChars filename_chars(env, filename); in Java_Main_presentInProfile()
/art/tools/class2greylist/src/com/android/class2greylist/
DJarReader.java38 public JarReader(Status s, String filename) throws IOException { in JarReader() argument
40 mFileName = filename; in JarReader()
/art/tools/veridex/
Dhidden_api.cc27 HiddenApi::HiddenApi(const char* filename, bool sdk_uses_only) { in HiddenApi() argument
28 CHECK(filename != nullptr); in HiddenApi()
30 std::ifstream in(filename); in HiddenApi()
/art/runtime/hprof/
Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);

123