It's not at the hardware level, but Google pixel phones do some stuff like this: if you have an alarm set and you're charging overnight it'll charge to 80% then hold it there most of the night and give a quick blast up to 100% before your alarm goes off.