Home
last modified time | relevance | path

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

12

/art/tools/
Dcpplint.py360 def ParseNolintSuppressions(filename, raw_line, linenum, error): argument
385 error(filename, linenum, 'readability/nolint', 5,
700 def Check(self, error, filename, linenum): argument
723 error(filename, linenum, 'readability/fn_size', error_level,
746 def __init__(self, filename): argument
747 self._filename = filename
859 def Error(filename, linenum, category, confidence, message): argument
885 filename, linenum, message, category, confidence))
888 filename, linenum, message, category, confidence))
891 filename, linenum, message, category, confidence))
[all …]
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')
100 Confused(filename, line_number, raw_line)
127 Confused(filename, line_number, raw_line)
155 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.py158 def ProcessFile(self, filename): argument
159 input = open(filename, 'rb') # Input file
160 header = open(filename + '.header', 'w') # Header part
161 body = open(filename + '.body', 'wb') # Body part
/art/runtime/base/
Dscoped_flock.cc28 bool ScopedFlock::Init(const char* filename, std::string* error_msg) { in Init() argument
33 file_.reset(OS::OpenFileWithFlags(filename, O_CREAT | O_RDWR)); in Init()
35 *error_msg = StringPrintf("Failed to open file '%s': %s", filename, strerror(errno)); in Init()
40 *error_msg = StringPrintf("Failed to lock file '%s': %s", filename, strerror(errno)); in Init()
46 *error_msg = StringPrintf("Failed to fstat file '%s': %s", filename, strerror(errno)); in Init()
50 int stat_result = TEMP_FAILURE_RETRY(stat(filename, &stat_stat)); in Init()
52 PLOG(WARNING) << "Failed to stat, will retry: " << filename; in Init()
57 LOG(WARNING) << "File changed while locking, will retry: " << filename; in Init()
Dscoped_flock.h39 bool Init(const char* filename, std::string* error_msg);
/art/runtime/
Dcommon_runtime_test.cc372 std::string filename(dirpath); in ClearDirectory() local
373 filename.push_back('/'); in ClearDirectory()
374 filename.append(e->d_name); in ClearDirectory()
375 int stat_result = lstat(filename.c_str(), &s); in ClearDirectory()
376 ASSERT_EQ(0, stat_result) << "unable to stat " << filename; in ClearDirectory()
378 ClearDirectory(filename.c_str()); in ClearDirectory()
379 int rmdir_result = rmdir(filename.c_str()); in ClearDirectory()
380 ASSERT_EQ(0, rmdir_result) << filename; in ClearDirectory()
382 int unlink_result = unlink(filename.c_str()); in ClearDirectory()
383 ASSERT_EQ(0, unlink_result) << filename; in ClearDirectory()
[all …]
Dzip_archive.cc91 ZipArchive* ZipArchive::Open(const char* filename, std::string* error_msg) { in Open() argument
92 DCHECK(filename != nullptr); in Open()
95 const int32_t error = OpenArchive(filename, &handle); in Open()
106 ZipArchive* ZipArchive::OpenFromFd(int fd, const char* filename, std::string* error_msg) { in OpenFromFd() argument
107 DCHECK(filename != nullptr); in OpenFromFd()
111 const int32_t error = OpenArchiveFd(fd, filename, &handle); in OpenFromFd()
Dmonitor_android.cc82 const char* filename; in LogContentionEvent() local
84 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
85 cp = EventLogWriteString(cp, filename, strlen(filename)); in LogContentionEvent()
93 } else if (strcmp(filename, owner_filename) == 0) { in LogContentionEvent()
Dzip_archive.h61 static ZipArchive* Open(const char* filename, std::string* error_msg);
62 static ZipArchive* OpenFromFd(int fd, const char* filename, std::string* error_msg);
Dmem_map.h78 const char* filename, std::string* error_msg) { in MapFile() argument
80 nullptr, byte_count, prot, flags, fd, start, false, filename, error_msg); in MapFile()
91 off_t start, bool reuse, const char* filename,
Ddex_file.cc59 static int OpenAndReadMagic(const char* filename, uint32_t* magic, std::string* error_msg) { in OpenAndReadMagic() argument
61 ScopedFd fd(open(filename, O_RDONLY, 0)); in OpenAndReadMagic()
63 *error_msg = StringPrintf("Unable to open '%s' : %s", filename, strerror(errno)); in OpenAndReadMagic()
68 *error_msg = StringPrintf("Failed to find magic in '%s'", filename); in OpenAndReadMagic()
72 *error_msg = StringPrintf("Failed to seek to beginning of file '%s' : %s", filename, in OpenAndReadMagic()
79 bool DexFile::GetChecksum(const char* filename, uint32_t* checksum, std::string* error_msg) { in GetChecksum() argument
85 const char* file_part = filename; in GetChecksum()
88 if (DexFile::IsMultiDexLocation(filename)) { in GetChecksum()
89 file_part_storage = GetBaseLocation(filename); in GetChecksum()
91 zip_entry_name = filename + file_part_storage.size() + 1; in GetChecksum()
[all …]
Dutils.cc1334 std::string* filename, std::string* error_msg) { in GetDalvikCacheFilename() argument
1345 *filename = StringPrintf("%s/%s", cache_location, cache_file.c_str()); in GetDalvikCacheFilename()
1358 static void InsertIsaDirectory(const InstructionSet isa, std::string* filename) { in InsertIsaDirectory() argument
1361 size_t pos = filename->rfind('/'); in InsertIsaDirectory()
1362 CHECK_NE(pos, std::string::npos) << *filename << " " << isa; in InsertIsaDirectory()
1363 filename->insert(pos, "/", 1); in InsertIsaDirectory()
1364 filename->insert(pos + 1, GetInstructionSetString(isa)); in InsertIsaDirectory()
1370 std::string filename(location); in GetSystemImageFilename() local
1371 InsertIsaDirectory(isa, &filename); in GetSystemImageFilename()
1372 return filename; in GetSystemImageFilename()
Doat_file.h55 static OatFile* Open(const std::string& filename,
284 explicit OatFile(const std::string& filename, bool executable);
/art/runtime/native/
Ddalvik_system_DexFile.cc301 static jint GetDexOptNeeded(JNIEnv* env, const char* filename, in GetDexOptNeeded() argument
304 if ((filename == nullptr) || !OS::FileExists(filename)) { in GetDexOptNeeded()
305 LOG(ERROR) << "DexFile_getDexOptNeeded file '" << filename << "' does not exist"; in GetDexOptNeeded()
307 const char* message = (filename == nullptr) ? "<empty file name>" : filename; in GetDexOptNeeded()
323 OatFileAssistant oat_file_assistant(filename, target_instruction_set, false, pkgname); in GetDexOptNeeded()
355 ScopedUtfChars filename(env, javaFilename); in DexFile_getDexOptNeeded() local
367 return GetDexOptNeeded(env, filename.c_str(), pkgname.c_str(), in DexFile_getDexOptNeeded()
374 ScopedUtfChars filename(env, javaFilename); in DexFile_isDexOptNeeded() local
375 jint status = GetDexOptNeeded(env, filename.c_str(), nullptr /* pkgname */, in DexFile_isDexOptNeeded()
Djava_lang_Runtime.cc72 ScopedUtfChars filename(env, javaFilename); in Runtime_nativeLoad() local
73 if (filename.c_str() == nullptr) { in Runtime_nativeLoad()
82 bool success = vm->LoadNativeLibrary(env, filename.c_str(), javaLoader, &error_msg); in Runtime_nativeLoad()
Ddalvik_system_VMDebug.cc211 std::string filename; in VMDebug_dumpHprofData() local
217 filename = chars.c_str(); in VMDebug_dumpHprofData()
219 filename = "[fd]"; in VMDebug_dumpHprofData()
232 hprof::DumpHeap(filename.c_str(), fd, false); in VMDebug_dumpHprofData()
/art/cmdline/
Dcmdline.h42 std::string* filename) { in LocationToFilename() argument
73 *filename = system_filename; in LocationToFilename()
76 *filename = cache_filename; in LocationToFilename()
153 const char* filename = output_name_.c_str(); in Parse() local
154 out_.reset(new std::ofstream(filename)); in Parse()
156 fprintf(stderr, "Failed to open output filename %s\n", filename); in Parse()
/art/test/802-deoptimization/src/
DDeoptimizationController.java82 public static void startMethodTracing(String filename, int bufferSize, int flags, in startMethodTracing() argument
84 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled, in startMethodTracing()
/art/runtime/hprof/
Dhprof.h24 void DumpHeap(const char* filename, int fd, bool direct_to_ddms);
/art/compiler/dwarf/
Ddebug_line_opcode_writer.h135 void DefineFile(const char* filename, in DefineFile() argument
140 strlen(filename) + 1 + in DefineFile()
148 this->PushString(filename); in DefineFile()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DDexRandomAccessFile.java46 public DexRandomAccessFile(String filename, String mode) in DexRandomAccessFile() argument
48 super(filename, mode); in DexRandomAccessFile()
/art/test/099-vmdebug/
Dexpected.txt14 Test tracing with empty filename
/art/test/099-vmdebug/src/
DMain.java230 public static void startMethodTracing(String filename, int bufferSize, int flags, in startMethodTracing() argument
232 startMethodTracingMethod.invoke(null, filename, bufferSize, flags, samplingEnabled, in startMethodTracing()
/art/test/134-nodex2oat-nofallback/
Dexpected.txt23 …/test-12345/x86/134-nodex2oat-nofallback.odex (error Failed to open oat filename for reading: No s…
54 …/test-12345/x86/134-nodex2oat-nofallback.odex (error Failed to open oat filename for reading: No s…

12