Merge "Remove getSfInstance from InputConsumerController" into tm-dev am: 4700294c96
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16997203 Change-Id: Iab503712c250a158d4397f2b762e0ff5c46053c6
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
package com.android.systemui.shared.system;
|
package com.android.systemui.shared.system;
|
||||||
|
|
||||||
import static android.view.Display.DEFAULT_DISPLAY;
|
import static android.view.Display.DEFAULT_DISPLAY;
|
||||||
import static android.view.WindowManager.INPUT_CONSUMER_PIP;
|
|
||||||
import static android.view.WindowManager.INPUT_CONSUMER_RECENTS_ANIMATION;
|
import static android.view.WindowManager.INPUT_CONSUMER_RECENTS_ANIMATION;
|
||||||
|
|
||||||
import android.os.Binder;
|
import android.os.Binder;
|
||||||
@@ -137,14 +136,6 @@ public class InputConsumerController {
|
|||||||
* Registers the input consumer.
|
* Registers the input consumer.
|
||||||
*/
|
*/
|
||||||
public void registerInputConsumer() {
|
public void registerInputConsumer() {
|
||||||
registerInputConsumer(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers the input consumer.
|
|
||||||
* @param withSfVsync the flag set using sf vsync signal or no
|
|
||||||
*/
|
|
||||||
public void registerInputConsumer(boolean withSfVsync) {
|
|
||||||
if (mInputEventReceiver == null) {
|
if (mInputEventReceiver == null) {
|
||||||
final InputChannel inputChannel = new InputChannel();
|
final InputChannel inputChannel = new InputChannel();
|
||||||
try {
|
try {
|
||||||
@@ -154,7 +145,7 @@ public class InputConsumerController {
|
|||||||
Log.e(TAG, "Failed to create input consumer", e);
|
Log.e(TAG, "Failed to create input consumer", e);
|
||||||
}
|
}
|
||||||
mInputEventReceiver = new InputEventReceiver(inputChannel, Looper.myLooper(),
|
mInputEventReceiver = new InputEventReceiver(inputChannel, Looper.myLooper(),
|
||||||
withSfVsync ? Choreographer.getSfInstance() : Choreographer.getInstance());
|
Choreographer.getInstance());
|
||||||
if (mRegistrationListener != null) {
|
if (mRegistrationListener != null) {
|
||||||
mRegistrationListener.onRegistrationChanged(true /* isRegistered */);
|
mRegistrationListener.onRegistrationChanged(true /* isRegistered */);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user