Searched refs:headroom (Results 1 – 4 of 4) sorted by relevance
150 float headroom = mPowerManager.getThermalHeadroom(0); in testGetThermalHeadroom() local152 if (Float.isNaN(headroom)) { in testGetThermalHeadroom()155 assertTrue("Expected non-negative headroom", headroom >= 0.0f); in testGetThermalHeadroom()156 assertTrue("Expected reasonably small headroom", headroom < 10.0f); in testGetThermalHeadroom()160 headroom = mPowerManager.getThermalHeadroom(5); in testGetThermalHeadroom()161 assertFalse("Expected data to still be available", Float.isNaN(headroom)); in testGetThermalHeadroom()162 assertTrue("Expected non-negative headroom", headroom >= 0.0f); in testGetThermalHeadroom()163 assertTrue("Expected reasonably small headroom", headroom < 10.0f); in testGetThermalHeadroom()167 headroom = mPowerManager.getThermalHeadroom(5); in testGetThermalHeadroom()169 assertTrue("Abusive calls get rate limited", Float.isNaN(headroom)); in testGetThermalHeadroom()[all …]
294 float headroom = AThermal_getThermalHeadroom(ctx.mThermalMgr, 0); in testGetThermalHeadroom() local295 if (isnan(headroom)) { in testGetThermalHeadroom()301 if (headroom < 0.0f) { in testGetThermalHeadroom()303 headroom); in testGetThermalHeadroom()305 if (headroom >= 10.0f) { in testGetThermalHeadroom()306 return StringPrintf("Expected reasonably small (<10) headroom but got %2.2f", headroom); in testGetThermalHeadroom()336 float lastHeadroom = thresholds[0].headroom; in testGetThermalHeadroomThresholds()339 auto headroom = thresholds[i].headroom; in testGetThermalHeadroomThresholds() local341 if (!isnan(headroom)) { in testGetThermalHeadroomThresholds()342 if (status == AThermalStatus::ATHERMAL_STATUS_SEVERE && headroom != 1.0f) { in testGetThermalHeadroomThresholds()[all …]
2463 float headroom = getStableHdrSdrRatio(display); in testSetDesiredHdrHeadroom() local2465 assumeTrue(headroom > 1.02f); in testSetDesiredHdrHeadroom()2466 float targetHeadroom = 1.f + (headroom - 1.f) / 2; in testSetDesiredHdrHeadroom()
2060 float headroom = getStableHdrSdrRatio(display); in testSetDesiredHdrHeadroom() local2061 assumeTrue(headroom > 1.02f); in testSetDesiredHdrHeadroom()2062 float targetHeadroom = 1.f + (headroom - 1.f) / 2; in testSetDesiredHdrHeadroom()