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 

相关推荐

  1. Android 联网——CarManager管理

    2024-01-07 01:00:03       43 阅读
  2. Android 联网——CarManager管理续(五)

    2024-01-07 01:00:03       28 阅读
  3. Android 联网——CarOccupantZoneService介绍(十

    2024-01-07 01:00:03       35 阅读
  4. Android 联网——电源管理功能扩展(十)

    2024-01-07 01:00:03       30 阅读
  5. Android 联网——CarAudioService介绍(六)

    2024-01-07 01:00:03       25 阅读
  6. Android 联网——CarPowerManagementService介绍(七)

    2024-01-07 01:00:03       46 阅读
  7. Android 联网——PowerHalService介绍(九)

    2024-01-07 01:00:03       35 阅读
  8. Android 联网——CarPowerManager介绍(八)

    2024-01-07 01:00:03       36 阅读
  9. Android 联网——CarUserService介绍(十三)

    2024-01-07 01:00:03       29 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-07 01:00:03       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-07 01:00:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-07 01:00:03       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-07 01:00:03       20 阅读

热门阅读

  1. Android.mk 常用模块类型

    2024-01-07 01:00:03       30 阅读
  2. Go语言程序设计-第6章--方法

    2024-01-07 01:00:03       39 阅读
  3. 后端开发——JDBC的学习(二)

    2024-01-07 01:00:03       36 阅读
  4. Web网页开发-总结笔记1

    2024-01-07 01:00:03       33 阅读
  5. 2023-应用开发中遇到的问题与解决方案

    2024-01-07 01:00:03       28 阅读
  6. 力扣(leetcode)第383题赎金信(Python)

    2024-01-07 01:00:03       40 阅读
  7. 每日一题 - 240106 - D - Loong and Takahashi

    2024-01-07 01:00:03       81 阅读
  8. RocketMQ

    RocketMQ

    2024-01-07 01:00:03      34 阅读
  9. HTTP网络相关知识

    2024-01-07 01:00:03       35 阅读
  10. Kibana

    Kibana

    2024-01-07 01:00:03      35 阅读