当前位置:网站首页>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]所创,转载请带上原文链接,感谢
边栏推荐
- 一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
- 《Python Cookbook 3rd》笔记(2.1):使用多个界定符分割字符串
- Graph undirected graph
- C++ exception implementation mechanism
- csdn bug5:待加
- CSDN bug10: to be added
- Coding style: SSM environment in MVC mode, code hierarchical management
- gnu汇编-基本数学方程-乘法
- Simple use of JMeter
- ServiceManagerProxy中mRemote变量指的什么?
猜你喜欢

Notes on Python cookbook 3rd (2.2): String start or end match

csdn bug1:待加

Bifrost 位点管理 之 异构中间件实现难点(1)

将Map中对应的key和value赋值到对象中

Mongodb index management of distributed document storage database

C++ STL容器篇

【LeetCode】 93 平衡二叉树

CSDN bug11: to be added

关于centos启动报错:Failed to start Crash recovery kernel arming的解决方案

解决Coursera视频无法观看的三种方法(亲测有效)
随机推荐
OSChina 周二乱弹 —— 我养的绿植分别为土豆,生姜,蒜
After seven years of pursuing, nearly one billion US dollars of bitcoin was eventually confiscated and confiscated by the US government
区块链论文集【三十一】
分布式文档存储数据库之MongoDB索引管理
异常:Invalid or unexpected token
csdn bug11:待加
实验2
mac终端Iterm2支持rz和sz的解决方案
Three ways to solve coursera video unable to watch
将Map中对应的key和value赋值到对象中
gnu汇编-基本数学方程-乘法
[论文阅读笔记] Network Embedding with Attribute Refinement
Explanation of Z-index attribute
leetcode之最后一个单词的长度
Difficulties in heterogeneous middleware implementation of Bifrost site management (1)
CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
Coding style: SSM environment in MVC mode, code hierarchical management
On fedlearner, the latest open source federated machine learning platform of byte
Android quick shutdown app
图-无向图