![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
文章平均质量分 81
happyzhouxiaopei
这个作者很懒,什么都没留下…
展开
-
Android Binder IPC分析
1 . binder 通信概述 binder 通信是一种 client-server 的通信结构, 1. 从表面上来看,是 client 通过获得一个 server 的代理接口,对 server 进行直接调用; 2. 实际上,代理接口中定义的方法与 server 中定义的方法是一一对应的; 3.client 调用某个代理接口中的方法时,代理接口的方法会将 client 传递的参转载 2015-03-20 09:55:42 · 475 阅读 · 0 评论 -
Binder中 Service与Binder之间的转换
这几天一直在看binder的结构,感叹这样天才的设计。现在只研究到binder的native框架,在IPCThreadState以下,真正的driver和数据交换还需要进一步研究。在此记录一些目前的体会。1.IInterface的作用个人感觉,这个IInterface严格上讲,并不是Binder这个框架的一部分。基类 IInterface为 server 端提供接口,它的子类声明了原创 2015-03-20 15:13:02 · 1555 阅读 · 0 评论