Home
last modified time | relevance | path

Searched refs:dayStats (Results 1 – 2 of 2) 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/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()