当前位置:网站首页>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
边栏推荐
- Factory approach model
- [leetcode] 93 balanced binary tree
- 异常:Invalid or unexpected token
- JS label syntax jumps out of multiple loops
- 极验无感验证破解
- 《Python Cookbook 3rd》笔记(2.2):字符串开头或结尾匹配
- 【LeetCode】 93 平衡二叉树
- [论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
- Day85: Luffy: shopping cart switching price according to different validity period & shopping cart deletion operation & price settlement & foreplay of order page
- Several solutions to the problem that selenium webdriver always fails to use click
猜你喜欢

The solution of polar experience insensitive verification

Mongodb index management of distributed document storage database

一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)

Fire knowledge online answer activity small program

痞子衡嵌入式:RT-UFL - 一个适用全平台i.MXRT的超级下载算法设计

树莓派鼓捣记 - 设置 wifi

推动中国制造升级,汽车装配车间生产流水线 3D 可视化

异常:Invalid or unexpected token
![[论文阅读笔记] Community-oriented attributed network embedding](/img/17/1d1989945d943ca3cd2a2b8a5731de.jpg)
[论文阅读笔记] Community-oriented attributed network embedding

OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
随机推荐
js label语法跳出多重循环
CSDN bug4: to be added
Bifrost 位点管理 之 异构中间件实现难点(1)
假如需要一百万个对象
Centos7 operating system security hardening series (2)
树莓派鼓捣记 - 设置 wifi
The kth smallest node in the print binary search tree of offer
JMeter interface test -- a solution with token
一个名为不安全的类Unsafe
CUDA_获取指定设备
About CentOS start error: the solution of failed to start crash recovery kernel arming
推动中国制造升级,汽车装配车间生产流水线3D可视化
安卓快速关机APP
One image can hold 16x16 words! ——Transformers for large scale image scaling recognition (a brief review of ICLR 2021 papers)
接缝雕刻算法:一种看似不可能的图像大小调整方法
吴恩达《Machine Learning》精炼笔记 4:神经网络基础 - 知乎
Self writing performance testing tool (2)
JS label syntax jumps out of multiple loops
Experiment 2
Explanation of Z-index attribute