Android U 多任务启动分屏——SystemUI流程(更新中)

前文

Android U 多任务启动分屏------Launcher流程(下分屏)

前文说到通过ISplitScreen接口跨进程调用到了SystemUI进程,我们继续分析分屏在systemui中的实现。

wmshell实现分屏

实现ISplitScreen接口

代码路径:frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/SplitScreenController.java

java 复制代码
    /**
     * The interface for calls from outside the host process.
     */
    @BinderThread
    private static class ISplitScreenImpl extends ISplitScreen.Stub
            implements ExternalInterfaceBinder {
        ......
        @Override
        public void startTasks(int taskId1, @Nullable Bundle options1, int taskId2,
                @Nullable Bundle options2, @SplitPosition int splitPosition, float splitRatio,
                @Nullable RemoteTransition remoteTransition, InstanceId instanceId) {
            executeRemoteCallWithTaskPermission(mController, "startTasks",
                    (controller) -> controller.mStageCoordinator.startTasks(taskId1, options1,
                            taskId2, options2, splitPosition, splitRatio, remoteTransition,
                            instanceId));
        }
        ......
    }
相关推荐
erqi5 分钟前
Compose你入门吧
android
q***765612 分钟前
MySQL 中如何进行 SQL 调优
android·sql·mysql
zhanglinping61937 分钟前
MySQL——内置函数
android·数据库·mysql
m***787437 分钟前
mysql之字符串函数
android·数据库·mysql
w***71102 小时前
MySQL 事务的操作和四大特性
android·数据库·mysql
松叶似针3 小时前
Flutter三方库适配OpenHarmony【secure_application】— Android 端 FLAG_SECURE 实现分析
android·flutter
cjl_8520085 小时前
[MySQL] MySQL复合查询(多表查询、子查询)
android·mysql·adb
stevenzqzq5 小时前
Barrier的用法
android
城东米粉儿6 小时前
Android 窗口添加/删除流程 笔记
android
城东米粉儿6 小时前
Android Window 窗口动画原理
android