Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efeee4ff authored by Helen Cheuk's avatar Helen Cheuk Committed by Android (Google) Code Review
Browse files

Merge "[Contextual Edu] Added methods in aidl for updating edu data" into main

parents a261fff1 c978f275
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -172,5 +172,10 @@ interface ISystemUiProxy {
     */
    oneway void onImeSwitcherLongPress() = 57;

    // Next id = 58
    /**
     * Updates contextual education stats when target gesture type is triggered.
     */
    oneway void updateContextualEduStats(boolean isTrackpadGesture, String gestureType) = 58;

    // Next id = 59
}
+2 −2
Original line number Diff line number Diff line
@@ -1058,8 +1058,6 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
                mEdgeBackPlugin.setIsLeftPanel(mIsOnLeftEdge);
                mEdgeBackPlugin.onMotionEvent(ev);
                dispatchToBackAnimation(ev);
                mOverviewProxyService.updateContextualEduStats(mIsTrackpadThreeFingerSwipe,
                        GestureType.BACK);
            }
            if (mLogGesture || mIsTrackpadThreeFingerSwipe) {
                mDownPoint.set(ev.getX(), ev.getY());
@@ -1136,6 +1134,8 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack
                        if (mAllowGesture) {
                            if (mBackAnimation != null) {
                                mBackAnimation.onThresholdCrossed();
                                mOverviewProxyService.updateContextualEduStats(
                                        mIsTrackpadThreeFingerSwipe, GestureType.BACK);
                            } else {
                                pilferPointers();
                            }
+7 −0
Original line number Diff line number Diff line
@@ -332,6 +332,13 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis
                    KeyButtonView.NavBarButtonEvent.NAVBAR_IME_SWITCHER_BUTTON_LONGPRESS);
        }

        @Override
        public void updateContextualEduStats(boolean isTrackpadGesture, String gestureType) {
            verifyCallerAndClearCallingIdentityPostMain("updateContextualEduStats",
                    () -> mHandler.post(() -> OverviewProxyService.this.updateContextualEduStats(
                            isTrackpadGesture, GestureType.valueOf(gestureType))));
        }

        @Override
        public void setHomeRotationEnabled(boolean enabled) {
            verifyCallerAndClearCallingIdentityPostMain("setHomeRotationEnabled", () ->