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

Commit a7a9154f authored by Samuel Fufa's avatar Samuel Fufa Committed by android-build-team Robot
Browse files

Switch to new protocol for hybrid hotseat

- create predictor from items in bgModel instead of scanning views
- Launcher no longer checks for duplicates before sending pin/unpin events
- sending cached items from last prediction to reduce UI shuffle
- Switch to using UserCache to persist and read ComponentKey

Bug: 148814143
Bug: 156413231
Bug: 156200931
Change-Id: Ide6330bed8eb7f0c6fbec1d1ac21e7f67a9b2be2
(cherry picked from commit d12d6ab9)
(cherry picked from commit fa369310e2108a6e5915b5873d3bab16482213fd)
parent 26a58cac
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26,5 +26,7 @@
  <string name="main_process_initializer_class" translatable="false">com.android.quickstep.QuickstepProcessInitializer</string>

  <string name="user_event_dispatcher_class" translatable="false">com.android.quickstep.logging.UserEventDispatcherAppPredictionExtension</string>

  <string name="prediction_model_class" translatable="false">com.android.launcher3.hybridhotseat.HotseatPredictionModel</string>
</resources>
+69 −216

File changed.

Preview size limit exceeded, changes collapsed.

+136 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@
    <string name="app_launch_tracker_class" translatable="false"></string>
    <string name="test_information_handler_class" translatable="false"></string>
    <string name="launcher_activity_logic_class" translatable="false"></string>
    <string name="prediction_model_class" translatable="false"></string>

    <!-- View ID to use for QSB widget -->
    <item type="id" name="qsb_widget" />
+12 −0
Original line number Diff line number Diff line
@@ -110,6 +110,18 @@ public interface DropTarget {

            return res;
        }


        /**
         * This is used to determine if an object is dropped at a different location than it was
         * dragged from
         */
        public boolean isMoved() {
            return dragInfo.cellX != originalDragInfo.cellX
                    || dragInfo.cellY != originalDragInfo.cellY
                    || dragInfo.screenId != originalDragInfo.screenId
                    || dragInfo.container != originalDragInfo.container;
        }
    }

    /**
Loading