Lines Matching refs:lib
318 def GetLibraryInfo(self, lib): argument
319 stdout = subprocess.check_output([symbol.ToolPath("llvm-readelf"), "-h", "-n", lib], text=True)
334 def GetLibPath(self, lib): argument
335 if lib in self.lib_to_path:
336 return self.lib_to_path[lib]
338 lib_path = self.FindLibPath(lib)
339 self.lib_to_path[lib] = lib_path
342 def FindLibPath(self, lib): argument
344 if os.path.isfile(symbol_dir + lib):
345 return lib
352 new_lib = lib.replace("/com.android.", "/com.google.android.")
358 if not lib.startswith("/data/local/tests/") and not lib.startswith("/data/local/tmp/"):
359 print("WARNING: Cannot find %s in symbol directory" % lib)
360 return lib
362 test_name = lib.rsplit("/", 1)[-1]
376 if lib.startswith("/data/local/tests/vendor/"):
399 print("WARNING: Cannot find %s in symbol directory" % lib)
400 return lib
467 lib = None
490 lib_name, lib = self.GetLibFromApk(apk, so_offset)
498 if not lib:
499 lib = area
504 basename = os.path.basename(lib).split("!")[-1]
505 lib = self.GetLibraryByBuildId(symbol.SYMBOLS_DIR, basename, build_id)
506 if not lib:
512 lib = self.GetLibPath(lib)
516 info = symbol.SymbolInformation(lib, code_addr)