Log hinge angle during unfold animation

This makes the received hinge angle always available in traces.

Test: Manual
Bug: 278049876
Change-Id: I3b23836143c40ee52d07a76e632079beeec1527a
This commit is contained in:
Nicolo' Mazzucato
2023-04-13 14:24:01 +00:00
parent 6218576ef9
commit 4c755caf74

View File

@@ -122,8 +122,8 @@ constructor(
"lastHingeAngle: $lastHingeAngle, " +
"lastHingeAngleBeforeTransition: $lastHingeAngleBeforeTransition"
)
Trace.setCounter("hinge_angle", angle.toLong())
}
Trace.setCounter("DeviceFoldStateProvider#onHingeAngle", angle.toLong())
val currentDirection =
if (angle < lastHingeAngle) FOLD_UPDATE_START_CLOSING else FOLD_UPDATE_START_OPENING