From b89f7cae1ab30413ec06d47708c3910a8b299e9a Mon Sep 17 00:00:00 2001 From: renwj Date: Mon, 26 Feb 2024 11:21:02 +0800 Subject: [PATCH] =?UTF-8?q?[6.3.0][=E5=B0=8F=E6=99=BA=E5=BD=A2=E8=B1=A1]?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0v2n=E4=BA=8B=E4=BB=B6=E5=B0=8F=E6=99=BA?= =?UTF-8?q?=E5=BD=A2=E8=B1=A1=E7=8A=B6=E6=80=81=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt | 4 ++++ .../v2x/v2n/scenario/scene/road/V2XRoadEventScenario.java | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt index 8d281816a8..9cce260402 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/pnc/V2NIdentifyDrawer.kt @@ -19,6 +19,8 @@ import com.mogo.eagle.core.function.angle.scenes.Default import com.mogo.eagle.core.function.angle.scenes.RoadEvent import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener +import com.mogo.eagle.core.function.api.hmi.xiaozhi.event.Event +import com.mogo.eagle.core.function.api.hmi.xiaozhi.state.State import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotIdentifyListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager import com.mogo.eagle.core.function.call.autopilot.CallerV2XListenerManager.V2NCarTypeCheck @@ -233,6 +235,7 @@ internal object V2NIdentifyDrawer { object : IMoGoWarningStatusListener { override fun onShow() { super.onShow() + CallerHmiManager.notifyXiaoZhiStatusChanged(Event.V2N, State.START) CallerVisualAngleManager.changeAngle( RoadEvent( lon, @@ -244,6 +247,7 @@ internal object V2NIdentifyDrawer { override fun onDismiss() { super.onDismiss() + CallerHmiManager.notifyXiaoZhiStatusChanged(Event.V2N, State.STOP) CallerVisualAngleManager.changeAngle(Default()) } }, diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/scenario/scene/road/V2XRoadEventScenario.java b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/scenario/scene/road/V2XRoadEventScenario.java index c26f41219e..88d8f62c05 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/scenario/scene/road/V2XRoadEventScenario.java +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/v2x/v2n/scenario/scene/road/V2XRoadEventScenario.java @@ -1,5 +1,7 @@ package com.mogo.eagle.function.biz.v2x.v2n.scenario.scene.road; +import android.telecom.Call; + import com.mogo.commons.AbsMogoApplication; import com.mogo.eagle.core.data.enums.CommunicationType; import com.mogo.eagle.core.data.enums.DataSourceType; @@ -15,6 +17,8 @@ import com.mogo.eagle.core.data.msgbox.V2XMsg; import com.mogo.eagle.core.function.angle.scenes.Default; import com.mogo.eagle.core.function.angle.scenes.RoadEvent; import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener; +import com.mogo.eagle.core.function.api.hmi.xiaozhi.event.Event; +import com.mogo.eagle.core.function.api.hmi.xiaozhi.state.State; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager; import com.mogo.eagle.core.function.call.hmi.CallerHmiManager; import com.mogo.eagle.core.function.call.map.CallerVisualAngleManager; @@ -157,6 +161,7 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp @Override public void onShow() { + CallerHmiManager.INSTANCE.notifyXiaoZhiStatusChanged(Event.V2N, State.START); V2XMessageEntity entity = getV2XMessageEntity(); if (entity != null) { V2XRoadEventEntity content = entity.getContent(); @@ -185,6 +190,7 @@ public class V2XRoadEventScenario extends AbsV2XScenario imp @Override public void onDismiss() { + CallerHmiManager.INSTANCE.notifyXiaoZhiStatusChanged(Event.V2N, State.STOP); if (isNeedChangeAngle()) { CallerVisualAngleManager.INSTANCE.changeAngle(new Default(3, TimeUnit.SECONDS)); }