Only count EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT in STATE_ACTIVE

The design philosophy of EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT is
- When device in STATE_ACTIVE
- Rotate will automatically exit OHM

We only count when CUJ:
User trigger OHM -> Rotate -> Exit OHM

But bypass the CUJ:
No trigger OHM -> Rotate -> no action

Test: atest SystemUITests
Bug: 239654147
Change-Id: I2e73f29f4edd77998e015db960430f2b3a768349
This commit is contained in:
Bill Lin
2022-07-20 15:02:54 +08:00
parent 60135eb28b
commit af031b69a2

View File

@@ -675,9 +675,12 @@ public class OneHandedController implements RemoteCallable<OneHandedController>,
return;
}
if (mState.getState() == STATE_ACTIVE) {
mOneHandedUiEventLogger.writeEvent(
OneHandedUiEventLogger.EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT);
}
mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation, wct);
mOneHandedUiEventLogger.writeEvent(
OneHandedUiEventLogger.EVENT_ONE_HANDED_TRIGGER_ROTATION_OUT);
}
/**