当前位置:网站首页>getIServiceManager() 源码分析
getIServiceManager() 源码分析
2020-11-10 08:34:00 【天王盖地虎626】
通过源码得知,返回结果是ServiceManagerProxy 对象实例
private static IServiceManager getIServiceManager() {
if (sServiceManager != null) {
return sServiceManager;
}
// Find the service manager
sServiceManager = ServiceManagerNative
.asInterface(Binder.allowBlocking(BinderInternal.getContextObject()));
return sServiceManager;
}
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);
}
版权声明
本文为[天王盖地虎626]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/920274/blog/4708361
边栏推荐
猜你喜欢
消防知识线上答题活动小程序复盘
[论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
Filezilla server配置FTP服务器中的各种问题与解决方法
csdn bug1:待加
Centos7 operating system security hardening series (2)
csdn bug11:待加
YouTube subscription: solve the problem of incomplete height display of YouTube subscription button in pop-up window
Experiment 2
Bifrost 位点管理 之 异构中间件实现难点(1)
随机推荐
Day85: Luffy: shopping cart switching price according to different validity period & shopping cart deletion operation & price settlement & foreplay of order page
关于centos启动报错:Failed to start Crash recovery kernel arming的解决方案
商品管统——采购需求合并到采购单
[Python learning manual notes] 001. Preface to Python
CUDA_获取指定设备
The length of the last word in leetcode
《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
编码风格:Mvc模式下SSM环境,代码分层管理
[elixir! 0073] beam built-in memory database ETS
完美日记母公司逸仙电商招股书:重营销、轻研发,前三季度亏11亿
csdn bug10:待加
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
Coding style: SSM environment in MVC mode, code hierarchical management
编码风格:Mvc模式下SSM环境,代码分层管理
CUDA_ Get the specified device
CSDN bug8: to be added
CUDA_ Global memory and access optimization
利用尾巴作为时间序列进行处理来识别鲸鱼
接缝雕刻算法:一种看似不可能的图像大小调整方法
Promote China manufacturing upgrade, 3D visualization of production line in automobile assembly workshop