[6.4.0]将原主动录包入口移到工具箱,原录包入口改为工单上报

This commit is contained in:
xuxinchao
2024-04-19 19:55:20 +08:00
parent e6d2630821
commit 99b872e26a
10 changed files with 39 additions and 10 deletions

View File

@@ -214,7 +214,7 @@ public abstract class BaseBusTabFragment<V extends IView, P extends Presenter<V>
mBadcaseBtn = findViewById(R.id.module_mogo_och_badcase_rl);
if (mBadcaseBtn != null) {
CallerDevaToolsManager.INSTANCE.initBadCase(mBadcaseBtn);
CallerDevaToolsManager.INSTANCE.reportWorkOrder(mBadcaseBtn);
}
//消息盒子

View File

@@ -22,7 +22,7 @@ import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotRecordListenerManager
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.attachAutopilotBeforeLaunchView
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.initAiCollect
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.initBadCase
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.reportWorkOrder
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager.showToolsView
import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxBubbleView
import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxButtonView
@@ -161,7 +161,7 @@ abstract class CharterBaseFragment<V : IView?, P : Presenter<V>?>() :
// mBadcaseBtn的visible显示逻辑在showBadcaseEntrance内处理
mBadcaseBtn = findViewById(R.id.module_mogo_och_badcase_rl)
if (mBadcaseBtn != null) {
initBadCase(mBadcaseBtn!!)
reportWorkOrder(mBadcaseBtn!!)
CallerAutopilotRecordListenerManager.addListener(TAG, this)
}
mAICollectBtn = findViewById(R.id.module_mogo_och_ai_collet_rl)

View File

@@ -205,7 +205,7 @@ public abstract class BaseShuttleTabFragment<V extends IView, P extends Presente
mBadcaseBtn = findViewById(R.id.module_mogo_och_badcase_rl);
if (mBadcaseBtn != null) {
CallerDevaToolsManager.INSTANCE.initBadCase(mBadcaseBtn);
CallerDevaToolsManager.INSTANCE.reportWorkOrder(mBadcaseBtn);
}
mAICollectBtn = findViewById(R.id.module_mogo_och_ai_collet_rl);

View File

@@ -351,7 +351,7 @@ public abstract class BaseSweeperCloudTabFragment<V extends IView, P extends Pre
CallerHmiManager.INSTANCE.showToolsView();
});
if (mCardBtn != null) {
CallerDevaToolsManager.INSTANCE.initBadCase(mCardBtn);
CallerDevaToolsManager.INSTANCE.reportWorkOrder(mCardBtn);
}
if (mAICollectBtn != null) {
CallerDevaToolsManager.INSTANCE.initAiCollect(mAICollectBtn);

View File

@@ -348,7 +348,7 @@ public abstract class BaseSweeperOperateTabFragment<V extends IView, P extends P
});
mSettingBtn.setOnClickListener(v -> CallerHmiManager.INSTANCE.showToolsView());
if (mCardBtn != null) {
CallerDevaToolsManager.INSTANCE.initBadCase(mCardBtn);
CallerDevaToolsManager.INSTANCE.reportWorkOrder(mCardBtn);
}
if (mAICollectBtn != null) {
CallerDevaToolsManager.INSTANCE.initAiCollect(mAICollectBtn);

View File

@@ -173,7 +173,7 @@ public abstract class BaseTaxiTabFragment<V extends IView, P extends Presenter<V
// mBadcaseBtn的visible显示逻辑在showBadcaseEntrance内处理
mBadcaseBtn = findViewById(R.id.module_och_taxi_badcase_ll);
if (mBadcaseBtn != null) {
CallerDevaToolsManager.INSTANCE.initBadCase(mBadcaseBtn);
CallerDevaToolsManager.INSTANCE.reportWorkOrder(mBadcaseBtn);
CallerAutopilotRecordListenerManager.INSTANCE.addListener(TAG, this);
}

View File

@@ -21,7 +21,7 @@ import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager.getState
import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotRecordListenerManager
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.initBadCase
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager.reportWorkOrder
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager.showToolsView
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager.getMapUIController
import com.mogo.eagle.core.function.hmi.ui.msgbox.DriverMsgBoxButtonView
@@ -163,7 +163,7 @@ abstract class BaseTaxiTabFragment<V : IView, P : Presenter<V>> : MvpFragment<V,
// mBadCaseBtn的visible显示逻辑在showBadcaseEntrance内处理
if (module_och_taxi_badcase_ll != null) {
initBadCase(module_och_taxi_badcase_ll)
reportWorkOrder(module_och_taxi_badcase_ll)
CallerAutopilotRecordListenerManager.addListener(TAG, this)
}
debugPanelView = LayoutInflater.from(context)

View File

@@ -137,6 +137,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
sopLayout.setOnClickListener {
clickListener?.showSOPSettingView()
}
//录包
CallerDevaToolsManager.initBadCase(badCaseReportLayout)
//BadCase上报
CallerDevaToolsManager.initAiCollect(badCaseLayout)
ivDebugPanel.setOnClickListener {

View File

@@ -146,6 +146,32 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/badCaseReportLayout"
android:layout_width="wrap_content"
android:layout_height="@dimen/dp_216"
android:layout_marginTop="@dimen/dp_90"
app:layout_constraintLeft_toLeftOf="@id/sopLayout"
app:layout_constraintTop_toBottomOf="@id/sopLayout">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_centerHorizontal="true"
android:background="@drawable/debug_icon_bag_manager"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="42dp"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="@string/debug_bad_case"
android:textColor="@color/color_FFA7B6F0"
android:textSize="32dp" />
</RelativeLayout>
<com.mogo.eagle.core.function.hmi.ui.widget.CheckSystemView
android:id="@+id/checkSystemView"
android:layout_width="wrap_content"
@@ -174,7 +200,7 @@
android:layout_height="wrap_content"
android:visibility="gone"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/sopLayout">
app:layout_constraintTop_toBottomOf="@id/badCaseReportLayout">
<View
android:layout_width="14dp"

View File

@@ -23,6 +23,7 @@
<string name="debug_panel">调试面板</string>
<string name="debug_panel_fb">录包设置</string>
<string name="debug_sop">运营面板</string>
<string name="debug_bad_case">录包</string>
<string name="debug_bad_case_manager">录包管理</string>
<string name="debug_bad_case_report">上报</string>
<string name="check_vehicle_speed_setting">车速设置</string>