From 7c23eebd38e983ee4b19a36ed19ab1eb10ee3173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Fri, 17 Sep 2021 21:08:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=B0=81=E8=A3=85Hmi=E8=B0=83=E7=94=A8MoGo?= =?UTF-8?q?EagleEye.core.mogo-core-function-call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 董宏宇 --- .../obu/mogo/MogoPrivateObuManager.kt | 229 +++++++++--------- .../function/call/hmi/CallerHmiManager.java | 16 -- .../function/call/hmi/CallerHmiManager.kt | 125 ++++++++++ 3 files changed, 243 insertions(+), 127 deletions(-) delete mode 100644 core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java create mode 100644 core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.kt diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt index 0b865a376e..26ffbc942e 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt @@ -2,18 +2,17 @@ package com.mogo.eagle.core.function.obu.mogo import android.content.Context import com.alibaba.android.arouter.launcher.ARouter +import com.mogo.eagle.core.data.enums.WarningDirectionEnum +import com.mogo.eagle.core.function.api.hmi.warning.WarningStatusListener +import com.mogo.eagle.core.function.call.hmi.CallerHmiManager +import com.mogo.eagle.core.function.obu.mogo.utils.TrafficDataConvertUtils +import com.mogo.eagle.core.utilcode.util.LogUtils import com.mogo.module.common.datacenter.SnapshotLocationDataCenter import com.mogo.module.common.drawer.TrafficMarkerDrawer import com.mogo.module.common.enums.EventTypeEnum -import com.mogo.eagle.core.data.enums.WarningDirectionEnum -import com.mogo.eagle.core.function.obu.mogo.utils.TrafficDataConvertUtils import com.mogo.service.IMogoServiceApis import com.mogo.service.MogoServicePaths import com.mogo.service.map.IMogoMapService -import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWaringProvider -import com.mogo.eagle.core.function.api.hmi.warning.WarningStatusListener -import com.mogo.eagle.core.function.call.hmi.CallerHmiManager -import com.mogo.eagle.core.utilcode.util.LogUtils import com.mogo.utils.storage.SharedPrefsMgr import com.zhidao.support.obu.MogoObuManager import com.zhidao.support.obu.OnMogoObuListener @@ -36,17 +35,14 @@ class MogoPrivateObuManager private constructor() { } private var mMogoServiceApis: IMogoServiceApis? = null - private var mIMoGoWaringProvider: IMoGoWaringProvider? = null private var mIMogoMapService: IMogoMapService? = null private var mContext: Context? = null fun init(context: Context?) { LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "obuManager初始化--") mMogoServiceApis = ARouter.getInstance().build(MogoServicePaths.PATH_SERVICE_APIS) - .navigation(context) as IMogoServiceApis + .navigation(context) as IMogoServiceApis mContext = context - // 获取预警模块的接口 - mIMoGoWaringProvider = CallerHmiManager.getWaringProviderApi() mIMogoMapService = mMogoServiceApis!!.mapServiceApi //自研obu @@ -165,11 +161,14 @@ class MogoPrivateObuManager private constructor() { val status = info.status val level = info.threat_info.threat_level val direction = - getMessageDirection(if (info.ext_info != null) info.ext_info.pos_classification else -1) + getMessageDirection(if (info.ext_info != null) info.ext_info.pos_classification else -1) when (appId) { // 道路危险情况预警 EventTypeEnum.TYPE_USECASE_ID_HLW.poiType -> { - LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "onCvxRtiThreatIndInfo appId = $appId --status = $status --level = $level -- handleDirection = $direction --rtiType = ${info.ext_info.rti_type}") + LogUtils.dTag( + MogoObuConst.TAG_MOGO_OBU, + "onCvxRtiThreatIndInfo appId = $appId --status = $status --level = $level -- handleDirection = $direction --rtiType = ${info.ext_info.rti_type}" + ) when (info.ext_info.rti_type) { //急转弯 0x2 -> { @@ -250,9 +249,9 @@ class MogoPrivateObuManager private constructor() { -> { if (level == 2 || level == 3) { //显示警告红边 - mIMoGoWaringProvider!!.showWarning(direction) + CallerHmiManager.showWarning(direction) //显示弹框,语音提示 - mIMoGoWaringProvider!!.showWarningV2X( + CallerHmiManager.showWarningV2X( appId.toInt(), alertContent, ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 @@ -260,7 +259,7 @@ class MogoPrivateObuManager private constructor() { object : WarningStatusListener { override fun onDismiss() { // 关闭警告红边 - mIMoGoWaringProvider?.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) } } ) @@ -273,9 +272,9 @@ class MogoPrivateObuManager private constructor() { // 删除 ObuConstants.STATUS.DELETE -> { // 关闭警告红边 - mIMoGoWaringProvider?.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) // 移除顶部弹窗 - mIMoGoWaringProvider?.disableWarningV2X((appId + direction.direction).toString()) + CallerHmiManager.disableWarningV2X((appId + direction.direction).toString()) // 更新数据 TrafficDataConvertUtils.cvxRtiThreatIndInfo2TrafficData(info)?.let { // 事件结束,还原车辆颜色 @@ -293,10 +292,10 @@ class MogoPrivateObuManager private constructor() { LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "CvxIvpThreatIndInfo ------> $info") if (info != null && info.ext_info != null && info.threat_info != null && info.ext_info.lights != null && info.ext_info.lights.isNotEmpty()) { handlerTrafficLight( - info.threat_info.app_id, - info.status, - info.ext_info.lights, - info.ext_info.indicator + info.threat_info.app_id, + info.status, + info.ext_info.lights, + info.ext_info.indicator ) } } @@ -306,10 +305,10 @@ class MogoPrivateObuManager private constructor() { LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "onCvxMapSpatInfoIndInfo ------> $info") if (info != null && info.ivp_threat_ext != null && info.ivp_threat_ext.lights != null && info.ivp_threat_ext.lights.isNotEmpty()) { handlerTrafficLight( - info.ivp_threat_info.app_id, - info.status, - info.ivp_threat_ext.lights, - info.ivp_threat_ext.indicator + info.ivp_threat_info.app_id, + info.status, + info.ivp_threat_ext.lights, + info.ivp_threat_ext.indicator ) } } @@ -320,7 +319,7 @@ class MogoPrivateObuManager private constructor() { if (info != null) { LogUtils.dTag( MogoObuConst.TAG_MOGO_OBU, - "onCvxPtcInfoIndInfo ---status---> ${info.status}" + "onCvxPtcInfoIndInfo ---status---> ${info.status}" ) var v2xType = "" if (info.ptc_type == 1) { //摩托车 @@ -331,7 +330,7 @@ class MogoPrivateObuManager private constructor() { val ttsContent = EventTypeEnum.getWarningTts(v2xType) val alertContent = EventTypeEnum.getWarningContent(v2xType) val direction = - getMessageDirection(if (info.ext_info != null) info.ext_info.target_classification else -1) + getMessageDirection(if (info.ext_info != null) info.ext_info.target_classification else -1) val level = if (info.threat_info != null) info.threat_info.threat_level else -1 when (info.status) { @@ -341,8 +340,8 @@ class MogoPrivateObuManager private constructor() { -> { if (level == 2 || level == 3) { //显示警告红边 - mIMoGoWaringProvider?.showWarning(direction) - mIMoGoWaringProvider?.showWarningV2X( + CallerHmiManager.showWarning(direction) + CallerHmiManager.showWarningV2X( v2xType.toInt(), alertContent, ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 @@ -350,7 +349,7 @@ class MogoPrivateObuManager private constructor() { object : WarningStatusListener { override fun onDismiss() { // 关闭警告红边 - mIMoGoWaringProvider!!.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) } } ) @@ -363,14 +362,14 @@ class MogoPrivateObuManager private constructor() { // 删除 ObuConstants.STATUS.DELETE -> { // 关闭警告红边 - mIMoGoWaringProvider!!.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) // 更新数据 TrafficDataConvertUtils.cvxPtcThreatIndInfo2TrafficData(info)?.let { // 事件结束,还原交通参与者颜色 it.threatLevel = 0x01 TrafficMarkerDrawer.updateITrafficThreatLevelInfo(it) } - mIMoGoWaringProvider?.disableWarningV2X(ObuConstants.USE_CASE_ID.VRUCW.toString()) + CallerHmiManager.disableWarningV2X(ObuConstants.USE_CASE_ID.VRUCW.toString()) } } @@ -388,12 +387,12 @@ class MogoPrivateObuManager private constructor() { ObuConstants.STATUS.UPDATE, -> { if (info.ext_info != null) { - mIMoGoWaringProvider?.showLimitingVelocity(info.ext_info.speed_limit_max.toInt()) + CallerHmiManager.showLimitingVelocity(info.ext_info.speed_limit_max.toInt()) } } // 删除 ObuConstants.STATUS.DELETE -> { - mIMoGoWaringProvider?.disableLimitingVelocity() + CallerHmiManager.disableLimitingVelocity() } } } @@ -414,9 +413,9 @@ class MogoPrivateObuManager private constructor() { val status = info.status LogUtils.dTag( MogoObuConst.TAG_MOGO_OBU, - "onCvxV2vThreatIndInfo target_classification = ${ + "onCvxV2vThreatIndInfo target_classification = ${ getMessageDirection(info.ext_info.target_classification) - } --- direction = $direction --- appId = $appId ---level = $level -- status = $status" + } --- direction = $direction --- appId = $appId ---level = $level -- status = $status" ) handleSdkObu(appId, direction, status, level, info) } @@ -481,7 +480,7 @@ class MogoPrivateObuManager private constructor() { private fun handlerTrafficLight(appId: Int, status: Int, lights: List, indicator: Int) { LogUtils.dTag( MogoObuConst.TAG_MOGO_OBU, - "handlerTrafficLight appId = $appId --- status = $status ---indicator = $indicator ---lights = $lights ---lights.size = ${lights.size}" + "handlerTrafficLight appId = $appId --- status = $status ---indicator = $indicator ---lights = $lights ---lights.size = ${lights.size}" ) when (status) { // 添加 @@ -492,9 +491,9 @@ class MogoPrivateObuManager private constructor() { } // 删除 ObuConstants.STATUS.DELETE -> { - mIMoGoWaringProvider?.disableWarningTrafficLight() // 移除顶部弹窗 - mIMoGoWaringProvider?.disableWarningV2X(appId.toString()) + CallerHmiManager.disableWarningTrafficLight() + CallerHmiManager.disableWarningV2X(appId.toString()) } } } @@ -506,59 +505,65 @@ class MogoPrivateObuManager private constructor() { * 修改红绿灯 */ private fun changeTrafficLightStatus( - appId: Int, - lights: List, - indicator: Int + appId: Int, + lights: List, + indicator: Int ) { var ttsContent = "" var alertContent = "" // TODO 这里需要根据真实数据确定 indicator 取值方式,暂时写 0 调试 if (lights.size >= indicator) { val currentLight = lights[0] - LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "currentLight = $currentLight ---currentLight.phase = ${currentLight.phase} --- indicator = $indicator ---appId = $appId") + LogUtils.dTag( + MogoObuConst.TAG_MOGO_OBU, + "currentLight = $currentLight ---currentLight.phase = ${currentLight.phase} --- indicator = $indicator ---appId = $appId" + ) when (currentLight.phase) { // 灯光不可用 0x0 -> { - mIMoGoWaringProvider?.showWarningTrafficLight(0) + CallerHmiManager.showWarningTrafficLight(0) } // 红灯 0x1 -> { if (!isRedLight) { - mIMoGoWaringProvider!!.disableWarningV2X(appId.toString()) + CallerHmiManager.disableWarningV2X(appId.toString()) isRedLight = true } isGreenLight = false - mIMoGoWaringProvider?.showWarningTrafficLight(1) - mIMoGoWaringProvider?.changeCountdownRed(currentLight.count_down.toInt()) + CallerHmiManager.showWarningTrafficLight(1) + CallerHmiManager.changeCountdownRed(currentLight.count_down.toInt()) ttsContent = EventTypeEnum.getWarningTts(appId.toString()) alertContent = EventTypeEnum.getWarningContent(appId.toString()) - mIMoGoWaringProvider!!.showWarningV2X( - appId, - alertContent, - ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 - appId.toString(), - null + CallerHmiManager.showWarningV2X( + appId, + alertContent, + ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 + appId.toString(), + null ) } // 绿灯 0x2 -> { if (!isGreenLight) { - mIMoGoWaringProvider!!.disableWarningV2X(appId.toString()) + CallerHmiManager.disableWarningV2X(appId.toString()) isGreenLight = true } isRedLight = false - mIMoGoWaringProvider?.showWarningTrafficLight(3) - mIMoGoWaringProvider?.changeCountdownGreen(currentLight.count_down.toInt() + 1) + CallerHmiManager.showWarningTrafficLight(3) + CallerHmiManager.changeCountdownGreen(currentLight.count_down.toInt() + 1) //防止数据出现问题的容错 - mIMoGoWaringProvider?.changeCountdownRed(0) - mIMoGoWaringProvider?.changeCountdownYellow(0) + CallerHmiManager.changeCountdownRed(0) + CallerHmiManager.changeCountdownYellow(0) // 拼接建议速度 - LogUtils.dTag(MogoObuConst.TAG_MOGO_OBU, "speed_min = ${currentLight.glosa_suggested_speed_min} --speed_max = ${currentLight.glosa_suggested_speed_max.toInt()}") + LogUtils.dTag( + MogoObuConst.TAG_MOGO_OBU, + "speed_min = ${currentLight.glosa_suggested_speed_min} --speed_max = ${currentLight.glosa_suggested_speed_max.toInt()}" + ) val adviceSpeed = - "${currentLight.glosa_suggested_speed_min.toInt()} - ${currentLight.glosa_suggested_speed_max.toInt()}" + "${currentLight.glosa_suggested_speed_min.toInt()} - ${currentLight.glosa_suggested_speed_max.toInt()}" val adviceSpeedTts = - "${currentLight.glosa_suggested_speed_min.toInt()}到${currentLight.glosa_suggested_speed_max.toInt()}" + "${currentLight.glosa_suggested_speed_min.toInt()}到${currentLight.glosa_suggested_speed_max.toInt()}" ttsContent = String.format( @@ -573,21 +578,23 @@ class MogoPrivateObuManager private constructor() { ) var maxSpeed = currentLight.glosa_suggested_speed_max.toInt() - mIMoGoWaringProvider!!.showWarningV2X( - EventTypeEnum.TYPE_USECASE_ID_IVP_GREEN.poiType.toInt(), - alertContent, - ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 - appId.toString(), - null - ) + if (maxSpeed > 0) { + CallerHmiManager.showWarningV2X( + EventTypeEnum.TYPE_USECASE_ID_IVP_GREEN.poiType.toInt(), + alertContent, + ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 + appId.toString(), + null + ) + } } // 黄灯 0x3 -> { - mIMoGoWaringProvider!!.disableWarningV2X(appId.toString()) - mIMoGoWaringProvider?.showWarningTrafficLight(2) - mIMoGoWaringProvider?.changeCountdownYellow(currentLight.count_down.toInt() + 1) - mIMoGoWaringProvider?.changeCountdownGreen(0) - mIMoGoWaringProvider?.changeCountdownRed(0) + CallerHmiManager.disableWarningV2X(appId.toString()) + CallerHmiManager.showWarningTrafficLight(2) + CallerHmiManager.changeCountdownYellow(currentLight.count_down.toInt() + 1) + CallerHmiManager.changeCountdownGreen(0) + CallerHmiManager.changeCountdownRed(0) } } } @@ -603,16 +610,16 @@ class MogoPrivateObuManager private constructor() { * @see com.mogo.module.common.enums.EventTypeEnum */ private fun handleSdkObu( - appId: Int, - direction: WarningDirectionEnum, - status: Int, - level: Int, - info: CvxV2vThreatIndInfo + appId: Int, + direction: WarningDirectionEnum, + status: Int, + level: Int, + info: CvxV2vThreatIndInfo ) { // 这里排除需要特殊定制的语音及文案外,其余的都可以使用 EventTypeEnum 提供的 LogUtils.dTag( MogoObuConst.TAG_MOGO_OBU, - "handleSdkObu appId = $appId --- handleDirection = $direction ---level = $level ---status = $status" + "handleSdkObu appId = $appId --- handleDirection = $direction ---level = $level ---status = $status" ) var alertContent: String var ttsContent: String @@ -622,16 +629,16 @@ class MogoPrivateObuManager private constructor() { alertContent = EventTypeEnum.getWarningContent(appId.toString()) ttsContent = EventTypeEnum.getWarningTts(appId.toString()) if ( - direction == WarningDirectionEnum.ALERT_WARNING_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT + direction == WarningDirectionEnum.ALERT_WARNING_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT ) { ttsContent = String.format(ttsContent, "左") alertContent = String.format(alertContent, "左") } else if ( - direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT + direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT ) { ttsContent = String.format(ttsContent, "右") alertContent = String.format(alertContent, "右") @@ -652,15 +659,15 @@ class MogoPrivateObuManager private constructor() { alertContent = EventTypeEnum.getWarningContent(appId.toString()) ttsContent = EventTypeEnum.getWarningTts(appId.toString()) if ( - direction == WarningDirectionEnum.ALERT_WARNING_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT + direction == WarningDirectionEnum.ALERT_WARNING_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT ) { ttsContent = String.format(ttsContent, "左") } else if ( - direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT + direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT ) { ttsContent = String.format(ttsContent, "右") } @@ -679,16 +686,16 @@ class MogoPrivateObuManager private constructor() { ttsContent = EventTypeEnum.getWarningTts(appId.toString()) alertContent = EventTypeEnum.getWarningContent(appId.toString()) if ( - direction == WarningDirectionEnum.ALERT_WARNING_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT + direction == WarningDirectionEnum.ALERT_WARNING_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_LEFT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_LEFT ) { //左后 ttsContent = String.format(ttsContent, "左") alertContent = String.format(alertContent, "左") } else if ( - direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || - direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT + direction == WarningDirectionEnum.ALERT_WARNING_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_TOP_RIGHT || + direction == WarningDirectionEnum.ALERT_WARNING_BOTTOM_RIGHT ) { //右后 ttsContent = String.format(ttsContent, "右") alertContent = String.format(alertContent, "右") @@ -708,24 +715,24 @@ class MogoPrivateObuManager private constructor() { ObuConstants.STATUS.UPDATE -> { LogUtils.dTag( MogoObuConst.TAG_MOGO_OBU, - "appId2 = $appId --- level = $level ---ttsContent = $ttsContent --- alertContent = $alertContent --- direction = $direction" + "appId2 = $appId --- level = $level ---ttsContent = $ttsContent --- alertContent = $alertContent --- direction = $direction" ) if (level == 2 || level == 3) { //显示弹框,语音提示 - mIMoGoWaringProvider?.showWarningV2X( - appId, - alertContent, - ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 - (appId + direction.direction).toString(),//使用当前事件类型+方向记录tag,当发生变化的时候关闭当前弹出新的 - object : WarningStatusListener { - override fun onDismiss() { - // 关闭警告红边 - mIMoGoWaringProvider!!.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) - } + CallerHmiManager.showWarningV2X( + appId, + alertContent, + ttsContent,// 只有第一次才tts,防止更新的时候不断的提醒 + (appId + direction.direction).toString(),//使用当前事件类型+方向记录tag,当发生变化的时候关闭当前弹出新的 + object : WarningStatusListener { + override fun onDismiss() { + // 关闭警告红边 + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) } + } ) //显示警告红边 - mIMoGoWaringProvider?.showWarning(direction) + CallerHmiManager.showWarning(direction) } //更新周边车辆进行预警颜色变换,车辆实时移动和变色 TrafficDataConvertUtils.cvxV2vThreatIndInfo2TrafficData(info)?.let { @@ -735,9 +742,9 @@ class MogoPrivateObuManager private constructor() { // 删除 ObuConstants.STATUS.DELETE -> { // 关闭警告红边 - mIMoGoWaringProvider!!.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) + CallerHmiManager.showWarning(WarningDirectionEnum.ALERT_WARNING_NON) // 移除顶部弹窗 - mIMoGoWaringProvider?.disableWarningV2X((appId + direction.direction).toString()) + CallerHmiManager.disableWarningV2X((appId + direction.direction).toString()) //更新周边车辆进行预警颜色变换,车辆实时移动和变色 TrafficDataConvertUtils.cvxV2vThreatIndInfo2TrafficData(info)?.let { it.threatLevel = 0x01 diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java deleted file mode 100644 index 9816b16684..0000000000 --- a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java +++ /dev/null @@ -1,16 +0,0 @@ -package com.mogo.eagle.core.function.call.hmi; - -import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWaringProvider; -import com.mogo.eagle.core.function.call.base.CallerBase; -import com.mogo.service.MogoServicePaths; - -/** - * @author xiaoyuzhou - * @date 2021/9/17 3:59 下午 - */ -public class CallerHmiManager extends CallerBase { - - public static IMoGoWaringProvider getWaringProviderApi() { - return getApiInstance(IMoGoWaringProvider.class, MogoServicePaths.PATH_V2X_WARNING); - } -} diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.kt b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.kt new file mode 100644 index 0000000000..4c5a21c981 --- /dev/null +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.kt @@ -0,0 +1,125 @@ +package com.mogo.eagle.core.function.call.hmi + +import com.mogo.eagle.core.data.constants.MogoServicePaths +import com.mogo.eagle.core.data.enums.WarningDirectionEnum +import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWaringProvider +import com.mogo.eagle.core.function.api.hmi.warning.WarningStatusListener +import com.mogo.eagle.core.function.call.base.CallerBase + +/** + * @author xiaoyuzhou + * @date 2021/9/17 3:59 下午 + */ +object CallerHmiManager : CallerBase() { + private val waringProviderApi: IMoGoWaringProvider + get() = getApiInstance(IMoGoWaringProvider::class.java, MogoServicePaths.PATH_V2X_WARNING) + + + /** + * 展示VR下V2X预警 + * + * @param v2xType V2X类型 + * @param alertContent 提醒文本 + * @param ttsContent tts语音播报消息 + * @param tag tag绑定弹窗的标志 + */ + fun showWarningV2X( + v2xType: Int, + alertContent: String?, + ttsContent: String?, + tag: String?, + listener: WarningStatusListener? + ) { + waringProviderApi.showWarningV2X(v2xType, alertContent, ttsContent, tag, listener) + } + + /** + * 关闭指定floatTag 的 VR下V2X预警弹窗 + * @param tag 弹窗标识 + */ + fun disableWarningV2X(tag: String?) { + waringProviderApi.disableWarningV2X(tag) + } + + /** + * 展示红绿灯预警 + * + * @param checkLightId 0-都是默认,1-红,2-黄,3-绿 + */ + fun showWarningTrafficLight(checkLightId: Int) { + waringProviderApi.showWarningTrafficLight(checkLightId) + } + + /** + * 关闭红绿灯预警 + */ + fun disableWarningTrafficLight() { + waringProviderApi.disableWarningTrafficLight() + } + + /** + * 修改红灯倒计时 + */ + fun changeCountdownRed(redNum: Int) { + waringProviderApi.changeCountdownRed(redNum) + } + + /** + * 修改黄灯倒计时 + */ + fun changeCountdownYellow(yellowNum: Int) { + waringProviderApi.changeCountdownYellow(yellowNum) + } + + /** + * 修改绿灯倒计时 + */ + fun changeCountdownGreen(greenNum: Int) { + waringProviderApi.changeCountdownGreen(greenNum) + } + + /** + * @param readNum 红灯倒计时 + * @param yellowNum 黄灯倒计时 + * @param greenNum 绿灯倒计时 + */ + fun changeCountdownTrafficLightNum(readNum: Int, yellowNum: Int, greenNum: Int) { + waringProviderApi.changeCountdownTrafficLightNum(readNum, yellowNum, greenNum) + } + + /** + * 展示限速预警 + * + * @param limitingSpeed 限速速度 + */ + fun showLimitingVelocity(limitingSpeed: Int) { + waringProviderApi.showLimitingVelocity(limitingSpeed) + } + + /** + * 关闭限速预警 + */ + fun disableLimitingVelocity() { + waringProviderApi.disableLimitingVelocity() + } + + /** + * 展示指定方位上的红框预警 + * @param direction + * @see WarningDirectionEnum + */ + fun showWarning(direction: WarningDirectionEnum) { + waringProviderApi.showWarning(direction) + } + + /** + * 展示指定方位上的红框预警 + * @param direction + * @see WarningDirectionEnum + * @param closeTime 倒计时 + */ + fun showWarning(direction: WarningDirectionEnum, closeTime: Long) { + waringProviderApi.showWarning(direction, closeTime) + } + +} \ No newline at end of file From 74c7169369f4a457bee5bc3338807532d4b9f1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Fri, 17 Sep 2021 21:12:20 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3,=E4=B8=8D=E7=9B=B4=E6=8E=A5=E8=AF=95?= =?UTF-8?q?=E7=94=A8ARout=E8=BF=9B=E8=A1=8C=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 董宏宇 # Conflicts: # core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java --- .../com/mogo/eagle/core/function/check/view/CheckActivity.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java index 2a02caf94d..11197a4cfe 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java @@ -23,7 +23,6 @@ import androidx.recyclerview.widget.RecyclerView; import com.mogo.commons.voice.AIAssist; import com.mogo.eagle.core.function.check.R; import com.mogo.eagle.core.function.check.model.CheckItemInfo; -import com.mogo.module.common.MogoApisHandler; import com.mogo.module.common.view.ImageViewClipBounds; import com.mogo.module.common.view.SpacesItemDecoration; import com.mogo.module.service.receiver.MogoReceiver; From e94d2c8715d42d813f2130269fa958f9a0a79143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=AE=8F=E5=AE=87?= Date: Fri, 17 Sep 2021 20:50:26 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3,=E4=B8=8D=E7=9B=B4=E6=8E=A5=E8=AF=95?= =?UTF-8?q?=E7=94=A8ARout=E8=BF=9B=E8=A1=8C=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 董宏宇 --- .../mogo-core-function-check/build.gradle | 1 + .../function/check/view/CheckActivity.java | 3 +- core/mogo-core-data/build.gradle | 2 +- core/mogo-core-function-call/build.gradle | 5 +- .../call/check/CallerCheckManager.java | 60 +++++++++++++++++++ .../function/call/map/CallerSmpManager.java | 2 +- modules/mogo-module-extensions/build.gradle | 2 + .../extensions/entrance/EntranceFragment.java | 7 ++- modules/mogo-module-main/build.gradle | 2 + .../main/monitoring/VehicleMonitoring.java | 3 +- 10 files changed, 79 insertions(+), 8 deletions(-) create mode 100644 core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/check/CallerCheckManager.java diff --git a/core/function-impl/mogo-core-function-check/build.gradle b/core/function-impl/mogo-core-function-check/build.gradle index c5cd8c4b8e..42995ca6df 100644 --- a/core/function-impl/mogo-core-function-check/build.gradle +++ b/core/function-impl/mogo-core-function-check/build.gradle @@ -58,6 +58,7 @@ dependencies { implementation project(':services:mogo-service-api') implementation project(':core:mogo-core-utils') + implementation project(':core:mogo-core-function-call') } implementation 'com.tencent.bugly:crashreport_upgrade:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 diff --git a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java index 11197a4cfe..4e55121023 100644 --- a/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java +++ b/core/function-impl/mogo-core-function-check/src/main/java/com/mogo/eagle/core/function/check/view/CheckActivity.java @@ -21,6 +21,7 @@ import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.RecyclerView; import com.mogo.commons.voice.AIAssist; +import com.mogo.eagle.core.function.call.check.CallerCheckManager; import com.mogo.eagle.core.function.check.R; import com.mogo.eagle.core.function.check.model.CheckItemInfo; import com.mogo.module.common.view.ImageViewClipBounds; @@ -127,7 +128,7 @@ public class CheckActivity extends AppCompatActivity { hardware(); //根据以上4个结果插入第一个元素(自动驾驶车辆是否存在风险) topListTitle(); - MogoApisHandler.getInstance().getApis().getCheckProvider().updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING,false); + CallerCheckManager.updateMonitoringStatus(MogoReceiver.ACTION_CHECK_VEHICLE_MONITORING,false); return true; } diff --git a/core/mogo-core-data/build.gradle b/core/mogo-core-data/build.gradle index d01467da07..c894e49e0c 100644 --- a/core/mogo-core-data/build.gradle +++ b/core/mogo-core-data/build.gradle @@ -44,7 +44,7 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation rootProject.ext.dependencies.kotlinstdlibjdk7 - + implementation rootProject.ext.dependencies.androidxappcompat if (Boolean.valueOf(RELEASE)) { } else { diff --git a/core/mogo-core-function-call/build.gradle b/core/mogo-core-function-call/build.gradle index 7ba076435f..09965e37ed 100644 --- a/core/mogo-core-function-call/build.gradle +++ b/core/mogo-core-function-call/build.gradle @@ -43,13 +43,16 @@ android { dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation rootProject.ext.dependencies.kotlinstdlibjdk7 + + implementation rootProject.ext.dependencies.arouter + kapt rootProject.ext.dependencies.aroutercompiler + if (Boolean.valueOf(RELEASE)) { } else { implementation project(':core:mogo-core-data') implementation project(':core:mogo-core-utils') implementation project(':core:mogo-core-function-api') - implementation project(':core:function-impl:mogo-core-function-hmi') } } diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/check/CallerCheckManager.java b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/check/CallerCheckManager.java new file mode 100644 index 0000000000..dfdf7e3ce4 --- /dev/null +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/check/CallerCheckManager.java @@ -0,0 +1,60 @@ +package com.mogo.eagle.core.function.call.check; + +import android.content.Context; + +import com.mogo.eagle.core.data.constants.MogoServicePaths; +import com.mogo.eagle.core.function.api.check.ICheckProvider; +import com.mogo.eagle.core.function.api.check.IMogoCheckListener; +import com.mogo.eagle.core.function.call.base.CallerBase; + +/** + * @author xiaoyuzhou + * @date 2021/9/17 8:26 下午 + */ +public class CallerCheckManager extends CallerBase { + + private static ICheckProvider getCheckProvider() { + return getApiInstance(ICheckProvider.class, MogoServicePaths.PATH_CHECK); + } + + + /** + * 注册车辆监控变化监听 + * + * @param module 监听模块 + * @param listener 回调监听对象 + */ + public static void registerVehicleMonitoringListener(String module, IMogoCheckListener listener) { + getCheckProvider().registerVehicleMonitoringListener(module, listener); + } + + /** + * 注销车辆监控变化监听 + * + * @param module + */ + public static void unregisterListener(String module, IMogoCheckListener listener) { + getCheckProvider().unregisterListener(module, listener); + } + + /** + * 启动检测模块 + */ + public static void startCheckActivity(Context context) { + getCheckProvider().startCheckActivity(context); + } + + /** + * 根据监测指标修改主页检测按钮 + */ + public static void updateMonitoringStatus(String module, boolean hasError) { + getCheckProvider().updateMonitoringStatus(module, hasError); + } + + /** + * 指标监测 + */ + public static boolean checkMonitor(Context context) { + return getCheckProvider().checkMonitor(context); + } +} diff --git a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/map/CallerSmpManager.java b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/map/CallerSmpManager.java index ea3c7aaa04..fc9d3a2178 100644 --- a/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/map/CallerSmpManager.java +++ b/core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/map/CallerSmpManager.java @@ -1,9 +1,9 @@ package com.mogo.eagle.core.function.call.map; +import com.mogo.eagle.core.data.constants.MogoServicePaths; import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.eagle.core.function.api.map.smp.IMogoSmallMapProvider; import com.mogo.eagle.core.function.call.base.CallerBase; -import com.mogo.service.MogoServicePaths; import java.util.List; diff --git a/modules/mogo-module-extensions/build.gradle b/modules/mogo-module-extensions/build.gradle index 0aedc8e945..e8567b4506 100644 --- a/modules/mogo-module-extensions/build.gradle +++ b/modules/mogo-module-extensions/build.gradle @@ -67,7 +67,9 @@ dependencies { implementation project(':modules:mogo-module-common') implementation project(':modules:mogo-module-share') implementation project(':modules:mogo-module-service') + implementation project(':core:mogo-core-data') + implementation project(':core:mogo-core-function-call') } } diff --git a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java index 661f23d6d5..64190b4bf3 100644 --- a/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java +++ b/modules/mogo-module-extensions/src/main/java/com/mogo/module/extensions/entrance/EntranceFragment.java @@ -36,6 +36,7 @@ import com.mogo.commons.mvp.MvpFragment; import com.mogo.commons.voice.AIAssist; import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.eagle.core.function.api.check.IMogoCheckListener; +import com.mogo.eagle.core.function.call.check.CallerCheckManager; import com.mogo.map.listener.IMogoMapListener; import com.mogo.map.location.IMogoLocationClient; import com.mogo.map.marker.IMogoMarkerManager; @@ -407,7 +408,7 @@ public class EntranceFragment extends MvpFragment Date: Fri, 17 Sep 2021 21:13:25 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=8A=BD=E7=A6=BB=E8=B0=83=E7=94=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3,=E4=B8=8D=E7=9B=B4=E6=8E=A5=E8=AF=95?= =?UTF-8?q?=E7=94=A8ARout=E8=BF=9B=E8=A1=8C=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 董宏宇 # Conflicts: # core/mogo-core-function-call/src/main/java/com/mogo/eagle/core/function/call/hmi/CallerHmiManager.java --- .../core/data/constants/MogoServicePaths.java | 398 ++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/constants/MogoServicePaths.java diff --git a/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/constants/MogoServicePaths.java b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/constants/MogoServicePaths.java new file mode 100644 index 0000000000..04e8fb422b --- /dev/null +++ b/core/mogo-core-data/src/main/java/com/mogo/eagle/core/data/constants/MogoServicePaths.java @@ -0,0 +1,398 @@ +package com.mogo.eagle.core.data.constants; + +import androidx.annotation.Keep; + +/** + * @author congtaowang + * @since 2019-12-23 + *

