Merge "Removing unused SplitScreen bounds notification from systemUI" into tm-qpr-dev am: cafab986b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20378249 Change-Id: I99335291c6514399f94014cc07bd52fb8afe292c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -59,11 +59,6 @@ oneway interface IOverviewProxy {
|
|||||||
*/
|
*/
|
||||||
void onSystemUiStateChanged(int stateFlags) = 16;
|
void onSystemUiStateChanged(int stateFlags) = 16;
|
||||||
|
|
||||||
/**
|
|
||||||
* Sent when the split screen is resized
|
|
||||||
*/
|
|
||||||
void onSplitScreenSecondaryBoundsChanged(in Rect bounds, in Rect insets) = 17;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sent when suggested rotation button could be shown
|
* Sent when suggested rotation button could be shown
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -108,7 +108,6 @@ import java.io.PrintWriter;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.function.BiConsumer;
|
|
||||||
import java.util.function.Supplier;
|
import java.util.function.Supplier;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
@@ -470,8 +469,6 @@ public class OverviewProxyService extends CurrentUserTracker implements
|
|||||||
};
|
};
|
||||||
|
|
||||||
private final StatusBarWindowCallback mStatusBarWindowCallback = this::onStatusBarStateChanged;
|
private final StatusBarWindowCallback mStatusBarWindowCallback = this::onStatusBarStateChanged;
|
||||||
private final BiConsumer<Rect, Rect> mSplitScreenBoundsChangeListener =
|
|
||||||
this::notifySplitScreenBoundsChanged;
|
|
||||||
|
|
||||||
// This is the death handler for the binder from the launcher service
|
// This is the death handler for the binder from the launcher service
|
||||||
private final IBinder.DeathRecipient mOverviewServiceDeathRcpt
|
private final IBinder.DeathRecipient mOverviewServiceDeathRcpt
|
||||||
@@ -839,26 +836,6 @@ public class OverviewProxyService extends CurrentUserTracker implements
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Notifies the Launcher of split screen size changes
|
|
||||||
*
|
|
||||||
* @param secondaryWindowBounds Bounds of the secondary window including the insets
|
|
||||||
* @param secondaryWindowInsets stable insets received by the secondary window
|
|
||||||
*/
|
|
||||||
public void notifySplitScreenBoundsChanged(
|
|
||||||
Rect secondaryWindowBounds, Rect secondaryWindowInsets) {
|
|
||||||
try {
|
|
||||||
if (mOverviewProxy != null) {
|
|
||||||
mOverviewProxy.onSplitScreenSecondaryBoundsChanged(
|
|
||||||
secondaryWindowBounds, secondaryWindowInsets);
|
|
||||||
} else {
|
|
||||||
Log.e(TAG_OPS, "Failed to get overview proxy for split screen bounds.");
|
|
||||||
}
|
|
||||||
} catch (RemoteException e) {
|
|
||||||
Log.e(TAG_OPS, "Failed to call onSplitScreenSecondaryBoundsChanged()", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private final ScreenLifecycle.Observer mLifecycleObserver = new ScreenLifecycle.Observer() {
|
private final ScreenLifecycle.Observer mLifecycleObserver = new ScreenLifecycle.Observer() {
|
||||||
/**
|
/**
|
||||||
* Notifies the Launcher that screen turned on and ready to use
|
* Notifies the Launcher that screen turned on and ready to use
|
||||||
|
|||||||
Reference in New Issue
Block a user