Searched refs:traceFile (Results 1 – 6 of 6) sorted by relevance
/frameworks/native/services/surfaceflinger/Tracing/tools/ |
D | LayerTraceGenerator.cpp | 51 bool LayerTraceGenerator::generate(const perfetto::protos::TransactionTraceFile& traceFile, in generate() argument 61 if (traceFile.entry_size() == 0) { in generate() 79 ALOGD("Generating %d transactions...", traceFile.entry_size()); in generate() 80 for (int i = 0; i < traceFile.entry_size(); i++) { in generate() 82 perfetto::protos::TransactionTraceEntry entry = traceFile.entry(i); in generate() 85 i, traceFile.entry_size(), entry.elapsed_realtime_nanos(), entry.vsync_id(), in generate() 167 if (!onlyLastEntry || (i == traceFile.entry_size() - 1)) { in generate()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | TraceBuffer.java | 162 public synchronized void writeTraceToFile(File traceFile, S encapsulatingProto) in writeTraceToFile() argument 164 traceFile.delete(); in writeTraceToFile() 165 try (OutputStream os = new FileOutputStream(traceFile)) { in writeTraceToFile() 166 traceFile.setReadable(true /* readable */, false /* ownerOnly */); in writeTraceToFile()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppExitInfoTracker.java | 1098 final File traceFile, final long startOff, final long endOff) { in scheduleLogAnrTrace() argument 1101 traceFile, startOff, endOff)); in scheduleLogAnrTrace() 1109 final File traceFile, final long startOff, final long endOff) { in handleLogAnrTrace() argument 1110 if (!traceFile.exists() || ArrayUtils.isEmpty(packageList)) { in handleLogAnrTrace() 1113 final long size = traceFile.length(); in handleLogAnrTrace() 1119 final File outFile = new File(mProcExitStoreDir, traceFile.getName() in handleLogAnrTrace() 1122 if (copyToGzFile(traceFile, outFile, startOff, length)) { in handleLogAnrTrace() 1209 final File traceFile = info.getTraceFile(); in pruneAnrTracesIfNecessaryLocked() local 1210 if (traceFile != null) { in pruneAnrTracesIfNecessaryLocked() 1211 allFiles.remove(traceFile.getName()); in pruneAnrTracesIfNecessaryLocked() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | ApplicationExitInfoTest.java | 796 final File traceFile = new File(mContext.getFilesDir(), "anr_original.txt"); in testApplicationExitInfo() local 800 createRandomFile(traceFile, traceSize); in testApplicationExitInfo() 801 assertEquals(traceSize, traceFile.length()); in testApplicationExitInfo() 803 traceFile, traceStart, traceEnd); in testApplicationExitInfo() local 832 verifyTraceFile(traceFile, traceStart, info.getTraceFile(), 0, traceEnd - traceStart); in testApplicationExitInfo() 833 traceFile.delete(); in testApplicationExitInfo() 968 private static void verifyTraceFile(File originFile, int originStart, File traceFile, in verifyTraceFile() argument 971 assertTrue(traceFile.exists()); in verifyTraceFile() 973 try (GZIPInputStream traceIn = new GZIPInputStream(new FileInputStream(traceFile)); in verifyTraceFile()
|
/frameworks/native/cmds/dumpstate/tests/ |
D | dumpstate_test.cpp | 1011 for (const auto traceFile : uiTraces) { in TEST_F() local 1012 std::system(("rm -f " + traceFile.string()).c_str()); in TEST_F() 1013 EXPECT_FALSE(std::filesystem::exists(traceFile)) << traceFile << " was not deleted."; in TEST_F() 1017 EXPECT_TRUE(std::filesystem::exists(traceFile)) << traceFile << " was not created."; in TEST_F()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationExitInfo.java | 1077 public void setTraceFile(final File traceFile) { in setTraceFile() argument 1078 mTraceFile = traceFile; in setTraceFile()
|