当前位置:网站首页>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
边栏推荐
- Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
- 竞争性编程的思考:那些神话和令人震惊的事实[图]
- Raspberry pie drum set WiFi
- Assign the corresponding key and value in the map to the object
- After seven years of pursuing, nearly one billion US dollars of bitcoin was eventually confiscated and confiscated by the US government
- Explanation of Z-index attribute
- [Python learning manual notes] 001. Preface to Python
- delete、truncate、drop 有什么区别,误删数据怎么办
- Incomplete Polyfill of proxy
- Bifrost 位点管理 之 异构中间件实现难点(1)
猜你喜欢
《Python Cookbook 3rd》笔记(2.2):字符串开头或结尾匹配
Assign the corresponding key and value in the map to the object
Seam engraving algorithm: a seemingly impossible image size adjustment method
编码风格:Mvc模式下SSM环境,代码分层管理
If you need a million objects
On fedlearner, the latest open source federated machine learning platform of byte
【LeetCode】 92 整数反转
js解决浏览器打印自动分页的问题
csdn bug9:待加
csdn bug10:待加
随机推荐
CUDA_ constant memory
痞子衡嵌入式:RT-UFL - 一个适用全平台i.MXRT的超级下载算法设计
Experiment 2
仅发送options请求,没有发送post解决方案
What's the difference between delete, truncate, and drop, and what to do if you delete data by mistake
delete、truncate、drop 有什么区别,误删数据怎么办
csdn bug11:待加
js解决浏览器打印自动分页的问题
CSDN bug10: to be added
Android quick shutdown app
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
小度“破圈”提速,IoT迎来新故事
JS solves the problem of automatic pagination in browser printing
将Map中对应的key和value赋值到对象中
CSDN bug8: to be added
The solution of polar experience insensitive verification
【LeetCode】 92 整数反转
Enter C abstract to understand the similarities and differences between abstract classes and interfaces
lodash.js Source code flatten
JMeter interface test -- a solution with token