Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +6 −1 Original line number Diff line number Diff line Loading @@ -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 } packages/SystemUI/src/com/android/systemui/navigationbar/gestural/EdgeBackGestureHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -1136,6 +1134,8 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack if (mAllowGesture) { if (mBackAnimation != null) { mBackAnimation.onThresholdCrossed(); mOverviewProxyService.updateContextualEduStats( mIsTrackpadThreeFingerSwipe, GestureType.BACK); } else { pilferPointers(); } Loading packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −0 Original line number Diff line number Diff line Loading @@ -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", () -> Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +6 −1 Original line number Diff line number Diff line Loading @@ -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 }
packages/SystemUI/src/com/android/systemui/navigationbar/gestural/EdgeBackGestureHandler.java +2 −2 Original line number Diff line number Diff line Loading @@ -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()); Loading Loading @@ -1136,6 +1134,8 @@ public class EdgeBackGestureHandler implements PluginListener<NavigationEdgeBack if (mAllowGesture) { if (mBackAnimation != null) { mBackAnimation.onThresholdCrossed(); mOverviewProxyService.updateContextualEduStats( mIsTrackpadThreeFingerSwipe, GestureType.BACK); } else { pilferPointers(); } Loading
packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +7 −0 Original line number Diff line number Diff line Loading @@ -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", () -> Loading