From 2148254452c76458a6531c23df1977be9350e3c2 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 5 May 2020 16:34:17 -0700 Subject: [PATCH] Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it Bug: 155816922 Test: Verified with Launcher changes Change-Id: I45920f8730740c819c63878857c3b5acbe12097a --- .../shared/recents/IOverviewProxy.aidl | 6 ++ .../recents/OverviewProxyService.java | 21 +++- .../systemui/stackdivider/DividerView.java | 100 +++++------------- 3 files changed, 54 insertions(+), 73 deletions(-) diff --git a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl index 0350f2d475696..114472b15f024 100644 --- a/packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl +++ b/packages/SystemUI/shared/src/com/android/systemui/shared/recents/IOverviewProxy.aidl @@ -16,6 +16,7 @@ package com.android.systemui.shared.recents; +import android.graphics.Rect; import android.graphics.Region; import android.os.Bundle; import android.view.MotionEvent; @@ -69,4 +70,9 @@ oneway interface IOverviewProxy { * Sent when some system ui state changes. */ void onSystemUiStateChanged(int stateFlags) = 16; + + /** + * Sent when the split screen is resized + */ + void onSplitScreenSecondaryBoundsChanged(in Rect bounds, in Rect insets) = 17; } diff --git a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java index 34a9e28b943a1..b272b60f35939 100644 --- a/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +++ b/packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java @@ -842,7 +842,26 @@ public class OverviewProxyService implements CallbackController