Home
last modified time | relevance | path

Searched refs:tracesFile (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DAnrController.java215 final File tracesFile = ActivityManagerService.dumpStackTraces(firstPids, in preDumpIfLockTooSlow() local
218 if (tracesFile != null) { in preDumpIfLockTooSlow()
219 tracesFile.renameTo(new File(tracesFile.getParent(), tracesFile.getName() + "_pre")); in preDumpIfLockTooSlow()
H A DActivityTaskManagerService.java5057 File tracesFile = null; in logAppTooSlow() local
5059 tracesFile = File.createTempFile("app_slow", null, tracesDir); in logAppTooSlow()
5069 FileOutputStream fos = new FileOutputStream(tracesFile); in logAppTooSlow()
5075 FileUtils.setPermissions(tracesFile.getPath(), 0666, -1, -1); // -rw-rw-rw- in logAppTooSlow()
5077 Slog.w(TAG, "Unable to prepare slow app traces file: " + tracesFile, e); in logAppTooSlow()
5084 dumpStackTraces(tracesFile.getAbsolutePath(), firstPids, null, null); in logAppTooSlow()
5101 tracesFile.renameTo(curTracesFile); in logAppTooSlow()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DProcessErrorStateRecord.java386 File tracesFile = ActivityManagerService.dumpStackTraces(firstPids, in appNotResponding() local
401 if (tracesFile == null) { in appNotResponding()
407 pid, mApp.uid, mApp.getPackageList(), tracesFile, offsets[0], offsets[1]); in appNotResponding()
480 parentShortComponentName, parentPr, null, report.toString(), tracesFile, in appNotResponding()
H A DActivityManagerService.java3253 File tracesFile; in dumpStackTraces() local
3255 tracesFile = createAnrDumpFile(tracesDir); in dumpStackTraces()
3266 try (FileOutputStream fos = new FileOutputStream(tracesFile, true)) { in dumpStackTraces()
3275 tracesFile.getAbsolutePath(), firstPids, nativePids, extraPids); in dumpStackTraces()
3284 return tracesFile; in dumpStackTraces()
3369 public static Pair<Long, Long> dumpStackTraces(String tracesFile, ArrayList<Integer> firstPids, in dumpStackTraces() argument
3372 Slog.i(TAG, "Dumping to " + tracesFile); in dumpStackTraces()
3396 tf = new File(tracesFile); in dumpStackTraces()
3401 final long timeTaken = dumpJavaTracesTombstoned(pid, tracesFile, in dumpStackTraces()
3428 pid, tracesFile, (int) (nativeDumpTimeoutMs / 1000)); in dumpStackTraces()
[all …]