Android Internet of Vehicles - CarManager (4)

        The previous article introduced the use of CarPropertyService. In this article we take a look at how some sub-modules in Android Automotive OS use CarPropertyManager.

1. Manager call

 ICarImpl

Source code location:/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 

Guess you like

Origin blog.csdn.net/c19344881x/article/details/135366527