Searched refs:traceFile (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/com/android/internal/util/ |
D | TraceBuffer.java | 159 public void writeTraceToFile(File traceFile, S encapsulatingProto) in writeTraceToFile() argument 162 traceFile.delete(); in writeTraceToFile() 163 try (OutputStream os = new FileOutputStream(traceFile)) { in writeTraceToFile() 164 traceFile.setReadable(true /* readable */, false /* ownerOnly */); in writeTraceToFile()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppExitInfoTracker.java | 1057 final File traceFile, final long startOff, final long endOff) { in scheduleLogAnrTrace() argument 1060 traceFile, startOff, endOff)); in scheduleLogAnrTrace() 1068 final File traceFile, final long startOff, final long endOff) { in handleLogAnrTrace() argument 1069 if (!traceFile.exists() || ArrayUtils.isEmpty(packageList)) { in handleLogAnrTrace() 1072 final long size = traceFile.length(); in handleLogAnrTrace() 1078 final File outFile = new File(mProcExitStoreDir, traceFile.getName() in handleLogAnrTrace() 1081 if (copyToGzFile(traceFile, outFile, startOff, length)) { in handleLogAnrTrace() 1168 final File traceFile = info.getTraceFile(); in pruneAnrTracesIfNecessaryLocked() local 1169 if (traceFile != null) { in pruneAnrTracesIfNecessaryLocked() 1170 allFiles.remove(traceFile.getName()); in pruneAnrTracesIfNecessaryLocked() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ApplicationExitInfoTest.java | 798 final File traceFile = new File(mContext.getFilesDir(), "anr_original.txt"); in testApplicationExitInfo() local 802 createRandomFile(traceFile, traceSize); in testApplicationExitInfo() 803 assertEquals(traceSize, traceFile.length()); in testApplicationExitInfo() 805 traceFile, traceStart, traceEnd); in testApplicationExitInfo() local 834 verifyTraceFile(traceFile, traceStart, info.getTraceFile(), 0, traceEnd - traceStart); in testApplicationExitInfo() 835 traceFile.delete(); in testApplicationExitInfo() 970 private static void verifyTraceFile(File originFile, int originStart, File traceFile, in verifyTraceFile() argument 973 assertTrue(traceFile.exists()); in verifyTraceFile() 975 try (GZIPInputStream traceIn = new GZIPInputStream(new FileInputStream(traceFile)); in verifyTraceFile()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationExitInfo.java | 900 public void setTraceFile(final File traceFile) { in setTraceFile() argument 901 mTraceFile = traceFile; in setTraceFile()
|