Android 13 VTS HIDL interface 解析

Android 13 VTS Introduction

Android 13已经发布,VTS testcase发生很多变化,在此博客中对其每个测试项目进行流程介绍。
这里先对VTS 做一个介绍:
VTS是vendor test suite简称,意为供应商测试套件。目的是确保Vendor层实现的兼容性,新的Vendor层接口会由供应商测试套件 (VTS) 进行验证。
为了更好理解以上VTS概念,从下面Android camera framework角度进行讲解,最下面一层是HIDL interface是为了让camera service连接芯片厂商实现的HAL layer。Google为了保证Android 上层系统与芯片厂商实现的HAL layer解耦,定义出来HIDL interface。
同时为了保证芯片厂商HAL layer实现HDIL interface的稳定性,所以设计VTS testcase测试。
android camera framework

VTS Testcase Detailed Annotation

  • Android 13 对HAL layer的测试有两种方案,第一种是使用上面介绍的HIDL interface,第二种是AIDL
    interface(Android 13 last update),这个博客中只介绍第一种方案。
  • 这一部分就是对VTS testcase中所有的测试项进行代码流程梳理,流程过于简单的直接提供pass条件,主要分析HAL3 interface测试项目。
Testcase NameTestcase Function Introduction
noHal1AfterPPASS:调用mProvider→cameraDeviceNames device vesion vaild and not be device1.0
isTorchModeSupportedgetCameraIdListPass:调用mProvider→getCameraIdList 无异常
getVendorTagsPass:调用mProvider→getVendorTags 无异常
setCallbacksetcallback testcase flow
getCameraDeviceInterfacePass:调用mProvider→getCameraDeviceInterface 无异常
getResourceCostPass:调用mProvider→getCameraDeviceInterface and device->getResourceCost 无异常
getCameraInfoPass:调用mProvider→getCameraDeviceInterface and device->getResourceCost 无异常
setPreviewWindow(并且对setPreviewWindows function流程进行介绍)setPreviewWindow flowsetPreviewWindows function
startStopPreviewDelayedstartStopPreviewDelayed
systemCameraTestsystemCameraTest

——————未完待续——————

参考资料

https://blog.csdn.net/qq_45412462/article/details/124077449

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值