Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DTraceBuffer.java159 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/
DAppExitInfoTracker.java1057 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/
DApplicationExitInfoTest.java798 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/
DApplicationExitInfo.java900 public void setTraceFile(final File traceFile) { in setTraceFile() argument
901 mTraceFile = traceFile; in setTraceFile()