BadCase录包

This commit is contained in:
xuxinchao
2022-10-20 19:37:20 +08:00
parent 553b26da7d
commit 8837bde8a5
5 changed files with 47 additions and 9 deletions

View File

@@ -136,6 +136,12 @@ object CallerAutoPilotManager {
}
}
fun recordPackage(type: Int,id: Int,duration: Int,bduration: Int,topics: List<String>){
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)){
providerApi?.recordPackage(type, id, duration, bduration, topics)
}
}
/**
* 停止录制bag包
*/
@@ -249,11 +255,14 @@ object CallerAutoPilotManager {
/**
* 获取数据采集录制模式配置列表
* @param reqType 0: all, 1:获取当前所有topic列表, 2:配置需要预加载的topic组合
* @param recordType 0:不需要修改内置类型的topic组合, 1:需要修改内置类型的topic组合
* @param topicsNeedToCache
*/
fun getBadCaseConfig() {
fun getBadCaseConfig(reqType: Int,recordType: Int,topicsNeedToCache: List<String>){
// 司机屏才能查询数据采集的配置
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
providerApi?.getBadCaseConfig()
providerApi?.getBadCaseConfig(reqType, recordType, topicsNeedToCache)
}
}