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));
        }
        ......
    }
相关推荐
城东米粉儿13 小时前
Android MediaPlayer 笔记
android
Jony_14 小时前
Android 启动优化方案
android
阿巴斯甜14 小时前
Android studio 报错:Cause: error=86, Bad CPU type in executable
android
张小潇14 小时前
AOSP15 Input专题InputReader源码分析
android
_小马快跑_18 小时前
Kotlin | 协程调度器选择:何时用CoroutineScope配置,何时用launch指定?
android
_小马快跑_18 小时前
Kotlin | 从SparseArray、ArrayMap的set操作符看类型检查的不同
android
_小马快跑_18 小时前
Android | 为什么有了ArrayMap还要再设计SparseArray?
android
_小马快跑_18 小时前
Android TextView图标对齐优化:使用LayerList精准控制drawable位置
android
_小马快跑_18 小时前
Kotlin协程并发控制:多线程环境下的顺序执行
android
_小马快跑_18 小时前
Kotlin协程异常捕获陷阱:try-catch捕获异常失败了?
android