当前位置:网站首页>What does the mremote variable in servicemanagerproxy refer to?
What does the mremote variable in servicemanagerproxy refer to?
2020-11-10 08:34:00 【Tianwang gaidihu 626】
First, the code marked in red Binder.allowBlocking(BinderInternal.getContextObject()), What's actually back is BinderProxy Object instances
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);
}
Then continue to ServiceManagerProxy, From below , Obviously .
class ServiceManagerProxy implements IServiceManager {
public ServiceManagerProxy(IBinder remote) {
mRemote = remote;
}
...
...
}
}
版权声明
本文为[Tianwang gaidihu 626]所创,转载请带上原文链接,感谢
边栏推荐
- Oschina: my green plants are potatoes, ginger and garlic
- 树莓派鼓捣记 - 设置 wifi
- 假如需要一百万个对象
- 异常:Invalid or unexpected token
- An unsafe class named unsafe
- What's the difference between delete, truncate, and drop, and what to do if you delete data by mistake
- [elixir! 0073] beam built-in memory database ETS
- [Python learning manual notes] 001. Preface to Python
- Seam engraving algorithm: a seemingly impossible image size adjustment method
- CSDN bug10: to be added
猜你喜欢
推动中国制造升级,汽车装配车间生产流水线3D可视化
CSDN bug7: to be added
[论文阅读笔记] A Multilayered Informative Random Walk for Attributed Social Network Embedding
对于程序员,那些既陌生又熟悉的计算机硬件
Thinking about competitive programming: myths and shocking facts
《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
利用尾巴作为时间序列进行处理来识别鲸鱼
大专学历的我工作六年了,还有机会进大厂吗?
mac终端Iterm2支持rz和sz的解决方案
CSDN bug8: to be added
随机推荐
CSDN bug6: to be added
Hong Kong listed companies transfer cards to acquire 42.5% equity of chuangxinzhong and plan to speed up the distribution of marketing services
浅谈字节最新开源联邦机器学习平台Fedlearner
CUDA_获取指定设备
js label语法跳出多重循环
About CentOS start error: the solution of failed to start crash recovery kernel arming
Raspberry pie drum set WiFi
[elixir! 0073] beam built-in memory database ETS
分布式文档存储数据库之MongoDB索引管理
利用尾巴作为时间序列进行处理来识别鲸鱼
实验2
从零开始学习 YoMo 系列教程:开篇
大专学历的我工作六年了,还有机会进大厂吗?
C++异常实现机制
图-无向图
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
分布式文档存储数据库之MongoDB索引管理
工厂方法模式
[paper reading notes] rosane, robust and scalable attributed network embedding for sparse networks
Android quick shutdown app