当前位置:网站首页>ServiceManagerProxy中mRemote变量指的什么?
ServiceManagerProxy中mRemote变量指的什么?
2020-11-10 08:34:00 【天王盖地虎626】
首先标红的代码Binder.allowBlocking(BinderInternal.getContextObject()),实际上返回的是BinderProxy对象实例
sServiceManager = ServiceManagerNative
.asInterface(Binder.allowBlocking(BinderInternal.getContextObject()));
static public IServiceManager asInterface(IBinder obj)
{
if (obj == null) {
return null;
}
IServiceManager in =
(IServiceManager)obj.queryLocalInterface(descriptor);
if (in != null) {
return in;
}
return new ServiceManagerProxy(obj);
}
然后继续ServiceManagerProxy,从下面来看,很显然了。
class ServiceManagerProxy implements IServiceManager {
public ServiceManagerProxy(IBinder remote) {
mRemote = remote;
}
。。。
。。。
}
}
版权声明
本文为[天王盖地虎626]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/920274/blog/4708554
边栏推荐
猜你喜欢
js解决浏览器打印自动分页的问题
Yixian e-commerce prospectus of perfect diary parent company: focusing on marketing and ignoring R & D, with a loss of 1.1 billion in the first three quarters
leetcode之最后一个单词的长度
JS label syntax jumps out of multiple loops
One image can hold 16x16 words! ——Transformers for large scale image scaling recognition (a brief review of ICLR 2021 papers)
CUDA_ Memory model
Notes on Python cookbook 3rd (2.2): String start or end match
编码风格:Mvc模式下SSM环境,代码分层管理
使用call、apply和bind解决js中烦人的this,事件绑定时的this和传参问题
CSDN bug11: to be added
随机推荐
csdn bug8:待加
csdn bug9:待加
Can't find other people's problem to solve
pytorch训练GAN时的detach()
Problems and solutions in configuring FTP server with FileZilla server
csdn bug6:待加
CUDA_ Global memory and access optimization
Algorithm template arrangement (1)
CSDN bug7: to be added
Youtube订阅——解决在弹窗内使用Youtube订阅按钮高度显示不全的问题
获取List集合对象中某一列属性值
js解决浏览器打印自动分页的问题
About CentOS start error: the solution of failed to start crash recovery kernel arming
竞争性编程的思考:那些神话和令人震惊的事实[图]
JS solves the problem of automatic pagination in browser printing
编码风格:Mvc模式下SSM环境,代码分层管理
CSDN bug9: to be added
自己上手写性能测试工具(二)
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
JMeter interface test -- a solution with token