Home
last modified time | relevance | path

Searched refs:DiskStatsFileLogger (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DDiskStatsFileLoggerTest.java58 DiskStatsFileLogger logger = new DiskStatsFileLogger( in testEmptyStorage()
64 assertThat(output.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyStorage()
65 assertThat(output.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyStorage()
66 assertThat(output.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyStorage()
67 assertThat(output.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyStorage()
68 assertThat(output.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyStorage()
69 assertThat(output.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyStorage()
70 assertThat(output.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage()
71 assertThat(output.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyStorage()
73 output.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY).length()).isEqualTo(0L); in testEmptyStorage()
[all …]
DDiskStatsLoggingServiceTest.java104 assertThat(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)).isEqualTo(0L); in testEmptyLog()
105 assertThat(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)).isEqualTo(0L); in testEmptyLog()
106 assertThat(json.getLong(DiskStatsFileLogger.AUDIO_KEY)).isEqualTo(0L); in testEmptyLog()
107 assertThat(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)).isEqualTo(0L); in testEmptyLog()
108 assertThat(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)).isEqualTo(0L); in testEmptyLog()
109 assertThat(json.getLong(DiskStatsFileLogger.MISC_KEY)).isEqualTo(0L); in testEmptyLog()
110 assertThat(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)).isEqualTo(0L); in testEmptyLog()
111 assertThat(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)).isEqualTo(0L); in testEmptyLog()
113 json.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY).length()).isEqualTo(0L); in testEmptyLog()
114 assertThat(json.getJSONArray(DiskStatsFileLogger.APP_SIZES_KEY).length()).isEqualTo(0L); in testEmptyLog()
[all …]
/frameworks/base/services/core/java/com/android/server/
DDiskStatsService.java38 import com.android.server.storage.DiskStatsFileLogger;
214 pw.println(json.getLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY)); in reportCachedValues()
216 pw.println(json.getLong(DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY)); in reportCachedValues()
218 pw.println(json.getLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY)); in reportCachedValues()
220 pw.println(json.getLong(DiskStatsFileLogger.PHOTOS_KEY)); in reportCachedValues()
222 pw.println(json.getLong(DiskStatsFileLogger.VIDEOS_KEY)); in reportCachedValues()
224 pw.println(json.getLong(DiskStatsFileLogger.AUDIO_KEY)); in reportCachedValues()
226 pw.println(json.getLong(DiskStatsFileLogger.DOWNLOADS_KEY)); in reportCachedValues()
228 pw.println(json.getLong(DiskStatsFileLogger.SYSTEM_KEY)); in reportCachedValues()
230 pw.println(json.getLong(DiskStatsFileLogger.MISC_KEY)); in reportCachedValues()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DDiskStatsFileLogger.java49 public class DiskStatsFileLogger { class
75 public DiskStatsFileLogger(MeasurementResult result, MeasurementResult downloadsResult, in DiskStatsFileLogger() method in DiskStatsFileLogger
DDiskStatsLoggingService.java187 DiskStatsFileLogger logger = new DiskStatsFileLogger(mainCategories, downloads, stats, in logToFile()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java169 import com.android.server.storage.DiskStatsFileLogger;
2342 long cache_time = json.optLong(DiskStatsFileLogger.LAST_QUERY_TIMESTAMP_KEY, -1L);
2343 JSONArray pkg_names = json.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY);
2344 JSONArray app_sizes = json.getJSONArray(DiskStatsFileLogger.APP_SIZES_KEY);
2345 JSONArray app_data_sizes = json.getJSONArray(DiskStatsFileLogger.APP_DATA_KEY);
2346 JSONArray app_cache_sizes = json.getJSONArray(DiskStatsFileLogger.APP_CACHES_KEY);
2387 DiskStatsFileLogger.LAST_QUERY_TIMESTAMP_KEY, /* fallback */ -1L);
2393 DiskStatsFileLogger.APP_SIZE_AGG_KEY, /* fallback */ -1L))
2402 DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY, /* fallback */ -1L))
2411 DiskStatsFileLogger.APP_CACHE_AGG_KEY, /* fallback */ -1L))
[all …]
/frameworks/base/services/
Dart-profile31002 PLcom/android/server/storage/DiskStatsFileLogger;-><init>(Lcom/android/server/storage/FileCollector…
31003 HPLcom/android/server/storage/DiskStatsFileLogger;->addAppsToJson(Lorg/json/JSONObject;)V
31004 PLcom/android/server/storage/DiskStatsFileLogger;->dumpToFile(Ljava/io/File;)V
31005 HPLcom/android/server/storage/DiskStatsFileLogger;->filterOnlyPrimaryUser()Landroid/util/ArrayMap;
31006 PLcom/android/server/storage/DiskStatsFileLogger;->getJsonRepresentation()Lorg/json/JSONObject;
44987 Lcom/android/server/storage/DiskStatsFileLogger;