当前位置:网站首页>Getiservicemanager () source code analysis
Getiservicemanager () source code analysis
2020-11-10 08:34:00 【Tianwang gaidihu 626】
From the source , The return is ServiceManagerProxy Object instances
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);
}
版权声明
本文为[Tianwang gaidihu 626]所创,转载请带上原文链接,感谢
边栏推荐
- Using tail as time series to identify whales
- 推动中国制造升级,汽车装配车间生产流水线3D可视化
- Network security engineer Demo: original * * controls your server like this! (2)
- JS solves the problem of automatic pagination in browser printing
- 异常:Invalid or unexpected token
- [论文阅读笔记] Large-Scale Heterogeneous Feature Embedding
- CSDN bug7: to be added
- CUDA_获取指定设备
- gnu汇编-基本数学方程-乘法
- If you need a million objects
猜你喜欢
随机推荐
推动中国制造升级,汽车装配车间生产流水线 3D 可视化
CSDN bug3: to be added
Android quick shutdown app
jt-day10
One image can hold 16x16 words! ——Transformers for large scale image scaling recognition (a brief review of ICLR 2021 papers)
[paper reading notes] community oriented attributed network embedding
CUDA_ Host memory
After seven years of pursuing, nearly one billion US dollars of bitcoin was eventually confiscated and confiscated by the US government
CSDN bug8: to be added
Solution of MAC terminal iterm2 supporting RZ and sz
竞争性编程的思考:那些神话和令人震惊的事实[图]
Using tail as time series to identify whales
Enter C abstract to understand the similarities and differences between abstract classes and interfaces
Connection to XXX could not be established. Broker may not be available
Problems and solutions in configuring FTP server with FileZilla server
CUDA_ Get the specified device
csdn bug10:待加
Wu Enda's refining notes on machine learning 4: basis of neural network - Zhihu
Incomplete Polyfill of proxy
商品管统——采购需求合并到采购单