1. ActivityManager的获取
ActivityManager mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
2. 在ContextImpl.getSystemService->ActivityManager
3. 在SystemServiceRegistry中调用getSystemSrevice
// 缓存
//注册
//静态代码加载
1. ActivityManager的获取
ActivityManager mActivityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
2. 在ContextImpl.getSystemService->ActivityManager
3. 在SystemServiceRegistry中调用getSystemSrevice
// 缓存
//注册
//静态代码加载