Merge "Move binder call to bg thread" into tm-qpr-dev am: a5db90932c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19150693 Change-Id: I166ff2100fb509c5ad7eaacb348c45ab466413fe Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -626,6 +626,7 @@ public class NavigationBar extends ViewController<NavigationBarView> implements
|
|||||||
}
|
}
|
||||||
}, mainExecutor, bgExecutor);
|
}, mainExecutor, bgExecutor);
|
||||||
|
|
||||||
|
mView.setBackgroundExecutor(bgExecutor);
|
||||||
mView.setEdgeBackGestureHandler(mEdgeBackGestureHandler);
|
mView.setEdgeBackGestureHandler(mEdgeBackGestureHandler);
|
||||||
mNavBarMode = mNavigationModeController.addListener(mModeChangedListener);
|
mNavBarMode = mNavigationModeController.addListener(mModeChangedListener);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ import com.android.wm.shell.pip.Pip;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import java.util.concurrent.Executor;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
|
|
||||||
/** */
|
/** */
|
||||||
@@ -97,6 +98,8 @@ public class NavigationBarView extends FrameLayout {
|
|||||||
|
|
||||||
final static boolean ALTERNATE_CAR_MODE_UI = false;
|
final static boolean ALTERNATE_CAR_MODE_UI = false;
|
||||||
|
|
||||||
|
private Executor mBgExecutor;
|
||||||
|
|
||||||
// The current view is one of mHorizontal or mVertical depending on the current configuration
|
// The current view is one of mHorizontal or mVertical depending on the current configuration
|
||||||
View mCurrentView = null;
|
View mCurrentView = null;
|
||||||
private View mVertical;
|
private View mVertical;
|
||||||
@@ -349,6 +352,10 @@ public class NavigationBarView extends FrameLayout {
|
|||||||
notifyVerticalChangedListener(mIsVertical);
|
notifyVerticalChangedListener(mIsVertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setBackgroundExecutor(Executor bgExecutor) {
|
||||||
|
mBgExecutor = bgExecutor;
|
||||||
|
}
|
||||||
|
|
||||||
public void setTouchHandler(Gefingerpoken touchHandler) {
|
public void setTouchHandler(Gefingerpoken touchHandler) {
|
||||||
mTouchHandler = touchHandler;
|
mTouchHandler = touchHandler;
|
||||||
}
|
}
|
||||||
@@ -768,8 +775,8 @@ public class NavigationBarView extends FrameLayout {
|
|||||||
updateSlippery();
|
updateSlippery();
|
||||||
reloadNavIcons();
|
reloadNavIcons();
|
||||||
updateNavButtonIcons();
|
updateNavButtonIcons();
|
||||||
WindowManagerWrapper.getInstance().setNavBarVirtualKeyHapticFeedbackEnabled(
|
mBgExecutor.execute(() -> WindowManagerWrapper.getInstance()
|
||||||
!mShowSwipeUpUi);
|
.setNavBarVirtualKeyHapticFeedbackEnabled(!mShowSwipeUpUi));
|
||||||
getHomeButton().setAccessibilityDelegate(
|
getHomeButton().setAccessibilityDelegate(
|
||||||
mShowSwipeUpUi ? mQuickStepAccessibilityDelegate : null);
|
mShowSwipeUpUi ? mQuickStepAccessibilityDelegate : null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user