Home
last modified time | relevance | path

Searched refs:dayStats (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DAmbientBrightnessDayStatsTest.java73 AmbientBrightnessDayStats dayStats = new AmbientBrightnessDayStats(LOCAL_DATE, in testAmbientBrightnessDayStatsAdd() local
75 dayStats.log(0, 1); in testAmbientBrightnessDayStatsAdd()
76 dayStats.log(0.5f, 1.5f); in testAmbientBrightnessDayStatsAdd()
77 dayStats.log(50, 12.5f); in testAmbientBrightnessDayStatsAdd()
78 dayStats.log(2000, 1.24f); in testAmbientBrightnessDayStatsAdd()
79 dayStats.log(-10, 0.5f); in testAmbientBrightnessDayStatsAdd()
80 assertEquals(4, dayStats.getStats().length); in testAmbientBrightnessDayStatsAdd()
81 assertEquals(2.5f, dayStats.getStats()[0], 0); in testAmbientBrightnessDayStatsAdd()
82 assertEquals(0, dayStats.getStats()[1], 0); in testAmbientBrightnessDayStatsAdd()
83 assertEquals(12.5f, dayStats.getStats()[2], 0); in testAmbientBrightnessDayStatsAdd()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java78 private void populateDayStats(SyncStorageEngine.DayStats[] dayStats) { in populateDayStats() argument
80 for (int i = 0; i < dayStats.length; i++) { in populateDayStats()
86 dayStats[i] = ds; in populateDayStats()
90 private void verifyDayStats(SyncStorageEngine.DayStats[] dayStats, in verifyDayStats() argument
92 assertEquals(dayStatsOther.length, dayStats.length); in verifyDayStats()
94 final SyncStorageEngine.DayStats ds = dayStats[i]; in verifyDayStats()
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java155 AmbientBrightnessDayStats dayStats = getOrCreateDayStats(userStats, localDate); in log() local
156 dayStats.log(ambientBrightness, durationSec); in log()
271 for (AmbientBrightnessDayStats dayStats : entry.getValue()) { in toString()
274 builder.append(dayStats).append("\n"); in toString()
295 AmbientBrightnessDayStats dayStats = new AmbientBrightnessDayStats(localDate, in getOrCreateDayStats() local
300 userStats.offer(dayStats); in getOrCreateDayStats()
301 return dayStats; in getOrCreateDayStats()