Android 车联网——CarManager管理器(四)

        上篇文章介绍了CarPropertyService 的使用,这一篇我们来看一下 Android Automotive OS  中一些子模块如何使用 CarPropertyManager。

一、管理器调用

 ICarImpl

源码位置:/packages/services/Car/service/src/com/android/car/ICarImpl.java

@Override
public IBinder getCarService(String serviceName) {
    ……
    switch (serviceName) {
        ……           
        case Car.CABIN_SERVICE:
        case Car.HVAC_SERVICE:
        case Car.INFO_SERVICE:
        case Car.PROPERTY_SERVICE:
        case Car.SENSOR_SERVICE:
        case Car.VENDOR_EXTENSION_SERVICE:
            return mCarPropertyService;
        ……
        default:
            IBinder service = null;
            if (mCarExperimentalFeatureServiceController != null) {
                service = mCarExperimentalFeatureServiceController.getCarService(serviceName);
            }
            if (service == null) {
                Log.w(CarLog.TAG_SERVICE, "getCarService for 

猜你喜欢

转载自blog.csdn.net/c19344881x/article/details/135366527
今日推荐