ActivityManagerService结构图

            +---------------------------------------------------------+         
            |   ActivityThread                                        |         
            | +--------------------+    +--------+                    |         
            | |ActivityClientRecord+--> |Activity|                    |         
            | +--------------------+    +--------+                    |         
            | +--------------------+    +--------+                    |         
            | |ActivityClientRecord+--> |Activity|                    |         
            | |                    |    +--------+                    |         
            | +-----------------+  |                                  |         
+-------------+ApplicationThread|  |                                  | <------+
|           | +-----------------+  |       +--------------------+     |        |
|           | |                    |       |ActivityManagerProxy|     |        |
|           | +--------------------+       +--------------------+     |        |
|           +---------------------------------------------------------+        |
|                                             |          ^                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             |          |                     |
|                                             v          +                     |
|                                                                              |
|     +---------------------------------------------------------------------+  |
|     | ActivityManagerService             +----------------------+         |  |
|     |                                    |ApplicationThreadProxy|         |  |
|     |                                    +----------------------+         |  |
|     |   +---------------+                                                 |  |
|     |   |Instrumentation|                                                 |  |
|     |   +---------------+                                                 |  |
|     |                                                                     |  |
|     | +---------------------------------------+                           |  |
|     | |ActivityStack                          |                           |  |
|     | |                                       |                           |  |
|     | |                                       |                           |  |
|     | | +-----------------+  +-------------+  |       +-------------+     |  |
|     | | | mHistory        |  | mTaskHistory|  |       |ProcessRecord+--------+
|     | | |                 |  |             |  |       +-------------+     |   
|     | | +--------------+  |  |  +----------+  |       +-------------+     |   
+-------> |ActivityRecord|  |  |  |TaskRecord|  |       |ProcessRecord|     |   
      | | +--------------+  |  |  +----------+  |       +-------------+     |   
      | | +--------------+  |  |  +----------+  |       +-------------+     |   
      | | |ActivityRecord|  |  |  |TaskRecord|  |       |ProcessRecord|     |   
      | | +--------------+  |  |  +----------+  |       +-------------+     |   
      | | +-----------------+  +-------------|  |                           |   
      | |                                       |                           |   
      | +---------------------------------------+                           |   
      +---------------------------------------------------------------------+   

发表评论

您的电子邮箱地址不会被公开。

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据