AMS Android app启动流程:Ams对activitystack和task的管理(12) 1、最原始堆栈的建立 在前面《关于FocusedStack的研究》中,不小心认识到了AMS最远先建立堆栈的过程,我们来回忆一下: void setWindowManager(WindowManager... 01月15日 1 阅读全文
AMS Android app启动流程:startActivityLocked分析(11) final int startActivityLocked(IApplicationThread caller, Intent intent, Intent ephemeralIntent, ....... 01月15日 发表评论 阅读全文
AMS Android app启动流程:startActivityMayWait分析(10) activity的启动从ActivityManagerService最终会转到 frameworks\base\services\core\java\com\android\server\am\Act... 01月15日 发表评论 阅读全文
AMS Android app启动流程:关于FocusedStack的研究(9) final int startActivityMayWait(IApplicationThread caller, int callingUid, String callingPackage, Int... 01月15日 发表评论 阅读全文
AMS Android app启动流程:广播的发送processNextBroadcast(8) final void processNextBroadcast(boolean fromMsg) { synchronized(mService) { BroadcastRecord r; mServ... 01月15日 发表评论 阅读全文
AMS Android app启动流程:广播的发送scheduleBroadcastsLocked(7) queue调用 scheduleBroadcastsLocked 函数进行广播发送的下一步工作。 public void scheduleBroadcastsLocked() { if (mB... 01月15日 发表评论 阅读全文
AMS Android app启动流程:广播的发送broadcastIntentLocked(6) final int broadcastIntentLocked(ProcessRecord callerApp, String callerPackage, Intent intent, String... 01月15日 发表评论 阅读全文
AMS Android app启动流程:broadcast广播的注册(5) public Intent registerReceiver(IApplicationThread caller, String callerPackage, IIntentReceiver rece... 01月15日 发表评论 阅读全文
AMS Android app启动流程:startservice(4) 1. 启动的入口startservice 无论怎么样,Activity的startservice最终都会到,ActivityManagerService的startService,函数中来。 @Ov... 01月15日 发表评论 阅读全文
AMS Android app启动流程:调用startProcessLocked的几种情况(1) 我们知道进程的启动,最终都会进入到startProcessLocked函数中,如图我们看下有几种情况 首先们关注有四个startProcessLocked接口重载的情况。但是他们最终都会调到统一的st... 12月12日 发表评论 阅读全文