[Connected Displays in Taskbar] Refactor TaskbarDelegate for Display Signals
Refactor the TaskbarDelegate to support multiple pass down displayId specific signals down to the taskbar level. Flag: EXEMPT not adding new behavior Bug: 376128251 Test: Manual Change-Id: I61aef4eb746d671be69eefeb15d876d48dd9a8fa
This commit is contained in:
1 parent
4f793a31d8
commit
29a430fc21
2 files changed
+32
-32
No files matched your search
@@ -342,36 +342,36 @@ public class TouchInteractionService extends Service {
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void checkNavBarModes() {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(tis ->
|
||||
executeForTaskbarManager(TaskbarManager::checkNavBarModes)
|
||||
));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void finishBarAnimations() {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(tis ->
|
||||
executeForTaskbarManager(TaskbarManager::finishBarAnimations)
|
||||
));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void touchAutoDim(boolean reset) {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(tis ->
|
||||
executeForTaskbarManager(taskbarManager -> taskbarManager.touchAutoDim(reset))
|
||||
));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void transitionTo(@BarTransitions.TransitionMode int barMode,
|
||||
boolean animate) {
|
||||
public void checkNavBarModes(int displayId) {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(tis ->
|
||||
executeForTaskbarManager(
|
||||
taskbarManager -> taskbarManager.transitionTo(barMode, animate))
|
||||
));
|
||||
taskbarManager -> taskbarManager.checkNavBarModes(displayId))));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void finishBarAnimations(int displayId) {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(
|
||||
tis -> executeForTaskbarManager(
|
||||
taskbarManager -> taskbarManager.finishBarAnimations(displayId))));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void touchAutoDim(int displayId, boolean reset) {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(
|
||||
tis -> executeForTaskbarManager(
|
||||
taskbarManager -> taskbarManager.touchAutoDim(displayId, reset))));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
@Override
|
||||
public void transitionTo(int displayId, @BarTransitions.TransitionMode int barMode,
|
||||
boolean animate) {
|
||||
MAIN_EXECUTOR.execute(() -> executeForTouchInteractionService(
|
||||
tis -> executeForTaskbarManager(
|
||||
taskbarManager -> taskbarManager.transitionTo(displayId, barMode,
|
||||
animate))));
|
||||
}
|
||||
|
||||
@BinderThread
|
||||
|
||||
Reference in new issue
Block a user