Home
last modified time | relevance | path

Searched refs:mHistoryDir (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsHistoryTest.java51 private File mHistoryDir; field in BatteryStatsHistoryTest
58 mHistoryDir = new File(mSystemDir, BatteryStatsHistory.HISTORY_DIR); in setUp()
59 String[] files = mHistoryDir.list(); in setUp()
62 new File(mHistoryDir, files[i]).delete(); in setUp()
65 mHistoryDir.delete(); in setUp()
143 final File expectedFile = new File(mHistoryDir, file); in verifyActiveFile()
153 new File(mHistoryDir, fileList.get(i) + ".bin"); in verifyFileNumbers()
159 assertFalse(new File(mHistoryDir, file).exists()); in verifyFileDeleted()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsHistory.java65 private final File mHistoryDir; field in BatteryStatsHistory
112 mHistoryDir = new File(systemDir, HISTORY_DIR); in BatteryStatsHistory()
113 mHistoryDir.mkdirs(); in BatteryStatsHistory()
114 if (!mHistoryDir.exists()) { in BatteryStatsHistory()
115 Slog.wtf(TAG, "HistoryDir does not exist:" + mHistoryDir.getPath()); in BatteryStatsHistory()
120 mHistoryDir.listFiles(new FilenameFilter() { in BatteryStatsHistory()
156 mHistoryDir = null; in BatteryStatsHistory()
178 new File(mHistoryDir, num + FILE_SUFFIX)); in getFile()
420 final StatFs stats = new StatFs(mHistoryDir.getAbsolutePath()); in hasFreeDiskSpace()