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));
        }
        ......
    }
相关推荐
闲猫7 小时前
基于RABC的权限控制设计
android
星霜笔记10 小时前
GitMob — 手机端 GitHub 管理工具
android·kotlin·github·android jetpack
LiuYaoheng11 小时前
问题记录:Android Studio Low memory
android·ide·android studio
独隅11 小时前
Python 标准库 (Standard Library) 全面使用指南
android·开发语言·python
always_TT11 小时前
strlen、strcpy、strcat等常用字符串函数
android
qqty121712 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
2401_8955213412 小时前
MySQL中between and的基本用法
android·数据库·mysql
云云鬼才13 小时前
CoCo编辑器、图形化编程怎么调用Scheme(跳转应用)
android
Jason__Young15 小时前
Android ViewModel为什么能够跨越Activity的生命周期?
android
TechMix15 小时前
【性能优化】RenderThread各工作阶段梳理
android·性能优化