google_battery: fix TTF estimates for TEMP-DEFEND

Use raw soc vs UI soc for the TTF estimate.
Needed when spoofing the 87%-90% range which has up to 13%
delta between UI and real level.

Bug: 171086376
Test: charge to full, discharge, check estimate
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I140f4f3c884c379a2f527610f0ccf28464f9230a
Signed-off-by: Ken Tsou <[email protected]>
(cherry picked from commit 0a32242c8b0a741fd4a3c102648c6a0de7a0ba95)
1 file changed