Searched refs:DiskStatsFileLogger (Results 1 – 7 of 7) sorted by relevance
58 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 …]
104 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 …]
38 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 …]
187 DiskStatsFileLogger logger = new DiskStatsFileLogger(mainCategories, downloads, stats, in logToFile()
49 public class DiskStatsFileLogger { class75 public DiskStatsFileLogger(MeasurementResult result, MeasurementResult downloadsResult, in DiskStatsFileLogger() method in DiskStatsFileLogger
146 import com.android.server.storage.DiskStatsFileLogger;1458 long cache_time = json.optLong(DiskStatsFileLogger.LAST_QUERY_TIMESTAMP_KEY, -1L); in pullAppSize()1459 JSONArray pkg_names = json.getJSONArray(DiskStatsFileLogger.PACKAGE_NAMES_KEY); in pullAppSize()1460 JSONArray app_sizes = json.getJSONArray(DiskStatsFileLogger.APP_SIZES_KEY); in pullAppSize()1461 JSONArray app_data_sizes = json.getJSONArray(DiskStatsFileLogger.APP_DATA_KEY); in pullAppSize()1462 JSONArray app_cache_sizes = json.getJSONArray(DiskStatsFileLogger.APP_CACHES_KEY); in pullAppSize()1490 long cacheTime = json.optLong(DiskStatsFileLogger.LAST_QUERY_TIMESTAMP_KEY, -1L); in pullCategorySize()1494 e.writeLong(json.optLong(DiskStatsFileLogger.APP_SIZE_AGG_KEY, -1L)); in pullCategorySize()1500 e.writeLong(json.optLong(DiskStatsFileLogger.APP_DATA_SIZE_AGG_KEY, -1L)); in pullCategorySize()1506 e.writeLong(json.optLong(DiskStatsFileLogger.APP_CACHE_AGG_KEY, -1L)); in pullCategorySize()[all …]
13280 PLcom/android/server/storage/DiskStatsFileLogger;->addAppsToJson(Lorg/json/JSONObject;)V13281 PLcom/android/server/storage/DiskStatsFileLogger;->filterOnlyPrimaryUser()Landroid/util/ArrayMap;13282 PLcom/android/server/storage/DiskStatsFileLogger;->getJsonRepresentation()Lorg/json/JSONObject;