ServiceManagerProxy中mRemote变量指的什么

介绍

这篇文章主要介绍”ServiceManagerProxy中mRemote变量指的什么”,在日常操作中,相信很多人在ServiceManagerProxy中mRemote变量指的什么问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答“ServiceManagerProxy中mRemote变量指的什么”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

首先标红的代码<强> Binder.allowBlocking (BinderInternal.getContextObject()) 强,实际上返回的是BinderProxy对象实例

, sServiceManager=ServiceManagerNative
,,,,,,,,.asInterface(<强> Binder.allowBlocking (BinderInternal.getContextObject()) );

,静态公共IServiceManager asInterface(内部obj)
,,{
,,,,如果(obj==null) {
,,,,,,返回null;
,,,,}
,,,,IServiceManager在=
,,,,,,(IServiceManager) obj.queryLocalInterface(描述符);
,,,,如果(在!=null) {
,,,,,,返回的;
,,,,}
,,,,,
,,,,<强>返回新ServiceManagerProxy (obj);
,,}

然后继续<强> ServiceManagerProxy, <强>从下面来看,很显然了。

<强>类ServiceManagerProxy实现IServiceManager{
<强>,强才能<强>公共ServiceManagerProxy(内部远程){
,,,, <强> mRemote=远程;
<强>,,}

,,…

,,…

<强>}

<强>}

到此,关于“ServiceManagerProxy中mRemote变量指的什么”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注网站,小编会继续努力为大家带来更多实用的文章!

ServiceManagerProxy中mRemote变量指的什么