Bp/Bn 模板 (ServiceManager)
2016-03-17 18:03:06 0 举报
MediaServer初始化时主要是和binder挂上钩。
作者其他创作
大纲/内容
IPCThreadState
BpInterface
/dev/binder
BpBinder
+transact()
IServiceManager
+ gDefaultServiceManager
+ asInterface() //return BpServiceManager+ getService();+ addService();+ listServices();
IInterface
IBinder
talkwithDriver()
RefBase
封装了一个APIdefaultServiceManager() == BpServiceManager (BpBinder(0))
LibBinder.so
binder_loop
BBinder
+OnTransact()
BnInterface
BpRefBase
BpServiceManager (没人用?)
+ getService()+ addService()+ listServices()
svcmgr_handler
transact()
0 条评论
下一页