From 8233e69f9986383e29cbf7b3058f6f7f1f0de91e Mon Sep 17 00:00:00 2001 From: donghongyu Date: Mon, 7 Feb 2022 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?[Change]=20=E6=9B=BF=E6=8D=A2=E4=B8=BB=E5=8A=A8?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=87=AA=E5=8A=A8=E9=A9=BE=E9=A9=B6=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E8=B0=83=E7=94=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: donghongyu --- .../bus/fragment/BaseOchBusTabFragment.java | 6 +-- .../mogo/och/bus/fragment/OchBusFragment.java | 5 ++- .../och/bus/presenter/OchBusOrderModel.java | 3 +- .../passenger/ui/BaseOchTaxiTabFragment.java | 5 ++- .../och/taxi/ui/BaseOchTaxiTabFragment.java | 5 ++- .../mogo/module/adas/AdasEventManager.java | 19 -------- .../com/mogo/module/adas/AdasProvider.java | 4 -- .../mogo/module/adas/IAdasDataListener.java | 9 ---- .../main/monitoring/VehicleMonitoring.java | 16 +++---- .../service/adas/IMogoADASController.java | 21 --------- .../service/impl/adas/MogoADASController.java | 43 ------------------- 11 files changed, 21 insertions(+), 115 deletions(-) diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java index 8edd69b9a1..cf9f317208 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java @@ -1,14 +1,12 @@ package com.mogo.och.bus.fragment; import android.animation.ObjectAnimator; -import android.annotation.SuppressLint; import android.content.Intent; import android.graphics.Color; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.animation.LinearInterpolator; -import android.widget.CheckedTextView; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; @@ -24,9 +22,9 @@ import com.mogo.commons.mvp.MvpFragment; import com.mogo.commons.mvp.Presenter; import com.mogo.commons.voice.AIAssist; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.hmi.CallerHmiManager; import com.mogo.eagle.core.utilcode.mogo.logger.Logger; -import com.mogo.eagle.core.utilcode.mogo.toast.TipToast; import com.mogo.eagle.core.utilcode.util.UiThreadHandler; import com.mogo.map.listener.IMogoMapListener; import com.mogo.map.uicontroller.VisualAngleMode; @@ -159,7 +157,7 @@ public abstract class BaseOchBusTabFragment // MogoApisHandler.getInstance().getApis() diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java index 367f417ac0..9673c91ce4 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java @@ -12,6 +12,7 @@ import com.mogo.commons.AbsMogoApplication; import com.mogo.commons.debug.DebugConfig; import com.mogo.commons.voice.AIAssist; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.utilcode.mogo.logger.Logger; import com.mogo.eagle.core.utilcode.mogo.toast.TipToast; import com.mogo.map.marker.MogoMarkerOptions; @@ -88,9 +89,9 @@ public class OchBusFragment extends BaseOchBusTabFragment< OchBusFragment, OchBu mPresenter.onAutopilotArriveAtStation(null); }); - Logger.d( TAG, "initView: " + MogoApisHandler.getInstance().getApis().getAdasControllerApi().getAutopilotStatus() ); + Logger.d( TAG, "initView: " + CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState()); // 初始化的时候设置 UI 按钮状态 - switch ( MogoApisHandler.getInstance().getApis().getAdasControllerApi().getAutopilotStatus() ) { + switch ( CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState() ) { case IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_DISABLE: hideAutopilotBiz(); break; diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusOrderModel.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusOrderModel.java index 60e6cc4475..1cb2abe29a 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusOrderModel.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/presenter/OchBusOrderModel.java @@ -18,6 +18,7 @@ import com.mogo.eagle.core.data.map.MogoLatLng; import com.mogo.eagle.core.data.map.MogoLocation; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.utilcode.mogo.logger.Logger; import com.mogo.eagle.core.utilcode.mogo.toast.TipToast; import com.mogo.eagle.core.utilcode.util.NetworkUtils; @@ -631,7 +632,7 @@ public class OchBusOrderModel { if ( lastStopStation <= nextStopStation || nextStopStation <= currentStationIndex ) { return; } - if ( MogoApisHandler.getInstance().getApis().getAdasControllerApi().getAutopilotStatus() + if ( CallerAutoPilotStatusListenerManager.INSTANCE.getAutoPilotStatusInfo().getState() == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING ) { // 自动驾驶中动态设置下一个停靠站点/ autoDriveToNextStation( true ); diff --git a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/BaseOchTaxiTabFragment.java b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/BaseOchTaxiTabFragment.java index 34fd3a36b0..dc6d37d710 100644 --- a/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/BaseOchTaxiTabFragment.java +++ b/OCH/mogo-och-taxi-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/BaseOchTaxiTabFragment.java @@ -27,6 +27,7 @@ import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters; import com.mogo.eagle.core.data.config.FunctionBuildConfig; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotManager; +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; import com.mogo.eagle.core.function.call.hmi.CallerHmiManager; import com.mogo.eagle.core.function.call.map.CallerSmpManager; import com.mogo.eagle.core.utilcode.mogo.logger.Logger; @@ -152,7 +153,7 @@ public abstract class BaseOchTaxiTabFragment @@ -334,7 +335,7 @@ public abstract class BaseOchTaxiTabFragment @@ -326,7 +327,7 @@ public abstract class BaseOchTaxiTabFragment