[8.2.8][i18n] 所有吐司 中文抽取
This commit is contained in:
@@ -15,6 +15,7 @@ import com.mogo.eagle.core.data.map.MogoLatLng
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoPlanningRottingListener
|
||||
import com.mogo.eagle.core.function.api.hmi.autopilot.IMoGoCheckAutoPilotBtnListener
|
||||
import com.mogo.eagle.core.function.biz.R
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotControlManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerPlanningRottingListenerManager
|
||||
@@ -24,6 +25,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_BIZ
|
||||
import com.mogo.eagle.core.utilcode.util.CoordinateUtils
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.eagle.function.biz.dispatch.network.DispatchServiceModel.Companion.DISPATCH_COMPLETED
|
||||
import com.mogo.eagle.function.biz.dispatch.network.DispatchServiceModel.Companion.DISPATCH_RESULT_AFFIRM
|
||||
@@ -162,42 +164,50 @@ class DispatchAutoPilotManager private constructor() :
|
||||
}
|
||||
if(it.trajUrl == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "trajUrl-null")
|
||||
ToastUtils.showShort("trajUrl数据为空")
|
||||
// ToastUtils.showShort("trajUrl数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_traj_url_data_null)
|
||||
return
|
||||
}
|
||||
if(it.trajMd5 == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "trajMd5-null")
|
||||
ToastUtils.showShort("trajMd5数据为空")
|
||||
// ToastUtils.showShort("trajMd5数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_traj_md5_data_null)
|
||||
return
|
||||
}
|
||||
if(it.stopUrl == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "stopUrl-null")
|
||||
ToastUtils.showShort("stopUrl数据为空")
|
||||
// ToastUtils.showShort("stopUrl数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_stop_url_data_null)
|
||||
return
|
||||
}
|
||||
if(it.stopMd5 == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "stopMd5-null")
|
||||
ToastUtils.showShort("stopMd5数据为空")
|
||||
// ToastUtils.showShort("stopMd5数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_stop_md5_data_null)
|
||||
return
|
||||
}
|
||||
if(it.vehicleModel == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "vehicleModel-null")
|
||||
ToastUtils.showShort("vehicleModel数据为空")
|
||||
// ToastUtils.showShort("vehicleModel数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_vehicle_model_data_null)
|
||||
return
|
||||
}
|
||||
if(it.lineName == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "lineName-null")
|
||||
ToastUtils.showShort("lineName数据为空")
|
||||
// ToastUtils.showShort("lineName数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_line_name_data_null)
|
||||
return
|
||||
}
|
||||
if(it.startLocAddress == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "startLocAddress-null")
|
||||
ToastUtils.showShort("startLocAddress数据为空")
|
||||
// ToastUtils.showShort("startLocAddress数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_start_loc_address_data_null)
|
||||
return
|
||||
}
|
||||
if(it.endLocAddress == null){
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, "endLocAddress-null")
|
||||
ToastUtils.showShort("endLocAddress数据为空")
|
||||
// ToastUtils.showShort("endLocAddress数据为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_end_loc_address_data_null)
|
||||
return
|
||||
}
|
||||
val currentAutoPilotLine = AutopilotControlParameters.AutoPilotLine(it.lineId.toLong(),it.lineName,it.trajUrl,it.trajMd5,
|
||||
@@ -227,7 +237,8 @@ class DispatchAutoPilotManager private constructor() :
|
||||
//调用工控机开启自动驾驶
|
||||
startAutoPilot()
|
||||
},onError = { error->
|
||||
ToastUtils.showShort("上报调度失败${error}")
|
||||
// ToastUtils.showShort("上报调度失败${error}")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_reported_dispatch_failure, error)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -244,10 +255,13 @@ class DispatchAutoPilotManager private constructor() :
|
||||
//取消自动驾驶
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
isDispatch = false
|
||||
ToastUtils.showShort("云调度取消确认成功")
|
||||
// ToastUtils.showShort("云调度取消确认成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_cloud_cancel_autopilot_success)
|
||||
CallerLogger.i("$M_BIZ$TAG","stopAffirm 取消自动驾驶")
|
||||
}, onError = {error ->
|
||||
ToastUtils.showShort("停止调度确认失败${error}")
|
||||
// ToastUtils.showShort("停止调度确认失败${error}")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_biz_cloud_cancel_autopilot_error, error)
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -341,11 +355,14 @@ class DispatchAutoPilotManager private constructor() :
|
||||
receiverBean?.let {
|
||||
//调度完成,同步云端,并且吐司提示
|
||||
dispatchServiceModel.dispatchResultUpload(DISPATCH_COMPLETED, it.taskId)
|
||||
ToastUtils.showLong("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
val msg = StringUtils.getString(R.string.module_mogo_core_function_biz_cloud_complete_arrive, it.endLocAddress)
|
||||
// ToastUtils.showLong("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
ToastUtils.showShort(msg)
|
||||
//取消自动驾驶
|
||||
CallerAutoPilotControlManager.cancelAutoPilot()
|
||||
//语音提示到站
|
||||
AIAssist.getInstance(mContext).speakTTSVoice("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
// AIAssist.getInstance(mContext).speakTTSVoice("云调度完成,车辆已到达${it.endLocAddress}")
|
||||
AIAssist.getInstance(mContext).speakTTSVoice(msg)
|
||||
}
|
||||
}else{
|
||||
V2XBizTrace.onAck(M_BIZ + TAG, mapOf("arriveErrorMsg" to "不在到站距离范围内", "ArriveAtStation" to arrivalNotification, "distanceFromSelf" to distanceFromSelf), true)
|
||||
|
||||
@@ -21,6 +21,7 @@ import com.mogo.eagle.core.data.msgbox.MsgBoxType
|
||||
import com.mogo.eagle.core.data.msgbox.V2XMsg
|
||||
import com.mogo.eagle.core.data.v2x.VipMessage
|
||||
import com.mogo.eagle.core.function.api.datacenter.union.IMoGoTrafficLightListener
|
||||
import com.mogo.eagle.core.function.biz.R
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerChassisLocationWGS84ListenerManager
|
||||
import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
@@ -259,7 +260,8 @@ class VipCarManager : IMogoOnMessageListener<VipMessage>, IMoGoTrafficLightListe
|
||||
",bearing:$bearing" +
|
||||
",controlTime:$controlTime"
|
||||
,true)
|
||||
ToastUtils.showLong("服务异常,请稍后重试")
|
||||
// ToastUtils.showLong("服务异常,请稍后重试")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_biz_serve_error)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,7 @@ import com.mogo.eagle.core.function.call.hmi.CallerHmiViewControlListenerManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapDataCollectorManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicStatusListenerManager
|
||||
import com.mogo.eagle.core.function.datacenter.R
|
||||
import com.mogo.eagle.core.function.datacenter.autopilot.adapter.MoGoAdasListenerImpl
|
||||
import com.mogo.eagle.core.function.datacenter.autopilot.adapter.MoGoAdasMsgConnectStatusListenerImpl
|
||||
import com.mogo.eagle.core.function.datacenter.autopilot.server.AsyncDataToAutopilotServer
|
||||
@@ -156,7 +157,8 @@ class MoGoAutopilotControlProvider :
|
||||
}
|
||||
|
||||
override fun onStartServer() {
|
||||
ToastUtils.showShort("司机端服务启动成功!")
|
||||
// ToastUtils.showShort("司机端服务启动成功!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_driver_service_started_successfully)
|
||||
if (timer == null) {
|
||||
timer = Timer()
|
||||
}
|
||||
@@ -175,7 +177,8 @@ class MoGoAutopilotControlProvider :
|
||||
}
|
||||
|
||||
override fun onStopServer() {
|
||||
ToastUtils.showLong("司机端服务停止!")
|
||||
// ToastUtils.showLong("司机端服务停止!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_driver_service_stop)
|
||||
timer?.cancel()
|
||||
timer = null
|
||||
invokeNettyConnResult("司机端服务停止!")
|
||||
@@ -258,7 +261,8 @@ class MoGoAutopilotControlProvider :
|
||||
AsyncDataToAutopilotServer.INSTANCE.initServer()
|
||||
}.onFailure { throwable ->
|
||||
if (DebugConfig.isDebug()) {
|
||||
ToastUtils.showLong("AutoPilot出现异常,请立即处理!")
|
||||
// ToastUtils.showLong("AutoPilot出现异常,请立即处理!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_autopilot_exception)
|
||||
}
|
||||
throwable.printStackTrace()
|
||||
}
|
||||
|
||||
@@ -25,6 +25,7 @@ import com.mogo.eagle.core.function.call.autopilot.CallerIpcConnectStateToastMan
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerParallelDrivingActionsListenerManager
|
||||
import com.mogo.eagle.core.function.call.cloud.CallerCloudListenerManager
|
||||
import com.mogo.eagle.core.function.call.msgbox.CallerMsgBoxManager
|
||||
import com.mogo.eagle.core.function.datacenter.R
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_D_C
|
||||
@@ -74,7 +75,7 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
CallerAutopilotCarConfigListenerManager.invokeAutopilotCertFileResult(certificationResult)
|
||||
}
|
||||
|
||||
private fun connectToast(reason: String) {
|
||||
private fun connectToast(reason: Int) {
|
||||
if (CallerIpcConnectStateToastManager.isToast) {
|
||||
ToastUtils.showShort(reason)
|
||||
}
|
||||
@@ -124,7 +125,8 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
AdasConstants.IpcConnectionStatus.CONNECTED -> {
|
||||
connectStatusDescribe = "已连接"
|
||||
CallerLogger.d("$M_D_C$TAG", connectStatusDescribe)
|
||||
connectToast("域控已连接")
|
||||
// connectToast("域控已连接")
|
||||
connectToast(R.string.module_core_ipc_connection_status_connected)
|
||||
CallerIpcConnectStateToastManager.ipcConnected()
|
||||
// 初始化自动驾驶状态信息
|
||||
CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo().connectIP =
|
||||
@@ -182,19 +184,22 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
AdasConstants.IpcConnectionStatus.CONNECTING -> {
|
||||
connectStatusDescribe = "连接中"
|
||||
CallerLogger.d("$M_D_C$TAG", connectStatusDescribe)
|
||||
connectToast("域控连接中")
|
||||
// connectToast("域控连接中")
|
||||
connectToast(R.string.module_core_ipc_connection_status_connecting)
|
||||
}
|
||||
|
||||
AdasConstants.IpcConnectionStatus.RECONNECTING_TIMER -> {
|
||||
connectStatusDescribe = "重连中(定时器)"
|
||||
CallerLogger.d("$M_D_C$TAG", connectStatusDescribe)
|
||||
connectToast("域控重连中")
|
||||
// connectToast("域控重连中")
|
||||
connectToast(R.string.module_core_ipc_connection_status_reconnecting)
|
||||
}
|
||||
|
||||
AdasConstants.IpcConnectionStatus.RECONNECTING_NETWORK -> {
|
||||
connectStatusDescribe = "重连中(网络监听)"
|
||||
CallerLogger.d("$M_D_C$TAG", connectStatusDescribe)
|
||||
connectToast("域控重连中")
|
||||
// connectToast("域控重连中")
|
||||
connectToast(R.string.module_core_ipc_connection_status_reconnecting)
|
||||
}
|
||||
|
||||
AdasConstants.IpcConnectionStatus.CONNECT_EXCEPTION -> {
|
||||
@@ -215,7 +220,8 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
connectStatusDescribe
|
||||
)
|
||||
resetArgs()
|
||||
connectToast("非法域控地址")
|
||||
// connectToast("非法域控地址")
|
||||
connectToast(R.string.module_core_ipc_connection_status_illegal_address)
|
||||
}
|
||||
|
||||
AdasConstants.IpcConnectionStatus.SEARCH_ADDRESS -> {
|
||||
@@ -224,7 +230,8 @@ class MoGoAdasMsgConnectStatusListenerImpl :
|
||||
"$M_D_C$TAG",
|
||||
connectStatusDescribe
|
||||
)
|
||||
connectToast("正在搜索域控地址")
|
||||
// connectToast("正在搜索域控地址")
|
||||
connectToast(R.string.module_core_ipc_connection_status_search_address)
|
||||
}
|
||||
|
||||
AdasConstants.IpcConnectionStatus.NOT_FOUND_ADDRESS -> {
|
||||
|
||||
@@ -32,6 +32,7 @@ import com.mogo.eagle.core.function.call.och.CallerOchBizFunctionCall4EagleManag
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager
|
||||
import com.mogo.eagle.core.function.call.v2x.CallerTrafficLightListenerManager
|
||||
import com.mogo.eagle.core.function.datacenter.R
|
||||
import com.mogo.eagle.core.utilcode.kotlin.lifeCycleScope
|
||||
import com.mogo.eagle.core.utilcode.kotlin.scope
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
@@ -518,7 +519,8 @@ class TeleMsgHandler : IMsgHandler {
|
||||
CallerTelematicListenerManager.invokeReceivedMsg(TelematicConstant.DRIVE_SEAT_VIDEO_STREAM_RSP, it.body)
|
||||
}
|
||||
TelematicConstant.PASSENGER_APP_REBOOT -> {
|
||||
ToastUtils.showLong("乘客屏已收到重启命令")
|
||||
// ToastUtils.showLong("乘客屏已收到重启命令")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_received_restart_command)
|
||||
}
|
||||
else -> {
|
||||
}
|
||||
@@ -550,7 +552,8 @@ class TeleMsgHandler : IMsgHandler {
|
||||
isReceiveSN = false
|
||||
}
|
||||
// AdasManager.getInstance().startDispatchHandler()
|
||||
ToastUtils.showShort("连接司机屏成功!")
|
||||
// ToastUtils.showShort("连接司机屏成功!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_datacenter_passenger_link_driver_success)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to true))
|
||||
val byteArray = byteArrayOf(0)
|
||||
NSDNettyManager.getInstance().sendMogoProtocolMsgToServer(
|
||||
@@ -567,7 +570,8 @@ class TeleMsgHandler : IMsgHandler {
|
||||
isFirstDisc = false
|
||||
AppConfigInfo.plateNumber = ""
|
||||
AppConfigInfo.iPCMacAddress = ""
|
||||
ToastUtils.showLong("断开和司机屏的连接!")
|
||||
// ToastUtils.showLong("断开和司机屏的连接!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_disconnect_driver)
|
||||
invokeReqStatusLog(mapOf("dpConnectStatus" to false))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
@@ -575,7 +579,8 @@ class TeleMsgHandler : IMsgHandler {
|
||||
|
||||
ConnectState.STATUS_CONNECT_ERROR -> {
|
||||
AppConfigInfo.plateNumber = ""
|
||||
ToastUtils.showLong("和司机端连接异常!")
|
||||
// ToastUtils.showLong("和司机端连接异常!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_datacenter_passenger_connect_driver_error)
|
||||
invokeReqStatusLog(mapOf("dpConnectErrorMsg" to "$content"))
|
||||
AdasManager.getInstance().stopDispatchHandler()
|
||||
}
|
||||
|
||||
@@ -192,10 +192,12 @@ internal object BadCaseManager : LifecycleEventObserver, IMoGoAutopilotRecordLis
|
||||
BadCaseConfig.totalDuration, BadCaseConfig.previousDuration)
|
||||
}
|
||||
}else {
|
||||
ToastUtils.showShort("工控机连接状态异常")
|
||||
// ToastUtils.showShort("工控机连接状态异常")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_adas_connect_error)
|
||||
}
|
||||
}else {
|
||||
ToastUtils.showShort("网络异常,请检查网络")
|
||||
// ToastUtils.showShort("网络异常,请检查网络")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_network_error)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,13 +275,16 @@ internal object BadCaseManager : LifecycleEventObserver, IMoGoAutopilotRecordLis
|
||||
reportTypeWindow?.showFloatWindow(xPosition,yPosition)
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("工控机连接状态异常")
|
||||
// ToastUtils.showShort("工控机连接状态异常")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_adas_connect_error)
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("网络异常,请检查网络")
|
||||
// ToastUtils.showShort("网络异常,请检查网络")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_network_error)
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_do_no_click_continuously)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -324,13 +329,16 @@ internal object BadCaseManager : LifecycleEventObserver, IMoGoAutopilotRecordLis
|
||||
caseListDialog.show()
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("工控机连接状态异常")
|
||||
// ToastUtils.showShort("工控机连接状态异常")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_adas_connect_error)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("网络异常,请检查网络")
|
||||
// ToastUtils.showShort("网络异常,请检查网络")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_network_error)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_do_no_click_continuously)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -355,13 +363,16 @@ internal object BadCaseManager : LifecycleEventObserver, IMoGoAutopilotRecordLis
|
||||
})
|
||||
aiDataCollectWindow.showFloatWindow()
|
||||
} else {
|
||||
ToastUtils.showShort("工控机连接状态异常")
|
||||
// ToastUtils.showShort("工控机连接状态异常")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_adas_connect_error)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("网络异常,请检查网络")
|
||||
// ToastUtils.showShort("网络异常,请检查网络")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_network_error)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_bad_case_do_no_click_continuously)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -137,7 +137,8 @@ class AIDataCollectView @JvmOverloads constructor(
|
||||
//上报
|
||||
tvUpload.setOnClickListener {
|
||||
if(collectList.isEmpty()){
|
||||
ToastUtils.showShort("请选择最少一个原因")
|
||||
// ToastUtils.showShort("请选择最少一个原因")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_last_chose_one)
|
||||
return@setOnClickListener
|
||||
}
|
||||
collectReason.clear()
|
||||
@@ -170,7 +171,8 @@ class AIDataCollectView @JvmOverloads constructor(
|
||||
|
||||
})
|
||||
if (uploadResult == null || uploadResult.code != 200) {
|
||||
TipToast.shortTip("上报失败")
|
||||
// TipToast.shortTip("上报失败")
|
||||
TipToast.shortTip(R.string.module_core_reporting_failed)
|
||||
} else {
|
||||
//上报成功
|
||||
ThreadUtils.runOnUiThread {
|
||||
@@ -270,7 +272,8 @@ class AIDataCollectView @JvmOverloads constructor(
|
||||
|
||||
override fun onAiDataError() {
|
||||
if(BadCaseReasonStore.getAiDataRecord().isEmpty()){
|
||||
ToastUtils.showShort("AI数据采集数据请求错误且无缓存数据可用")
|
||||
// ToastUtils.showShort("AI数据采集数据请求错误且无缓存数据可用")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_ai_data_gather_error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,8 @@ class AIDataCollectWindow constructor(activity: Activity) : View.OnTouchListener
|
||||
//上报
|
||||
tvCollectReport.setOnClickListener {
|
||||
if(collectList.isEmpty()){
|
||||
ToastUtils.showShort("请选择最少一个原因")
|
||||
// ToastUtils.showShort("请选择最少一个原因")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_last_chose_one)
|
||||
return@setOnClickListener
|
||||
}
|
||||
collectReason.clear()
|
||||
@@ -196,9 +197,11 @@ class AIDataCollectWindow constructor(activity: Activity) : View.OnTouchListener
|
||||
|
||||
})
|
||||
if (uploadResult == null || uploadResult.code != 200) {
|
||||
TipToast.shortTip("上报失败")
|
||||
// TipToast.shortTip("上报失败")
|
||||
TipToast.shortTip(R.string.module_core_reporting_failed)
|
||||
} else {
|
||||
TipToast.shortTip("上报成功")
|
||||
// TipToast.shortTip("上报成功")
|
||||
TipToast.shortTip(R.string.module_core_reporting_success)
|
||||
//将上报BI的结果同步给工控机记录保存
|
||||
recordKey?.let {
|
||||
val descReqEntity = BagDescriptionEntity(collectReason.toString(),false,"",true)
|
||||
@@ -343,7 +346,8 @@ class AIDataCollectWindow constructor(activity: Activity) : View.OnTouchListener
|
||||
|
||||
override fun onAiDataError() {
|
||||
if(BadCaseReasonStore.getAiDataRecord().isEmpty()){
|
||||
ToastUtils.showShort("AI数据采集数据请求错误且无缓存数据可用")
|
||||
// ToastUtils.showShort("AI数据采集数据请求错误且无缓存数据可用")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_ai_data_gather_error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -95,19 +95,23 @@ internal class BadCaseConfigView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
if (mPreviousDuration < 0 || mPreviousDuration > 30) {
|
||||
ToastUtils.showLong("前溯采集时长最长30S")
|
||||
// ToastUtils.showLong("前溯采集时长最长30S")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_bad_case_previous_duration)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (mBackDuration < 0 || mBackDuration > 300) {
|
||||
ToastUtils.showLong("采集总时长最长300S")
|
||||
// ToastUtils.showLong("采集总时长最长300S")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_bad_case_Back_duration_max)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if ((mPreviousDuration + mBackDuration) < 5) {
|
||||
ToastUtils.showLong("采集总时长最短5S")
|
||||
// ToastUtils.showLong("采集总时长最短5S")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_bad_case_Back_duration_min)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if ((mPreviousDuration + mBackDuration) > 300) {
|
||||
ToastUtils.showLong("采集总时长最长300S")
|
||||
// ToastUtils.showLong("采集总时长最长300S")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_bad_case_all)
|
||||
return@setOnClickListener
|
||||
}
|
||||
BadCaseConfig.previousDuration = mPreviousDuration
|
||||
@@ -115,7 +119,8 @@ internal class BadCaseConfigView @JvmOverloads constructor(
|
||||
BadCaseConfig.totalDuration =
|
||||
BadCaseConfig.previousDuration + BadCaseConfig.backDuration
|
||||
} catch (e: Exception) {
|
||||
ToastUtils.showLong("输入时间格式不合法,请重新输入")
|
||||
// ToastUtils.showLong("输入时间格式不合法,请重新输入")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_input_time_illegality)
|
||||
etInitiativePreTime.text = null
|
||||
etInitiativeAfterTime.text = null
|
||||
return@setOnClickListener
|
||||
@@ -125,7 +130,8 @@ internal class BadCaseConfigView @JvmOverloads constructor(
|
||||
//保存录制模板采集类型
|
||||
BadCaseConfig.type = mType
|
||||
//吐司提示保存成功
|
||||
ToastUtils.showLong("保存成功")
|
||||
// ToastUtils.showLong("保存成功")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_save_success)
|
||||
//关闭配置窗口
|
||||
clickListener?.onClose()
|
||||
}
|
||||
|
||||
@@ -143,7 +143,8 @@ class BadCaseManagerView @JvmOverloads constructor(
|
||||
bagUploadDialog?.show()
|
||||
bagUploadDialog?.setAllUpload(selectedBagNum,selectedBagSize)
|
||||
}else{
|
||||
ToastUtils.showShort("请先选择要上传的Bag包")
|
||||
// ToastUtils.showShort("请先选择要上传的Bag包")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_upload_bag)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -154,7 +155,8 @@ class BadCaseManagerView @JvmOverloads constructor(
|
||||
bagManagerEntity.keyReq = bagManagerList[0].key
|
||||
CallerAutoPilotControlManager.sendBagManagerCmd(bagManagerEntity)
|
||||
}else{
|
||||
ToastUtils.showShort("请先选择要删除的Bag包")
|
||||
// ToastUtils.showShort("请先选择要删除的Bag包")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_del_bag)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -412,32 +414,43 @@ class BadCaseManagerView @JvmOverloads constructor(
|
||||
}
|
||||
//上传Cos执行完成
|
||||
if(bagManagerList.size == 0 && selectedBagNum != 0){
|
||||
ToastUtils.showShort("上传命令完成")
|
||||
// ToastUtils.showShort("上传命令完成")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_bag_complete)
|
||||
bagUploadDialog?.uploadCompleted()
|
||||
tvCancelSelect.performClick()
|
||||
}
|
||||
|
||||
when (bagManager.uploadCosResp.stat) {
|
||||
0 -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶成功")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_cos_success, "${bagManager.uploadCosResp.key}")
|
||||
}
|
||||
1 -> {
|
||||
//执行中
|
||||
}
|
||||
2 -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶执行python失败")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶执行python失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_cos_python_fail, "${bagManager.uploadCosResp.key}")
|
||||
}
|
||||
3 -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶拷贝过程失败")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶拷贝过程失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_cos_copy_fail, "${bagManager.uploadCosResp.key}")
|
||||
}
|
||||
4 -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶合并过程失败")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶合并过程失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_cos_merge_fail, "${bagManager.uploadCosResp.key}")
|
||||
}
|
||||
5 -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶上传过程失败")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶上传过程失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_upload_cos_fail, "${bagManager.uploadCosResp.key}")
|
||||
}
|
||||
else -> {
|
||||
ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶 ${bagManager.uploadCosResp.message}")
|
||||
// ToastUtils.showShort("${bagManager.uploadCosResp.key} 上传cos桶 ${bagManager.uploadCosResp.message}")
|
||||
ToastUtils.showShort(
|
||||
R.string.module_mogo_core_function_devatools_upload_cos,
|
||||
"${bagManager.uploadCosResp.key}",
|
||||
bagManager.uploadCosResp.message
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -163,7 +163,8 @@ public class CaseTopicListDialog extends Dialog implements IMoGoAutopilotRecordL
|
||||
if (recordType != null) {
|
||||
Boolean success = CallerAutoPilotControlManager.INSTANCE.getBadCaseConfig(2, recordType.getId(), addTopicList);
|
||||
if (Boolean.TRUE.equals(success)) {
|
||||
ToastUtils.showShort("Topic设置成功");
|
||||
// ToastUtils.showShort("Topic设置成功");
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_topic_set_success);
|
||||
if (recordType.getId() == 0) {
|
||||
//自定义Topic
|
||||
BadCaseConfig.customTopicList.clear();
|
||||
@@ -173,7 +174,8 @@ public class CaseTopicListDialog extends Dialog implements IMoGoAutopilotRecordL
|
||||
recordType.getTopicsList().removeAll(allTopicList);
|
||||
dismiss();
|
||||
} else {
|
||||
ToastUtils.showShort("Topic设置失败");
|
||||
// ToastUtils.showShort("Topic设置失败");
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_topic_set_fail);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -206,7 +206,8 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
//上报
|
||||
tvInitiativeReport.setOnClickListener {
|
||||
if(uploadList.isEmpty()){
|
||||
ToastUtils.showShort("请选择最少一个原因")
|
||||
// ToastUtils.showShort("请选择最少一个原因")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_last_chose_one)
|
||||
return@setOnClickListener
|
||||
}
|
||||
uploadReason.clear()
|
||||
@@ -257,7 +258,8 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,7 +336,8 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
audioFileName = "Audio_${System.currentTimeMillis()}_BadCase"
|
||||
@@ -389,7 +392,8 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
}
|
||||
|
||||
override fun onUploadFail(filePath: String) {
|
||||
TipToast.shortTip("上传语音文件失败")
|
||||
// TipToast.shortTip("上传语音文件失败")
|
||||
TipToast.shortTip(R.string.module_core_upload_voice_file_failed)
|
||||
//将语音文件上传Cos监听移除
|
||||
removeUploadListener(singlePath)
|
||||
}
|
||||
@@ -444,12 +448,14 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
itx["coordinate"] = "latitude:${getChassisLocationWGS84().latitude};longitude:${getChassisLocationWGS84().longitude}" //坐标
|
||||
})
|
||||
if (uploadResult == null || uploadResult.code != 200) {
|
||||
TipToast.shortTip("上报失败")
|
||||
// TipToast.shortTip("上报失败")
|
||||
TipToast.shortTip(R.string.module_core_reporting_failed)
|
||||
ThreadUtils.runOnUiThread {
|
||||
tvInitiativeReport.text = "上报"
|
||||
}
|
||||
} else {
|
||||
TipToast.shortTip("上报成功")
|
||||
// TipToast.shortTip("上报成功")
|
||||
TipToast.shortTip(R.string.module_core_reporting_success)
|
||||
//将上报BI的结果同步给工控机记录保存
|
||||
recordKey.let {
|
||||
val hasAudio = downloadUrl != null
|
||||
@@ -603,7 +609,8 @@ class InitiativeBadCaseWindow constructor(activity: Activity) : View.OnTouchList
|
||||
|
||||
override fun onInitiativeError() {
|
||||
if(BadCaseReasonStore.getInitiativeDataRecord().isEmpty()){
|
||||
ToastUtils.showShort("主动录包数据采集错误且无缓存数据可用")
|
||||
// ToastUtils.showShort("主动录包数据采集错误且无缓存数据可用")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_initiative_record_bad_fail)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -197,7 +197,8 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
tvPassiveReport.setOnClickListener {
|
||||
hasOperated = true
|
||||
if(uploadList.isEmpty()){
|
||||
TipToast.shortTip("请选择至少一个Case")
|
||||
// TipToast.shortTip("请选择至少一个Case")
|
||||
TipToast.shortTip(R.string.module_core_please_choose_noe_case)
|
||||
return@setOnClickListener
|
||||
}
|
||||
uploadReason.clear()
|
||||
@@ -259,7 +260,8 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
private val mInitListener = InitListener { code ->
|
||||
Log.i(TAG, "SpeechRecognizer init() code = $code")
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -337,7 +339,8 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
audioFileName = "Audio_${System.currentTimeMillis()}_BadCase"
|
||||
@@ -392,7 +395,8 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
}
|
||||
|
||||
override fun onUploadFail(filePath: String) {
|
||||
TipToast.shortTip("上传语音文件失败")
|
||||
// TipToast.shortTip("上传语音文件失败")
|
||||
TipToast.shortTip(R.string.module_core_upload_voice_file_failed)
|
||||
//将语音文件上传Cos监听移除
|
||||
removeUploadListener(singlePath)
|
||||
}
|
||||
@@ -449,12 +453,14 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
|
||||
})
|
||||
if (uploadResult == null || uploadResult.code != 200) {
|
||||
TipToast.shortTip("上报失败")
|
||||
// TipToast.shortTip("上报失败")
|
||||
TipToast.shortTip(R.string.module_core_reporting_failed)
|
||||
ThreadUtils.runOnUiThread{
|
||||
tvPassiveReport.text = "上报"
|
||||
}
|
||||
} else {
|
||||
TipToast.shortTip("上报成功")
|
||||
// TipToast.shortTip("上报成功")
|
||||
TipToast.shortTip(R.string.module_core_reporting_success)
|
||||
//将上报BI的结果同步给工控机记录保存
|
||||
recordKey?.let {
|
||||
val hasAudio = downloadUrl != null
|
||||
@@ -571,7 +577,8 @@ class PassiveBadCaseWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
|
||||
override fun onPassiveError() {
|
||||
if(BadCaseReasonStore.getPassiveDataRecord().isEmpty()){
|
||||
ToastUtils.showShort("被动录包数据采集错误且无缓存数据可用")
|
||||
// ToastUtils.showShort("被动录包数据采集错误且无缓存数据可用")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_passivity_record_bad_fail)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -171,7 +171,8 @@ class BagManagerListAdapter: RecyclerView.Adapter<RecyclerView.ViewHolder>() {
|
||||
if(RecordBitmapUtils.checkHasImage(bagInfoEntity.key)){
|
||||
bagClickListener?.lookMapScreen(bagInfoEntity.key)
|
||||
}else{
|
||||
ToastUtils.showShort("该截图录制失败或已删除")
|
||||
// ToastUtils.showShort("该截图录制失败或已删除")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_record_bitmap_fail)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -94,7 +94,8 @@ class BindingCarNetWorkManager private constructor() {
|
||||
when (info.getData().compare) {
|
||||
"0" -> showBindingCarDialog()
|
||||
"3" -> showModifyBindingCarDialog()
|
||||
"null" -> TipToast.shortTip("当前工控机没有入库")
|
||||
// "null" -> TipToast.shortTip("当前工控机没有入库")
|
||||
"null" -> TipToast.shortTip(R.string.module_core_ipc_not_db)
|
||||
}
|
||||
// updateCarVrIconRes(info.getData().brandId)
|
||||
} else {
|
||||
|
||||
@@ -25,12 +25,14 @@ import com.mogo.commons.storage.SharedPrefsMgr
|
||||
import com.mogo.core.log.record.LogcatManager
|
||||
import com.mogo.eagle.core.data.deva.chain.ChainLogParam
|
||||
import com.mogo.eagle.core.utilcode.mogo.toast.TipToast
|
||||
import com.mogo.eagle.core.utilcode.util.StringUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
import com.mogo.map.MogoData.Companion.mogoMapData
|
||||
import com.zhidao.loglib.bean.RemoteLogPushContent
|
||||
import com.zhidao.loglib.call.LogInfoManagerFactory
|
||||
import com.zhidao.loglib.core.ILogListener
|
||||
import com.zhidao.loglib.core.LogInfoManager
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import com.zhjt.mogo_core_function_devatools.logcat.config.LogRecordConfig
|
||||
import com.zhjt.mogo_core_function_devatools.logcatch.MogoLogCatchConst.Companion.CACHE_MAP_UPLOAD
|
||||
import com.zhjt.mogo_core_function_devatools.logcatch.MogoLogCatchConst.Companion.CACHE_TRACE_UPLOAD
|
||||
@@ -114,27 +116,33 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
obj.pkgName = mContext?.packageName
|
||||
when (obj.type) {
|
||||
START_CATCH_LOG -> if (!catchingList.contains(obj.pkgName)) {
|
||||
TipToast.longTip("云端下发抓取日志,时间:${obj.duration}分钟")
|
||||
// TipToast.longTip("云端下发抓取日志,时间:${obj.duration}分钟")
|
||||
TipToast.longTip(StringUtils.getString(R.string.module_core_cloud_send_get_log, obj.duration))
|
||||
startCatchLog(obj.duration)
|
||||
}
|
||||
STOP_CATCH_LOG -> {
|
||||
TipToast.longTip("云端下发停止抓取日志")
|
||||
// TipToast.longTip("云端下发停止抓取日志")
|
||||
TipToast.longTip(R.string.module_core_cloud_stop_send_get_log)
|
||||
stopCatchLog(obj)
|
||||
}
|
||||
LOCAL_CONFIG_OPEN_LOG -> {
|
||||
TipToast.longTip("云端下发打开日志开关")
|
||||
// TipToast.longTip("云端下发打开日志开关")
|
||||
TipToast.longTip(R.string.module_core_cloud_send_open_log_switch)
|
||||
openLoggerLevel()
|
||||
}
|
||||
LOCAL_CONFIG_CLOSE_LOG -> {
|
||||
TipToast.longTip("云端下发关闭日志开关")
|
||||
// TipToast.longTip("云端下发关闭日志开关")
|
||||
TipToast.longTip(R.string.module_core_cloud_send_close_log_switch)
|
||||
closeLoggerLevel()
|
||||
}
|
||||
CACHE_TRACE_UPLOAD -> {
|
||||
TipToast.longTip("上传本地缓存链路日志")
|
||||
// TipToast.longTip("上传本地缓存链路日志")
|
||||
TipToast.longTip(R.string.module_core_upload_cache_log)
|
||||
LogInfoManagerFactory.cacheTraceLogUpload()
|
||||
}
|
||||
CACHE_MAP_UPLOAD -> {
|
||||
TipToast.longTip("上传本地地图缓存日志")
|
||||
// TipToast.longTip("上传本地地图缓存日志")
|
||||
TipToast.longTip(R.string.module_core_upload_cache_map_log)
|
||||
mapCacheUpload = true
|
||||
}
|
||||
LOCAL_CONFIG_CLOSE_SINGLE_FW -> {
|
||||
@@ -200,7 +208,8 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
@BizConfig(FOUNDATION, "", BIZ_FULL_LOG)
|
||||
fun startCatchLog(duration: Int = 10, logPrefixName: String? = null) {
|
||||
if (catchingList.contains(manualContent.pkgName + logPrefixName)) {
|
||||
TipToast.shortTip("已经在抓取日志了,请稍后再试")
|
||||
// TipToast.shortTip("已经在抓取日志了,请稍后再试")
|
||||
TipToast.shortTip(R.string.module_core_started_capture_log)
|
||||
} else {
|
||||
CallerLogger.d("$M_DEVA$TAG", "开始抓取日志==== duration : $duration")
|
||||
manualContent.type = START_CATCH_LOG
|
||||
@@ -220,7 +229,8 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
CallerLogger.d("$M_DEVA$TAG", "startCatchLog path : ${content.pkgName + logPrefixName}")
|
||||
if (SharedPrefsMgr.getInstance().sn == null) {
|
||||
ThreadUtils.runOnUiThread {
|
||||
TipToast.shortTip("缺少设备唯一ID,请检查网络")
|
||||
// TipToast.shortTip("缺少设备唯一ID,请检查网络")
|
||||
TipToast.shortTip(R.string.module_core_device_not_uuid)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -330,7 +340,8 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
|
||||
|
||||
override fun onError(errorCount: Int) {
|
||||
ThreadUtils.runOnUiThread {
|
||||
TipToast.shortTip("日志抓取出现错误,出错数量:$errorCount")
|
||||
// TipToast.shortTip("日志抓取出现错误,出错数量:$errorCount")
|
||||
TipToast.shortTip(StringUtils.getString(R.string.module_core_get_log_error, errorCount))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,8 @@ internal class MoGoMoFangProviderImpl: IMoGoMoFangProvider, OnMoFangDeviceListen
|
||||
MoFangAnalyticUtils.track(EVENT_MOFANG_CONNECT, mutableMapOf(EVENT_MOFANG_CONNECT_PARAMS_SETTING_REQ to "${System.currentTimeMillis()}"))
|
||||
linkedLog.record(mapOf("callback" to "onBluetoothSettingRequest"))
|
||||
UiThreadHandler.post {
|
||||
Toast.makeText(Utils.getApp(), "检测到魔方未正确连接,请在系统蓝牙设置页面,找到魔方并配对连接...", Toast.LENGTH_SHORT).show()
|
||||
// Toast.makeText(Utils.getApp(), "检测到魔方未正确连接,请在系统蓝牙设置页面,找到魔方并配对连接...", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(Utils.getApp(), com.mogo.eagle.core.widget.R.string.module_core_mofang_connect_error, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import android.annotation.SuppressLint
|
||||
import android.content.Context
|
||||
import android.os.Looper
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import java.util.*
|
||||
|
||||
class MonitorManager private constructor(var context: Context) {
|
||||
@@ -46,9 +47,11 @@ class MonitorManager private constructor(var context: Context) {
|
||||
}
|
||||
}, 1000, 60000)
|
||||
isStarted = true
|
||||
ToastUtils.showShort("性能监控启动成功!")
|
||||
// ToastUtils.showShort("性能监控启动成功!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_start_monitor_success)
|
||||
} else {
|
||||
ToastUtils.showShort("性能监控已启动,请勿重复启动!")
|
||||
// ToastUtils.showShort("性能监控已启动,请勿重复启动!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_monitor_started)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -59,6 +62,7 @@ class MonitorManager private constructor(var context: Context) {
|
||||
timer?.cancel()
|
||||
timer = null
|
||||
isStarted = false
|
||||
ToastUtils.showShort("性能监控停止成功!")
|
||||
// ToastUtils.showShort("性能监控停止成功!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_stop_monitor_success)
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ import com.mogo.eagle.core.function.call.hmi.CallerHmiManager
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.zhjt.mogo.adas.data.AdasConstants
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import org.json.JSONArray
|
||||
import org.json.JSONObject
|
||||
import system_master.SsmInfo
|
||||
@@ -93,7 +94,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
}
|
||||
}else if(msg.what == 4){
|
||||
if(shouldToast && secondVersionShouldToast){
|
||||
ToastUtils.showLong("暂无待升级任务!")
|
||||
// ToastUtils.showLong("暂无待升级任务!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_not_upgrade_task)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -225,7 +227,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
//冷启动未完成(进行中),或驾驶状态为自驾状态,或当前有订单,直接默认选择稍后升级,
|
||||
// 并toast提示“收到车辆部署任务,请在车辆空闲时发起升级”
|
||||
CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.DELAY)
|
||||
ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
// ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_receive_upgrade_task)
|
||||
}
|
||||
OTAUpgradeConfig.promptedUpgrade.add(request.otaToken)
|
||||
}
|
||||
@@ -361,7 +364,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
//冷启动未完成(进行中),或驾驶状态为自驾状态,或当前有订单,直接默认选择稍后升级,
|
||||
// 并toast提示“收到车辆部署任务,请在车辆空闲时发起升级”
|
||||
CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.DELAY)
|
||||
ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
// ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_receive_upgrade_task)
|
||||
}
|
||||
OTAUpgradeConfig.promptedUpgrade.add(status.otaInfo.otaToken)
|
||||
}
|
||||
@@ -445,7 +449,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
val cmd = jsonObject.optString("cmd")
|
||||
//无升级任务
|
||||
if("ASK_PAD_NO_UPGRADE" == cmd){
|
||||
ToastUtils.showShort("暂无OTA升级任务")
|
||||
// ToastUtils.showShort("暂无OTA升级任务")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_not_ota_task)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -521,7 +526,8 @@ object OTAUpgradeManager: IMoGoAutopilotStatusListener, IDataCenterBizListener,
|
||||
Log.i(TAG,query.toString())
|
||||
CallerAutoPilotControlManager.sendOtaPadMsgQuery(query.toString())
|
||||
|
||||
ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
// ToastUtils.showLong("收到车辆部署任务,请在车辆空闲时发起升级")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_receive_upgrade_task)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ import com.mogo.eagle.core.utilcode.util.IAppStateListener
|
||||
import com.mogo.eagle.core.utilcode.util.PermissionUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.zhjt.mogo.adas.data.AdasConstants
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import com.zhjt.mogo_core_function_devatools.status.entity.OverViewStatus
|
||||
import com.zhjt.mogo_core_function_devatools.status.entity.TracingStatus
|
||||
import com.zhjt.mogo_core_function_devatools.status.entity.toState
|
||||
@@ -156,7 +157,8 @@ internal class OverViewImpl(ctx: Context) : IFlow<OverViewStatus>(ctx),
|
||||
}
|
||||
|
||||
override fun onDenied() {
|
||||
ToastUtils.showShort("定位权限被拒绝, 可能导致RTK定位不准确,请开启~")
|
||||
// ToastUtils.showShort("定位权限被拒绝, 可能导致RTK定位不准确,请开启~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_not_location_permission)
|
||||
isGpsException = true
|
||||
send(OverViewStatus(true))
|
||||
CallerDevaToolsListenerManager.invokeGpsStatus(false)
|
||||
|
||||
@@ -7,6 +7,7 @@ import android.util.*
|
||||
import androidx.core.location.*
|
||||
import com.mogo.eagle.core.utilcode.util.*
|
||||
import com.mogo.eagle.core.utilcode.util.PermissionUtils.SimpleCallback
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import com.zhjt.mogo_core_function_devatools.status.flow.IFlow
|
||||
import com.zhjt.mogo_core_function_devatools.status.entity.GpsStatus
|
||||
import java.util.concurrent.atomic.*
|
||||
@@ -71,7 +72,8 @@ internal class GpsImpl(ctx: Context): IFlow<GpsStatus>(ctx) {
|
||||
}
|
||||
|
||||
override fun onDenied() {
|
||||
ToastUtils.showShort("定位权限被拒绝, 可能导致RTK定位不准确,请开启~")
|
||||
// ToastUtils.showShort("定位权限被拒绝, 可能导致RTK定位不准确,请开启~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_not_location_permission)
|
||||
send(enabled = isLocationEnabled(), isGranted = false)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -189,7 +189,8 @@ class UpgradeAppNetWorkManager private constructor() {
|
||||
mDownloadRequested = true
|
||||
try {
|
||||
withContext(Dispatchers.Main) {
|
||||
Toast.makeText(Utils.getApp(), "检测到新版本[${info.result.versionName}]并且当前设备支持静默升级,开始下载新版本...", Toast.LENGTH_SHORT).show()
|
||||
// Toast.makeText(Utils.getApp(), "检测到新版本[${info.result.versionName}]并且当前设备支持静默升级,开始下载新版本...", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(Utils.getApp(),com.mogo.eagle.core.widget.R.string.module_core_find_new_version_quiesce_install , Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
} catch (t: Throwable) {
|
||||
t.printStackTrace()
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.mogo.eagle.core.data.deva.chain.ChainConstant
|
||||
import com.mogo.eagle.core.utilcode.util.ThreadUtils
|
||||
import com.mogo.eagle.core.utilcode.util.ToastUtils
|
||||
import com.mogo.weak.network.SdtManager
|
||||
import com.zhjt.mogo_core_function_devatools.R
|
||||
import com.zhjt.service.chain.ChainLog
|
||||
import java.util.concurrent.locks.ReentrantReadWriteLock
|
||||
|
||||
@@ -97,7 +98,8 @@ object WeakNetworkStrategy {
|
||||
invokeWeakResult("url为:$url, 耗时为:$timeStamp${if (isFail) " 连接失败!" else ""}")
|
||||
}
|
||||
if (timeStamp >= WEAK_HTTP_RTT) {
|
||||
ToastUtils.showShort("当前网络质量差!")
|
||||
// ToastUtils.showShort("当前网络质量差!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_network_bad_quality)
|
||||
} else if (timeStamp in 300 until WEAK_HTTP_RTT) {
|
||||
// invokeWeakResult("url为:$url, 耗时为:$timeStamp${if (isFail) " 连接失败!" else ""}")
|
||||
SdtManager.startActiveCheck()
|
||||
|
||||
@@ -233,7 +233,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
//故障类型选择
|
||||
tvFaultType.setOnClickListener {
|
||||
if (!hasLevel2) {
|
||||
ToastUtils.showShort("运营后台没有配置故障类型")
|
||||
// ToastUtils.showShort("运营后台没有配置故障类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_operation_not_configured_fault_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (faultTypeSelectStatus) {
|
||||
@@ -273,7 +274,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
//故障原因选择
|
||||
tvFaultReason.setOnClickListener {
|
||||
if (tvFaultType.text.isEmpty()) {
|
||||
ToastUtils.showShort("请先选择故障类型")
|
||||
// ToastUtils.showShort("请先选择故障类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_operation_choose_fault_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (faultReasonSelectStatus) {
|
||||
@@ -305,7 +307,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
}
|
||||
ivTimeAdd.setOnClickListener {
|
||||
if (workOrderOccurrenceTime + 60000 > System.currentTimeMillis()) {
|
||||
ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
// ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_occurrence_time_should_be_before_current_time)
|
||||
return@setOnClickListener
|
||||
}
|
||||
workOrderOccurrenceTime += 60000
|
||||
@@ -358,11 +361,13 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
//上报
|
||||
tvFaultReport.setOnClickListener {
|
||||
if (level2Name.isEmpty()) {
|
||||
ToastUtils.showShort("请完整填写再上报")
|
||||
// ToastUtils.showShort("请完整填写再上报")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_complete_submit_again)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (hasLevel3 && level3Name.isEmpty()) {
|
||||
ToastUtils.showShort("请完整填写再上报")
|
||||
// ToastUtils.showShort("请完整填写再上报")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_complete_submit_again)
|
||||
return@setOnClickListener
|
||||
}
|
||||
reportNote = etNoteInput.text.toString()
|
||||
@@ -421,7 +426,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
//开始录音,展示放大缩小动效
|
||||
@@ -450,7 +456,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -592,7 +599,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
|
||||
override fun problemPadAddError(msg: String) {
|
||||
super.problemPadAddError(msg)
|
||||
ToastUtils.showShort("故障原因上报失败$msg")
|
||||
// ToastUtils.showShort("故障原因上报失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cause_upload_fail, msg)
|
||||
}
|
||||
|
||||
override fun getCategoriesSuccess(list: List<CategoryInfo>) {
|
||||
@@ -627,7 +635,8 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
hasLevel3 = false
|
||||
} else {
|
||||
hasLevel2 = false
|
||||
ToastUtils.showShort("故障类型列表为空")
|
||||
// ToastUtils.showShort("故障类型列表为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_type_list_empty)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -635,6 +644,7 @@ class FaultReasonWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
|
||||
override fun getCategoriesError(msg: String) {
|
||||
super.getCategoriesError(msg)
|
||||
ToastUtils.showShort("故障列表获取失败:$msg")
|
||||
// ToastUtils.showShort("故障列表获取失败:$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_list_get_fail, msg)
|
||||
}
|
||||
}
|
||||
@@ -127,7 +127,8 @@ class ReportTypeWindow constructor(activity: Activity): IMoGoDevaToolsListener {
|
||||
//一键上报
|
||||
ivOneClickReport.setOnClickListener {
|
||||
if(!canOneReport){
|
||||
ToastUtils.showShort("故障描述获取失败不能上报")
|
||||
// ToastUtils.showShort("故障描述获取失败不能上报")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_des_get_fail)
|
||||
return@setOnClickListener
|
||||
}
|
||||
hasReportOperate = true
|
||||
@@ -185,7 +186,8 @@ class ReportTypeWindow constructor(activity: Activity): IMoGoDevaToolsListener {
|
||||
clickListener?.closeWindow()
|
||||
},1500)
|
||||
}else{
|
||||
ToastUtils.showShort("主动录包命令下发失败")
|
||||
// ToastUtils.showShort("主动录包命令下发失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_initiative_record_bad_cmd_send_fail)
|
||||
clickListener?.closeWindow()
|
||||
}
|
||||
}
|
||||
@@ -316,14 +318,16 @@ class ReportTypeWindow constructor(activity: Activity): IMoGoDevaToolsListener {
|
||||
|
||||
override fun problemPadAddError(msg: String) {
|
||||
super.problemPadAddError(msg)
|
||||
ToastUtils.showShort("故障原因上报失败$msg")
|
||||
// ToastUtils.showShort("故障原因上报失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cause_upload_fail, msg)
|
||||
clickListener?.closeWindow()
|
||||
}
|
||||
|
||||
override fun getCategoriesSuccess(list: List<CategoryInfo>) {
|
||||
super.getCategoriesSuccess(list)
|
||||
if(list.isEmpty()){
|
||||
ToastUtils.showShort("一键上报故障描述后台未配置")
|
||||
// ToastUtils.showShort("一键上报故障描述后台未配置")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cloud_not_configured)
|
||||
canOneReport = false
|
||||
}else{
|
||||
when (level) {
|
||||
@@ -352,7 +356,8 @@ class ReportTypeWindow constructor(activity: Activity): IMoGoDevaToolsListener {
|
||||
|
||||
override fun getCategoriesError(msg: String) {
|
||||
super.getCategoriesError(msg)
|
||||
ToastUtils.showShort("一键上报故障描述获取失败$msg")
|
||||
// ToastUtils.showShort("一键上报故障描述获取失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_desc_get_fail, msg)
|
||||
canOneReport = false
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
//接管类型选择
|
||||
tvTakeOverType.setOnClickListener {
|
||||
if(!hasLevel2){
|
||||
ToastUtils.showShort("运营后台没有配置接管类型")
|
||||
// ToastUtils.showShort("运营后台没有配置接管类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_cloud_not_take_over_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(faultTypeSelectStatus){
|
||||
@@ -238,7 +239,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
//接管原因选择
|
||||
tvTakeOverReason.setOnClickListener {
|
||||
if(tvTakeOverType.text.isEmpty()){
|
||||
ToastUtils.showShort("请先选择接管类型")
|
||||
// ToastUtils.showShort("请先选择接管类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_take_over_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(faultReasonSelectStatus){
|
||||
@@ -299,11 +301,13 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
//保存
|
||||
tvTakeOverSave.setOnClickListener{
|
||||
if(level2Name.isEmpty()){
|
||||
ToastUtils.showShort("请完整填写再保存")
|
||||
// ToastUtils.showShort("请完整填写再保存")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_input_save)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(hasLevel3 && level3Name.isEmpty()){
|
||||
ToastUtils.showShort("请完整填写再保存")
|
||||
// ToastUtils.showShort("请完整填写再保存")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_input_save)
|
||||
return@setOnClickListener
|
||||
}
|
||||
mTakeOverRecordInfo.reportNote = etNoteInput.text.toString()
|
||||
@@ -347,7 +351,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
//开始录音,展示放大缩小动效
|
||||
@@ -372,7 +377,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,7 +561,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
hasLevel3 = false
|
||||
}else{
|
||||
hasLevel2 = false
|
||||
ToastUtils.showShort("接管类型列表为空")
|
||||
// ToastUtils.showShort("接管类型列表为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_take_over_type_list_empty)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -563,7 +570,8 @@ class TakeOverReasonWindow constructor(activity: Activity) : View.OnTouchListene
|
||||
|
||||
override fun getCategoriesError(msg: String) {
|
||||
super.getCategoriesError(msg)
|
||||
ToastUtils.showShort("接管列表获取失败:$msg")
|
||||
// ToastUtils.showShort("接管列表获取失败:$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_take_over_type_list_get_error, msg)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,7 +101,8 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
})
|
||||
}
|
||||
if(takeOverReasonWindow?.getWindowShowStatus() == true){
|
||||
ToastUtils.showShort("接管原因弹窗已存在,请先编辑现有接管原因")
|
||||
// ToastUtils.showShort("接管原因弹窗已存在,请先编辑现有接管原因")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_take_over_window_showing)
|
||||
}else{
|
||||
takeOverReasonWindow?.showFloatWindow(takeOverRecordInfo)
|
||||
}
|
||||
@@ -129,7 +130,8 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
tvUpload.setOnClickListener {
|
||||
if (ClickUtils.isFastClick()){
|
||||
if(selectedUploadRecord.isEmpty()){
|
||||
ToastUtils.showShort("请选择需要上传的接管记录")
|
||||
// ToastUtils.showShort("请选择需要上传的接管记录")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_take_over_info)
|
||||
}else{
|
||||
val recordIterator = selectedUploadRecord.iterator()
|
||||
val padProblemList= ArrayList<PadTakeOverInfo>()
|
||||
@@ -137,7 +139,8 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
val uploadRecord = recordIterator.next()
|
||||
uploadRecord.let {
|
||||
if(it.level1Id == 0 || it.level2Id == 0 || it.level3Id == 0){
|
||||
ToastUtils.showShort("请编辑选中的接管记录")
|
||||
// ToastUtils.showShort("请编辑选中的接管记录")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_edit_take_over_info)
|
||||
return@setOnClickListener
|
||||
}
|
||||
val reason = if(it.reportNote.isEmpty()){
|
||||
@@ -158,13 +161,15 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
CallerDevaToolsManager.takeOverPadAdd(padAddProblemReq)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("请勿快速点击")
|
||||
// ToastUtils.showShort("请勿快速点击")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_dot_quick_click)
|
||||
}
|
||||
}
|
||||
//删除
|
||||
tvDeleteSelect.setOnClickListener {
|
||||
if(selectedUploadRecord.isEmpty()){
|
||||
ToastUtils.showShort("请选择需要删除的接管记录")
|
||||
// ToastUtils.showShort("请选择需要删除的接管记录")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_del_take_over_info)
|
||||
}else{
|
||||
scope.launch(Dispatchers.IO){
|
||||
CallerTakeOverRecordEventManager.invokeRemoveRecord(selectedUploadRecord)
|
||||
@@ -227,7 +232,8 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
|
||||
override fun problemPadAddSuccess() {
|
||||
super.problemPadAddSuccess()
|
||||
ToastUtils.showShort("接管记录上传成功")
|
||||
// ToastUtils.showShort("接管记录上传成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_take_over_info_upload_success)
|
||||
//更新记录状态并且刷新列表
|
||||
ThreadUtils.runOnUiThread {
|
||||
selectedUploadRecord.forEach {
|
||||
@@ -243,7 +249,8 @@ class TakeOverRecordView @JvmOverloads constructor(
|
||||
|
||||
override fun problemPadAddError(msg: String) {
|
||||
super.problemPadAddError(msg)
|
||||
ToastUtils.showShort("接管记录上传失败$msg")
|
||||
// ToastUtils.showShort("接管记录上传失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_take_over_info_upload_fail, msg)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -74,7 +74,8 @@ class TakeOverSceneWindow constructor(activity: Activity) {
|
||||
//前一个场景
|
||||
ivScenePrevious.setOnClickListener {
|
||||
if(currentIndex == 0){
|
||||
ToastUtils.showShort("没有上一个场景了")
|
||||
// ToastUtils.showShort("没有上一个场景了")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_none_last_scene)
|
||||
}else{
|
||||
currentIndex = (currentIndex-1).coerceAtLeast(0)
|
||||
vpSceneImage.currentItem = currentIndex
|
||||
@@ -86,7 +87,8 @@ class TakeOverSceneWindow constructor(activity: Activity) {
|
||||
currentIndex = (currentIndex + 1).coerceAtMost(2)
|
||||
vpSceneImage.currentItem = currentIndex
|
||||
}else{
|
||||
ToastUtils.showShort("没有下一个场景了")
|
||||
// ToastUtils.showShort("没有下一个场景了")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_none_last_scene)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,8 @@ class WorkOrderWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
}
|
||||
ivTimeAdd.setOnClickListener {
|
||||
if(workOrderOccurrenceTime + 60000 > System.currentTimeMillis()){
|
||||
ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
// ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_occurrence_time_should_be_before_current_time)
|
||||
return@setOnClickListener
|
||||
}
|
||||
workOrderOccurrenceTime += 60000
|
||||
@@ -209,11 +210,13 @@ class WorkOrderWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
tvWorkOrderReport.setOnClickListener {
|
||||
//工单问题类型必选,没有选择,进行提示
|
||||
if(workOrderType.isEmpty()){
|
||||
ToastUtils.showShort("请选择问题类型")
|
||||
// ToastUtils.showShort("请选择问题类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_issue_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(etDescribeInput.text.toString().isEmpty()){
|
||||
ToastUtils.showShort("请填写问题描述")
|
||||
// ToastUtils.showShort("请填写问题描述")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_issue_desc)
|
||||
return@setOnClickListener
|
||||
}
|
||||
GlobalScope.launch(Dispatchers.IO){
|
||||
@@ -254,7 +257,8 @@ class WorkOrderWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
//开始录音,展示放大缩小动效
|
||||
@@ -278,7 +282,8 @@ class WorkOrderWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -386,12 +391,14 @@ class WorkOrderWindow constructor(activity: Activity) : View.OnTouchListener,
|
||||
}
|
||||
|
||||
override fun workOrderReportSuccess() {
|
||||
ToastUtils.showShort("工单上报成功")
|
||||
// ToastUtils.showShort("工单上报成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_work_order_upload_success)
|
||||
hideFloatWindow()
|
||||
}
|
||||
|
||||
override fun workOrderReportError() {
|
||||
ToastUtils.showShort("工单上报失败")
|
||||
// ToastUtils.showShort("工单上报失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_work_order_upload_fail)
|
||||
}
|
||||
|
||||
fun setClickListener(clickListener: ClickListener) {
|
||||
|
||||
@@ -78,7 +78,8 @@ class TakeOverListAdapter(private val context: Context): RecyclerView.Adapter<Ta
|
||||
clickListener?.onSelectRecord(recordEntity,isChecked)
|
||||
}
|
||||
holder.ivCannotCheck.setOnClickListener {
|
||||
ToastUtils.showShort("该条记录已上传,不可选择")
|
||||
// ToastUtils.showShort("该条记录已上传,不可选择")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_uploaded_dot_choose)
|
||||
}
|
||||
holder.tvFaultStartTime.text = TimeUtils.millis2String(recordEntity.faultStartTime,getHourMinSecondFormat())
|
||||
holder.tvLineName.text = recordEntity.lineName
|
||||
@@ -110,7 +111,8 @@ class TakeOverListAdapter(private val context: Context): RecyclerView.Adapter<Ta
|
||||
}
|
||||
holder.ivRecordStatusLabel.setOnClickListener {
|
||||
if(recordEntity.reportStatus){
|
||||
ToastUtils.showShort("此条记录已上传不可再次编辑")
|
||||
// ToastUtils.showShort("此条记录已上传不可再次编辑")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_uploaded_dot_edit)
|
||||
}else{
|
||||
clickListener?.onEditRecord(recordEntity)
|
||||
}
|
||||
|
||||
@@ -140,7 +140,8 @@ class CarInfoTabView @JvmOverloads constructor(
|
||||
)
|
||||
val provider = CallerDevaToolsManager.upgradeProvider()
|
||||
if (provider?.isDownloading() == true) {
|
||||
ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
// ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_downloading_new_version)
|
||||
return@setOnClickListener
|
||||
}
|
||||
CallerDevaToolsManager.queryAppUpgrade { upgradeStatus, errorInfo ->
|
||||
@@ -168,7 +169,8 @@ class CarInfoTabView @JvmOverloads constructor(
|
||||
CallerAutoPilotControlManager.sendOtaPadMsgQuery(query.toString())
|
||||
CallerOTAManager.invokeOtaPadMsgQuery()
|
||||
}else{
|
||||
ToastUtils.showLong("当前SSM节点未成功启动或当前版本不支持OTA升级")
|
||||
// ToastUtils.showLong("当前SSM节点未成功启动或当前版本不支持OTA升级")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_ssm_not_start)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -391,10 +393,12 @@ class CarInfoTabView @JvmOverloads constructor(
|
||||
}
|
||||
CallerHmiManager.showOTAUpgradeDialog(1,true,upgradeReason+upgradeTime)
|
||||
}else{
|
||||
ToastUtils.showLong("请结束订单后触发升级")
|
||||
// ToastUtils.showLong("请结束订单后触发升级")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_stop_order_upgrade)
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showLong("暂无待升级任务!")
|
||||
// ToastUtils.showLong("暂无待升级任务!")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_devatools_not_upgrade_task)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
//故障类型选择
|
||||
tvFaultType.setOnClickListener {
|
||||
if (!hasLevel2) {
|
||||
ToastUtils.showShort("运营后台没有配置故障类型")
|
||||
// ToastUtils.showShort("运营后台没有配置故障类型")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_operation_not_configured_fault_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (faultTypeSelectStatus) {
|
||||
@@ -223,11 +224,13 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
//故障原因选择
|
||||
tvFaultReason.setOnClickListener {
|
||||
if (tvFaultType.text.isEmpty()) {
|
||||
ToastUtils.showShort("请先选择故障类型")
|
||||
// ToastUtils.showShort("请先选择故障类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_operation_choose_fault_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(!hasLevel3){
|
||||
ToastUtils.showShort("后台未配置故障原因")
|
||||
// ToastUtils.showShort("后台未配置故障原因")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_cloud_not_fault_cause)
|
||||
return@setOnClickListener
|
||||
}
|
||||
|
||||
@@ -257,7 +260,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
}
|
||||
ivTimeAdd.setOnClickListener {
|
||||
if (workOrderOccurrenceTime + 60000 > System.currentTimeMillis()) {
|
||||
ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
// ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_occurrence_time_should_be_before_current_time)
|
||||
return@setOnClickListener
|
||||
}
|
||||
workOrderOccurrenceTime += 60000
|
||||
@@ -312,11 +316,13 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
tvFaultReport.setOnClickListener {
|
||||
if(ClickUtils.isFastClick()){
|
||||
if (level2Name.isEmpty()) {
|
||||
ToastUtils.showShort("请完整填写再上报")
|
||||
// ToastUtils.showShort("请完整填写再上报")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_complete_submit_again)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (hasLevel3 && level3Name.isEmpty()) {
|
||||
ToastUtils.showShort("请完整填写再上报")
|
||||
// ToastUtils.showShort("请完整填写再上报")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_complete_submit_again)
|
||||
return@setOnClickListener
|
||||
}
|
||||
reportNote = etNoteInput.text.toString()
|
||||
@@ -359,7 +365,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
val q = RegeocodeQuery(latLon, 200f, GeocodeSearch.AMAP)
|
||||
geocodeSearch.getFromLocationAsyn(q)
|
||||
}else{
|
||||
ToastUtils.showShort("请勿连续上报,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续上报,稍后再试")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_dot_continuous_upload)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -380,7 +387,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
//开始录音,展示放大缩小动效
|
||||
@@ -405,7 +413,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -499,7 +508,9 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
|
||||
override fun problemPadAddError(msg: String) {
|
||||
super.problemPadAddError(msg)
|
||||
ToastUtils.showShort("故障原因上报失败$msg")
|
||||
// ToastUtils.showShort("故障原因上报失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cause_upload_fail, msg)
|
||||
|
||||
}
|
||||
|
||||
override fun getCategoriesSuccess(list: List<CategoryInfo>) {
|
||||
@@ -533,7 +544,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
hasLevel3 = false
|
||||
} else {
|
||||
hasLevel2 = false
|
||||
ToastUtils.showShort("故障类型列表为空")
|
||||
// ToastUtils.showShort("故障类型列表为空")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_type_list_empty)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -542,7 +554,8 @@ class FaultReasonView @JvmOverloads constructor(
|
||||
override fun getCategoriesError(msg: String) {
|
||||
super.getCategoriesError(msg)
|
||||
if(ProjectUtils.isSaas()){
|
||||
ToastUtils.showShort("故障列表获取失败:$msg")
|
||||
// ToastUtils.showShort("故障列表获取失败:$msg")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_fault_list_get_fail, msg)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,8 @@ class ReportTypeView @JvmOverloads constructor(
|
||||
//一键上报
|
||||
ivOneClickReport.setOnClickListener {
|
||||
if(!canOneReport){
|
||||
ToastUtils.showShort("故障描述获取失败不能上报")
|
||||
// ToastUtils.showShort("故障描述获取失败不能上报")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_fault_des_get_fail)
|
||||
return@setOnClickListener
|
||||
}
|
||||
hasReportOperate = true
|
||||
@@ -145,7 +146,8 @@ class ReportTypeView @JvmOverloads constructor(
|
||||
clickListener?.closeReportView()
|
||||
},1500)
|
||||
}else{
|
||||
ToastUtils.showShort("主动录包命令下发失败")
|
||||
// ToastUtils.showShort("主动录包命令下发失败")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_initiative_record_bad_cmd_send_fail)
|
||||
this@ReportTypeView.visibility = View.GONE
|
||||
clickListener?.closeReportView()
|
||||
}
|
||||
@@ -236,7 +238,8 @@ class ReportTypeView @JvmOverloads constructor(
|
||||
|
||||
override fun problemPadAddError(msg: String) {
|
||||
super.problemPadAddError(msg)
|
||||
ToastUtils.showShort("故障原因上报失败$msg")
|
||||
// ToastUtils.showShort("故障原因上报失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cause_upload_fail, msg)
|
||||
ThreadUtils.runOnUiThread {
|
||||
this.visibility = View.GONE
|
||||
clickListener?.closeReportView()
|
||||
@@ -246,7 +249,8 @@ class ReportTypeView @JvmOverloads constructor(
|
||||
override fun getCategoriesSuccess(list: List<CategoryInfo>) {
|
||||
super.getCategoriesSuccess(list)
|
||||
if(list.isEmpty()){
|
||||
ToastUtils.showShort("一键上报故障描述后台未配置")
|
||||
// ToastUtils.showShort("一键上报故障描述后台未配置")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_cloud_not_configured)
|
||||
canOneReport = false
|
||||
}else{
|
||||
when (level) {
|
||||
@@ -275,7 +279,8 @@ class ReportTypeView @JvmOverloads constructor(
|
||||
|
||||
override fun getCategoriesError(msg: String) {
|
||||
super.getCategoriesError(msg)
|
||||
ToastUtils.showShort("一键上报故障描述获取失败$msg")
|
||||
// ToastUtils.showShort("一键上报故障描述获取失败$msg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_fault_desc_get_fail, msg)
|
||||
canOneReport = false
|
||||
}
|
||||
|
||||
|
||||
@@ -128,7 +128,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
}
|
||||
iv_time_add.setOnClickListener {
|
||||
if(workOrderOccurrenceTime + 60000 > System.currentTimeMillis()){
|
||||
ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
// ToastUtils.showShort("发生时间应在当前时间之前")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_occurrence_time_should_be_before_current_time)
|
||||
return@setOnClickListener
|
||||
}
|
||||
workOrderOccurrenceTime += 60000
|
||||
@@ -184,11 +185,13 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
if(ClickUtils.isFastClick()){
|
||||
//工单问题类型必选,没有选择,进行提示
|
||||
if(workOrderType.isEmpty()){
|
||||
ToastUtils.showShort("请选择问题类型")
|
||||
// ToastUtils.showShort("请选择问题类型")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_issue_type)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(et_describe_input.text.toString().isEmpty()){
|
||||
ToastUtils.showShort("请填写问题描述")
|
||||
// ToastUtils.showShort("请填写问题描述")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_choose_issue_desc)
|
||||
return@setOnClickListener
|
||||
}
|
||||
GlobalScope.launch(Dispatchers.IO){
|
||||
@@ -212,7 +215,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
CallerDevaToolsManager.workOrderReport(workOrderReportInfo)
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("请勿连续上报,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续上报,稍后再试")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_dot_continuous_upload)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -234,7 +238,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
// 不显示听写对话框
|
||||
ret = it.startListening(mRecognizerListener)
|
||||
if (ret != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
// ToastUtils.showShort("听写失败,错误码:$ret,请点击网址https://www.xfyun.cn/document/error-code查询解决方案")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_fail, ret)
|
||||
}
|
||||
}
|
||||
//开始录音,展示放大缩小动效
|
||||
@@ -258,7 +263,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
*/
|
||||
private val mInitListener = InitListener { code ->
|
||||
if (code != ErrorCode.SUCCESS) {
|
||||
ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
// ToastUtils.showShort("讯飞语音听写初始化失败,错误码:$code")
|
||||
ToastUtils.showShort(com.zhjt.mogo_core_function_devatools.R.string.module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail, code)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,7 +328,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun workOrderReportSuccess() {
|
||||
ToastUtils.showShort("工单上报成功")
|
||||
// ToastUtils.showShort("工单上报成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_work_order_upload_success)
|
||||
ThreadUtils.runOnUiThread {
|
||||
this@WorkOrderView.visibility = View.GONE
|
||||
clickListener?.closeWorkOrderView()
|
||||
@@ -330,7 +337,8 @@ class WorkOrderView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun workOrderReportError() {
|
||||
ToastUtils.showShort("工单上报失败")
|
||||
// ToastUtils.showShort("工单上报失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_work_order_upload_fail)
|
||||
}
|
||||
|
||||
interface ClickListener{
|
||||
|
||||
@@ -187,7 +187,8 @@ class MsgBoxTabAdapter(private val activity: Activity) :
|
||||
val recordBagMsg = msgBoxBean.bean as RecordBagMsg
|
||||
holder.tvRecordCheck.setOnClickListener {
|
||||
if(recordBagMsg.isShow){
|
||||
ToastUtils.showShort("当前录包上报面板已打开,请勿重复操作")
|
||||
// ToastUtils.showShort("当前录包上报面板已打开,请勿重复操作")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_bad_case_view_opened)
|
||||
}else{
|
||||
//打开被动录包弹窗
|
||||
CallerDevaToolsManager.onReceiveBadCaseRecord(msgBoxBean, activity, false)
|
||||
|
||||
@@ -44,15 +44,18 @@ class ToolDriverRomaView @JvmOverloads constructor(
|
||||
|
||||
toolDriverRomaContainer.setOnClickListener {
|
||||
if (ClickUtils.isClickTooFrequent(this, 2500)) {
|
||||
ToastUtils.showShort("不要频繁点击哦~")
|
||||
// ToastUtils.showShort("不要频繁点击哦~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_dot_often_click)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (!click) {
|
||||
ToastUtils.showShort("漫游准备中,请等待")
|
||||
// ToastUtils.showShort("漫游准备中,请等待")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_roam_starting)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if (!MogoStatusManager.getInstance().isSocketOnLine) {
|
||||
ToastUtils.showShort("长链状态异常,请检查链接后开启漫游")
|
||||
// ToastUtils.showShort("长链状态异常,请检查链接后开启漫游")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_long_connection_state_error)
|
||||
return@setOnClickListener
|
||||
}
|
||||
click = false
|
||||
|
||||
@@ -48,7 +48,8 @@ class ToolRestartSystemView @JvmOverloads constructor(
|
||||
*/
|
||||
private fun showRebootDialog() {
|
||||
if (!connectStatus) {
|
||||
ToastUtils.showShort("尚未连接工控机,无法重启系统")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法重启系统")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_reboot_ipc)
|
||||
return
|
||||
}
|
||||
//dialog
|
||||
@@ -58,12 +59,14 @@ class ToolRestartSystemView @JvmOverloads constructor(
|
||||
override fun confirm() {
|
||||
if (CallerAutoPilotStatusListenerManager.getState() == 2) {
|
||||
//当前处于自动驾驶状态,不可进行重启,Toast提示
|
||||
ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
// ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_please_exit_autopilot_state)
|
||||
} else {
|
||||
//确认重启
|
||||
CallerLogger.d("$M_HMI$TAG", "reboot confirm")
|
||||
CallerAutoPilotControlManager.sendIpcReboot()
|
||||
ToastUtils.showLong("重启命令已发送")
|
||||
// ToastUtils.showLong("重启命令已发送")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_send_reboot_success)
|
||||
//打开冷启动页面
|
||||
CallerHmiManager.showColdStartWindow()
|
||||
}
|
||||
|
||||
@@ -200,30 +200,36 @@ class ToolStopServiceView @JvmOverloads constructor(
|
||||
*/
|
||||
private fun powerOff() {
|
||||
if (!connectStatus) {
|
||||
ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if (AppConfigInfo.dockerVersion.isEmpty()) {
|
||||
ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if (ParseVersionUtils.parseVersion(true, AppConfigInfo.dockerVersion) < 40100) {
|
||||
ToastUtils.showShort("此域控版本不支持一键停服功能,最低支持版本为4.1.0")
|
||||
// ToastUtils.showShort("此域控版本不支持一键停服功能,最低支持版本为4.1.0")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_version_nonsupport_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if (CallerAutoPilotStatusListenerManager.getState() == 2) {
|
||||
//当前处于自动驾驶状态,不可进行重启,Toast提示
|
||||
ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
// ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_please_exit_autopilot_state)
|
||||
return
|
||||
}
|
||||
if (isExecutingPowerOff) {
|
||||
//一键停服命令下发执行中
|
||||
ToastUtils.showShort("一键停服命令下发中,请勿重复点击")
|
||||
// ToastUtils.showShort("一键停服命令下发中,请勿重复点击")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_sending_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if (isPowerOffCountDown) {
|
||||
//系统停服中
|
||||
ToastUtils.showShort("系统停服中,请勿重复点击")
|
||||
// ToastUtils.showShort("系统停服中,请勿重复点击")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_shutdowning_ipc)
|
||||
return
|
||||
}
|
||||
//将是否正在下发一键停服命令标签改为true
|
||||
|
||||
@@ -98,30 +98,37 @@ class DiskCopyView @JvmOverloads constructor(
|
||||
//开始拷贝数据
|
||||
val result = CallerAutoPilotControlManager.sendCopyBagCopyDate(currentCopyDate)
|
||||
if(result){
|
||||
ToastUtils.showShort("已发起拷贝")
|
||||
// ToastUtils.showShort("已发起拷贝")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_start_copy)
|
||||
}else{
|
||||
ToastUtils.showShort("拷贝命令发送失败")
|
||||
// ToastUtils.showShort("拷贝命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_copy_cmd_error)
|
||||
}
|
||||
}
|
||||
2 -> {
|
||||
//拷贝中
|
||||
ToastUtils.showShort("正在拷贝中...")
|
||||
// ToastUtils.showShort("正在拷贝中...")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_copying)
|
||||
}
|
||||
3 -> {
|
||||
//拷贝成功
|
||||
ToastUtils.showShort("当前日期数据已拷贝成功")
|
||||
// ToastUtils.showShort("当前日期数据已拷贝成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_now_date_copy_success)
|
||||
}
|
||||
4 -> {
|
||||
//剩余空间不足
|
||||
ToastUtils.showShort("当前硬盘剩余空间不足")
|
||||
// ToastUtils.showShort("当前硬盘剩余空间不足")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_insufficient_disk_space)
|
||||
}
|
||||
5 -> {
|
||||
//所选日期无法拷贝
|
||||
ToastUtils.showShort("所选日期无法拷贝")
|
||||
// ToastUtils.showShort("所选日期无法拷贝")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_choose_date_not_copy)
|
||||
}
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_bad_case_do_no_click_continuously)
|
||||
}
|
||||
}
|
||||
//拔出硬盘
|
||||
@@ -134,13 +141,16 @@ class DiskCopyView @JvmOverloads constructor(
|
||||
//如果处于未拷贝状态,则调用硬盘安全弹出请求
|
||||
val result = CallerAutoPilotControlManager.sendCopyBagSafeUnmount()
|
||||
if(result){
|
||||
ToastUtils.showShort("硬盘安全弹出命令已发送")
|
||||
// ToastUtils.showShort("硬盘安全弹出命令已发送")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_disk_safely_ejecting)
|
||||
}else{
|
||||
ToastUtils.showShort("硬盘安全弹出命令发送失败")
|
||||
// ToastUtils.showShort("硬盘安全弹出命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_disk_safely_ejecting_fail)
|
||||
}
|
||||
}
|
||||
}else{
|
||||
ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
// ToastUtils.showShort("请勿连续点击,稍后再试")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_devatools_bad_case_do_no_click_continuously)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -148,7 +158,8 @@ class DiskCopyView @JvmOverloads constructor(
|
||||
viewDiskCopyDate.setOnClickListener {
|
||||
if(copyStatus == 2){
|
||||
//数据拷贝中,不可再选择日期
|
||||
ToastUtils.showShort("数据拷贝中,不可再次选择日期,请耐心等待")
|
||||
// ToastUtils.showShort("数据拷贝中,不可再次选择日期,请耐心等待")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_data_copying)
|
||||
}else{
|
||||
//隐藏当前视图
|
||||
pbDiskCopyProgress.visibility = View.GONE
|
||||
@@ -556,7 +567,8 @@ class DiskCopyView @JvmOverloads constructor(
|
||||
//硬盘是否已安全弹出,是-True,否-False
|
||||
Logger.i(TAG,"硬盘是否已安全弹出,是-True,否-False="+diskCopy.diskUnmount)
|
||||
if(diskCopy.diskUnmount){
|
||||
ToastUtils.showShort("硬盘已安全弹出")
|
||||
// ToastUtils.showShort("硬盘已安全弹出")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_disk_safely_ejecting)
|
||||
//隐藏数据落盘辅助工具视图
|
||||
this@DiskCopyView.visibility = View.GONE
|
||||
}
|
||||
|
||||
@@ -30,9 +30,11 @@ class TerminateCopyDataDialog(context: Context) :
|
||||
tvCopyTerminateConfirm.setOnClickListener {
|
||||
val result = CallerAutoPilotControlManager.sendCopyBagAbortCopy()
|
||||
if(result){
|
||||
ToastUtils.showShort("终止数据拷贝命令已发送")
|
||||
// ToastUtils.showShort("终止数据拷贝命令已发送")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_stop_copy)
|
||||
}else{
|
||||
ToastUtils.showShort("终止数据拷贝命令发送失败")
|
||||
// ToastUtils.showShort("终止数据拷贝命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_stop_copy_fail)
|
||||
}
|
||||
dismiss()
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ import com.mogo.eagle.core.function.api.autopilot.*
|
||||
import com.mogo.eagle.core.function.api.lookaround.data.*
|
||||
import com.mogo.eagle.core.function.call.autopilot.*
|
||||
import com.mogo.eagle.core.function.call.devatools.*
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.utilcode.kotlin.*
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_HMI
|
||||
@@ -299,7 +300,8 @@ class M1LookAroundView: SurfaceView, SurfaceHolder.Callback, Runnable, IMoGoChas
|
||||
delay(5000)
|
||||
val d = data
|
||||
if (d == null || !d.isValid()) {
|
||||
Toast.makeText(Utils.getApp(), "当前MAP版本不支持360环视,请升级MAP版本", Toast.LENGTH_SHORT).show()
|
||||
// Toast.makeText(Utils.getApp(), "当前MAP版本不支持360环视,请升级MAP版本", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(Utils.getApp(), R.string.module_core_ipc_version_nonsupport_360_look_around, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,8 @@ class MoFangStatusView : LinearLayout, OnMoFangStatusListener, IMoGoAutopilotSta
|
||||
return
|
||||
}
|
||||
if (!CallerAutoPilotStatusListenerManager.isConnect()) {
|
||||
ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
// ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_disconnect_not_use_mofang)
|
||||
return
|
||||
}
|
||||
if (keyCode == KeyEvent.KEYCODE_A) {
|
||||
@@ -169,7 +170,8 @@ class MoFangStatusView : LinearLayout, OnMoFangStatusListener, IMoGoAutopilotSta
|
||||
return
|
||||
}
|
||||
if (!CallerAutoPilotStatusListenerManager.isConnect()) {
|
||||
ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
// ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_disconnect_not_use_mofang)
|
||||
return
|
||||
}
|
||||
if (keyCode == KeyEvent.KEYCODE_A) {
|
||||
@@ -218,7 +220,8 @@ class MoFangStatusView : LinearLayout, OnMoFangStatusListener, IMoGoAutopilotSta
|
||||
return
|
||||
}
|
||||
if (!CallerAutoPilotStatusListenerManager.isConnect()) {
|
||||
ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
// ToastUtils.showShort("工控机连接异常,无法执行魔方命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_disconnect_not_use_mofang)
|
||||
return
|
||||
}
|
||||
if (keyCodes.size != 2) {
|
||||
|
||||
@@ -177,7 +177,8 @@ class DriverMsgBoxListAdapter(private val activity: Activity) :
|
||||
val recordBagMsg = msgBoxBean.bean as RecordBagMsg
|
||||
holder.tvRecordCheck.setOnClickListener {
|
||||
if(recordBagMsg.isShow){
|
||||
ToastUtils.showShort("当前录包上报面板已打开,请勿重复操作")
|
||||
// ToastUtils.showShort("当前录包上报面板已打开,请勿重复操作")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_bad_case_view_opened)
|
||||
}else{
|
||||
//打开被动录包弹窗
|
||||
CallerDevaToolsManager.onReceiveBadCaseRecord(msgBoxBean, activity, false)
|
||||
|
||||
@@ -1227,7 +1227,8 @@ class OperatePanelLayout : LinearLayout {
|
||||
"01" -> {
|
||||
//关闭成功
|
||||
Log.d(TAG, "-- 驾驶位视频流关闭成功 --")
|
||||
ToastUtils.showShort("驾驶位视频流功能已关闭")
|
||||
// ToastUtils.showShort("驾驶位视频流功能已关闭")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_drive_seat_video_stream_close)
|
||||
FunctionBuildConfig.isDriveSeatVideoStream = false
|
||||
lastTimeOnSendDriveVideo = 0L
|
||||
preferenceScreen.findPreferenceReal<SwitchPreferenceCompat>(KEY_DRIVE_SEAT_VIDEO_STREAM)?.also { it.isChecked = false }
|
||||
@@ -1235,7 +1236,8 @@ class OperatePanelLayout : LinearLayout {
|
||||
"11" -> {
|
||||
//打开成功
|
||||
Log.d(TAG, "-- 驾驶位视频流打开成功 --")
|
||||
ToastUtils.showShort("驾驶位视频流功能已开启")
|
||||
// ToastUtils.showShort("驾驶位视频流功能已开启")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_drive_seat_video_stream_open)
|
||||
FunctionBuildConfig.isDriveSeatVideoStream = true
|
||||
lastTimeOnSendDriveVideo = 0L
|
||||
preferenceScreen.findPreferenceReal<SwitchPreferenceCompat>(KEY_DRIVE_SEAT_VIDEO_STREAM)?.also { it.isChecked = true }
|
||||
@@ -1245,7 +1247,8 @@ class OperatePanelLayout : LinearLayout {
|
||||
"0" -> {
|
||||
Log.d(TAG, "-- 设备下线 --")
|
||||
FunctionBuildConfig.isDriveSeatVideoStream = false // 设备下线
|
||||
ToastUtils.showShort("驾驶位视频流功能因设备下线已关闭")
|
||||
// ToastUtils.showShort("驾驶位视频流功能因设备下线已关闭")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_drive_seat_video_stream_device_live_close)
|
||||
preferenceScreen.findPreferenceReal<SwitchPreferenceCompat>(KEY_DRIVE_SEAT_VIDEO_STREAM)?.also {
|
||||
it.isChecked = false
|
||||
it.isEnabled = false
|
||||
@@ -1304,17 +1307,20 @@ class OperatePanelLayout : LinearLayout {
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverPerformTask()||
|
||||
CallerHmiManager.isShuttleDriverPerformTask()
|
||||
) {
|
||||
ToastUtils.showLong("请先结束当前任务")
|
||||
// ToastUtils.showLong("请先结束当前任务")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_current_task)
|
||||
return false
|
||||
}
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverTakingOrders()) {
|
||||
ToastUtils.showLong("请先结束接单状态")
|
||||
// ToastUtils.showLong("请先结束接单状态")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_receive_order_state)
|
||||
return false
|
||||
}
|
||||
CallerHmiManager.setTaxiUnmanedDriverLineRoutingVerifyMode(true)
|
||||
} else {
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverLineRoutingPerformTask()) {
|
||||
ToastUtils.showLong("请先结束当前任务")
|
||||
// ToastUtils.showLong("请先结束当前任务")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_current_task)
|
||||
return false
|
||||
}
|
||||
CallerHmiManager.setTaxiUnmanedDriverLineRoutingVerifyMode(false)
|
||||
@@ -1373,13 +1379,19 @@ class OperatePanelLayout : LinearLayout {
|
||||
val interval = SystemClock.elapsedRealtime() - lastTimeOnSendDriveVideo
|
||||
if (interval <= TimeUnit.SECONDS.toMillis(10)) {
|
||||
val seconds = TimeUnit.MILLISECONDS.toSeconds(interval)
|
||||
ToastUtils.showShort("未收到乘客屏响应,${ if (seconds >= 1) "请${seconds}秒后再试" else "请稍候再试"}")
|
||||
// ToastUtils.showShort("未收到乘客屏响应,${ if (seconds >= 1) "请${seconds}秒后再试" else "请稍候再试"}")
|
||||
if (seconds >= 1) {
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_drive_seat_video_stream_device_response_second, seconds)
|
||||
} else {
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_drive_seat_video_stream_device_response)
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
lastTimeOnSendDriveVideo = SystemClock.elapsedRealtime()
|
||||
val isChecked = newValue as? Boolean ?: false
|
||||
ToastUtils.showShort(if (isChecked) "驾驶位视频流功能开启指令已发送,等待乘客端响应" else "驾驶位视频流功能关闭指令已发送,等待乘客端响应")
|
||||
// ToastUtils.showShort(if (isChecked) "驾驶位视频流功能开启指令已发送,等待乘客端响应" else "驾驶位视频流功能关闭指令已发送,等待乘客端响应")
|
||||
ToastUtils.showShort(if (isChecked) R.string.module_mogo_core_function_hmi_send_open_drive_seat_video_stream_cmd else R.string.module_mogo_core_function_hmi_send_close_drive_seat_video_stream_cmd)
|
||||
clickEventAnalytics("视频流驾驶位开关", isChecked)
|
||||
val map = HashMap<String, String>()
|
||||
map["open"] = if (isChecked) "1" else "0"
|
||||
@@ -2135,13 +2147,16 @@ class OperatePanelLayout : LinearLayout {
|
||||
val isSuccess = CallerAutoPilotControlManager.setAutoPilotSpeed(FunctionBuildConfig.maxSpeedLimit.toInt())
|
||||
when {
|
||||
isSuccess -> {
|
||||
ToastUtils.showShort("车速设置成功,立即生效")
|
||||
// ToastUtils.showShort("车速设置成功,立即生效")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_success)
|
||||
}
|
||||
else -> {
|
||||
if (!CallerAutoPilotStatusListenerManager.isConnect()) {
|
||||
ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
// ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_fail)
|
||||
} else {
|
||||
ToastUtils.showShort("设置车速失败")
|
||||
// ToastUtils.showShort("设置车速失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_fail_disconnect)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2154,10 +2169,12 @@ class OperatePanelLayout : LinearLayout {
|
||||
hmiAction("SOP 变道绕障的目标障碍物速度阈值", FunctionBuildConfig.detouringSpeed)
|
||||
val isSuccess = CallerAutoPilotControlManager.sendDetouringSpeed(FunctionBuildConfig.detouringSpeed)
|
||||
if (isSuccess == true) {
|
||||
ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置成功")
|
||||
// ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_detouring_speed_success)
|
||||
hmiAction("SOP 变道绕障的目标障碍物速度阈值设置", "成功")
|
||||
} else {
|
||||
ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置失败")
|
||||
// ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_detouring_speed_fail)
|
||||
hmiAction("SOP 变道绕障的目标障碍物速度阈值设置", "失败")
|
||||
}
|
||||
clickEventAnalytics("变道速度阈值", true)
|
||||
@@ -2167,10 +2184,12 @@ class OperatePanelLayout : LinearLayout {
|
||||
FunctionBuildConfig.overTakeSpeed = preference.extras.getDouble(PreferenceWithSpeedSetting.KEY_BUNDLE_CURRENT_VALUE, FunctionBuildConfig.overTakeSpeed)
|
||||
val isSuccess = CallerAutoPilotControlManager.sendOvertakeMaxSpeed(FunctionBuildConfig.overTakeSpeed)
|
||||
if (isSuccess == true) {
|
||||
ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置成功")
|
||||
// ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_sop_detouring_speed_success)
|
||||
hmiAction("SOP 超车目标障碍物速度阈值设置", "成功")
|
||||
} else {
|
||||
ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置失败")
|
||||
// ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_sop_detouring_speed_fail)
|
||||
hmiAction("SOP 超车目标障碍物速度阈值设置", "失败")
|
||||
}
|
||||
clickEventAnalytics("超车速度阈值", true)
|
||||
|
||||
@@ -84,7 +84,8 @@ class PreferenceWithSpeedSetting : Preference {
|
||||
btnOk.isEnabled = false
|
||||
holder.itemView.isEnabled = false
|
||||
ll.isSelected = false
|
||||
ToastUtils.showShort("阈值最大为${max.safeScale()}$unit")
|
||||
// ToastUtils.showShort("阈值最大为${max.safeScale()}$unit")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_limit_max_value, "${max.safeScale()}$unit")
|
||||
return@doAfterTextChanged
|
||||
}
|
||||
val temp = current.safeScale()
|
||||
@@ -118,7 +119,8 @@ class PreferenceWithSpeedSetting : Preference {
|
||||
minus.onClickWidthDuration(100) {
|
||||
val minusAfter = cur - step
|
||||
if (minusAfter < min) {
|
||||
ToastUtils.showShort("阈值最小为${min.safeScale()}$unit")
|
||||
// ToastUtils.showShort("阈值最小为${min.safeScale()}$unit")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_limit_min_value, "${min.safeScale()}$unit")
|
||||
return@onClickWidthDuration
|
||||
}
|
||||
cur = minusAfter
|
||||
@@ -140,7 +142,8 @@ class PreferenceWithSpeedSetting : Preference {
|
||||
add.onClickWidthDuration(100) {
|
||||
val addAfter = cur + step
|
||||
if (addAfter > max) {
|
||||
ToastUtils.showShort("阈值最大为${max.safeScale()}$unit")
|
||||
// ToastUtils.showShort("阈值最大为${max.safeScale()}$unit")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_limit_max_value, "${max.safeScale()}$unit")
|
||||
return@onClickWidthDuration
|
||||
}
|
||||
holder.itemView.isEnabled = false
|
||||
|
||||
@@ -1129,7 +1129,8 @@ internal class DebugSettingView @JvmOverloads constructor(
|
||||
//重启工控机所有节点
|
||||
btnIpcReboot.onClick {
|
||||
CallerAutoPilotControlManager.sendIpcReboot()
|
||||
ToastUtils.showLong("重启命令已发送")
|
||||
// ToastUtils.showLong("重启命令已发送")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_send_reboot_success)
|
||||
}
|
||||
btnAppReboot.onClick {
|
||||
killApp()
|
||||
|
||||
@@ -646,7 +646,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
tvSpeed.text = "${FunctionBuildConfig.detouringSpeed} m/s"
|
||||
ivSpeedReduce.setOnClickListener {
|
||||
if (FunctionBuildConfig.detouringSpeed <= 3) {
|
||||
ToastUtils.showShort("阈值最小可为3 m/s")
|
||||
// ToastUtils.showShort("阈值最小可为3 m/s")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_detouring_speed_min_value)
|
||||
} else {
|
||||
FunctionBuildConfig.detouringSpeed--
|
||||
tvSpeed.text = "${FunctionBuildConfig.detouringSpeed} m/s"
|
||||
@@ -655,7 +656,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
}
|
||||
ivSpeedAdd.setOnClickListener {
|
||||
if (FunctionBuildConfig.detouringSpeed >= 7) {
|
||||
ToastUtils.showShort("阈值最大可为7 m/s")
|
||||
// ToastUtils.showShort("阈值最大可为7 m/s")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_detouring_speed_max_value)
|
||||
} else {
|
||||
FunctionBuildConfig.detouringSpeed++
|
||||
tvSpeed.text = "${FunctionBuildConfig.detouringSpeed} m/s"
|
||||
@@ -666,10 +668,12 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
val isSuccess =
|
||||
CallerAutoPilotControlManager.sendDetouringSpeed(FunctionBuildConfig.detouringSpeed.toDouble())
|
||||
if (isSuccess == true) {
|
||||
ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置成功")
|
||||
// ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_detouring_speed_success)
|
||||
hmiAction("SOP 变道绕障的目标障碍物速度阈值设置", "成功")
|
||||
} else {
|
||||
ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置失败")
|
||||
// ToastUtils.showShort("变道绕障的目标障碍物速度阈值设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_detouring_speed_fail)
|
||||
hmiAction("SOP 变道绕障的目标障碍物速度阈值设置", "失败")
|
||||
}
|
||||
clickEventAnalytics("变道速度阈值",true)
|
||||
@@ -677,7 +681,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
|
||||
ivSpeedOverTakeReduce.setOnClickListener {
|
||||
if (FunctionBuildConfig.overTakeSpeed <= 3) {
|
||||
ToastUtils.showShort("阈值最小可为3 m/s")
|
||||
// ToastUtils.showShort("阈值最小可为3 m/s")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_detouring_speed_min_value)
|
||||
} else {
|
||||
FunctionBuildConfig.overTakeSpeed -= 0.5f
|
||||
tvOverTakeLimit.text = "${FunctionBuildConfig.overTakeSpeed} m/s"
|
||||
@@ -686,7 +691,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
}
|
||||
ivSpeedOverTakeAdd.setOnClickListener {
|
||||
if (FunctionBuildConfig.overTakeSpeed >= 12.5) {
|
||||
ToastUtils.showShort("阈值最大可为12.5 m/s")
|
||||
// ToastUtils.showShort("阈值最大可为12.5 m/s")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_over_take_speed_max_value)
|
||||
} else {
|
||||
FunctionBuildConfig.overTakeSpeed += 0.5f
|
||||
tvOverTakeLimit.text = "${FunctionBuildConfig.overTakeSpeed} m/s"
|
||||
@@ -697,10 +703,12 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
val isSuccess =
|
||||
CallerAutoPilotControlManager.sendOvertakeMaxSpeed(FunctionBuildConfig.overTakeSpeed.toDouble())
|
||||
if (isSuccess == true) {
|
||||
ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置成功")
|
||||
// ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_sop_detouring_speed_success)
|
||||
hmiAction("SOP 超车目标障碍物速度阈值设置", "成功")
|
||||
} else {
|
||||
ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置失败")
|
||||
// ToastUtils.showShort("SOP 超车目标障碍物速度阈值设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_sop_detouring_speed_fail)
|
||||
hmiAction("SOP 超车目标障碍物速度阈值设置", "失败")
|
||||
}
|
||||
clickEventAnalytics("超车速度阈值",true)
|
||||
@@ -793,19 +801,22 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
if(!buttonView.isPressed) return@setOnCheckedChangeListener
|
||||
if (isChecked) {
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverPerformTask()) {
|
||||
ToastUtils.showLong("请先结束当前任务")
|
||||
// ToastUtils.showLong("请先结束当前任务")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_current_task)
|
||||
buttonView.isChecked = !isChecked
|
||||
return@setOnCheckedChangeListener
|
||||
}
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverTakingOrders()) {
|
||||
ToastUtils.showLong("请先结束接单状态")
|
||||
// ToastUtils.showLong("请先结束接单状态")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_receive_order_state)
|
||||
buttonView.isChecked = !isChecked
|
||||
return@setOnCheckedChangeListener
|
||||
}
|
||||
CallerHmiManager.setTaxiUnmanedDriverLineRoutingVerifyMode(true)
|
||||
} else {
|
||||
if (CallerHmiManager.isTaxiUnmanedDriverLineRoutingPerformTask()) {
|
||||
ToastUtils.showLong("请先结束当前任务")
|
||||
// ToastUtils.showLong("请先结束当前任务")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_please_stop_current_task)
|
||||
buttonView.isChecked = !isChecked
|
||||
return@setOnCheckedChangeListener
|
||||
}
|
||||
@@ -938,7 +949,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
if (tag == 0) {
|
||||
//断开魔方连接
|
||||
if (!mf.isConnected()) {
|
||||
Toast.makeText(context, "尚未建立连接", Toast.LENGTH_SHORT).show()
|
||||
// Toast.makeText(context, "尚未建立连接", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(context, R.string.module_core_mofang_disconnect, Toast.LENGTH_SHORT).show()
|
||||
return@setOnClickCallback
|
||||
}
|
||||
mfStatusLayout.showLoadingView()
|
||||
@@ -948,7 +960,8 @@ internal class SOPSettingView @JvmOverloads constructor(
|
||||
if (tag == 1) {
|
||||
//建立魔方连接
|
||||
if (mf.isConnected()) {
|
||||
Toast.makeText(context, "已连接,不要重复连接", Toast.LENGTH_SHORT).show()
|
||||
// Toast.makeText(context, "已连接,不要重复连接", Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(context, R.string.module_core_mofang_connected, Toast.LENGTH_SHORT).show()
|
||||
return@setOnClickCallback
|
||||
}
|
||||
mf.connect()
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.mogo.eagle.core.data.deva.bindingcar.IPCUpgradeStateInfo
|
||||
import com.mogo.eagle.core.data.enums.SidePattern
|
||||
import com.mogo.eagle.core.function.api.hmi.warning.IMoGoWarningStatusListener
|
||||
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager
|
||||
import com.mogo.eagle.core.function.hmi.R
|
||||
import com.mogo.eagle.core.function.hmi.notification.WarningFloat
|
||||
import com.mogo.eagle.core.function.hmi.notification.anim.DefaultAnimator
|
||||
import com.mogo.eagle.core.function.hmi.ui.setting.SopView.Companion.sopView
|
||||
@@ -117,7 +118,8 @@ class ToolsView private constructor() {
|
||||
toolsView?.showAdUpgradeStatus(ipcUpgradeStateInfo)
|
||||
ipcUpgradeStateInfo.status.let {
|
||||
if (AdUpgradeStateHelper.isUpgradeSuccess(it)) {
|
||||
ToastUtils.showLong("升级成功")
|
||||
// ToastUtils.showLong("升级成功")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_ipc_upgrade_success)
|
||||
AdUpgradeStateHelper.setConfirmUpgrade(false)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,8 @@ class AdUpgradeDialog(context: Context, images: List<String>, padSn: String, rel
|
||||
//确认升级
|
||||
CallerDevaToolsManager.upgradeConfirm(images, padSn, releaseId)
|
||||
AdUpgradeStateHelper.setConfirmUpgrade(true)
|
||||
ToastUtils.showLong("最新版本下载中...")
|
||||
// ToastUtils.showLong("最新版本下载中...")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_ipc_upgrade_dow)
|
||||
dismiss()
|
||||
}
|
||||
upgradeCancel?.setOnClickListener {
|
||||
|
||||
@@ -82,7 +82,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
when {
|
||||
speed > 60 -> {
|
||||
// 设置失败键盘不消失,让用户直接修改
|
||||
ToastUtils.showShort("超过最大限速值60,设置失败")
|
||||
// ToastUtils.showShort("超过最大限速值60,设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_beyond_max_value)
|
||||
}
|
||||
else -> {
|
||||
keyBoardUtil?.hideKeyboard()
|
||||
@@ -93,10 +94,12 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
when {
|
||||
isSuccess -> {
|
||||
etInputSpeed.setText(speedLimit.toString())
|
||||
ToastUtils.showShort("车速设置成功,立即生效")
|
||||
// ToastUtils.showShort("车速设置成功,立即生效")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_success)
|
||||
}
|
||||
else -> {
|
||||
ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
// ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_fail)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -113,11 +116,13 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
speedLimit = inputContent.toInt()
|
||||
if(speedLimit>60){
|
||||
speedLimit = 60
|
||||
ToastUtils.showShort("最大限速60")
|
||||
// ToastUtils.showShort("最大限速60")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_max_value)
|
||||
}
|
||||
}
|
||||
}catch (t: Exception){
|
||||
ToastUtils.showShort("最大限速60")
|
||||
// ToastUtils.showShort("最大限速60")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_max_value)
|
||||
speedLimit = 60
|
||||
|
||||
}
|
||||
@@ -200,7 +205,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
svLayout.fullScroll(View.FOCUS_DOWN)
|
||||
}
|
||||
if (!CallerAutoPilotStatusListenerManager.isConnect()) {
|
||||
ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
// ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_fail)
|
||||
keyBoardUtil?.hideKeyboard()
|
||||
return@setOnTouchListener true
|
||||
} else {
|
||||
@@ -216,7 +222,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
speedLimit = 0
|
||||
etInputSpeed.setText(speedLimit.toString())
|
||||
} else{
|
||||
ToastUtils.showShort("车速不能再减了")
|
||||
// ToastUtils.showShort("车速不能再减了")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_not_minus)
|
||||
}
|
||||
try{
|
||||
etInputSpeed.setSelection(speedLimit.toString().length)
|
||||
@@ -231,7 +238,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
speedLimit = 60
|
||||
etInputSpeed.setText(speedLimit.toString())
|
||||
} else{
|
||||
ToastUtils.showShort("车速不能再加了")
|
||||
// ToastUtils.showShort("车速不能再加了")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_not_add)
|
||||
}
|
||||
try{
|
||||
etInputSpeed.setSelection(speedLimit.toString().length)
|
||||
@@ -242,7 +250,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
tvSureModify.setOnClickListener {
|
||||
if(speedLimit>60){
|
||||
// 设置失败键盘不消失,让用户直接修改
|
||||
ToastUtils.showShort("超过最大限速值60,设置失败")
|
||||
// ToastUtils.showShort("超过最大限速值60,设置失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_speed_beyond_max_value)
|
||||
return@setOnClickListener
|
||||
}
|
||||
val isSuccess = CallerAutoPilotControlManager.setAutoPilotSpeed(speedLimit)
|
||||
@@ -250,10 +259,12 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
isSuccess -> {
|
||||
//速度显示
|
||||
etInputSpeed.setText(speedLimit.toString())
|
||||
ToastUtils.showShort("车速设置成功,立即生效")
|
||||
// ToastUtils.showShort("车速设置成功,立即生效")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_success)
|
||||
}
|
||||
else -> {
|
||||
ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
// ToastUtils.showShort("设置车速失败,请启动域控制器")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_set_auto_pilot_speed_fail)
|
||||
}
|
||||
}
|
||||
try {
|
||||
@@ -267,7 +278,8 @@ internal class AutoPilotAndCheckView @JvmOverloads constructor(
|
||||
if (CallerAutoPilotStatusListenerManager.getState() == IMoGoAutopilotStatusListener.STATUS_AUTOPILOT_RUNNING
|
||||
|| CallerAutoPilotStatusListenerManager.getState() == IMoGoAutopilotStatusListener.STATUS_PARALLEL_DRIVING
|
||||
) {
|
||||
ToastUtils.showShort("请稍后退出")
|
||||
// ToastUtils.showShort("请稍后退出")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_please_out_later)
|
||||
return@onClick
|
||||
}
|
||||
EventBus.getDefault().post(EventLogout(EventLogout.LOGOUT_TYPE))
|
||||
|
||||
@@ -76,9 +76,11 @@ class ModifyBindingCarDialog(context: Context) : BaseFloatDialog(context, TAG),
|
||||
private fun modifyBindingCar() {
|
||||
CallerDevaToolsManager.modifyCarInfo {
|
||||
if (it.code == 200) {
|
||||
TipToast.shortTip("修改绑定成功")
|
||||
// TipToast.shortTip("修改绑定成功")
|
||||
TipToast.shortTip(R.string.module_core_change_bind_success)
|
||||
} else {
|
||||
TipToast.shortTip("修改绑定失败")
|
||||
// TipToast.shortTip("修改绑定失败")
|
||||
TipToast.shortTip(R.string.module_core_change_bind_failed)
|
||||
}
|
||||
}
|
||||
dismiss()
|
||||
|
||||
@@ -45,9 +45,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
if(otaVersion == 1){
|
||||
val result = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.IMMEDIATELY)
|
||||
if(result){
|
||||
ToastUtils.showShort("立即升级命令发送成功")
|
||||
// ToastUtils.showShort("立即升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("立即升级命令发送失败")
|
||||
// ToastUtils.showShort("立即升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
}else if(otaVersion == 2){
|
||||
val query = JSONObject()
|
||||
@@ -60,9 +62,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
}else{
|
||||
val result = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.IMMEDIATELY)
|
||||
if(result){
|
||||
ToastUtils.showShort("立即升级命令发送成功")
|
||||
// ToastUtils.showShort("立即升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("立即升级命令发送失败")
|
||||
// ToastUtils.showShort("立即升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
|
||||
val query = JSONObject()
|
||||
@@ -80,9 +84,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
if(otaVersion == 1){
|
||||
val delayResult = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.DELAY)
|
||||
if(delayResult){
|
||||
ToastUtils.showShort("稍后升级命令发送成功")
|
||||
// ToastUtils.showShort("稍后升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("稍后升级命令发送失败")
|
||||
// ToastUtils.showShort("稍后升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
}else if(otaVersion == 2){
|
||||
//不允许OTA升级
|
||||
@@ -96,9 +102,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
}else{
|
||||
val delayResult = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.DELAY)
|
||||
if(delayResult){
|
||||
ToastUtils.showShort("稍后升级命令发送成功")
|
||||
// ToastUtils.showShort("稍后升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("稍后升级命令发送失败")
|
||||
// ToastUtils.showShort("稍后升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
|
||||
//不允许OTA升级
|
||||
@@ -121,9 +129,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
if(otaVersion == 1){
|
||||
val result = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.IMMEDIATELY)
|
||||
if(result){
|
||||
ToastUtils.showShort("立即升级命令发送成功")
|
||||
// ToastUtils.showShort("立即升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("立即升级命令发送失败")
|
||||
// ToastUtils.showShort("立即升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
}else if(otaVersion == 2){
|
||||
val query = JSONObject()
|
||||
@@ -136,9 +146,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
}else{
|
||||
val result = CallerAutoPilotControlManager.sendSsmFuncOtaDownloadResponse(OTAUpgradeConfig.otaToken,SsmInfo.IfUpgrade.IMMEDIATELY)
|
||||
if(result){
|
||||
ToastUtils.showShort("立即升级命令发送成功")
|
||||
// ToastUtils.showShort("立即升级命令发送成功")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_success)
|
||||
}else{
|
||||
ToastUtils.showShort("立即升级命令发送失败")
|
||||
// ToastUtils.showShort("立即升级命令发送失败")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_send_ipc_upgrade_cmd_fail)
|
||||
}
|
||||
|
||||
val query = JSONObject()
|
||||
|
||||
@@ -79,9 +79,11 @@ class ToBindingCarDialog(context: Context) : BaseFloatDialog(context, TAG), Life
|
||||
private fun toBindingCar() {
|
||||
CallerDevaToolsManager.modifyCarInfo {
|
||||
if (it.code == 200) {
|
||||
TipToast.shortTip("绑定成功")
|
||||
// TipToast.shortTip("绑定成功")
|
||||
TipToast.shortTip(R.string.module_core_bind_success)
|
||||
} else {
|
||||
TipToast.shortTip("绑定失败")
|
||||
// TipToast.shortTip("绑定失败")
|
||||
TipToast.shortTip(R.string.module_core_bind_failed)
|
||||
}
|
||||
}
|
||||
dismiss()
|
||||
|
||||
@@ -70,7 +70,8 @@ class UpgradeAppDialog(context: Context) : BaseFloatDialog(context,TAG), Lifecyc
|
||||
confirmTv?.onClick {
|
||||
val provider = CallerDevaToolsManager.upgradeProvider()
|
||||
if (provider?.isDownloading() == true) {
|
||||
ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
// ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_downloading_new_version)
|
||||
return@onClick
|
||||
}
|
||||
downloadApp()
|
||||
@@ -83,7 +84,8 @@ class UpgradeAppDialog(context: Context) : BaseFloatDialog(context,TAG), Lifecyc
|
||||
confirmForceTv?.onClick {
|
||||
val provider = CallerDevaToolsManager.upgradeProvider()
|
||||
if (provider?.isDownloading() == true) {
|
||||
ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
// ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_downloading_new_version)
|
||||
return@onClick
|
||||
}
|
||||
downloadApp()
|
||||
@@ -95,7 +97,8 @@ class UpgradeAppDialog(context: Context) : BaseFloatDialog(context,TAG), Lifecyc
|
||||
* 去下载
|
||||
*/
|
||||
private fun downloadApp() {
|
||||
ToastUtils.showLong("开始下载APK,稍后可前往downloads文件夹查看,通知栏查看下载进度")
|
||||
// ToastUtils.showLong("开始下载APK,稍后可前往downloads文件夹查看,通知栏查看下载进度")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_start_download_apk)
|
||||
tag?.let {
|
||||
downloadUrl?.let { url ->
|
||||
window?.decorView?.scope?.launch {
|
||||
|
||||
@@ -55,7 +55,8 @@ class AutoPilotStatusView constructor(
|
||||
when (mAutopilotStatus) {
|
||||
0 -> {// 不可自动驾驶,adas与工控机没有链接,或工控机异常
|
||||
CallerLogger.e("$M_HMI$TAG", "不可自动驾驶,adas与工控机没有链接,或工控机异常,请检查")
|
||||
ToastUtils.showShort("不可自动驾驶,adas与工控机没有链接,或工控机异常,请检查")
|
||||
// ToastUtils.showShort("不可自动驾驶,adas与工控机没有链接,或工控机异常,请检查")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_start_autopilot)
|
||||
}
|
||||
1 -> {// 可自动驾驶,目前处于人工干预状态
|
||||
CallerHmiListenerManager.invokeCheckAutoPilotBtnListener(true)
|
||||
|
||||
@@ -153,7 +153,8 @@ open class BlueToothView: LinearLayout, IMoGoMoFangProvider.OnMoFangStatusListen
|
||||
val prev = prevTime.get()
|
||||
val current = SystemClock.elapsedRealtime()
|
||||
if (prev == 0L || TimeUnit.MILLISECONDS.toSeconds(current - prev) >= 30) {
|
||||
ToastUtils.showShort("蘑方当前处于低电状态,请及时充电")
|
||||
// ToastUtils.showShort("蘑方当前处于低电状态,请及时充电")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_mofang_low_power)
|
||||
prevTime.set(current)
|
||||
}
|
||||
ivMoFangStatus?.background = (ContextCompat.getDrawable(context, R.drawable.icon_mofang_low_power))
|
||||
|
||||
@@ -205,30 +205,36 @@ class CheckSystemView @JvmOverloads constructor(
|
||||
*/
|
||||
private fun powerOff() {
|
||||
if (!connectStatus) {
|
||||
ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if(AppConfigInfo.dockerVersion.isEmpty()){
|
||||
ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法下发一键停服命令")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if(ParseVersionUtils.parseVersion(true, AppConfigInfo.dockerVersion)<40100){
|
||||
ToastUtils.showShort("此域控版本不支持一键停服功能,最低支持版本为4.1.0")
|
||||
// ToastUtils.showShort("此域控版本不支持一键停服功能,最低支持版本为4.1.0")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_version_nonsupport_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if(CallerAutoPilotStatusListenerManager.getState() == 2){
|
||||
//当前处于自动驾驶状态,不可进行重启,Toast提示
|
||||
ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
// ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_please_exit_autopilot_state)
|
||||
return
|
||||
}
|
||||
if (isExecutingPowerOff) {
|
||||
//一键停服命令下发执行中
|
||||
ToastUtils.showShort("一键停服命令下发中,请勿重复点击")
|
||||
// ToastUtils.showShort("一键停服命令下发中,请勿重复点击")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_sending_shutdown_ipc)
|
||||
return
|
||||
}
|
||||
if (isPowerOffCountDown) {
|
||||
//系统停服中
|
||||
ToastUtils.showShort("系统停服中,请勿重复点击")
|
||||
// ToastUtils.showShort("系统停服中,请勿重复点击")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_shutdowning_ipc)
|
||||
return
|
||||
}
|
||||
//将是否正在下发一键停服命令标签改为true
|
||||
@@ -247,7 +253,8 @@ class CheckSystemView @JvmOverloads constructor(
|
||||
*/
|
||||
private fun showRebootDialog() {
|
||||
if (!connectStatus) {
|
||||
ToastUtils.showShort("尚未连接工控机,无法重启系统")
|
||||
// ToastUtils.showShort("尚未连接工控机,无法重启系统")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_not_sent_reboot_ipc)
|
||||
return
|
||||
}
|
||||
//dialog
|
||||
@@ -257,12 +264,14 @@ class CheckSystemView @JvmOverloads constructor(
|
||||
override fun confirm() {
|
||||
if (CallerAutoPilotStatusListenerManager.getState() == 2) {
|
||||
//当前处于自动驾驶状态,不可进行重启,Toast提示
|
||||
ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
// ToastUtils.showShort("请先退出自动驾驶状态")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_please_exit_autopilot_state)
|
||||
} else {
|
||||
//确认重启
|
||||
CallerLogger.d("$M_HMI$TAG", "reboot confirm")
|
||||
CallerAutoPilotControlManager.sendIpcReboot()
|
||||
ToastUtils.showLong("重启命令已发送")
|
||||
// ToastUtils.showLong("重启命令已发送")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_send_reboot_success)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -139,10 +139,12 @@ class DriverMonitorView :
|
||||
carLiveCallBack
|
||||
)
|
||||
} else {
|
||||
ToastUtils.showShort("正在直播中")
|
||||
// ToastUtils.showShort("正在直播中")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_live_streaming)
|
||||
}
|
||||
} else {
|
||||
ToastUtils.showShort("当前车内没有直播源")
|
||||
// ToastUtils.showShort("当前车内没有直播源")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_car_not_live_device)
|
||||
//为空又怎么撸
|
||||
CallerLogger.d(
|
||||
"${SceneConstant.M_HMI}$TAG",
|
||||
|
||||
@@ -112,18 +112,21 @@ class ParallelDriveView @JvmOverloads constructor(
|
||||
APP_REQUESTING -> {
|
||||
cancelParaDrive()
|
||||
HmiActionLog.hmiAction(TAG,"Click-请求已取消")
|
||||
ToastUtils.showShort("请求已取消!")
|
||||
// ToastUtils.showShort("请求已取消!")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_cancel_para_drive)
|
||||
checkAvailableAndUpdateUI()
|
||||
}
|
||||
|
||||
AD_REQUESTING -> {
|
||||
HmiActionLog.hmiAction(TAG,"Click-自动驾驶正在请求平行驾驶")
|
||||
ToastUtils.showShort("自动驾驶正在请求平行驾驶")
|
||||
// ToastUtils.showShort("自动驾驶正在请求平行驾驶")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_request_para_drive)
|
||||
}
|
||||
|
||||
UNAVAILABLE -> {
|
||||
HmiActionLog.hmiAction(TAG,"Click-请P档驻车并松开油门刹车后请求")
|
||||
ToastUtils.showShort("请P档驻车并松开油门刹车后请求")
|
||||
// ToastUtils.showShort("请P档驻车并松开油门刹车后请求")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_para_drive_not_conditions)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,14 +46,16 @@ class RomaPassengerView @JvmOverloads constructor(
|
||||
a.recycle()
|
||||
setOnClickListener {
|
||||
if (ClickUtils.isClickTooFrequent(this,2500)) {
|
||||
ToastUtils.showShort("不要频繁点击哦~")
|
||||
// ToastUtils.showShort("不要频繁点击哦~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_dot_often_click)
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(!click){
|
||||
return@setOnClickListener
|
||||
}
|
||||
if(!MogoStatusManager.getInstance().isSocketOnLine){
|
||||
ToastUtils.showShort("长链状态异常,请检查链接后开启漫游")
|
||||
// ToastUtils.showShort("长链状态异常,请检查链接后开启漫游")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_long_connection_state_error)
|
||||
return@setOnClickListener
|
||||
}
|
||||
click = false
|
||||
|
||||
@@ -71,7 +71,8 @@ class SystemVersionView @JvmOverloads constructor(
|
||||
hmiAction("$M_HMI$TAG", "pad version view clicked")
|
||||
val provider = CallerDevaToolsManager.upgradeProvider()
|
||||
if (provider?.isDownloading() == true) {
|
||||
ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
// ToastUtils.showShort("正在下载最新版本,请稍候再试...")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_downloading_new_version)
|
||||
return@setOnClickListener
|
||||
}
|
||||
CallerDevaToolsManager.queryAppUpgrade()
|
||||
@@ -106,7 +107,8 @@ class SystemVersionView @JvmOverloads constructor(
|
||||
currentProgress
|
||||
).isEmpty()
|
||||
) {
|
||||
ToastUtils.showShort("下载已完成")
|
||||
// ToastUtils.showShort("下载已完成")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_download_complete)
|
||||
} else {
|
||||
ToastUtils.showShort(
|
||||
"预计" + AdUpgradeStateHelper.getRemainingTime(
|
||||
@@ -124,15 +126,18 @@ class SystemVersionView @JvmOverloads constructor(
|
||||
}
|
||||
AdUpgradeStateHelper.isUpgrading(it.status) -> {
|
||||
//工控机状态为“升级中”
|
||||
ToastUtils.showShort("新版本升级中,预计5分钟升级完成")
|
||||
// ToastUtils.showShort("新版本升级中,预计5分钟升级完成")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_upgrade_now)
|
||||
}
|
||||
AdUpgradeStateHelper.isUpgradeFailed(it.status) -> {
|
||||
//如果升级失败,则Toast提示:升级失败,请联系运维人员
|
||||
ToastUtils.showShort("升级失败,请联系运维人员")
|
||||
// ToastUtils.showShort("升级失败,请联系运维人员")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_ipc_upgrade_fail)
|
||||
}
|
||||
AdUpgradeStateHelper.isUpgradeSuccess(it.status) -> {
|
||||
//升级成功
|
||||
ToastUtils.showLong("已是最新版本")
|
||||
// ToastUtils.showLong("已是最新版本")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_ipc_last_version)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -342,7 +347,8 @@ class SystemVersionView @JvmOverloads constructor(
|
||||
// ivAdVersion?.setBackgroundResource(R.drawable.version_upgradeable_background)
|
||||
AdUpgradeStateHelper.setUpgradeableStatus(true)
|
||||
} else {
|
||||
ToastUtils.showLong("已是最新版本")
|
||||
// ToastUtils.showLong("已是最新版本")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_hmi_ipc_last_version)
|
||||
ivAdStatus?.setImageResource(R.drawable.icon_latest_version)
|
||||
adCircularProgressView?.visibility = View.GONE
|
||||
// ivAdVersion?.setBackgroundResource(R.drawable.version_latest_background)
|
||||
|
||||
@@ -40,6 +40,7 @@ import com.mogo.eagle.core.function.call.map.CallerMapRomaListener
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapRomaListener.invokeRomaViewStatus
|
||||
import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerVisualAngleManager
|
||||
import com.mogo.eagle.core.function.map.R
|
||||
import com.mogo.eagle.core.function.utils.MapRomaTrace
|
||||
import com.mogo.eagle.core.function.utils.MapRomaTrace.Companion.getCurrentCNode
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.Logger
|
||||
@@ -117,7 +118,8 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
)
|
||||
Logger.d(TAG, "H_ERROR_MAP msg=地图漫游模式启动失败,原因:${it.obj}")
|
||||
if (DebugConfig.isDebug()) {
|
||||
ToastUtils.showShort("进入漫游模式失败, code:${it.obj}")
|
||||
// ToastUtils.showShort("进入漫游模式失败, code:${it.obj}")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_map_roam_starting_fail, "${it.obj}")
|
||||
}
|
||||
}
|
||||
true
|
||||
@@ -127,7 +129,8 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
if (CallerMapIdentifyManager.roam.first.isNotEmpty()
|
||||
&& CallerMapIdentifyManager.roam.first!= TAG
|
||||
&& CallerMapIdentifyManager.roam.second) {
|
||||
ToastUtils.showLong("正在展示路口漫游,请稍后重试")
|
||||
// ToastUtils.showLong("正在展示路口漫游,请稍后重试")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_map_crossing_roam)
|
||||
MapRomaTrace.log(
|
||||
"",
|
||||
CHAIN_CODE_ROMA_REJECT,
|
||||
@@ -240,7 +243,8 @@ class RomaManager() : IMoGoPlanningRottingListener,
|
||||
CallerMapRomaListener.invokeMapRoma(false)
|
||||
CallerMapIdentifyManager.updateRoam("", false)
|
||||
if (DebugConfig.isDebug()) {
|
||||
ToastUtils.showShort("漫游请求异常,msg:$errorMsg")
|
||||
// ToastUtils.showShort("漫游请求异常,msg:$errorMsg")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_roam_fail, errorMsg)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
@@ -208,7 +208,8 @@ class RoadCrossRoamView @JvmOverloads constructor(
|
||||
// 处于漫游模式下不做处理
|
||||
if (CallerMapIdentifyManager.roam.second) {
|
||||
if (CallerMapIdentifyManager.roam.first != TAG) {
|
||||
ToastUtils.showLong("正在漫游中,不展示路口漫游")
|
||||
// ToastUtils.showLong("正在漫游中,不展示路口漫游")
|
||||
ToastUtils.showLong(R.string.module_mogo_core_function_roam_now)
|
||||
}
|
||||
CallerLogger.d("$M_MAP$TAG", "正在漫游中,不展示路口漫游")
|
||||
return
|
||||
|
||||
@@ -8,4 +8,289 @@
|
||||
|
||||
<string name="module_map_model_normal">中距视角</string>
|
||||
<string name="module_map_model_faster">远距视角</string>
|
||||
|
||||
<string name="module_mogo_core_function_biz_traj_url_data_null">trajUrl数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_traj_md5_data_null">trajMd5数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_stop_url_data_null">stopUrl数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_stop_md5_data_null">stopMd5数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_vehicle_model_data_null">vehicleModel数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_line_name_data_null">lineName数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_start_loc_address_data_null">startLocAddress数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_end_loc_address_data_null">endLocAddress数据为空</string>
|
||||
<string name="module_mogo_core_function_biz_reported_dispatch_failure">上报调度失败%s</string>
|
||||
<string name="module_mogo_core_function_biz_cloud_cancel_autopilot_success">云调度取消确认成功</string>
|
||||
<string name="module_mogo_core_function_biz_cloud_cancel_autopilot_error">停止调度确认失败%s</string>
|
||||
<string name="module_mogo_core_function_biz_cloud_complete_arrive">云调度完成,车辆已到达%s</string>
|
||||
|
||||
<string name="module_mogo_core_function_biz_serve_error">服务异常,请稍后重试</string>
|
||||
|
||||
<string name="module_mogo_core_function_datacenter_driver_service_started_successfully">司机端服务启动成功!</string>
|
||||
<string name="module_mogo_core_function_datacenter_driver_service_stop">司机端服务停止!</string>
|
||||
<string name="module_mogo_core_function_datacenter_autopilot_exception">AutoPilot出现异常,请立即处理!</string>
|
||||
<string name="module_mogo_core_function_datacenter_passenger_received_restart_command">乘客屏已收到重启命令</string>
|
||||
<string name="module_mogo_core_function_datacenter_passenger_link_driver_success">连接司机屏成功!</string>
|
||||
<string name="module_mogo_core_function_datacenter_passenger_disconnect_driver">断开和司机屏的连接!</string>
|
||||
<string name="module_mogo_core_function_datacenter_passenger_connect_driver_error">和司机端连接异常!</string>
|
||||
|
||||
<string name="module_mogo_core_function_devatools_bad_case_adas_connect_error">工控机连接状态异常</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_network_error">网络异常,请检查网络</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_do_no_click_continuously">请勿连续点击,稍后再试</string>
|
||||
|
||||
<string name="module_mogo_core_function_devatools_last_chose_one">请选择最少一个原因</string>
|
||||
<string name="module_mogo_core_function_devatools_ai_data_gather_error">AI数据采集数据请求错误且无缓存数据可用</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_previous_duration">前溯采集时长最长30S</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_Back_duration_max">采集总时长最长300S</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_Back_duration_min">采集总时长最短5S</string>
|
||||
<string name="module_mogo_core_function_devatools_bad_case_all">采集总时长最长300S</string>
|
||||
<string name="module_mogo_core_function_devatools_input_time_illegality">输入时间格式不合法,请重新输入</string>
|
||||
<string name="module_mogo_core_function_devatools_save_success">保存成功</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_upload_bag">请先选择要上传的Bag包</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_del_bag">请先选择要删除的Bag包</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_bag_complete">上传命令完成</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos_success">%s 上传cos桶成功</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos_python_fail">%s 上传cos桶执行python失败</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos_copy_fail">%s 上传cos桶拷贝过程失败</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos_merge_fail">%s 上传cos桶合并过程失败</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos_fail">%s 上传cos桶上传过程失败</string>
|
||||
<string name="module_mogo_core_function_devatools_upload_cos">%s 上传cos桶 %s</string>
|
||||
<string name="module_mogo_core_function_devatools_topic_set_success">Topic设置成功</string>
|
||||
<string name="module_mogo_core_function_devatools_topic_set_fail">Topic设置失败</string>
|
||||
<string name="module_mogo_core_function_devatools_iflytek_speech_recognizer_init_fail">讯飞语音听写初始化失败,错误码:%d</string>
|
||||
<string name="module_mogo_core_function_devatools_iflytek_speech_recognizer_fail">听写失败,错误码:%d,请点击网址https://www.xfyun.cn/document/error-code查询解决方案</string>
|
||||
<string name="module_mogo_core_function_devatools_initiative_record_bad_fail">主动录包数据采集错误且无缓存数据可用</string>
|
||||
<string name="module_mogo_core_function_devatools_passivity_record_bad_fail">被动录包数据采集错误且无缓存数据可用</string>
|
||||
<string name="module_mogo_core_function_devatools_record_bitmap_fail">该截图录制失败或已删除</string>
|
||||
<string name="module_mogo_core_function_devatools_start_monitor_success">性能监控启动成功!</string>
|
||||
<string name="module_mogo_core_function_devatools_monitor_started">性能监控已启动,请勿重复启动!</string>
|
||||
<string name="module_mogo_core_function_devatools_stop_monitor_success">性能监控停止成功!</string>
|
||||
<string name="module_mogo_core_function_devatools_not_upgrade_task">暂无待升级任务!</string>
|
||||
<string name="module_mogo_core_function_devatools_receive_upgrade_task">收到车辆部署任务,请在车辆空闲时发起升级</string>
|
||||
<string name="module_mogo_core_function_devatools_not_ota_task">暂无OTA升级任务</string>
|
||||
<string name="module_mogo_core_function_devatools_not_location_permission">定位权限被拒绝, 可能导致RTK定位不准确,请开启~</string>
|
||||
<string name="module_mogo_core_function_devatools_network_bad_quality">当前网络质量差!</string>
|
||||
<string name="module_mogo_core_function_devatools_operation_not_configured_fault_type">运营后台没有配置故障类型</string>
|
||||
<string name="module_mogo_core_function_devatools_operation_choose_fault_type">请先选择故障类型</string>
|
||||
<string name="module_mogo_core_function_devatools_occurrence_time_should_be_before_current_time">发生时间应在当前时间之前</string>
|
||||
<string name="module_mogo_core_function_devatools_complete_submit_again">请完整填写再上报</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_cause_upload_fail">故障原因上报失败%s</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_type_list_empty">故障类型列表为空</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_list_get_fail">故障列表获取失败:%s</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_des_get_fail">故障描述获取失败不能上报</string>
|
||||
<string name="module_mogo_core_function_devatools_initiative_record_bad_cmd_send_fail">主动录包命令下发失败</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_cloud_not_configured">一键上报故障描述后台未配置</string>
|
||||
<string name="module_mogo_core_function_devatools_fault_desc_get_fail">一键上报故障描述获取失败%s</string>
|
||||
<string name="module_mogo_core_function_devatools_cloud_not_take_over_type">运营后台没有配置接管类型</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_take_over_type">请先选择接管类型</string>
|
||||
<string name="module_mogo_core_function_devatools_input_save">请完整填写再保存</string>
|
||||
<string name="module_mogo_core_function_devatools_take_over_type_list_empty">接管类型列表为空</string>
|
||||
<string name="module_mogo_core_function_devatools_take_over_type_list_get_error">接管列表获取失败:%s</string>
|
||||
<string name="module_mogo_core_function_devatools_take_over_window_showing">接管原因弹窗已存在,请先编辑现有接管原因</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_take_over_info">请选择需要上传的接管记录</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_edit_take_over_info">请编辑选中的接管记录</string>
|
||||
<string name="module_mogo_core_function_devatools_dot_quick_click">请勿快速点击</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_del_take_over_info">请选择需要删除的接管记录</string>
|
||||
<string name="module_mogo_core_function_devatools_take_over_info_upload_success">接管记录上传成功</string>
|
||||
<string name="module_mogo_core_function_devatools_take_over_info_upload_fail">接管记录上传失败%s</string>
|
||||
<string name="module_mogo_core_function_devatools_none_last_scene">没有上一个场景了</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_issue_type">请选择问题类型</string>
|
||||
<string name="module_mogo_core_function_devatools_choose_issue_desc">请填写问题描述</string>
|
||||
<string name="module_mogo_core_function_devatools_work_order_upload_success">工单上报成功</string>
|
||||
<string name="module_mogo_core_function_devatools_work_order_upload_fail">工单上报失败</string>
|
||||
<string name="module_mogo_core_function_devatools_uploaded_dot_choose">该条记录已上传,不可选择</string>
|
||||
<string name="module_mogo_core_function_devatools_uploaded_dot_edit">此条记录已上传不可再次编辑</string>
|
||||
|
||||
<string name="module_mogo_core_function_hmi_downloading_new_version">正在下载最新版本,请稍候再试…</string>
|
||||
<string name="module_mogo_core_function_hmi_ssm_not_start">当前SSM节点未成功启动或当前版本不支持OTA升级</string>
|
||||
<string name="module_mogo_core_function_hmi_stop_order_upgrade">请结束订单后触发升级</string>
|
||||
<string name="module_mogo_core_function_hmi_cloud_not_fault_cause">后台未配置故障原因</string>
|
||||
<string name="module_mogo_core_function_hmi_dot_continuous_upload">请勿连续上报,稍后再试</string>
|
||||
<string name="module_mogo_core_function_hmi_bad_case_view_opened">当前录包上报面板已打开,请勿重复操作</string>
|
||||
<string name="module_mogo_core_function_hmi_dot_often_click">不要频繁点击哦~</string>
|
||||
<string name="module_mogo_core_function_hmi_roam_starting">漫游准备中,请等待</string>
|
||||
<string name="module_mogo_core_function_hmi_long_connection_state_error">长链状态异常,请检查链接后开启漫游</string>
|
||||
<string name="module_mogo_core_function_hmi_not_sent_reboot_ipc">尚未连接工控机,无法重启系统</string>
|
||||
<string name="module_mogo_core_function_hmi_please_exit_autopilot_state">请先退出自动驾驶状态</string>
|
||||
<string name="module_mogo_core_function_hmi_send_reboot_success">重启命令已发送</string>
|
||||
<string name="module_mogo_core_function_hmi_not_sent_shutdown_ipc">尚未连接工控机,无法下发一键停服命令</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_version_nonsupport_shutdown_ipc">此域控版本不支持一键停服功能,最低支持版本为4.1.0</string>
|
||||
<string name="module_mogo_core_function_hmi_sending_shutdown_ipc">一键停服命令下发中,请勿重复点击</string>
|
||||
<string name="module_mogo_core_function_hmi_shutdowning_ipc">系统停服中,请勿重复点击</string>
|
||||
<string name="module_mogo_core_function_hmi_start_copy">已发起拷贝</string>
|
||||
<string name="module_mogo_core_function_hmi_copy_cmd_error">拷贝命令发送失败</string>
|
||||
<string name="module_mogo_core_function_hmi_copying">正在拷贝中…</string>
|
||||
<string name="module_mogo_core_function_hmi_now_date_copy_success">当前日期数据已拷贝成功</string>
|
||||
<string name="module_mogo_core_function_hmi_insufficient_disk_space">当前硬盘剩余空间不足</string>
|
||||
<string name="module_mogo_core_function_hmi_choose_date_not_copy">所选日期无法拷贝</string>
|
||||
<string name="module_mogo_core_function_hmi_send_disk_safely_ejecting">硬盘安全弹出命令已发送</string>
|
||||
<string name="module_mogo_core_function_hmi_send_disk_safely_ejecting_fail">硬盘安全弹出命令发送失败</string>
|
||||
<string name="module_mogo_core_function_hmi_data_copying">数据拷贝中,不可再次选择日期,请耐心等待</string>
|
||||
<string name="module_mogo_core_function_hmi_disk_safely_ejecting">硬盘已安全弹出</string>
|
||||
<string name="module_mogo_core_function_hmi_send_stop_copy">终止数据拷贝命令已发送</string>
|
||||
<string name="module_mogo_core_function_hmi_send_stop_copy_fail">终止数据拷贝命令发送失败</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_disconnect_not_use_mofang">工控机连接异常,无法执行魔方命令</string>
|
||||
<string name="module_mogo_core_function_hmi_drive_seat_video_stream_close">驾驶位视频流功能已关闭</string>
|
||||
<string name="module_mogo_core_function_hmi_drive_seat_video_stream_open">驾驶位视频流功能已开启</string>
|
||||
<string name="module_mogo_core_function_hmi_drive_seat_video_stream_device_live_close">驾驶位视频流功能因设备下线已关闭</string>
|
||||
<string name="module_mogo_core_function_hmi_drive_seat_video_stream_device_response_second">未收到乘客屏响应,请%d秒后再试</string>
|
||||
<string name="module_mogo_core_function_hmi_drive_seat_video_stream_device_response">未收到乘客屏响应,请稍候再试</string>
|
||||
<string name="module_mogo_core_function_hmi_send_open_drive_seat_video_stream_cmd">驾驶位视频流功能开启指令已发送,等待乘客端响应</string>
|
||||
<string name="module_mogo_core_function_hmi_send_close_drive_seat_video_stream_cmd">驾驶位视频流功能关闭指令已发送,等待乘客端响应</string>
|
||||
<string name="module_mogo_core_function_hmi_please_stop_current_task">请先结束当前任务</string>
|
||||
<string name="module_mogo_core_function_hmi_please_stop_receive_order_state">请先结束接单状态</string>
|
||||
<string name="module_mogo_core_function_hmi_set_auto_pilot_speed_success">车速设置成功,立即生效</string>
|
||||
<string name="module_mogo_core_function_hmi_set_auto_pilot_speed_fail">设置车速失败,请启动域控制器</string>
|
||||
<string name="module_mogo_core_function_hmi_set_auto_pilot_speed_fail_disconnect">设置车速失败</string>
|
||||
<string name="module_mogo_core_function_hmi_send_detouring_speed_success">变道绕障的目标障碍物速度阈值设置成功</string>
|
||||
<string name="module_mogo_core_function_hmi_send_detouring_speed_fail">变道绕障的目标障碍物速度阈值设置失败</string>
|
||||
<string name="module_mogo_core_function_hmi_send_sop_detouring_speed_success">SOP 超车目标障碍物速度阈值设置成功</string>
|
||||
<string name="module_mogo_core_function_hmi_send_sop_detouring_speed_fail">SOP 超车目标障碍物速度阈值设置失败</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_limit_max_value">阈值最大为%s</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_limit_min_value">阈值最小为%s</string>
|
||||
<string name="module_mogo_core_function_hmi_detouring_speed_min_value">阈值最小可为3 m/s</string>
|
||||
<string name="module_mogo_core_function_hmi_detouring_speed_max_value">阈值最大可为7 m/s</string>
|
||||
<string name="module_mogo_core_function_hmi_over_take_speed_max_value">阈值最大可为12.5 m/s</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_upgrade_success">升级成功</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_upgrade_dow">最新版本下载中…</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_beyond_max_value">超过最大限速值60,设置失败</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_max_value">最大限速60</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_not_minus">车速不能再减了</string>
|
||||
<string name="module_mogo_core_function_hmi_speed_not_add">车速不能再加了</string>
|
||||
<string name="module_mogo_core_function_hmi_please_out_later">请稍后退出</string>
|
||||
<string name="module_mogo_core_function_hmi_send_ipc_upgrade_cmd_success">立即升级命令发送成功</string>
|
||||
<string name="module_mogo_core_function_hmi_send_ipc_upgrade_cmd_fail">立即升级命令发送失败</string>
|
||||
<string name="module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_success">稍后升级命令发送成功</string>
|
||||
<string name="module_mogo_core_function_hmi_later_send_ipc_upgrade_cmd_fail">稍后升级命令发送失败</string>
|
||||
<string name="module_mogo_core_function_hmi_start_download_apk">开始下载APK,稍后可前往downloads文件夹查看,通知栏查看下载进度</string>
|
||||
<string name="module_mogo_core_function_hmi_not_start_autopilot">不可自动驾驶,adas与工控机没有链接,或工控机异常,请检查</string>
|
||||
<string name="module_mogo_core_function_hmi_mofang_low_power">蘑方当前处于低电状态,请及时充电</string>
|
||||
<string name="module_mogo_core_function_hmi_live_streaming">正在直播中</string>
|
||||
<string name="module_mogo_core_function_hmi_car_not_live_device">当前车内没有直播源</string>
|
||||
<string name="module_mogo_core_function_hmi_cancel_para_drive">请求已取消!</string>
|
||||
<string name="module_mogo_core_function_hmi_request_para_drive">自动驾驶正在请求平行驾驶</string>
|
||||
<string name="module_mogo_core_function_hmi_para_drive_not_conditions">请P档驻车并松开油门刹车后请求</string>
|
||||
<string name="module_mogo_core_function_hmi_download_complete">下载已完成</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_upgrade_now">新版本升级中,预计5分钟升级完成</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_upgrade_fail">升级失败,请联系运维人员</string>
|
||||
<string name="module_mogo_core_function_hmi_ipc_last_version">已是最新版本</string>
|
||||
|
||||
|
||||
<string name="module_mogo_core_function_map_roam_starting_fail">进入漫游模式失败, code:%s</string>
|
||||
<string name="module_mogo_core_function_map_crossing_roam">正在展示路口漫游,请稍后重试</string>
|
||||
<string name="module_mogo_core_function_roam_fail">漫游请求异常,msg:%s</string>
|
||||
<string name="module_mogo_core_function_roam_now">正在漫游中,不展示路口漫游</string>
|
||||
|
||||
<string name="module_mogo_commons_tts_init_fail">TTS 模块初始化异常</string>
|
||||
|
||||
<string name="module_taxi_no_publication_trajectory">无发布轨迹, 请发布后重试</string>
|
||||
|
||||
<string name="module_och_autopilot_starting">启动自驾中</string>
|
||||
<string name="module_och_promotional_video_updated">宣传视频数据已更新</string>
|
||||
<string name="module_och_submit_successfully">提交成功</string>
|
||||
<string name="module_och_query_routing_gray_line_list_fail">查询灰度线路列表异常, 请稍后重试, code=%d</string>
|
||||
<string name="module_och_query_routing_gray_line_error">灰度线路或轨迹信息异常,请稍后再试</string>
|
||||
<string name="module_och_please_set_trajectory_info">请设置轨迹信息</string>
|
||||
<string name="module_och_please_refresh_success">刷新成功</string>
|
||||
<string name="module_och_task_finish_success">结束任务成功</string>
|
||||
<string name="module_och_autopilot_starting_not_click">自驾启动中,请勿重复点击</string>
|
||||
<string name="module_och_not_stat_and_end_point">未设置起始或终点站点</string>
|
||||
<string name="module_och_please_slide_hint">请滑动出发后再启动自驾</string>
|
||||
<string name="module_och_autopilot_id_diff">%s_%s_自动驾驶id不同请排查</string>
|
||||
<string name="module_och_not_bluetooth">设备无蓝牙硬件</string>
|
||||
<string name="module_och_bluetooth_not_find_uuid">没有找到服务UUID=%s</string>
|
||||
<string name="module_och_bluetooth_connected">已连接成功</string>
|
||||
<string name="module_och_timeout">超时未响应,请求失败</string>
|
||||
<string name="module_och_network_error">网络异常,请稍后重试</string>
|
||||
<string name="module_och_choose_task_fail">选择任务失败:%s</string>
|
||||
<string name="module_och_set_line_info">请设置轨迹信息</string>
|
||||
<string name="module_och_please_choose_line">请重新选择线路</string>
|
||||
<string name="module_och_task_finish_fail">结束任务失败请稍后再试</string>
|
||||
<string name="module_och_please_choose_task">请选择任务</string>
|
||||
<string name="module_och_this_task_not_use">该任务已被其他车辆使用、请切换任务</string>
|
||||
<string name="module_och_this_task_not_use1">该任务已被%s使用、请切换任务</string>
|
||||
<string name="module_och_emap_attitude_init_failed">请等待车辆完成掉头后再出发吧~</string>
|
||||
<string name="module_och_car_arrived">已到达目的地请重新选择线路</string>
|
||||
<string name="module_och_please_choose_station">请选择站点</string>
|
||||
<string name="module_och_starting_autopilot">启动自动驾驶中</string>
|
||||
<string name="module_och_passenger_disconnect_driver">已断开司机屏连接、请联系安全员</string>
|
||||
<string name="module_och_status_autopilot_disable_hint">设备未就绪请稍等,请安全员主动停止车辆</string>
|
||||
<string name="module_och_status_autopilot_enable_hint">因车辆正在人工驾驶中无法靠边停车,请安全员主动停止车辆</string>
|
||||
<string name="module_och_status_parallel_driving_hint">因车辆正在平行驾驶中无法靠边停车,请安全员主动停止车辆</string>
|
||||
<string name="module_och_stop_site_success">靠边停车成功</string>
|
||||
<string name="module_och_stop_site_ending_fail">车辆系统繁忙,请稍后再试</string>
|
||||
<string name="module_och_car_door_opened">已开启车门</string>
|
||||
<string name="module_och_car_door_closed">已关门车门</string>
|
||||
<string name="module_och_not_point">没有轨迹点</string>
|
||||
<string name="module_och_order_affirm">请确认订单</string>
|
||||
<string name="module_och_please_click_later">请稍后点击</string>
|
||||
<string name="module_och_status_autopilot_disable_hint1">设备未就绪请稍等</string>
|
||||
<string name="module_och_car_running_hint">车辆行驶中,不要频繁点击哦~</string>
|
||||
<string name="module_och_status_autopilot_disable_hint2">设备未就绪请稍等,请稍后再试</string>
|
||||
<string name="module_och_car_running_not_stop">因车辆正在人工驾驶中无法靠边停车,请稍后再试</string>
|
||||
<string name="module_och_car_parallel_driving_hint">远程守护卫士操作中,稍后再试试吧~</string>
|
||||
<string name="module_och_success_achieved">结束成功</string>
|
||||
<string name="module_och_site_determined">站点确定</string>
|
||||
<string name="module_och_driver_end_rejected">司机端拒绝请重新选择</string>
|
||||
<string name="module_och_querying_route_failed">查询线路失败</string>
|
||||
<string name="module_och_passenger_not_connect_driver">乘客屏无法连接司机屏请联系安全员</string>
|
||||
<string name="module_och_please_security_officer_confirm">请联系安全员确认</string>
|
||||
<string name="module_och_query_site_failed">查询站点失败</string>
|
||||
<string name="module_och_disconnect_driver">断开和司机端连接、请联系安全员</string>
|
||||
<string name="module_och_autopilot_now_not_change_line">自动驾驶中无法切换线路</string>
|
||||
<string name="module_och_stop_car_and_change_site">请停车后再修改目的地~</string>
|
||||
<string name="module_och_in_site_nearby">您已在此站点附近</string>
|
||||
<string name="module_och_site_having_already_hint">站点已过,请选择返程路线</string>
|
||||
<string name="module_och_open_ceiling_light_1">打开顶灯1</string>
|
||||
<string name="module_och_close_ceiling_light_1">关闭顶灯1</string>
|
||||
<string name="module_och_open_ceiling_light_2">打开顶灯2</string>
|
||||
<string name="module_och_close_ceiling_light_2">关闭顶灯2</string>
|
||||
<string name="module_och_open_ambient_light">打开氛围灯</string>
|
||||
<string name="module_och_close_ambient_light">关闭氛围灯</string>
|
||||
<string name="module_och_control_system_busy">控制系统繁忙,请稍后再试</string>
|
||||
<string name="module_och_fan_heater_operation_invalid">暖风机操作未生效,请稍后重试吧~</string>
|
||||
<string name="module_och_loading">加载中请稍等</string>
|
||||
<string name="module_och_video_error">哎呀,出错了,看看其他视频吧</string>
|
||||
<string name="module_och_input_pwd">请输入密码</string>
|
||||
<string name="module_och_input_pwd_error">请输入正确密码</string>
|
||||
<string name="module_och_long_link_status_restored">长链接状态恢复</string>
|
||||
<string name="module_och_long_link_error">长链接异常,请开启相应权限或者查看网络</string>
|
||||
<string name="module_och_location_service_error">定位服务异常 </string>
|
||||
<string name="module_och_network_service_error"> 网络异常 </string>
|
||||
<string name="module_och_please_open_permission">%s请开启相应权限或者查看网络</string>
|
||||
<string name="module_och_please_wait_wake_up">请稍后唤醒</string>
|
||||
<string name="module_och_network_error_retry">网络异常,请重试</string>
|
||||
<string name="module_och_open_location_permission_retry">请开启车机定位后重试</string>
|
||||
<string name="module_och_network_error_retry1">网络异常,请稍后重试</string>
|
||||
|
||||
|
||||
<string name="module_tts_init_fail">PadTTS 模块初始化异常</string>
|
||||
|
||||
<string name="module_core_ipc_connection_status_connected">域控已连接</string>
|
||||
<string name="module_core_ipc_connection_status_connecting">域控连接中</string>
|
||||
<string name="module_core_ipc_connection_status_reconnecting">域控重连中</string>
|
||||
<string name="module_core_ipc_connection_status_illegal_address">非法域控地址</string>
|
||||
<string name="module_core_ipc_connection_status_search_address">正在搜索域控地址</string>
|
||||
<string name="module_core_reporting_failed">上报失败</string>
|
||||
<string name="module_core_reporting_success">上报成功</string>
|
||||
<string name="module_core_upload_voice_file_failed">上传语音文件失败</string>
|
||||
<string name="module_core_please_choose_noe_case">请选择至少一个Case</string>
|
||||
<string name="module_core_ipc_not_db">当前工控机没有入库</string>
|
||||
<string name="module_core_cloud_send_get_log">云端下发抓取日志,时间:%d分钟</string>
|
||||
<string name="module_core_cloud_stop_send_get_log">云端下发停止抓取日志</string>
|
||||
<string name="module_core_cloud_send_open_log_switch">云端下发打开日志开关</string>
|
||||
<string name="module_core_cloud_send_close_log_switch">云端下发关闭日志开关</string>
|
||||
<string name="module_core_upload_cache_log">上传本地缓存链路日志</string>
|
||||
<string name="module_core_upload_cache_map_log">上传本地地图缓存日志</string>
|
||||
<string name="module_core_started_capture_log">已经在抓取日志了,请稍后再试</string>
|
||||
<string name="module_core_device_not_uuid">缺少设备唯一ID,请检查网络</string>
|
||||
<string name="module_core_get_log_error">日志抓取出现错误,出错数量:%d</string>
|
||||
<string name="module_core_change_bind_success">修改绑定成功</string>
|
||||
<string name="module_core_change_bind_failed">修改绑定失败</string>
|
||||
<string name="module_core_bind_success">绑定成功</string>
|
||||
<string name="module_core_bind_failed">绑定失败</string>
|
||||
<string name="module_core_mofang_connect_error">检测到魔方未正确连接,请在系统蓝牙设置页面,找到魔方并配对连接…</string>
|
||||
<string name="module_core_find_new_version_quiesce_install">检测到新版本[%s]并且当前设备支持静默升级,开始下载新版本…</string>
|
||||
<string name="module_core_ipc_version_nonsupport_360_look_around">当前MAP版本不支持360环视,请升级MAP版本</string>
|
||||
<string name="module_core_mofang_disconnect">尚未建立连接</string>
|
||||
<string name="module_core_mofang_connected">已连接,不要重复连接</string>
|
||||
|
||||
</resources>
|
||||
@@ -113,7 +113,8 @@ fun View.onClick(block: (View) -> Unit) {
|
||||
fun View.onClick(during:Int,block: (View) -> Unit) {
|
||||
this.setOnClickListener {
|
||||
if (ClickUtils.isClickTooFrequent(this,during)) {
|
||||
ToastUtils.showShort("不要频繁点击哦~")
|
||||
// ToastUtils.showShort("不要频繁点击哦~")
|
||||
ToastUtils.showShort(R.string.module_mogo_core_function_hmi_dot_often_click1)
|
||||
return@setOnClickListener
|
||||
}
|
||||
block(it)
|
||||
|
||||
@@ -513,20 +513,24 @@ public final class ToastUtils {
|
||||
@Nullable final CharSequence text,
|
||||
final int duration,
|
||||
@NonNull final ToastUtils utils) {
|
||||
UtilsBridge.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
cancel();
|
||||
IToast iToast = newToast(utils);
|
||||
ToastUtils.sWeakToast = new WeakReference<>(iToast);
|
||||
if (view != null) {
|
||||
iToast.setToastView(view);
|
||||
} else {
|
||||
iToast.setToastView(text);
|
||||
try {
|
||||
UtilsBridge.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
cancel();
|
||||
IToast iToast = newToast(utils);
|
||||
ToastUtils.sWeakToast = new WeakReference<>(iToast);
|
||||
if (view != null) {
|
||||
iToast.setToastView(view);
|
||||
} else {
|
||||
iToast.setToastView(text);
|
||||
}
|
||||
iToast.show(duration);
|
||||
}
|
||||
iToast.show(duration);
|
||||
}
|
||||
});
|
||||
});
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static CharSequence getToastFriendlyText(CharSequence src) {
|
||||
|
||||
4
core/mogo-core-utils/src/main/res/values/string.xml
Normal file
4
core/mogo-core-utils/src/main/res/values/string.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="module_mogo_core_function_hmi_dot_often_click1">不要频繁点击哦~</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user