[8.2.6][] 平行驾驶介入及退出提醒以及提醒控制开关

This commit is contained in:
xinfengkun
2025-10-30 15:04:38 +08:00
parent 87fc8dbaf2
commit 2dbf9205e7
26 changed files with 492 additions and 4 deletions

View File

@@ -453,6 +453,14 @@ class MoGoHmiProvider : IMoGoHmiProvider {
MogoStatusManager.getInstance().setTaxiUnmanedDriverLineRoutingVerifyMode(TAG, isMode)
}
override fun setRemoteNoticeMode(isMode: Boolean) {
MogoStatusManager.getInstance().setRemoteNoticeMode(TAG, isMode)
}
override fun isRemoteNoticeMode(): Boolean {
return MogoStatusManager.getInstance().isRemoteNoticeMode
}
override fun registerXiaoZhiStatusChangeListener(listener: OnXiaoZhiStateChangeListener) {
xiaozhi.addListener(listener)
}

View File

@@ -1088,6 +1088,7 @@ class OperatePanelLayout : LinearLayout {
private const val KEY_WEATHER_EFFECT_SWITCH = "weather_effect_switch"
private const val KEY_SYSTEM_BOOT_STATUS_SHOW = "system_boot_status_show"
private const val KEY_SELF_ROUTING_VERIFY_MODE = "self_routing_verify_mode"
private const val KEY_REMOTE_MODE_SHOW_NOTICE = "remote_mode_show_notice"
private const val KEY_UNMANNED_DEMO_PULL_INTERVAL = "unmanned_demo_pull_interval"
private const val KEY_SWEEPER_CLOUD_CONTROL = "sweeper_cloud_control"
private const val KEY_LOOK_AROUND_360 = "look_around_360"
@@ -1140,6 +1141,9 @@ class OperatePanelLayout : LinearLayout {
KEY_SELF_ROUTING_VERIFY_MODE -> {
return CallerHmiManager.isTaxiUnmanedDriverLineRoutingVerifyMode()
}
KEY_REMOTE_MODE_SHOW_NOTICE -> {
return CallerHmiManager.isRemoteNoticeMode()
}
KEY_LOOK_AROUND_360 -> {
return CallerHmiManager.isM1360LookAroundShowing()
}
@@ -1177,6 +1181,9 @@ class OperatePanelLayout : LinearLayout {
||AppIdentityModeUtils.isShuttleDriver(FunctionBuildConfig.appIdentityMode)
||AppIdentityModeUtils.isScheduled(FunctionBuildConfig.appIdentityMode)
}
KEY_REMOTE_MODE_SHOW_NOTICE -> {
AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)
}
KEY_LOOK_AROUND_360 -> {
AppIdentityModeUtils.isM1(FunctionBuildConfig.appIdentityMode)
}
@@ -1285,6 +1292,12 @@ class OperatePanelLayout : LinearLayout {
}
return true
}
KEY_REMOTE_MODE_SHOW_NOTICE -> {
val isChecked = newValue as? Boolean ?: true
CallerHmiManager.setRemoteNoticeMode(isChecked)
clickEventAnalytics("平行驾驶介入及退出提醒", isChecked)
return true
}
KEY_SELF_ROUTING_VERIFY_MODE -> {
val isChecked = newValue as? Boolean ?: false
if (isChecked) {

View File

@@ -792,6 +792,19 @@
app:layout_constraintRight_toRightOf="@id/otherGuideLine"
app:layout_constraintTop_toBottomOf="@id/scSweeperModeSwitch" />
<!--平行驾驶是否提醒开关 -->
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/scRemoteModelNotice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_25"
android:scaleX="1.2"
android:scaleY="1.2"
android:text="平行驾驶介入及退出提醒"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="@id/otherGuideLine"
app:layout_constraintTop_toBottomOf="@id/scSweeperModeSwitch" />
<!--天气效果开关-->
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/scWeatherSwitch"

View File

@@ -39,6 +39,13 @@
android:title="自主算路验证模式"
android:persistent="false"
android:widgetLayout="@layout/layout_operate_panel_preference_widget_switch_compat" />
<SwitchPreferenceCompat
android:key="remote_mode_show_notice"
android:layout="@layout/layout_operate_panel_preference_switch_compat"
android:title="平行驾驶介入及退出提醒"
android:persistent="false"
android:defaultValue="true"
android:widgetLayout="@layout/layout_operate_panel_preference_widget_switch_compat" />
<SwitchPreferenceCompat
android:key="sweeper_cloud_control"
android:layout="@layout/layout_operate_panel_preference_switch_compat"