Searched refs:mHistoryDir (Results 1 – 2 of 2) sorted by relevance
51 private File mHistoryDir; field in BatteryStatsHistoryTest58 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()
65 private final File mHistoryDir; field in BatteryStatsHistory112 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()