+ * 对外服务模块路径 + *

+ *

+ * 使用方式: + *

+ * Arouter.getInstance().path("").navigate() + */ +@Keep +public class MogoServicePaths { + + /** + * 地图服务接口ARouter实例化路径 + */ + @Keep + @Deprecated + public static final String PATH_SERVICES_MAP = "/mapservices/api"; + + /** + * 图片接口ARouter实例化路径 + */ + @Keep + @Deprecated + public static final String PATH_UTILS_IMAGE_LOADER = "/imageloader/api"; + + /** + * 埋点接口ARouter实例化路径 + */ + @Keep + @Deprecated + public static final String PATH_UTILS_ANALYTICS = "/utils/analytics"; + + + /** + * 网络服务接口路径 + */ + @Keep + @Deprecated + public static final String PATH_SERVICES_NETWORK = "/networkservices/api"; + + /** + * netty 长链 + */ + @Keep + @Deprecated + public static final String PATH_SOCKET_MANAGER = "/socket/manager"; + + /** + * WebSocket 长链 + */ + @Keep + @Deprecated + public static final String PATH_WEB_SOCKET_MANAGER = "/websocket/manager"; + + /** + * 状态管理接口 + */ + @Keep + @Deprecated + public static final String PATH_STATUS_MANAGER = "/statusmanager/api"; + + /** + * 消息中心 + */ + @Keep + @Deprecated + public static final String PATH_MSG_CENTER = "/msgcenter/api"; + + /** + * 消息中心 + */ + @Keep + @Deprecated + public static final String PATH_WINDOW_MANAGER = "/windowmanger/api"; + + /** + * 卡片控制 + */ + @Keep + @Deprecated + public static final String PATH_CARD_MANAGER = "/cardmanager/api"; + + /** + * 管理 fragment + */ + @Keep + @Deprecated + public static final String PATH_FRAGMENT_MANAGER = "/fragmentmanager/api"; + + /** + * 免唤醒语音控制 + * + * @deprecated use {@link #PATH_INTENT_MANAGER} instead. + */ + @Keep + @Deprecated + public static final String PATH_VOICE_MANAGER = "/voicemanager/api"; + + /** + * 意图控制接口 + */ + @Keep + @Deprecated + public static final String PATH_INTENT_MANAGER = "/intentmanager/api"; + + /** + * 基础功能监听回调注册 + */ + @Keep + @Deprecated + public static final String PATH_REGISTER_CENTER = "/registercenter/api"; + + /** + * 基础家和公司管理 + */ + @Keep + @Deprecated + public static final String PATH_ADDRESS_MANAGER = "/addressmanager/api"; + + /** + * 导航搜索模块管理 + */ + @Keep + @Deprecated + public static final String PATH_SEARCH_MANAGER = "/searchmanager/api"; + + /** + * 基础设置参数管理 + */ + @Keep + @Deprecated + public static final String PATH_SETTING_MANAGER = "/settingmanager/api"; + + + /** + * 搜索module管理中心 + */ + @Keep + @Deprecated + public static final String PATH_SERACH_CENTER = "/searchcenter/api"; + + /** + * 大而全数据管理中心 + */ + @Keep + @Deprecated + public static final String PATH_DATA_MANAGER = "/datamanager/api"; + + /** + * adas 控制 + */ + @Keep + @Deprecated + public static final String PATH_ADAS_CONTROLLER = "/adascontroller/api"; + + /** + * 接口集合 + */ + @Keep + @Deprecated + public static final String PATH_SERVICE_APIS = "/mogoservice/apis"; + + /** + * 动作指令 + */ + @Keep + @Deprecated + public static final String PATH_ACTION_APIS = "/mogoaction/api"; + + /** + * 刷新策略控制 + */ + @Keep + @Deprecated + public static final String PATH_REFRESH_STRATEGY_API = "/refreshstrategy/api"; + + /** + * 刷新策略控制 + */ + @Keep + @Deprecated + public static final String PATH_LAUNCHER_API = "/launcher/api"; + + /** + * 入口按钮 + */ + @Keep + @Deprecated + public static final String PATH_ENTRANCE_BUTTON_API = "/entrancebutton/api"; + + /** + * 顶部1/2屏管理 + */ + @Keep + @Deprecated + public static final String PATH_EXTENSIONS_TOP_VIEW_MANAGER = "/topview/api"; + + /** + * 浓雾等极端事件特殊效果 + */ + @Keep + @Deprecated + public static final String PATH_MAIN_DISPLAY_EFFECTS_MANAGER = "/displayeffects/api"; + + /** + * 其他模块调用公共的marker打点 + */ + @Keep + @Deprecated + public static final String PATH_MARKER_SERVICE = "/mogomarker/api"; + + /** + * 其他模块调用分享框 + */ + @Keep + @Deprecated + public static final String PATH_SHARE = "/extensions/share"; + + /** + * obu相关接口 + */ + @Keep + @Deprecated + public static final String PATH_OBU = "/obu/api"; + + /** + * 事件面板 + */ + @Keep + @Deprecated + public static final String PATH_EVENT_PANEL = "/event/panel"; + + /** + * 左侧面板 + */ + @Keep + @Deprecated + public static final String PATH_LEFT_PANEL = "/left/panel"; + + /** + * 比亚迪模块 + */ + @Keep + @Deprecated + public static final String PATH_SPLASH = "/splash/api"; + + /** + * 位置上报 + */ + @Keep + @Deprecated + public static final String PATH_LOCATION_INFO = "/locationinfo/api"; + + /** + * passport + */ + @Keep + @Deprecated + public static final String PATH_PASSPORT = "/passport/api"; + + /** + * 授权服务 + */ + @Keep + @Deprecated + public static final String PATH_AGREEMENT = "/agreement/showFragment"; + + /** + * 日志上传 + */ + @Keep + @Deprecated + public static final String PATH_MOGO_MONITOR = "/monitor/api"; + + /** + * 探路api + */ + @Keep + @Deprecated + public static final String PATH_TANLU_API = "/tanlulib/api"; + + /** + * 策略上报 + */ + @Keep + @Deprecated + public static final String PATH_STRATEGY_SHARE = "/share/strategy"; + + /** + * 分享模块中,交通状况服务上报 + */ + @Keep + @Deprecated + public static final String PATH_TRAFFIC_UPLOAD = "/share/traffic"; + + /** + * 高德地图巡航上报 + */ + @Keep + @Deprecated + public static final String PATH_GAODE_AIMLESS_SHARE = "/share/gaodeAimless"; + + /** + * 探路ui + */ + @Keep + @Deprecated + public static final String PATH_TANLU_UI_API = "/tanlu/ui"; + + /** + * 碰撞报警模块 已碰撞 + */ + @Keep + @Deprecated + public static final String PATH_CRASH_WARNING = "/crash/warning"; + + /** + * 悬浮小控件 + */ + @Keep + @Deprecated + public static final String PATH_WIDGETS = "/widgets/provider"; + + /** + * 在线好友面板 + */ + @Keep + @Deprecated + public static final String PATH_ONLINE_CAR_PANEL = "/onlinecar/panel"; + + /** + * 全局免唤醒 + */ + @Keep + @Deprecated + public static final String PATH_GLOBAL_UNWAKE = "/global/unwake"; + + /** + * 返回悬浮按钮 + */ + @Keep + @Deprecated + public static final String PATH_BACK = "/back2launcher/ui"; + + /** + * 自研地图和高德地图切换 + */ + @Keep + @Deprecated + public static final String PATH_MAP_FRAME_CONTROLLER = "/mapframe/controller"; + + /** + * 小地图控件 + */ + @Keep + @Deprecated + public static final String PATH_SMALL_MAP = "/small_map/api"; + + /** + * ADAS 模块 + */ + @Keep + @Deprecated + public static final String PATH_ADAS = "/adas/api"; + + /** + * 车辆检测 模块 + */ + public static final String PATH_CHECK = "/check/api"; + + /** + * 前方碰撞预警 未碰撞 + */ + @Keep + @Deprecated + public static final String PATH_V2X_FRONT_CRASH_WARNING = "/front/crashwarning"; + + /** + * warning 模块 + */ + @Keep + @Deprecated + public static final String PATH_V2X_WARNING = "/warning/api"; + + /** + * obu-mogo 模块 + */ + @Keep + @Deprecated + public static final String PATH_V2X_OBU_MOGO = "/obu_mogo/api"; +}