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));
        }
        ......
    }
相关推荐
tangweiguo030519872 分钟前
(Kotlin)Android 高效底部导航方案:基于预定义 Menu 和 ViewPager2 的 Fragment 动态绑定实现
android·开发语言·kotlin
顾林海16 分钟前
Jetpack Pager 使用与原理解析
android·android jetpack
pengyu18 分钟前
系统化掌握Dart网络编程之Dio(一):筑基篇
android·flutter·dart
QING6181 小时前
Kotlin 操作符与集合/数组方法详解——新手指南
android·kotlin·app
张风捷特烈1 小时前
Flutter 伪 3D 绘制#1 | 三维空间
android·flutter
stringwu1 小时前
白话kotlin协程
android
QING6181 小时前
Kotlin 中 == 和 === 的区别
android·kotlin·app
林十一npc1 小时前
MySQL索引与视图综合应用示例解析
android·前端·mysql
QING6183 小时前
Kotlin containsValue用法及代码示例
android·kotlin·源码阅读
QING6183 小时前
Kotlin coerceAtMost用法及代码示例
android·kotlin·源码阅读