Ignore stay on/dim blanking inhibit modes in actdead state
Ignore stay on/dim blanking inhibit modes in actdead state

If user has set keep-display-on-while-charging or similar setting, the
display stays on also in actdead state. Depending on charger type and
extra drain caused by the display this can lead into battery actually
getting empty instead of charging.

Use common predicate functions for checking whether the inhibit modes
are applicable or not.

Do not apply stay on/dim inhibit modes in act dead state.

[mce] Ignore stay on/dim blanking inhibit modes in actdead state. Fixes JB#28966

android-808/mce,kimmoli/mce,spiiroin/mce,mlehtima/mce,kimmoli/mce,kimmoli/mce,android-808/mce,mikkoharju/mce,mikkoharju/mce,maikelwever/mce,android-808/mce,mikkoharju/mce,kimmoli/mce,spiiroin/mce,maikelwever/mce,spiiroin/mce,mikkoharju/mce,maikelwever/mce,mlehtima/mce,maikelwever/mce,mlehtima/mce,mlehtima/mce,spiiroin/mce,android-808/mce