diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/constant/OchBusConst.kt b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/constant/OchBusConst.kt index a85ea7ae3f..ceb9969047 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/constant/OchBusConst.kt +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/constant/OchBusConst.kt @@ -38,6 +38,8 @@ class OchBusConst { // 上报心跳轮询ms const val LOOP_PERIOD_60S = 60 * 1000L + // 开始服务启动自动驾驶等待时间(埋点上传) + const val LOOP_PERIOD_15S = 15 * 1000L const val LOOP_PERIOD_1S = 1 * 1000L const val LOOP_DELAY = 100L @@ -45,5 +47,14 @@ class OchBusConst { const val BUS_START_MAP_MAKER = "bus_start_map_maker"; //终点UUID const val BUS_END_MAP_MAKER = "bus_end_map_maker"; + + // 埋点key:开始服务开启自动驾驶(成功/失败) + const val EVENT_KEY_START_SERVICE = "event_key_och_bus_start_service" + const val EVENT_PARAM_SN = "sn" + const val EVENT_PARAM_TIME = "time" + const val EVENT_PARAM_START_NAME = "start_name" + const val EVENT_PARAM_END_NAME = "end_name" + const val EVENT_PARAM_LINE_ID = "line_id" + const val EVENT_PARAM_START_RESULT = "start_autopilot" // true/false } } \ No newline at end of file diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java index 176359e5a2..849925cefb 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/BaseOchBusTabFragment.java @@ -374,11 +374,6 @@ public abstract class BaseOchBusTabFragment { ctvAutopilotStatus.setVisibility(View.VISIBLE); - if (isOperationStatus) { - slidePanelView.setVisibility(View.VISIBLE); - } else { - slidePanelView.setVisibility(View.GONE); - } }); } diff --git a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java index 79ff5ce9ac..8c94a1f856 100644 --- a/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java +++ b/OCH/mogo-och-bus/src/main/java/com/mogo/och/bus/fragment/OchBusFragment.java @@ -15,10 +15,13 @@ import com.mogo.commons.debug.DebugConfig; import com.mogo.commons.voice.AIAssist; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotStatusListener; import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager; +import com.mogo.eagle.core.function.call.map.CallerHDMapManager; import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger; import com.mogo.eagle.core.utilcode.mogo.toast.TipToast; import com.mogo.map.MogoMarkerManager; +import com.mogo.map.marker.IMogoMarker; import com.mogo.map.marker.MogoMarkerOptions; +import com.mogo.module.common.constants.DataTypes; import com.mogo.och.bus.R; import com.mogo.och.bus.bean.OchBusStation; import com.mogo.och.bus.constant.OchBusConst; @@ -172,34 +175,34 @@ public class OchBusFragment extends BaseOchBusTabFragment station, int iconId){ + private void setOrRemoveMapMaker(boolean isAdd, String uuid, List station){ if (isAdd){ - CallerLogger.INSTANCE.d(M_TAXI + "setMapMaker= ",uuid+"=latitude="+station.get(1)+",longitude="+station.get(0)); - MogoMarkerOptions options = new MogoMarkerOptions(); - options.anchorColor("#000000");//不设置报错,暂时随便设置个 - options.setGps(true);//使用wgs 必须设置true - options.scale(0.15f); - Bitmap bitmap = BitmapFactory.decodeResource(mActivity.getResources(), iconId, null); - options.icon(bitmap); - options.latitude(station.get(1)); - options.longitude(station.get(0)); - MogoMarkerManager.getInstance(AbsMogoApplication.getApp()) .addMarker(uuid, options); + CallerLogger.INSTANCE.d(M_TAXI + "setMapMaker= ",uuid+"=latitude=" + +station.get(1)+",longitude="+station.get(0)); + + MogoMarkerOptions options = new MogoMarkerOptions() + .owner(DataTypes.TYPE_MARKER_ADAS) + .anchor(0.5f, 0.5f) + .set3DMode(true) + .gps(true) + .controlAngle(true) + .icon3DRes(R.raw.start_and_end) + .latitude(station.get(1)) + .longitude(station.get(0)); + IMogoMarker marker = MogoMarkerManager.getInstance(AbsMogoApplication.getApp()).addMarker(uuid, options); + marker.setRotateAngle(CallerHDMapManager.INSTANCE.getCenterLineInfo( + station.get(0),station.get(1),-1) + .getAngle() + .floatValue()); + }else { CallerLogger.INSTANCE.d(M_TAXI + "RemoveMapMaker=",uuid+"=latitude="+station.get(1)+",longitude="+station.get(0)); MogoMarkerManager.getInstance(AbsMogoApplication.getApp()) .removeMarkers(uuid); diff --git a/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/utils/OchTaxiAnalyticsUtil.java b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/utils/OchTaxiAnalyticsUtil.java new file mode 100644 index 0000000000..a0f8b5b517 --- /dev/null +++ b/OCH/mogo-och-taxi/src/main/java/com/mogo/och/taxi/utils/OchTaxiAnalyticsUtil.java @@ -0,0 +1,55 @@ +package com.mogo.och.taxi.utils; + +import com.mogo.cloud.passport.MoGoAiCloudClientConfig; +import com.mogo.eagle.core.function.call.analytics.AnalyticsManager; +import com.mogo.eagle.core.utilcode.util.DateTimeUtils; +import com.mogo.eagle.core.utilcode.util.UiThreadHandler; +import com.mogo.och.taxi.constant.OCHTaxiConst; + +import java.util.HashMap; +import java.util.Map; + +/** + * OCH Taxi埋点工具 + * + * Created on 2022/3/24 + */ +public class OchTaxiAnalyticsUtil { + + /** + * 触发'开始服务'埋点流程: + * 点击开始服务(开启自动驾驶)后,15s内成功则发送成功埋点,否则发送失败埋点 + * @param send 是否直接发送埋点(15s内开启成功则直接发送成功埋点) + */ + public static void triggerStartServiceEvent( + boolean send, String startName, String endName, String orderNo) { + + String sn = MoGoAiCloudClientConfig.getInstance().getSn(); + String dateTime = DateTimeUtils.getTimeText( + System.currentTimeMillis(), DateTimeUtils.yyyy_MM_dd_HH_mm_ss); + + Map params = new HashMap<>(); + params.put(OCHTaxiConst.EVENT_PARAM_SN, sn); + params.put(OCHTaxiConst.EVENT_PARAM_TIME, dateTime); + params.put(OCHTaxiConst.EVENT_PARAM_START_NAME, startName); + params.put(OCHTaxiConst.EVENT_PARAM_END_NAME, endName); + params.put(OCHTaxiConst.EVENT_PARAM_ORDER_NUMBER, orderNo); + + Runnable runnable = () -> { + // 15s内未开启,上报失败埋点 + params.put(OCHTaxiConst.EVENT_PARAM_START_RESULT, false); + AnalyticsManager.INSTANCE.track(OCHTaxiConst.EVENT_KEY_START_SERVICE, params); + }; + + if (send) { + // 开启成功,上报埋点 + if (runnable != null && UiThreadHandler.getsUiHandler().hasCallbacks(runnable)) { + UiThreadHandler.removeCallbacks(runnable); + } + params.put(OCHTaxiConst.EVENT_PARAM_START_RESULT, true); + AnalyticsManager.INSTANCE.track(OCHTaxiConst.EVENT_KEY_START_SERVICE, params); + } else { + UiThreadHandler.postDelayed(runnable, OCHTaxiConst.LOOP_PERIOD_15S); + } + } +} diff --git a/OCH/mogo-och-taxi/src/main/res/raw/start_and_end.nt3d b/OCH/mogo-och-taxi/src/main/res/raw/start_and_end.nt3d new file mode 100644 index 0000000000..8424316486 Binary files /dev/null and b/OCH/mogo-och-taxi/src/main/res/raw/start_and_end.nt3d differ diff --git a/README_shell.md b/README_shell.md index 7c590f74af..b060af0060 100644 --- a/README_shell.md +++ b/README_shell.md @@ -19,7 +19,7 @@ adb pull /sdcard/Android/data/com.mogo.launcher.f/log/20211022 // (新的HMI)使用命令行触发 V2X 预警场景 // 顶部弹窗场景,控制展示 -adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200011" --ei v2xType 20011 --es alertContent "测试外部传入数据" --es ttsContent "测试TTS" +adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200012" --ei v2xType 20012 --es alertContent "测试外部传入数据2" --es ttsContent "测试TTS2" // 关闭顶部弹窗 adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow false --es tag "200011" diff --git a/TestHmiWarning.sh b/TestHmiWarning.sh new file mode 100755 index 0000000000..1ab54760cc --- /dev/null +++ b/TestHmiWarning.sh @@ -0,0 +1,16 @@ +#!/bin/bash +for index in `seq 300`; +do + b=$(( $index % 2 )) + if [ $b = 0 ] + then + echo "200011" + adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200011" --ei v2xType 20011 --es alertContent "测试外部传入数据1" --es ttsContent "测试TTS1" + else + echo "200012" + adb shell am broadcast -a com.hmi.v2x.notification --ez v2xIsShow true --es tag "200012" --ei v2xType 20012 --es alertContent "测试外部传入数据2" --es ttsContent "测试TTS2" + fi + sleep 0.5 +done + +echo -e "\033[32m 恭喜你完成了所有 测试脚本 \033[0m" \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 050d2d0e2c..66a4af0052 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -15,12 +15,13 @@ if (!isAndroidTestBuild()) { logLevel "DEBUG" } } -//if (!isAndroidTestBuild()) { -// apply plugin: 'chain.log.hook' -// hooklog{ -// enableLoggerToServer true -// } -//} +if (!isAndroidTestBuild()) { + apply plugin: 'chain.log.hook' + hooklog{ + enableTraceToServer false + enableLoggerToLocal true + } +} //if (!isAndroidTestBuild()) { // apply plugin: 'apm-plugin' @@ -232,8 +233,6 @@ dependencies { implementation rootProject.ext.dependencies.arouter implementation rootProject.ext.dependencies.boostmultidex - compileOnly rootProject.ext.dependencies.adasapi - compileOnly rootProject.ext.dependencies.adasconfigapi debugImplementation rootProject.ext.dependencies.debugleakcanary releaseImplementation rootProject.ext.dependencies.releaseleakcanary diff --git a/app_ipc_monitoring/build.gradle b/app_ipc_monitoring/build.gradle index 9bb528f9a9..e688cb6413 100644 --- a/app_ipc_monitoring/build.gradle +++ b/app_ipc_monitoring/build.gradle @@ -58,5 +58,5 @@ dependencies { // api "com.zhidao.support.adas:high:1.2.1.2_bate21" implementation 'org.greenrobot:eventbus:3.2.0' implementation 'com.android.support:multidex:1.0.3' - implementation 'com.mogo.cloud:telematic:1.3.31' + implementation 'com.mogo.cloud:telematic:1.3.50' } diff --git a/build.gradle b/build.gradle index 091b93c9bf..46b8a4826e 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ buildscript { maven { url "https://artifact.bytedance.com/repository/byteX/" } - mavenCentral() +// mavenCentral() google() } dependencies { @@ -57,7 +57,7 @@ allprojects { maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } maven { url 'https://maven.aliyun.com/repository/jcenter' } - mavenCentral() +// mavenCentral() maven { url 'http://nexus.zhidaoauto.com/repository/maven-releases/' } maven { url 'http://nexus.zhidaoauto.com/repository/maven-public/' } maven { diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt index a51271e89e..b31bd57da7 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/MoGoAutopilotProvider.kt @@ -27,6 +27,7 @@ import com.mogo.eagle.core.utilcode.util.ThreadUtils import com.mogo.eagle.core.utilcode.util.ToastUtils import com.mogo.telematic.MogoProtocolMsg import com.mogo.telematic.MogoProtocolMsg.NORMAL_DATA +import com.mogo.telematic.MogoProtocolMsg.SYNC_MODE_STATUS import com.mogo.telematic.NSDNettyManager import com.mogo.telematic.client.listener.NettyClientListener import com.mogo.telematic.client.status.ConnectState @@ -56,7 +57,7 @@ class MoGoAutopilotProvider : get() = TAG override fun init(context: Context) { - MoGoHandAdasMsgManager.getInstance() + MoGoHandAdasMsgManager.getInstance(context) CallerLogger.i("$M_ADAS_IMPL$TAG", "初始化工控机连接……") mContext = context // 初始化ADAS 域控制器 @@ -90,13 +91,9 @@ class MoGoAutopilotProvider : override fun onChannelConnect(channel: Channel?) { val socketAddress = channel?.remoteAddress().toString() CallerLogger.d("$M_ADAS_IMPL$TAG", "Client ip is:${socketAddress}") - synchronized(this@MoGoAutopilotProvider) { - NSDNettyManager.getInstance().selectChannel(channel) - var byteArray = if(FunctionBuildConfig.isDemoMode) byteArrayOf(1) else byteArrayOf(0) - NSDNettyManager.getInstance().sendMogoProtocolMsgToClient(MogoProtocolMsg(3, byteArray.size, byteArray) - ) { - CallerLogger.d("$M_ADAS_IMPL$TAG", "同步美化模式状态是否成功:${it.isSuccess}") - } + val byteArray = if(FunctionBuildConfig.isDemoMode) byteArrayOf(1) else byteArrayOf(0) + NSDNettyManager.getInstance().sendMsgToSpecifiedClient(MogoProtocolMsg(SYNC_MODE_STATUS, byteArray.size, byteArray), channel) { + CallerLogger.d("$M_ADAS_IMPL$TAG", "同步美化模式状态是否成功:${it.isSuccess}") } } @@ -210,6 +207,13 @@ class MoGoAutopilotProvider : }, 1000, TimeUnit.MILLISECONDS) } + /** + * 断开与工控机的连接 + */ + override fun disconnectIpc() { + AdasManager.getInstance().disconnect() + } + override fun onMapCollectStart(cmdId: Int, cmdTime: Long) { val result = recordPackage(2, cmdId) CallerLogger.d("$M_ADAS_IMPL$TAG", "开始记录包: [$cmdId, $result]") @@ -328,7 +332,7 @@ class MoGoAutopilotProvider : var byteArray = if (isEnable) byteArrayOf(1) else byteArrayOf(0) if (NSDNettyManager.getInstance().isServerStart) { NSDNettyManager.getInstance() - .sendMsgToAllClients(MogoProtocolMsg(3, byteArray.size, byteArray)) + .sendMsgToAllClients(MogoProtocolMsg(SYNC_MODE_STATUS, byteArray.size, byteArray)) } else { CallerLogger.d("$M_ADAS_IMPL$TAG", "同步美化模式状态时司机端Server未启动!") } @@ -368,4 +372,13 @@ class MoGoAutopilotProvider : override fun isConnected(): Boolean { return AdasManager.getInstance().ipcConnectionStatus == IPC_CONNECTION_STATUS.CONNECTED } + + /** + * 获取协议版本 + */ + override fun getProtocolVersion(): Int { + return AdasManager.getInstance().protocolVersion + } + + } \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoAdasListenerImpl.kt b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoAdasListenerImpl.kt index 3038e2baa5..92fcd2e26d 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoAdasListenerImpl.kt +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoAdasListenerImpl.kt @@ -10,11 +10,15 @@ import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_C import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_ROUTE import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_STATUS import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_TRAJECTORY +import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_VEHICLE import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_WARN import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_CAR_STATE import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_ALIAS_CODE_ADAS_MESSAGE_RECT_DATA import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_ADAS -import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_LOG_WEB_SOCKET_DATA +import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT +import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED +import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY +import com.mogo.eagle.core.data.deva.chain.ChainConstant.Companion.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_ADAS_IMPL import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager.invokeArriveAtStation @@ -35,7 +39,6 @@ import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.module.common.MogoApisHandler import com.mogo.module.common.datacenter.SnapshotLocationDataCenter -import com.mogo.module.service.MarkerServiceHandler import com.zhidao.support.adas.high.AdasManager import com.zhidao.support.adas.high.OnAdasListener import com.zhidao.support.adas.high.bean.IPCUpgradeStateInfo @@ -64,6 +67,7 @@ class MoGoAdasListenerImpl : OnAdasListener { //车前引导线 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY, linkCode = CHAIN_LINK_ADAS, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_TRAJECTORY, @@ -94,8 +98,8 @@ class MoGoAdasListenerImpl : OnAdasListener { //感知物体 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_RECT_DATA, paramIndexes = [0, 1], @@ -112,8 +116,8 @@ class MoGoAdasListenerImpl : OnAdasListener { //自车定位信息 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_CAR_STATE, paramIndexes = [0, 1], @@ -127,16 +131,27 @@ class MoGoAdasListenerImpl : OnAdasListener { MogoApisHandler.getInstance().apis.adasControllerApi.lastLon = gnssInfo.longitude MogoApisHandler.getInstance().apis.adasControllerApi.satelliteTime = java.lang.Double.valueOf(gnssInfo.satelliteTime).toLong() + if (1 == FunctionBuildConfig.gpsProvider) { CallerMapUIServiceManager.getMapUIController()?.syncLocation2Map( gnssInfo ) SnapshotLocationDataCenter.getInstance().syncAdasLocationInfo(gnssInfo) } + //根据加速度判断 是否刹车 + CallerAutopilotVehicleStateListenerManager.invokeAutopilotBrakeLightByAcceleration(gnssInfo.acceleration) } } //自车状态(底盘),车灯等。 + @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE, + linkCode = CHAIN_LINK_ADAS, + endpoint = PAD, + nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_VEHICLE, + paramIndexes = [0, 1], + clientPkFileName = "sn" + ) override fun onVehicleState( header: MessagePad.Header, vehicleState: VehicleStateOuterClass.VehicleState? @@ -151,8 +166,8 @@ class MoGoAdasListenerImpl : OnAdasListener { //自动驾驶状态 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_STATUS, paramIndexes = [0, 1], @@ -189,8 +204,8 @@ class MoGoAdasListenerImpl : OnAdasListener { //监控 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_GUARDIAN, paramIndexes = [0, 1], @@ -222,28 +237,10 @@ class MoGoAdasListenerImpl : OnAdasListener { } } - //数据采集,badCase - @ChainLog( - linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, - endpoint = PAD, - nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_RECORD, - paramIndexes = [0, 1], - clientPkFileName = "sn" - ) - override fun onRecordResult( - header: MessagePad.Header, - recordPanel: RecordPanelOuterClass.RecordPanel? - ) { - if (recordPanel != null) { - invokeAutopilotRecordResult(recordPanel) - } - } - //全局路径规划 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_ROUTE, paramIndexes = [0, 1], @@ -258,23 +255,41 @@ class MoGoAdasListenerImpl : OnAdasListener { } } - //预警信息 + //数据采集,badCase @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, - nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_WARN, + nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_RECORD, paramIndexes = [0, 1], clientPkFileName = "sn" ) + override fun onRecordResult( + header: MessagePad.Header, + recordPanel: RecordPanelOuterClass.RecordPanel? + ) { + if (recordPanel != null) { + invokeAutopilotRecordResult(recordPanel) + } + } + + //预警信息 +// @ChainLog( +// linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, +// linkCode = CHAIN_LINK_ADAS, +// endpoint = PAD, +// nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_WARN, +// paramIndexes = [0, 1], +// clientPkFileName = "sn" +// ) override fun onWarn(header: MessagePad.Header, warn: MessagePad.Warn?) { invokeAutopilotWarnMessage(warn) } //到站回调 @ChainLog( + linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT, linkCode = CHAIN_LINK_ADAS, - linkChainLog = CHAIN_LINK_LOG_WEB_SOCKET_DATA, endpoint = PAD, nodeAliasCode = CHAIN_ALIAS_CODE_ADAS_MESSAGE_AUTOPILOT_ARRIVE, paramIndexes = [0, 1], diff --git a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java index 5ab824a239..b27b57f21b 100644 --- a/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java +++ b/core/function-impl/mogo-core-function-autopilot/src/main/java/com/mogo/eagle/core/function/autopilot/adapter/MoGoHandAdasMsgManager.java @@ -1,18 +1,23 @@ package com.mogo.eagle.core.function.autopilot.adapter; +import android.content.Context; import android.text.TextUtils; +import android.util.Log; import com.mogo.eagle.core.data.config.FunctionBuildConfig; +import com.mogo.eagle.core.data.constants.MoGoConfig; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotCarConfigListener; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotIdentifyListener; import com.mogo.eagle.core.function.api.autopilot.IMoGoAutopilotVehicleStateListener; +import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotCarConfigListenerManager; import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotIdentifyListenerManager; import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotVehicleStateListenerManager; import com.mogo.eagle.core.function.call.bindingcar.CallerBindingcarManager; import com.mogo.eagle.core.function.call.hmi.CallerHmiManager; +import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger; +import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr; import com.mogo.eagle.core.utilcode.util.ThreadUtils; import com.mogo.module.common.drawer.IdentifyDataDrawer; -import com.zhidao.support.obu.ami.AmiClientManager; import org.jetbrains.annotations.NotNull; @@ -22,46 +27,86 @@ import chassis.Chassis; import mogo.telematics.pad.MessagePad; import record_cache.RecordPanelOuterClass; +import static com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.M_DEVA; + public class MoGoHandAdasMsgManager implements IMoGoAutopilotIdentifyListener, IMoGoAutopilotVehicleStateListener, - IMoGoAutopilotCarConfigListener { + IMoGoAutopilotCarConfigListener{ private final String TAG = "AdasEventManager"; private static volatile MoGoHandAdasMsgManager moGoHandAdasMsgManager; + private Context mContext; - private MoGoHandAdasMsgManager() { + private MoGoHandAdasMsgManager(Context context) { CallerAutopilotIdentifyListenerManager.INSTANCE.addListener(TAG, this); CallerAutopilotVehicleStateListenerManager.INSTANCE.addListener(TAG, this); + CallerAutopilotCarConfigListenerManager.INSTANCE.addListener(TAG, this); + mContext = context; } - public static MoGoHandAdasMsgManager getInstance() { + public static MoGoHandAdasMsgManager getInstance(Context context) { if (moGoHandAdasMsgManager == null) { synchronized (MoGoHandAdasMsgManager.class) { if (moGoHandAdasMsgManager == null) { - moGoHandAdasMsgManager = new MoGoHandAdasMsgManager(); + moGoHandAdasMsgManager = new MoGoHandAdasMsgManager(context); } } } return moGoHandAdasMsgManager; } + private int turnLightTimes = 0; + private boolean isOnTurnLight = false; + private int turnLight = 0; + private volatile boolean isShowTurnLight = false; + private int brakeLight = -1; + + + private int setTurnLightState(int turn_light) { + if (turn_light == 0) { + if (isOnTurnLight) { + if (turnLightTimes >= 10) { + isOnTurnLight = false; + turnLight = 0; + } + turnLightTimes++; + } + } else if (turn_light == 1) { + turnLightTimes = 0; + isOnTurnLight = true; + turnLight = 1; + } else if (turn_light == 2) { + turnLightTimes = 0; + isOnTurnLight = true; + turnLight = 2; + } + return turnLight; + } + @Override public void onAutopilotLightSwitchData(Chassis.LightSwitch lightSwitch) { //can数据转发 转向灯状态 0是正常 1是左转 2是右转 -// if (lightSwitch != null) { -// int turnLightNum = lightSwitch.getNumber(); -// AmiClientManager.getInstance().setTurnLightState(turnLightNum); -// //设置转向灯 -// CallerHmiManager.INSTANCE.showTurnLight(turnLightNum); -// } + if (lightSwitch != null) { + int state = setTurnLightState(lightSwitch.getNumber()); + if (state == 1 || state == 2) { + isShowTurnLight = true; + CallerHmiManager.INSTANCE.showBrakeLight(0); + } else { + isShowTurnLight = false; + } +// CallerLogger.INSTANCE.d(M_DEVA + TAG, "onAutopilotLightSwitchData -- newState:" + state + ",oldState:" + lightSwitch.getNumber()); + CallerHmiManager.INSTANCE.showTurnLight(state); + } } @Override public void onAutopilotBrakeLightData(boolean brakeLight) { - //设置刹车信息 TODO 需要添加转向和删除的优先级 -// CallerHmiManager.INSTANCE.showBrakeLight(brakeLight ? 1 : 0); +// CallerLogger.INSTANCE.d(M_DEVA + TAG, "onAutopilotBrakeLightData -- brakeLight = $brakeLight ---$isShowTurnLight"); +// if (!isShowTurnLight) { +// CallerHmiManager.INSTANCE.showBrakeLight(brakeLight ? 1 : 0); +// } } @Override @@ -91,10 +136,28 @@ public class MoGoHandAdasMsgManager implements @Override public void onAutopilotCarConfig(@NotNull MessagePad.CarConfigResp carConfigResp) { -// if (carConfigResp != null && !TextUtils.isEmpty(carConfigResp.getMacAddress())) { -// CallerBindingcarManager.getBindingcarProvider().getBindingcarInfo(carConfigResp.getMacAddress()); -// } - + if (carConfigResp != null && !TextUtils.isEmpty(carConfigResp.getMacAddress())) { + CallerLogger.INSTANCE.d(M_DEVA + TAG, " carConfigResp.getMacAddress() = " + carConfigResp.getMacAddress() + "--mac = " + carConfigResp.getMacAddress().replaceAll(".{2}(?=.)", "$0:")); + CallerBindingcarManager.getBindingcarProvider().getBindingcarInfo(carConfigResp.getMacAddress()); + } } + /** + * 根据加速度判断是否刹车 + * @param acceleration + */ + @Override + public void onAutopilotBrakeLightByAcceleration(double acceleration) { + //设置刹车信息 + if (acceleration < SharedPrefsMgr.getInstance(mContext).getFloat(MoGoConfig.BRAKE_ACCELERATION_THRESHOLD,-2.5F)) { + brakeLight = 1; + } else { + brakeLight = 0; + } +// CallerLogger.INSTANCE.d(M_DEVA + TAG, "onAutopilotBrakeLightByAcceleration -- acceleration = " + acceleration); + if (!isShowTurnLight) { + CallerHmiManager.INSTANCE.showBrakeLight(brakeLight); + } + + } } \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/BindingcarProvider.java b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/BindingcarProvider.java index 0bfee198e3..b529bd9228 100644 --- a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/BindingcarProvider.java +++ b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/BindingcarProvider.java @@ -1,26 +1,30 @@ package com.mogo.eagle.core.function.bindingcar; import android.content.Context; +import android.text.TextUtils; import android.util.Log; import com.alibaba.android.arouter.facade.annotation.Route; +import com.mogo.commons.constants.SharedPrefsConstants; import com.mogo.eagle.core.data.constants.MogoServicePaths; import com.mogo.eagle.core.function.api.bindingcar.BindingcarCallBack; import com.mogo.eagle.core.function.api.bindingcar.IMoGoBindingcarProvider; import com.mogo.eagle.core.function.bindingcar.network.BindingcarNetWorkManager; +import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr; import org.jetbrains.annotations.NotNull; /** - * @author Jing - * @description 云公告公告 - * @since: 10/27/21 + * @author lixiaopeng + * @description 绑定sn + * @since: 3/26/22 */ @Route(path = MogoServicePaths.PATH_BINDING_CAR) public class BindingcarProvider implements IMoGoBindingcarProvider { private Context mContext; + private volatile String mAddress; @NotNull @Override @@ -30,6 +34,7 @@ public class BindingcarProvider implements IMoGoBindingcarProvider { @Override public void onDestroy() { + } @Override @@ -38,21 +43,20 @@ public class BindingcarProvider implements IMoGoBindingcarProvider { } /** - * TODO 获取,每次连接请求一次 + * 获取macaddress,每次连接请求一次 + * * @param macAddress */ @Override public void getBindingcarInfo(String macAddress) { -// Log.d("liyz", "macAddress = " + macAddress); -// BindingcarNetWorkManager.getInstance().getBindingcarInfo(macAddress); + mAddress = macAddress; + BindingcarNetWorkManager.getInstance().getBindingcarInfo(mContext, macAddress); } @Override public void modifyCarInfo(BindingcarCallBack callBack) { - BindingcarNetWorkManager.getInstance().modifyBindingcar("",callBack); + BindingcarNetWorkManager.getInstance().modifyBindingcar(mAddress, callBack); } - - } diff --git a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarApiService.java b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarApiService.java index d9e4a80a59..b6549f9b57 100644 --- a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarApiService.java +++ b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarApiService.java @@ -2,11 +2,11 @@ package com.mogo.eagle.core.function.bindingcar.network; import com.mogo.eagle.core.data.bindingcar.BindingcarInfo; import com.mogo.eagle.core.data.bindingcar.ModifyBindingcarInfo; -import com.mogo.eagle.core.data.notice.NoticeTrafficStyleInfo; import io.reactivex.Observable; import okhttp3.RequestBody; import retrofit2.http.Body; +import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.POST; @@ -22,8 +22,8 @@ public interface BindingcarApiService { * @return {@link BindingcarInfo} */ @Headers("Content-Type:application/json;charset=UTF-8") - @POST("/pad/selectPadByMac") - Observable getBindingcarInfo(@Body RequestBody requestBody); + @POST("pad/selectPadByMac") + Observable getBindingcarInfo(@Header("access_token") String access_token, @Body RequestBody requestBody); /** * 绑定和修改绑定车机 @@ -31,7 +31,7 @@ public interface BindingcarApiService { * @return {@link ModifyBindingcarInfo} */ @Headers("Content-Type:application/json;charset=UTF-8") - @POST("/pad/updatePadByMac") - Observable modifyBindingcarInfo(@Body RequestBody requestBody); + @POST("pad/updatePadByMac") + Observable modifyBindingcarInfo(@Header("access_token") String access_token, @Body RequestBody requestBody); } diff --git a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarNetWorkManager.java b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarNetWorkManager.java index 7e2ee35355..4a25019f50 100644 --- a/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarNetWorkManager.java +++ b/core/function-impl/mogo-core-function-bindingcar/src/main/java/com/mogo/eagle/core/function/bindingcar/network/BindingcarNetWorkManager.java @@ -1,14 +1,18 @@ package com.mogo.eagle.core.function.bindingcar.network; -import android.util.Log; +import android.content.Context; -import com.mogo.cloud.network.RetrofitFactory; import com.mogo.cloud.passport.MoGoAiCloudClientConfig; +import com.mogo.commons.constants.SharedPrefsConstants; import com.mogo.eagle.core.data.bindingcar.BindingcarInfo; import com.mogo.eagle.core.data.bindingcar.ModifyBindingcarInfo; import com.mogo.eagle.core.function.api.bindingcar.BindingcarCallBack; import com.mogo.eagle.core.function.call.hmi.CallerHmiManager; +import com.mogo.eagle.core.network.MoGoRetrofitFactory; import com.mogo.eagle.core.network.utils.GsonUtil; +import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger; +import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr; +import com.mogo.module.common.constants.HostConst; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; @@ -19,19 +23,18 @@ import okhttp3.MediaType; import okhttp3.RequestBody; /** - * @author Jing - * @description 云公告网络请求类 - * @since: 10/28/21 + * @author lixiaopeng + * @description 绑定车机网络请求 + * @since: 3/25/22 */ public class BindingcarNetWorkManager { private static volatile BindingcarNetWorkManager requestNoticeManager; private final BindingcarApiService mBindingcarApiService; + private String token = "c4a2f30cebf64972bcd11577e1c07f86"; //中台做了接口适配,需要这个token + private static final String TAG = "BindingcarNetWorkManager"; - private BindingcarNetWorkManager() { //TODO -// mBindingcarApiService = RetrofitFactory.INSTANCE.getInstance(NetConstants.DEVA_HOST) -// .create(BindingcarApiService.class); - - mBindingcarApiService = RetrofitFactory.INSTANCE.getInstance("http://cmdb.ee-private-dev.myghost.zhidaoauto.com/") + private BindingcarNetWorkManager() { + mBindingcarApiService = MoGoRetrofitFactory.getInstance(HostConst.BINDING_SN_HOST) .create(BindingcarApiService.class); } @@ -46,85 +49,84 @@ public class BindingcarNetWorkManager { return requestNoticeManager; } + /** * 获取绑定的车辆信息 * - * @param macAddress mac地址 TODO - * + * @param macAddress mac地址 */ - public void getBindingcarInfo(String macAddress) { + public void getBindingcarInfo(Context context, String macAddress) { String sn = MoGoAiCloudClientConfig.getInstance().getSn(); - BindingcarRequest request = new BindingcarRequest(sn, "48:b0:2d:3a:9c:19"); + BindingcarRequest request = new BindingcarRequest(macAddress, sn); RequestBody requestBody = RequestBody.create(MediaType.get("application/json;charset=UTF-8"), GsonUtil.jsonFromObject(request)); - mBindingcarApiService.getBindingcarInfo(requestBody) + mBindingcarApiService.getBindingcarInfo(token, requestBody) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer() { @Override public void onSubscribe(@NonNull Disposable d) { - Log.d("liyz", "getBindingcarInfo onSubscribe -----> "); } @Override public void onNext(@NonNull BindingcarInfo info) { if (info != null && info.getData() != null) { - Log.d("liyz", "getBindingcarInfo onNext info.getData() =" + info.getData().toString()); + CallerLogger.INSTANCE.d(TAG, "getBindingcarInfo onNext info.getData() =" + info.getData().toString()); if (info.getData().getCompare() == 0) { CallerHmiManager.INSTANCE.showBindingcarDialog(); } else if (info.getData().getCompare() == 3) { CallerHmiManager.INSTANCE.showModifyBindingcarDialog(); } + + SharedPrefsMgr.getInstance(context).putString(SharedPrefsConstants.CAR_MODE_TYPE, info.data.getSeries()); } } @Override public void onError(@NonNull Throwable e) { - Log.d("liyz", "getBindingcarInfo onError e = " + e.toString() + "---e.getMessage = " + e.getMessage()); + CallerLogger.INSTANCE.e(TAG, "getBindingcarInfo onError e = " + e.toString() + "---e.getMessage = " + e.getMessage()); } @Override public void onComplete() { - Log.d("liyz", "getBindingcarInfo onComplete"); } }); } /** - * 绑定和修改绑定车辆 TODO + * 绑定和修改绑定车辆 + * mac: 48:b0:2d:3a:9c:19 */ public void modifyBindingcar(String macAddress, BindingcarCallBack callBack) { String sn = MoGoAiCloudClientConfig.getInstance().getSn(); - BindingcarRequest request = new BindingcarRequest(sn, "48:b0:2d:3a:9c:19"); + BindingcarRequest request = new BindingcarRequest(macAddress, sn); RequestBody requestBody = RequestBody.create(MediaType.get("application/json;charset=UTF-8"), GsonUtil.jsonFromObject(request)); - mBindingcarApiService.modifyBindingcarInfo(requestBody) + mBindingcarApiService.modifyBindingcarInfo(token, requestBody) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer() { @Override public void onSubscribe(@NonNull Disposable d) { - Log.d("liyz", "modifyBindingcar onSubscribe -----> "); } @Override public void onNext(@NonNull ModifyBindingcarInfo info) { - if (info.getData() != null) { + if (info != null) { callBack.callBackResult(info); + CallerLogger.INSTANCE.d(TAG, "modifyBindingcar onNext code = " + info.code + "---msg = " + info.msg + "--info.toString() = " + info.toString()); } - Log.d("liyz", "modifyBindingcar onNext info " + info.toString()); } @Override public void onError(@NonNull Throwable e) { - Log.d("liyz", "modifyBindingcar onError e = " + e.toString() + "---e.getMessage = " + e.getMessage()); + CallerLogger.INSTANCE.e(TAG, "modifyBindingcar onError e = " + e.toString() + "---e.getMessage = " + e.getMessage()); } @Override public void onComplete() { - Log.d("liyz", "modifyBindingcar onComplete "); } }); + } - } diff --git a/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/ui/CallChatWindowManager.kt b/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/ui/CallChatWindowManager.kt index f9db3ded23..e1529b3690 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/ui/CallChatWindowManager.kt +++ b/core/function-impl/mogo-core-function-chat/src/main/java/com/mogo/eagle/core/function/chat/facade/ui/CallChatWindowManager.kt @@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.chat.facade.ui import android.content.Context import android.media.AudioManager +import android.view.Gravity import android.view.LayoutInflater import android.view.View import android.widget.FrameLayout @@ -28,10 +29,7 @@ import com.mogo.eagle.core.function.chat.facade.OnInComingCallback import com.mogo.eagle.core.function.chat.facade.bridge.BridgeApi import com.mogo.eagle.core.function.chat.facade.utils.log import com.mogo.eagle.core.function.chat.facade.voice.VoiceControlFacade.REQUEST_CLOUD_VOICE_CALL -import com.mogo.eagle.core.utilcode.kotlin.lifeCycleScope -import com.mogo.eagle.core.utilcode.kotlin.observe -import com.mogo.eagle.core.utilcode.kotlin.onClick -import com.mogo.eagle.core.utilcode.kotlin.safeCancel +import com.mogo.eagle.core.utilcode.kotlin.* import com.mogo.eagle.core.utilcode.mogo.glide.GlideRoundedCornersTransform import com.mogo.eagle.core.utilcode.mogo.glide.GlideRoundedCornersTransform.CornerType.LEFT import kotlinx.coroutines.* @@ -247,10 +245,9 @@ internal class CallChatWindowManager { context.resources.getDimension(R.dimen.module_call_chat_state_incoming_hawk_eye_width).toInt(), context.resources.getDimension(R.dimen.module_call_chat_state_incoming_hawk_eye_height).toInt()) .also { - val x = context.resources.getDimension(R.dimen.module_call_chat_state_location_hawk_eye_x) - val y = context.resources.getDimension(R.dimen.module_call_chat_state_location_hawk_eye_y) - it.leftMargin = x.toInt() - it.topMargin = y.toInt() + it.gravity = Gravity.BOTTOM or Gravity.START + it.marginStart = 40.PX + it.bottomMargin = 168.PX } } @@ -370,8 +367,9 @@ internal class CallChatWindowManager { context.resources.getDimension(R.dimen.module_call_chat_state_hawk_eye_height).toInt() ) .also { - it.leftMargin = context.resources.getDimension(R.dimen.module_call_chat_state_location_hawk_eye_x).toInt() - it.topMargin = context.resources.getDimension(R.dimen.module_call_chat_state_location_hawk_eye_y).toInt() + it.gravity = Gravity.BOTTOM or Gravity.START + it.marginStart = 40.PX + it.bottomMargin = 168.PX } } diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_launcher_calling_bg.9.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_launcher_calling_bg.9.png deleted file mode 100644 index 96ddb81326..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_launcher_calling_bg.9.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment.png deleted file mode 100644 index 950d184e38..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_normal.png deleted file mode 100644 index 12ae03bfed..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_pressed.png deleted file mode 100644 index f81ff730e4..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_close_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_x.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_x.png deleted file mode 100644 index f7530c5024..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_fragment_x.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_head_default.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_head_default.png deleted file mode 100644 index eacbf33bf8..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_head_default.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png deleted file mode 100644 index 6f301e97ab..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png deleted file mode 100644 index 6f5411a704..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png deleted file mode 100644 index ee7fbb5dfe..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png deleted file mode 100644 index 0b1873ee8f..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_head_default.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_head_default.png deleted file mode 100644 index 4a891e57e5..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_head_default.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_normal.png deleted file mode 100644 index acf19225e1..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_pressed.png deleted file mode 100644 index d13ff23373..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_join_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_normal.png deleted file mode 100644 index f7530c5024..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_pressed.png deleted file mode 100644 index 950d184e38..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_invitation_refuse_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_normal.png deleted file mode 100644 index 0bd4b588e1..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_pressed.png deleted file mode 100644 index 8954c0a15e..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-hdpi/module_carchatting_team_quit_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_launcher_calling_bg.9.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_launcher_calling_bg.9.png deleted file mode 100644 index fa35eccafd..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_launcher_calling_bg.9.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment.png deleted file mode 100644 index b04650a030..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_normal.png deleted file mode 100644 index 12ae03bfed..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_pressed.png deleted file mode 100644 index f81ff730e4..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_close_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_x.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_x.png deleted file mode 100644 index f274a5fa76..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_fragment_x.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_head_default.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_head_default.png deleted file mode 100644 index 53051d4e9e..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_head_default.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_normal.png deleted file mode 100644 index cf3e4aa222..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_pressed.png deleted file mode 100644 index b5a28f5583..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_join_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_normal.png deleted file mode 100644 index f274a5fa76..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_pressed.png deleted file mode 100644 index b04650a030..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_invitation_refuse_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_normal.png deleted file mode 100644 index f22c026f58..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_pressed.png deleted file mode 100644 index a1f1234504..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-mdpi/module_carchatting_team_quit_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_calling_bg.9.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_calling_bg.9.png deleted file mode 100644 index 96ddb81326..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_calling_bg.9.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_hawk_eye_calling_bg.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_hawk_eye_calling_bg.png deleted file mode 100644 index 2357cb985b..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_launcher_hawk_eye_calling_bg.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_bg.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_bg.png deleted file mode 100644 index c2c244c134..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_bg.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_head_default.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_head_default.png deleted file mode 100644 index eacbf33bf8..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_head_default.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png deleted file mode 100644 index 6f301e97ab..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png deleted file mode 100644 index 6f5411a704..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_join_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png deleted file mode 100644 index ee7fbb5dfe..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_normal.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png b/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png deleted file mode 100644 index 0b1873ee8f..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/drawable-xhdpi/module_carchatting_team_invitation_hawk_eye_refuse_pressed.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue.xml deleted file mode 100644 index be1941fa09..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_normal.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_normal.xml deleted file mode 100644 index e8d86c9442..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_normal.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_pressed.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_pressed.xml deleted file mode 100644 index c55995839e..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_shape_gradient_blue_pressed.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg.xml deleted file mode 100644 index 83ee0bdebb..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_normal.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_normal.xml deleted file mode 100644 index b9765da6bb..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_normal.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_pressed.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_pressed.xml deleted file mode 100644 index 21bf8c6e8e..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_callchatting_user_pop_call_bg_pressed.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_bg.xml deleted file mode 100644 index 1965671b5d..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_bg.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_close.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_close.xml deleted file mode 100644 index b369d3a308..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_fragment_close.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_bg.xml deleted file mode 100644 index 28a3d7870b..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_bg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_header_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_header_bg.xml deleted file mode 100644 index ef8a4f7ea6..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_header_bg.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_join.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_join.xml deleted file mode 100644 index a38fdde074..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_join.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_refuse.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_refuse.xml deleted file mode 100644 index f934359daf..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_hawk_eye_refuse.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_join.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_join.xml deleted file mode 100644 index 12f805d13f..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_join.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_refuse.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_refuse.xml deleted file mode 100644 index 2981370f58..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_refuse.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_title_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_title_bg.xml deleted file mode 100644 index 0bd680b478..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_invitation_title_bg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_quit.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_quit.xml deleted file mode 100644 index 286dfde9e6..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_quit.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_bg.xml deleted file mode 100644 index c1e6217fbe..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_bg.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_follower_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_follower_bg.xml deleted file mode 100644 index e1f1abd61e..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_follower_bg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_leader_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_leader_bg.xml deleted file mode 100644 index 72421b5d37..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_team_teammate_leader_bg.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_vr_team_num_bg.xml b/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_vr_team_num_bg.xml deleted file mode 100644 index ca94787528..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/drawable/module_carchatting_vr_team_num_bg.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_fragment_team_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_fragment_team_view.xml deleted file mode 100644 index 6dff11c8fb..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_fragment_team_view.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_hawk_eye_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_hawk_eye_view.xml index 71ade7e3ea..13272210f3 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_hawk_eye_view.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_hawk_eye_view.xml @@ -2,261 +2,55 @@ + android:background="@drawable/module_carchatting_vr_calling_bg"> - + app:layout_constraintTop_toTopOf="parent" + tools:ignore="ContentDescription" /> - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_view.xml deleted file mode 100644 index f2029d834a..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_calling_view.xml +++ /dev/null @@ -1,257 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_incoming_hawk_eye_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_incoming_hawk_eye_view.xml index 799bc5faec..cdf0244555 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_incoming_hawk_eye_view.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_incoming_hawk_eye_view.xml @@ -2,79 +2,69 @@ - + app:layout_constraintTop_toTopOf="parent" + tools:ignore="ContentDescription" /> - + - + - - - - - - + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_hawk_eye_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_hawk_eye_view.xml deleted file mode 100644 index 3e68b3ab98..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_hawk_eye_view.xml +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_view.xml deleted file mode 100644 index 48c915f342..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_team_invitation_view.xml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_teammate_item.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_teammate_item.xml deleted file mode 100644 index f58bf9d3d5..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_teammate_item.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_user_view.xml b/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_user_view.xml deleted file mode 100644 index 1de23819e8..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/layout/module_car_chatting_launcher_user_view.xml +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_match.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_match.png deleted file mode 100644 index 08bcfd78a0..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_match.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_caller.png deleted file mode 100644 index cd5fb91de2..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_close.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_close.png deleted file mode 100644 index aa5d44c24d..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_close.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_join_team.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_join_team.png deleted file mode 100644 index fc4b862902..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_callchatting_user_join_team.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_caller.png deleted file mode 100644 index 0f16300e2e..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_default_head_img.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_default_head_img.png deleted file mode 100644 index 97e9ddda74..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_default_head_img.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_user_cover_bg.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_user_cover_bg.png deleted file mode 100644 index 89153623c3..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-hdpi/module_carchatting_user_cover_bg.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_match.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_match.png deleted file mode 100644 index 08bcfd78a0..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_match.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_caller.png deleted file mode 100644 index a15e56ada7..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_close.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_close.png deleted file mode 100644 index a74b6c7341..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_close.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_join_team.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_join_team.png deleted file mode 100644 index b49d9f707f..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_callchatting_user_join_team.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_caller.png deleted file mode 100644 index c3cb5f4aaa..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_default_head_img.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_default_head_img.png deleted file mode 100644 index 88cd08b75a..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_default_head_img.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_user_cover_bg.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_user_cover_bg.png deleted file mode 100644 index ab7640f350..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-ldpi/module_carchatting_user_cover_bg.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-mdpi-1920x720/module_callchatting_match.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-mdpi-1920x720/module_callchatting_match.png deleted file mode 100644 index 08bcfd78a0..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-mdpi-1920x720/module_callchatting_match.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_caller.png deleted file mode 100644 index cd5fb91de2..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_close.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_close.png deleted file mode 100644 index aa5d44c24d..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_close.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_join_team.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_join_team.png deleted file mode 100644 index fc4b862902..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_callchatting_user_join_team.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_caller.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_caller.png deleted file mode 100644 index 0f16300e2e..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_caller.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_default_head_img.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_default_head_img.png deleted file mode 100644 index 97e9ddda74..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_default_head_img.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_user_cover_bg.png b/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_user_cover_bg.png deleted file mode 100644 index 89153623c3..0000000000 Binary files a/core/function-impl/mogo-core-function-chat/src/main/res/mipmap-xhdpi/module_carchatting_user_cover_bg.png and /dev/null differ diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-hdpi/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-hdpi/dimens.xml index 295f403713..40915903bf 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-hdpi/dimens.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/values-hdpi/dimens.xml @@ -1,116 +1,10 @@ - 872px - 1067px - 776px - 22px - 600px - 140px 300px 100px - - 1370px - 30px - 740px - 854px - - 290px - - 355px - 37px - 32px - 39px - 25px - 80px - 72px - 38px - 30px - 30px - 37px 27px - 26px 18px - 18px 10px - 23px - 6px - 82px 100px - - 82.5px - 150px - 30px - 159px - 8px - 16px - 40px - 15px - 90px - 50px - 70px - 10px - 56px - 30px - - - 48px - 48px - -12px - -122px - 36px - 22px - 22px - 32px - 26px - 22px - 22px - 79.8px - 79.8px - 28.4px - 25px - - - 27.5px - 50px - 36px - 80.8px - 80.8px - 24px - - 14px - 32px - 164px - 98px - 98px - 30px - 34px - 98px - 46px - 26px - - - 230px - 30px - 61px - 18px - 210px - 20px - 822px - 182px - 148px - 148px - 120px - 46px - 30px - 60px - 25px - 30px - 60px - 32px - 98px 63px - 98px - 36px - 42px - diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-ldpi/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-ldpi/dimens.xml deleted file mode 100644 index 8c085f2cba..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-ldpi/dimens.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 478px - 560px - 338px - 82px - 1543px - 0px - 411px - 474px - 161px - - 338px - 260px - 82px - 27px - 23px - 27px - 25px - 60px - 54px - 28px - 22px - 22px - 18px - 14px - 6px - 18px - 44px - - 45.8px - 83.3px - 16.6px - 88.3px - 5px - 10px - 22px - 10px - 56px - 30px - 39px - 30px - 13px - 17px - - - 26.4px - 26.4px - -6.6px - -66px - 19.8px - 13px - 14.6px - 18px - 14px - 11px - 14.6px - 43.4px - 43.4px - 16.5px - 25px - - - 10px - 28px - 20px - 44px - 44px - 14px - - 8px - 14px - 86px - 56px - 56px - 12.4px - 18px - 54px - 26px - 15px - - - 138px - 21px - 18px - 122px - 82px - 82px - 66px - 26px - 12px - 30px - 14px - 12px - 30px - 18px - 54px - 54px - 20px - diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi-1920x720/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi-1920x720/dimens.xml deleted file mode 100644 index 54f7a54824..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi-1920x720/dimens.xml +++ /dev/null @@ -1,99 +0,0 @@ - - - - - 467px - 573px - 338px - 82px - 1543px - 0px - 347px - 374px - 310px - - 422px - 260px - 87px - 27px - 23px - 27px - 25px - 60px - 54px - 28px - 22px - 22px - 24px - 17px - 15px - 23px - 58px - - 55px - 97px - 13px - 75px - 9px - 9px - 23px - 10px - 60px - 20px - 45px - 13px - 17px - - - 48px - 48px - -12px - -120px - 19.8px - 13px - 16px - 18px - 14px - 13px - 16px - 43.4px - 43.4px - 16px - - - 10px - 28px - 20px - 44px - 44px - 14px - - 8px - 14px - 86px - 56px - 56px - 12.4px - 18px - 54px - 26px - 15px - - - 21px - 18px - 122px - 82px - 82px - 66px - 26px - 12px - 9px - 14px - 12px - 9px - 18px - 54px - 54px - 20px - diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi/dimens.xml deleted file mode 100644 index b757d39120..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-mdpi/dimens.xml +++ /dev/null @@ -1,102 +0,0 @@ - - - - - 467px - 573px - 338px - 82px - 1543px - 0px - 411px - 474px - 161px - - 338px - 260px - 82px - 27px - 23px - 27px - 25px - 60px - 54px - 28px - 22px - 22px - 18px - 14px - 6px - 18px - 44px - - 45.8px - 83.3px - 16.6px - 88.3px - 5px - 10px - 22px - 10px - 56px - 30px - 39px - 30px - 13px - 17px - - - 26.4px - 26.4px - -6.6px - -66px - 19.8px - 13px - 14.6px - 18px - 14px - 11px - 14.6px - 43.4px - 43.4px - 16.5px - 25px - - - 10px - 28px - 20px - 44px - 44px - 14px - - 8px - 14px - 86px - 56px - 56px - 12.4px - 18px - 54px - 26px - 15px - - - 138px - 21px - 18px - 122px - 82px - 82px - 66px - 26px - 12px - 30px - 14px - 12px - 30px - 18px - 54px - 54px - 20px - diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi-2560x1440/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi-2560x1440/dimens.xml index e264311f06..8f264f035d 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi-2560x1440/dimens.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi-2560x1440/dimens.xml @@ -1,7 +1,5 @@ - 40px - 1160px 460px 144px 560px @@ -9,8 +7,6 @@ 20px 30px 30px - 28px - 24px 144px 88px 86px @@ -18,12 +14,5 @@ 26px 24px 40px - 144px - 106px - 40px - 27px - 24px - 27px - 34px 139px \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi/dimens.xml index 56261617d8..ee096204b6 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi/dimens.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/values-xhdpi/dimens.xml @@ -1,1105 +1,15 @@ 20px - 18px - 100px - 80px - 30px - 20px - 20px - 20px - 22px - - - -60px - -30px - -20px - -12px - -10px - -8px - -5px - -2px - -1px - 0px - 0.1px - 0.5px - 1px - 1.5px - 2px - 2.5px - 3px - 3.5px - 4px - 4.5px - 5px - 6px - 7px - 7.5px - 8px - 9px - 10px - 11px - 12px - 13px - 14px - 15px - 16px - 17px - 18px - 19px - 20px - 21px + 22px - 23px - 24px - 25px - 26px - 27px - 28px - 29px - 30px - 31px - 32px - 33px - 34px - 35px - 36px - 37px - 38px - 39px - 40px - 41px - 42px - 43px - 44px - 45px - 46px - 47px - 48px - 49px - 50px - 51px - 52px - 53px - 54px - 55px - 56px - 57px - 58px - 59px - 60px - 61px - 62px - 63px - 64px - 65px - 66px - 67px - 68px - 69px - 70px - 71px - 72px - 73px - 74px - 75px - 76px - 77px - 78px - 79px - 80px - 81px - 82px - 83px - 84px - 85px - 86px - 87px - 88px - 89px - 90px - 91px - 92px - 93px - 94px - 95px - 96px - 97px - 98px - 99px - 100px - 101px - 102px - 103px - 104px - 104.5px - 105px - 106px - 107px - 108px - 109px - 110px - 111px - 112px - 113px - 114px - 115px - 116px - 117px - 118px - 119px - 120px - 121px - 122px - 123px - 124px - 125px - 126px - 127px - 128px - 129px - 130px - 131px - 132px - 133px - 134px - 134.5px - 135px - 136px - 137px - 138px - 139px - 140px - 141px - 142px - 143px - 144px - 145px - 146px - 147px - 148px - 149px - 150px - 151px - 152px - 153px - 154px - 155px - 156px - 157px - 158px - 159px - 160px - 161px - 162px - 163px - 164px - 165px - 166px - 167px - 168px - 169px - 170px - 171px - 172px - 173px - 174px - 175px - 176px - 177px - 178px - 179px - 180px - 181px - 182px - 183px - 184px - 185px - 186px - 187px - 188px - 189px - 190px - 191px - 191.25px - 192px - 193px - 194px - 195px - 196px - 197px - 198px - 199px - 200px - 201px - 202px - 203px - 204px - 205px - 206px - 207px - 208px - 209px - 210px - 211px - 212px - 213px - 214px - 215px - 216px - 217px - 218px - 219px - 220px - 221px - 222px - 223px - 224px - 225px - 226px - 227px - 228px - 229px - 230px - 231px - 232px - 233px - 234px - 235px - 236px - 237px - 238px - 239px - 240px - 241px - 242px - 243px - 244px - 245px - 246px - 247px - 248px - 249px - 250px - 251px - 252px - 253px - 254px - 255px - 256px - 257px - 258px - 259px - 260px - 261px - 262px - 263px - 264px - 265px - 266px - 267px - 268px - 269px - 270px - 271px - 272px - 273px - 274px - 275px - 276px - 277px - 278px - 279px - 280px - 281px - 282px - 283px - 284px - 285px - 286px - 287px - 288px - 289px - 290px - 291px - 292px - 293px - 294px - 295px - 296px - 297px - 298px - 299px - 300px - 301px - 302px - 303px - 304px - 305px - 306px - 307px - 308px - 309px - 310px - 311px - 312px - 313px - 314px - 315px - 316px - 317px - 318px - 319px - 320px - 321px - 322px - 323px - 324px - 325px - 326px - 327px - 328px - 329px - 330px - 331px - 332px - 333px - 334px - 335px - 336px - 337px - 338px - 339px - 340px - 341px - 342px - 343px - 344px - 345px - 346px - 347px - 348px - 349px - 350px - 351px - 352px - 353px - 354px - 355px - 356px - 357px - 358px - 359px - 366px - 367px - 368px - 369px - 370px - 371px - 372px - 373px - 374px - 375px - 376px - 377px - 378px - 379px - 380px - 381px - 382px - 383px - 384px - 385px - 386px - 387px - 388px - 389px - 390px - 391px - 392px - 393px - 394px - 395px - 396px - 397px - 398px - 399px - 400px - 401px - 402px - 403px - 404px - 405px - 406px - 407px - 408px - 409px - 410px - 411px - 412px - 413px - 414px - 415px - 416px - 417px - 418px - 419px - 420px - 421px - 422px - 423px - 424px - 425px - 426px - 427px - 428px - 429px - 430px - 431px - 432px - 433px - 434px - 435px - 436px - 437px - 438px - 439px - 440px - 441px - 442px - 443px - 444px - 445px - 446px - 447px - 448px - 449px - 450px - 451px - 452px - 453px - 454px - 455px - 456px - 457px - 458px - 459px - 460px - 461px - 462px - 463px - 464px - 465px - 466px - 467px - 468px - 469px - 470px - 471px - 472px - 473px - 474px - 475px - 476px - 477px - 478px - 479px - 480px - 481px - 482px - 483px - 484px - 485px - 486px - 487px - 488px - 489px - 490px - 491px - 492px - 493px - 494px - 495px - 496px - 497px - 498px - 499px - 500px - 501px - 502px - 503px - 504px - 505px - 506px - 507px - 508px - 509px - 510px - 511px - 512px - 513px - 514px - 515px - 516px - 517px - 518px - 519px - 520px - 521px - 522px - 523px - 524px - 525px - 526px - 527px - 528px - 529px - 530px - 531px - 532px - 533px - 534px - 535px - 536px - 537px - 538px - 539px - 540px - 541px - 542px - 543px - 544px - 545px - 546px - 547px - 548px - 549px - 550px - 551px - 552px - 553px - 554px - 555px - 556px - 557px - 558px - 559px - 560px - 561px - 562px - 563px - 564px - 565px - 566px - 567px - 568px - 569px - 570px - 571px - 572px - 573px - 574px - 575px - 576px - 577px - 578px - 579px - 580px - 581px - 582px - 583px - 584px - 585px - 586px - 587px - 588px - 589px - 590px - 591px - 592px - 593px - 594px - 595px - 596px - 597px - 598px - 599px - 600px - 601px - 602px - 603px - 604px - 605px - 606px - 607px - 608px - 609px - 610px - 611px - 612px - 613px - 614px - 615px - 616px - 617px - 618px - 619px - 620px - 621px - 622px - 623px - 624px - 625px - 626px - 627px - 628px - 629px - 630px - 631px - 632px - 633px - 634px - 635px - 636px - 637px - 638px - 639px - 640px - 641px - 642px - 643px - 644px - 645px - 646px - 647px - 648px - 649px - 650px - 651px - 652px - 653px - 654px - 655px - 656px - 657px - 658px - 659px - 660px - 661px - 662px - 663px - 664px - 665px - 666px - 667px - 668px - 669px - 670px - 671px - 672px - 673px - 674px - 675px - 676px - 677px - 678px - 679px - 680px - 681px - 682px - 683px - 684px - 685px - 686px - 687px - 688px - 689px - 690px - 691px - 692px - 693px - 694px - 695px - 696px - 697px - 698px - 699px - 700px - 701px - 702px - 703px - 704px - 705px - 706px - 707px - 708px - 709px - 710px - 711px - 712px - 713px - 714px - 715px - 716px - 717px - 718px - 719px - 720px - 721px - 722px - 723px - 724px - 725px - 726px - 727px - 728px - 729px - 730px - 731px - 732px - 733px - 734px - 735px - 736px - 737px - 738px - 739px - 740px - 741px - 742px - 743px - 744px - 745px - 746px - 747px - 748px - 749px - 750px - 751px - 752px - 753px - 754px - 755px - 756px - 757px - 758px - 759px - 760px - 761px - 762px - 763px - 764px - 765px - 766px - 767px - 768px - 769px - 770px - 771px - 772px - 773px - 774px - 775px - 776px - 777px - 778px - 779px - 780px - 781px - 782px - 783px - 784px - 785px - 786px - 787px - 788px - 789px - 790px - 791px - 792px - 793px - 794px - 795px - 796px - 797px - 798px - 799px - 800px - 801px - 802px - 803px - 804px - 805px - 806px - 807px - 808px - 809px - 810px - 811px - 812px - 813px - 814px - 815px - 816px - 817px - 818px - 819px - 820px - 821px - 822px - 823px - 824px - 825px - 826px - 827px - 828px - 829px - 830px - 831px - 832px - 833px - 834px - 835px - 836px - 837px - 838px - 839px - 840px - 841px - 842px - 843px - 844px - 845px - 846px - 847px - 848px - 849px - 850px - 851px - 852px - 853px - 854px - 855px - 856px - 857px - 858px - 859px - 860px - 861px - 862px - 863px - 864px - 865px - 866px - 867px - 868px - 869px - 870px - 871px - 872px - 873px - 874px - 875px - 876px - 877px - 878px - 879px - 880px - 881px - 882px - 883px - 884px - 885px - 886px - 887px - 888px - 889px - 890px - 891px - 892px - 893px - 894px - 895px - 896px - 897px - 898px - 899px - 900px - 901px - 902px - 903px - 904px - 905px - 906px - 907px - 908px - 909px - 910px - 911px - 912px - 913px - 914px - 915px - 916px - 917px - 918px - 919px - 920px - 921px - 922px - 923px - 924px - 925px - 926px - 927px - 928px - 929px - 930px - 931px - 932px - 933px - 934px - 935px - 936px - 937px - 938px - 939px - 940px - 941px - 942px - 943px - 944px - 945px - 946px - 947px - 948px - 949px - 950px - 951px - 952px - 953px - 954px - 955px - 956px - 957px - 958px - 959px - 960px - 961px - 962px - 963px - 964px - 965px - 966px - 967px - 968px - 969px - 970px - 971px - 972px - 973px - 974px - 975px - 976px - 977px - 978px - 979px - 980px - 981px - 982px - 983px - 984px - 985px - 986px - 987px - 988px - 989px - 990px - 991px - 992px - 993px - 994px - 995px - 996px - 997px - 998px - 999px - 1300px - 872px - 1067px - 776px - 30px - 600px - 140px 300px 100px - 1380px - 20px - 740px - 854px - - 290px - - 30px - 61px - 26px 18px - 37px 27px - 18px 16px - 23px 9px - 82px 100px - 42px - 66px - 822px - 182px - 82.5px - 150px - 30px - 159px - 8px - 16px - 40px - 15px - 90px - 50px - 70px - 10px - 56px - 30px - - 6px - 7px - 8px - 9px - 10px - 11px - 12px - 13px - 14px - 15px - 16px - 17px - 18px - 19px - 20px - 21px - 22px - 23px - 24px - 25px - 28px - 30px - 32px - 34px - 36px - 38px - 40px - 42px - 48px diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values/colors.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values/colors.xml index d5046a7da3..478fdfea05 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values/colors.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/values/colors.xml @@ -1,14 +1,4 @@ - #FFFFFF - #FFFFFF - #EE433E - #7FFFFFFF #B5B5B5 - #66D8D8D8 - #66D8D8D8 - - #FFFFFF - - #FFFFFF \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values/dimens.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values/dimens.xml deleted file mode 100644 index 98243747e2..0000000000 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values/dimens.xml +++ /dev/null @@ -1,1155 +0,0 @@ - - - - - 560px - 142px - 139px - 20px - 30px - 86px - - 467px - 573px - 338px - 82px - - 746px - 2px - 411px - 474px - - 240px - - 338px - 260px - 82px - 27px - 23px - 27px - 25px - 60px - 54px - 28px - 22px - 22px - 24px - 17px - 8px - 23px - 58px - - 45px - 74px - 11px - 63px - 5px - 9px - 20px - 8px - 50px - 17px - 40px - 30px - 5px - 17px - - - 48px - 48px - -12px - -120px - 19.8px - 22px - 22px - 24px - 17px - 22px - 22px - 79.8px - 79.8px - 28.4px - 25px - - - 27.5px - 50px - 36px - 80.8px - 80.8px - 24px - - 14px - 32px - 164px - 98px - 198px - 30px - 34px - 98px - 46px - 26px - - - 30px - 18px - 210px - 148px - 148px - 120px - 46px - 30px - 30px - 25px - 30px - 30px - 32px - 98px - 98px - 36px - - -32.8125px - -16.4062px - -10.9375px - -6.5625px - -5.4688px - -4.3750px - -2.7344px - -1.0938px - -0.5469px - 0.0000px - 0.0547px - 0.2734px - 0.5469px - 0.8203px - 1.0938px - 1.3672px - 1.6406px - 1.9141px - 2.1875px - 2.4609px - 2.7344px - 3.2812px - 3.8281px - 4.1016px - 4.3750px - 4.9219px - 5.4688px - 6.0156px - 6.5625px - 7.1094px - 7.6562px - 8.2031px - 8.7500px - 9.2969px - 9.8438px - 10.3906px - 10.9375px - 11.4844px - 12.0312px - 12.5781px - 13.1250px - 13.6719px - 14.2188px - 14.7656px - 15.3125px - 15.8594px - 16.4062px - 16.9531px - 17.5000px - 18.0469px - 18.5938px - 19.1406px - 19.6875px - 20.2344px - 20.7812px - 21.3281px - 21.8750px - 22.4219px - 22.9688px - 23.5156px - 24.0625px - 24.6094px - 25.1562px - 25.7031px - 26.2500px - 26.7969px - 27.3438px - 27.8906px - 28.4375px - 28.9844px - 29.5312px - 30.0781px - 30.6250px - 31.1719px - 31.7188px - 32.2656px - 32.8125px - 33.3594px - 33.9062px - 34.4531px - 35.0000px - 35.5469px - 36.0938px - 36.6406px - 37.1875px - 37.7344px - 38.2812px - 38.8281px - 39.3750px - 39.9219px - 40.4688px - 41.0156px - 41.5625px - 42.1094px - 42.6562px - 43.2031px - 43.7500px - 44.2969px - 44.8438px - 45.3906px - 45.9375px - 46.4844px - 47.0312px - 47.5781px - 48.1250px - 48.6719px - 49.2188px - 49.7656px - 50.3125px - 50.8594px - 51.4062px - 51.9531px - 52.5000px - 53.0469px - 53.5938px - 54.1406px - 54.6875px - 55.2344px - 55.7812px - 56.3281px - 56.8750px - 57.1484px - 57.4219px - 57.9688px - 58.5156px - 59.0625px - 59.6094px - 60.1562px - 60.7031px - 61.2500px - 61.7969px - 62.3438px - 62.8906px - 63.4375px - 63.9844px - 64.5312px - 65.0781px - 65.6250px - 66.1719px - 66.7188px - 67.2656px - 67.8125px - 68.3594px - 68.9062px - 69.4531px - 70.0000px - 70.5469px - 71.0938px - 71.6406px - 72.1875px - 72.7344px - 73.2812px - 73.5547px - 73.8281px - 74.3750px - 74.9219px - 75.4688px - 76.0156px - 76.5625px - 77.1094px - 77.6562px - 78.2031px - 78.7500px - 79.2969px - 79.8438px - 80.3906px - 80.9375px - 81.4844px - 82.0312px - 82.5781px - 83.1250px - 83.6719px - 84.2188px - 84.7656px - 85.3125px - 85.8594px - 86.4062px - 86.9531px - 87.5000px - 88.0469px - 88.5938px - 89.1406px - 89.6875px - 90.2344px - 90.7812px - 91.3281px - 91.8750px - 92.4219px - 92.9688px - 93.5156px - 94.0625px - 94.6094px - 95.1562px - 95.7031px - 96.2500px - 96.7969px - 97.3438px - 97.8906px - 98.4375px - 98.9844px - 99.5312px - 100.0781px - 100.6250px - 101.1719px - 101.7188px - 102.2656px - 102.8125px - 103.3594px - 103.9062px - 104.4531px - 104.5898px - 105.0000px - 105.5469px - 106.0938px - 106.6406px - 107.1875px - 107.7344px - 108.2812px - 108.8281px - 109.3750px - 109.9219px - 110.4688px - 111.0156px - 111.5625px - 112.1094px - 112.6562px - 113.2031px - 113.7500px - 114.2969px - 114.8438px - 115.3906px - 115.9375px - 116.4844px - 117.0312px - 117.5781px - 118.1250px - 118.6719px - 119.2188px - 119.7656px - 120.3125px - 120.8594px - 121.4062px - 121.9531px - 122.5000px - 123.0469px - 123.5938px - 124.1406px - 124.6875px - 125.2344px - 125.7812px - 126.3281px - 126.8750px - 127.4219px - 127.9688px - 128.5156px - 129.0625px - 129.6094px - 130.1562px - 130.7031px - 131.2500px - 131.7969px - 132.3438px - 132.8906px - 133.4375px - 133.9844px - 134.5312px - 135.0781px - 135.6250px - 136.1719px - 136.7188px - 137.2656px - 137.8125px - 138.3594px - 138.9062px - 139.4531px - 140.0000px - 140.5469px - 141.0938px - 141.6406px - 142.1875px - 142.7344px - 143.2812px - 143.8281px - 144.3750px - 144.9219px - 145.4688px - 146.0156px - 146.5625px - 147.1094px - 147.6562px - 148.2031px - 148.7500px - 149.2969px - 149.8438px - 150.3906px - 150.9375px - 151.4844px - 152.0312px - 152.5781px - 153.1250px - 153.6719px - 154.2188px - 154.7656px - 155.3125px - 155.8594px - 156.4062px - 156.9531px - 157.5000px - 158.0469px - 158.5938px - 159.1406px - 159.6875px - 160.2344px - 160.7812px - 161.3281px - 161.8750px - 162.4219px - 162.9688px - 163.5156px - 164.0625px - 164.6094px - 165.1562px - 165.7031px - 166.2500px - 166.7969px - 167.3438px - 167.8906px - 168.4375px - 168.9844px - 169.5312px - 170.0781px - 170.6250px - 171.1719px - 171.7188px - 172.2656px - 172.8125px - 173.3594px - 173.9062px - 174.4531px - 175.0000px - 175.5469px - 176.0938px - 176.6406px - 177.1875px - 177.7344px - 178.2812px - 178.8281px - 179.3750px - 179.9219px - 180.4688px - 181.0156px - 181.5625px - 182.1094px - 182.6562px - 183.2031px - 183.7500px - 184.2969px - 184.8438px - 185.3906px - 185.9375px - 186.4844px - 187.0312px - 187.5781px - 188.1250px - 188.6719px - 189.2188px - 189.7656px - 190.3125px - 190.8594px - 191.4062px - 191.9531px - 192.5000px - 193.0469px - 193.5938px - 194.1406px - 194.6875px - 195.2344px - 195.7812px - 196.3281px - 200.1562px - 200.7031px - 201.2500px - 201.7969px - 202.3438px - 202.8906px - 203.4375px - 203.9844px - 204.5312px - 205.0781px - 205.6250px - 206.1719px - 206.7188px - 207.2656px - 207.8125px - 208.3594px - 208.9062px - 209.4531px - 210.0000px - 210.5469px - 211.0938px - 211.6406px - 212.1875px - 212.7344px - 213.2812px - 213.8281px - 214.3750px - 214.9219px - 215.4688px - 216.0156px - 216.5625px - 217.1094px - 217.6562px - 218.2031px - 218.7500px - 219.2969px - 219.8438px - 220.3906px - 220.9375px - 221.4844px - 222.0312px - 222.5781px - 223.1250px - 223.6719px - 224.2188px - 224.7656px - 225.3125px - 225.8594px - 226.4062px - 226.9531px - 227.5000px - 228.0469px - 228.5938px - 229.1406px - 229.6875px - 230.2344px - 230.7812px - 231.3281px - 231.8750px - 232.4219px - 232.9688px - 233.5156px - 234.0625px - 234.6094px - 235.1562px - 235.7031px - 236.2500px - 236.7969px - 237.3438px - 237.8906px - 238.4375px - 238.9844px - 239.5312px - 240.0781px - 240.6250px - 241.1719px - 241.7188px - 242.2656px - 242.8125px - 243.3594px - 243.9062px - 244.4531px - 245.0000px - 245.5469px - 246.0938px - 246.6406px - 247.1875px - 247.7344px - 248.2812px - 248.8281px - 249.3750px - 249.9219px - 250.4688px - 251.0156px - 251.5625px - 252.1094px - 252.6562px - 253.2031px - 253.7500px - 254.2969px - 254.8438px - 255.3906px - 255.9375px - 256.4844px - 257.0312px - 257.5781px - 258.1250px - 258.6719px - 259.2188px - 259.7656px - 260.3125px - 260.8594px - 261.4062px - 261.9531px - 262.5000px - 263.0469px - 263.5938px - 264.1406px - 264.6875px - 265.2344px - 265.7812px - 266.3281px - 266.8750px - 267.4219px - 267.9688px - 268.5156px - 269.0625px - 269.6094px - 270.1562px - 270.7031px - 271.2500px - 271.7969px - 272.3438px - 272.8906px - 273.4375px - 273.9844px - 274.5312px - 275.0781px - 275.6250px - 276.1719px - 276.7188px - 277.2656px - 277.8125px - 278.3594px - 278.9062px - 279.4531px - 280.0000px - 280.5469px - 281.0938px - 281.6406px - 282.1875px - 282.7344px - 283.2812px - 283.8281px - 284.3750px - 284.9219px - 285.4688px - 286.0156px - 286.5625px - 287.1094px - 287.6562px - 288.2031px - 288.7500px - 289.2969px - 289.8438px - 290.3906px - 290.9375px - 291.4844px - 292.0312px - 292.5781px - 293.1250px - 293.6719px - 294.2188px - 294.7656px - 295.3125px - 295.8594px - 296.4062px - 296.9531px - 297.5000px - 298.0469px - 298.5938px - 299.1406px - 299.6875px - 300.2344px - 300.7812px - 301.3281px - 301.8750px - 302.4219px - 302.9688px - 303.5156px - 304.0625px - 304.6094px - 305.1562px - 305.7031px - 306.2500px - 306.7969px - 307.3438px - 307.8906px - 308.4375px - 308.9844px - 309.5312px - 310.0781px - 310.6250px - 311.1719px - 311.7188px - 312.2656px - 312.8125px - 313.3594px - 313.9062px - 314.4531px - 315.0000px - 315.5469px - 316.0938px - 316.6406px - 317.1875px - 317.7344px - 318.2812px - 318.8281px - 319.3750px - 319.9219px - 320.4688px - 321.0156px - 321.5625px - 322.1094px - 322.6562px - 323.2031px - 323.7500px - 324.2969px - 324.8438px - 325.3906px - 325.9375px - 326.4844px - 327.0312px - 327.5781px - 328.1250px - 328.6719px - 329.2188px - 329.7656px - 330.3125px - 330.8594px - 331.4062px - 331.9531px - 332.5000px - 333.0469px - 333.5938px - 334.1406px - 334.6875px - 335.2344px - 335.7812px - 336.3281px - 336.8750px - 337.4219px - 337.9688px - 338.5156px - 339.0625px - 339.6094px - 340.1562px - 340.7031px - 341.2500px - 341.7969px - 342.3438px - 342.8906px - 343.4375px - 343.9844px - 344.5312px - 345.0781px - 345.6250px - 346.1719px - 346.7188px - 347.2656px - 347.8125px - 348.3594px - 348.9062px - 349.4531px - 350.0000px - 350.5469px - 351.0938px - 351.6406px - 352.1875px - 352.7344px - 353.2812px - 353.8281px - 354.3750px - 354.9219px - 355.4688px - 356.0156px - 356.5625px - 357.1094px - 357.6562px - 358.2031px - 358.7500px - 359.2969px - 359.8438px - 360.3906px - 360.9375px - 361.4844px - 362.0312px - 362.5781px - 363.1250px - 363.6719px - 364.2188px - 364.7656px - 365.3125px - 365.8594px - 366.4062px - 366.9531px - 367.5000px - 368.0469px - 368.5938px - 369.1406px - 369.6875px - 370.2344px - 370.7812px - 371.3281px - 371.8750px - 372.4219px - 372.9688px - 373.5156px - 374.0625px - 374.6094px - 375.1562px - 375.7031px - 376.2500px - 376.7969px - 377.3438px - 377.8906px - 378.4375px - 378.9844px - 379.5312px - 380.0781px - 380.6250px - 381.1719px - 381.7188px - 382.2656px - 382.8125px - 383.3594px - 383.9062px - 384.4531px - 385.0000px - 385.5469px - 386.0938px - 386.6406px - 387.1875px - 387.7344px - 388.2812px - 388.8281px - 389.3750px - 389.9219px - 390.4688px - 391.0156px - 391.5625px - 392.1094px - 392.6562px - 393.2031px - 393.7500px - 394.2969px - 394.8438px - 395.3906px - 395.9375px - 396.4844px - 397.0312px - 397.5781px - 398.1250px - 398.6719px - 399.2188px - 399.7656px - 400.3125px - 400.8594px - 401.4062px - 401.9531px - 402.5000px - 403.0469px - 403.5938px - 404.1406px - 404.6875px - 405.2344px - 405.7812px - 406.3281px - 406.8750px - 407.4219px - 407.9688px - 408.5156px - 409.0625px - 409.6094px - 410.1562px - 410.7031px - 411.2500px - 411.7969px - 412.3438px - 412.8906px - 413.4375px - 413.9844px - 414.5312px - 415.0781px - 415.6250px - 416.1719px - 416.7188px - 417.2656px - 417.8125px - 418.3594px - 418.9062px - 419.4531px - 420.0000px - 420.5469px - 421.0938px - 421.6406px - 422.1875px - 422.7344px - 423.2812px - 423.8281px - 424.3750px - 424.9219px - 425.4688px - 426.0156px - 426.5625px - 427.1094px - 427.6562px - 428.2031px - 428.7500px - 429.2969px - 429.8438px - 430.3906px - 430.9375px - 431.4844px - 432.0312px - 432.5781px - 433.1250px - 433.6719px - 434.2188px - 434.7656px - 435.3125px - 435.8594px - 436.4062px - 436.9531px - 437.5000px - 438.0469px - 438.5938px - 439.1406px - 439.6875px - 440.2344px - 440.7812px - 441.3281px - 441.8750px - 442.4219px - 442.9688px - 443.5156px - 444.0625px - 444.6094px - 445.1562px - 445.7031px - 446.2500px - 446.7969px - 447.3438px - 447.8906px - 448.4375px - 448.9844px - 449.5312px - 450.0781px - 450.6250px - 451.1719px - 451.7188px - 452.2656px - 452.8125px - 453.3594px - 453.9062px - 454.4531px - 455.0000px - 455.5469px - 456.0938px - 456.6406px - 457.1875px - 457.7344px - 458.2812px - 458.8281px - 459.3750px - 459.9219px - 460.4688px - 461.0156px - 461.5625px - 462.1094px - 462.6562px - 463.2031px - 463.7500px - 464.2969px - 464.8438px - 465.3906px - 465.9375px - 466.4844px - 467.0312px - 467.5781px - 468.1250px - 468.6719px - 469.2188px - 469.7656px - 470.3125px - 470.8594px - 471.4062px - 471.9531px - 472.5000px - 473.0469px - 473.5938px - 474.1406px - 474.6875px - 475.2344px - 475.7812px - 476.3281px - 476.8750px - 477.4219px - 477.9688px - 478.5156px - 479.0625px - 479.6094px - 480.1562px - 480.7031px - 481.2500px - 481.7969px - 482.3438px - 482.8906px - 483.4375px - 483.9844px - 484.5312px - 485.0781px - 485.6250px - 486.1719px - 486.7188px - 487.2656px - 487.8125px - 488.3594px - 488.9062px - 489.4531px - 490.0000px - 490.5469px - 491.0938px - 491.6406px - 492.1875px - 492.7344px - 493.2812px - 493.8281px - 494.3750px - 494.9219px - 495.4688px - 496.0156px - 496.5625px - 497.1094px - 497.6562px - 498.2031px - 498.7500px - 499.2969px - 499.8438px - 500.3906px - 500.9375px - 501.4844px - 502.0312px - 502.5781px - 503.1250px - 503.6719px - 504.2188px - 504.7656px - 505.3125px - 505.8594px - 506.4062px - 506.9531px - 507.5000px - 508.0469px - 508.5938px - 509.1406px - 509.6875px - 510.2344px - 510.7812px - 511.3281px - 511.8750px - 512.4219px - 512.9688px - 513.5156px - 514.0625px - 514.6094px - 515.1562px - 515.7031px - 516.2500px - 516.7969px - 517.3438px - 517.8906px - 518.4375px - 518.9844px - 519.5312px - 520.0781px - 520.6250px - 521.1719px - 521.7188px - 522.2656px - 522.8125px - 523.3594px - 523.9062px - 524.4531px - 525.0000px - 525.5469px - 526.0938px - 526.6406px - 527.1875px - 527.7344px - 528.2812px - 528.8281px - 529.3750px - 529.9219px - 530.4688px - 531.0156px - 531.5625px - 532.1094px - 532.6562px - 533.2031px - 533.7500px - 534.2969px - 534.8438px - 535.3906px - 535.9375px - 536.4844px - 537.0312px - 537.5781px - 538.1250px - 538.6719px - 539.2188px - 539.7656px - 540.3125px - 540.8594px - 541.4062px - 541.9531px - 542.5000px - 543.0469px - 543.5938px - 544.1406px - 544.6875px - 545.2344px - 545.7812px - 546.3281px - 710.9375px - - 3.2812px - 3.8281px - 4.3750px - 4.9219px - 5.4688px - 6.0156px - 6.5625px - 7.1094px - 7.6562px - 8.2031px - 8.7500px - 9.2969px - 9.8438px - 10.3906px - 10.9375px - 11.4844px - 12.0312px - 12.5781px - 13.1250px - 13.6719px - 15.3125px - 16.4062px - 17.5000px - 18.5938px - 19.6875px - 20.7812px - 21.8750px - 22.9688px - 26.2500px - diff --git a/core/function-impl/mogo-core-function-chat/src/main/res/values/strings.xml b/core/function-impl/mogo-core-function-chat/src/main/res/values/strings.xml index d85fb26674..cb3403e38a 100644 --- a/core/function-impl/mogo-core-function-chat/src/main/res/values/strings.xml +++ b/core/function-impl/mogo-core-function-chat/src/main/res/values/strings.xml @@ -1,33 +1,3 @@ - CarChatting - 已取消 - 好的 - %1$sm - %1$skm - 用户信息缺失,请稍后再试 - 拨打电话失败,不能打点话给自己 - 已挂断 - 对方无应答 - 正在通话中,请稍后再试 - 当前匹配人数较少,请稍后重试 - 打电话 - 加入车队 - 匹配车友聊天 - 正在为您匹配车友... - 取消 等待接听 - 车队通话中... - 点击查看信息 - 退出车队 - 请检查网络状态 - 车友%1$s邀请你加入车队! - - 已邀请 - 对方已有车队 - 有车友邀请你加入车队,你可以对我说,加入或拒绝 - SN 不能为 null - 已加入车队,你可以直接跟队友通话 - 车队已解散 - 当前正在通话中 - 挂断失败 diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/DevaToolsProvider.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/DevaToolsProvider.kt index 46270dfc08..d74fa5a33a 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/DevaToolsProvider.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/DevaToolsProvider.kt @@ -40,8 +40,8 @@ class DevaToolsProvider : IDevaToolsProvider { MogoLogCatchManager.startCatchLog(duration, logPrefixName) } - override fun stopLogCatch() { - MogoLogCatchManager.stopCatchLog() + override fun stopLogCatch(logPrefixName: String?) { + MogoLogCatchManager.stopCatchLog(logPrefixName) } override fun getTraceInfo(): HashMap { diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/BadCaseManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/BadCaseManager.kt index 8cd418c3d7..930224fd9d 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/BadCaseManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/badcase/BadCaseManager.kt @@ -7,6 +7,7 @@ import android.view.ViewGroup import android.view.WindowManager import androidx.fragment.app.FragmentActivity import androidx.lifecycle.Lifecycle.Event +import androidx.lifecycle.Lifecycle.Event.ON_CREATE import androidx.lifecycle.Lifecycle.Event.ON_DESTROY import androidx.lifecycle.LifecycleCoroutineScope import androidx.lifecycle.LifecycleEventObserver @@ -18,6 +19,9 @@ import com.mogo.eagle.core.utilcode.kotlin.PX import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.kotlin.lifecycleOwner import com.mogo.eagle.core.utilcode.kotlin.onClick +import com.mogo.eagle.core.utilcode.reminder.Reminder +import com.mogo.eagle.core.utilcode.reminder.api.IReminder +import com.mogo.eagle.core.utilcode.reminder.api.IReminder.IGlobalStateChangeListener import com.zhjt.mogo_core_function_devatools.badcase.repository.net.api.entity.BadCaseResponse.Reason import com.zhjt.mogo_core_function_devatools.badcase.biz.BadCasePresenter import com.zhjt.mogo_core_function_devatools.badcase.biz.BadCaseView @@ -55,6 +59,9 @@ internal object BadCaseManager : LifecycleEventObserver { @Volatile private var dismissJob: Job? = null + @Volatile + private var feedbackFloatShow = false + @OptIn(ExperimentalCoroutinesApi::class) private var channel: Channel = Channel(Channel.RENDEZVOUS) get() = if (field.isClosedForReceive || field.isClosedForSend) { @@ -172,6 +179,9 @@ internal object BadCaseManager : LifecycleEventObserver { } fun onReceiveBadCaseRecord(record: RecordPanelOuterClass.RecordPanel) { + if (feedbackFloatShow) { + return + } scope?.launch { val newRecord = record.toRecord() withContext(Dispatchers.IO) { @@ -182,10 +192,10 @@ internal object BadCaseManager : LifecycleEventObserver { } private fun CoroutineScope.showBadCaseInternal(record: AutoPilotRecord) = launch { - viewHolder?.get()?.also { + viewHolder?.get()?.also { itx -> presenter.updateLastModified(record.toLongTime()) showEntry() - it.onClick { + itx.onClick { showBadCaseFloat( onDismiss = { hideFloat?.invoke() @@ -252,14 +262,33 @@ internal object BadCaseManager : LifecycleEventObserver { val activity = viewHolder?.get()?.context as? FragmentActivity ?: throw IllegalStateException("please ensure context is FragmentActivity.") BadCaseView(activity).also { itx -> itx.register(record, onDismiss, onSelect) - activity.pop(itx, 960.PX, WindowManager.LayoutParams.MATCH_PARENT).also { + activity.pop(itx, 960.PX, WindowManager.LayoutParams.MATCH_PARENT, key = "BadCaseFloatWindow_").also { hideFloat = it } } } + + private val listener = object : IGlobalStateChangeListener { + override fun onShow(reminder: IReminder) { + if (reminder.key().startsWith("FeedBackFloatWindow_")) { + feedbackFloatShow = true + } + } + + override fun onHide(reminder: IReminder) { + if (reminder.key().startsWith("FeedBackFloatWindow_")) { + feedbackFloatShow = false + } + } + } + override fun onStateChanged(source: LifecycleOwner, event: Event) { + if (event == ON_CREATE) { + Reminder.registerGlobalStateChangeListener(listener) + } if (event == ON_DESTROY) { + Reminder.unRegisterGlobalStateChangeListener(listener) dismissJob?.takeIf { it.isActive }?.cancel() onHide = null onShow = null diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/ext/BadCaseExt.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/ext/BadCaseExt.kt index 55d9da26a5..a62b8fecd6 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/ext/BadCaseExt.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/ext/BadCaseExt.kt @@ -66,7 +66,7 @@ internal fun Context.toast(text: CharSequence, duration: Long = 2, unit: TimeUni } @SuppressLint("ClickableViewAccessibility") -internal fun Context.pop(content: View, width: Int, height: Int, fitSystemWindow: Boolean = true, onOuterViewClicked:((focus: View) -> Unit)? = null): () -> Unit { +internal fun Context.pop(content: View, width: Int, height: Int, key: String, fitSystemWindow: Boolean = true, onOuterViewClicked:((focus: View) -> Unit)? = null): () -> Unit { val activity = (this as? FragmentActivity) ?: throw IllegalStateException("please use Activity to trigger pop show.") var tempReminder: PopupWindowReminder? = null activity.lifecycleScope.launchWhenResumed { @@ -104,7 +104,11 @@ internal fun Context.pop(content: View, width: Int, height: Int, fitSystemWindow } } } - return@setTouchInterceptor true + try { + return@setTouchInterceptor true + } finally { + activity.window.decorView.dispatchTouchEvent(event) + } } it.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) } @@ -118,6 +122,11 @@ internal fun Context.pop(content: View, width: Int, height: Int, fitSystemWindow } pop.contentView = content val reminder = object : PopupWindowReminder(pop) { + + override fun key(): String { + return key + super.key() + } + override fun show() { pop.showAtLocation(activity.window.decorView, Gravity.START, 0, if (fitSystemWindow) WindowUtils.getStatusBarHeight(activity) else 0) } diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/feedback/FeedbackManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/feedback/FeedbackManager.kt index cc3715ec27..a1032bd60f 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/feedback/FeedbackManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/feedback/FeedbackManager.kt @@ -2,7 +2,6 @@ package com.zhjt.mogo_core_function_devatools.feedback import android.content.Context import android.text.TextUtils -import android.util.Log import android.view.View import android.view.WindowManager import android.widget.TextView @@ -14,13 +13,11 @@ import com.mogo.eagle.core.function.call.autopilot.CallerAutopilotIdentifyListen import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager 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 import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA import com.mogo.eagle.core.utilcode.mogo.toast.TipToast import com.mogo.eagle.core.utilcode.util.KeyboardUtils import com.mogo.eagle.core.utilcode.util.ThreadUtils import com.zhjt.mogo_core_function_devatools.R -import com.zhjt.mogo_core_function_devatools.badcase.BadCaseManager import com.zhjt.mogo_core_function_devatools.badcase.repository.db.entity.AutoPilotRecord import com.zhjt.mogo_core_function_devatools.badcase.repository.net.api.entity.BadCaseResponse.Reason import com.zhjt.mogo_core_function_devatools.badcase.toRecord @@ -32,7 +29,10 @@ import com.zhjt.mogo_core_function_devatools.feedback.biz.impl.FeedbackPresenter import com.zhjt.mogo_core_function_devatools.feedback.callback.IFeedbackCallback import kotlinx.coroutines.* import record_cache.RecordPanelOuterClass +import java.io.File import java.lang.IllegalStateException +import java.text.SimpleDateFormat +import java.util.* import kotlin.Result.Companion internal object FeedbackManager { @@ -73,12 +73,13 @@ internal object FeedbackManager { TipToast.shortTip("请选择一个Case") return } + record.scope.launch { val taskId = presenter.getBadCaseTaskId() val listener = object : IMoGoAutopilotIdentifyListener { override fun onAutopilotRecordResult(recordPanel: RecordPanelOuterClass.RecordPanel) { super.onAutopilotRecordResult(recordPanel) - launch { + record.scope.launch { val newRecord = recordPanel.toRecord() CallerLogger.d("${M_DEVA}${TAG}", "-- 收到工控机录制任务回调 -- $recordPanel") if (newRecord.type == 1 && newRecord.id == taskId) { @@ -153,6 +154,7 @@ internal object FeedbackManager { }, width = 960.PX, height = WindowManager.LayoutParams.MATCH_PARENT, + key = "FeedBackFloatWindow_", onOuterViewClicked = { KeyboardUtils.hideSoftInput(it) } @@ -160,13 +162,16 @@ internal object FeedbackManager { } private fun startRecordLog(record: AutoPilotRecord) { + val prefix = record.fileName?.split(File.separator)?.last()?.substringBeforeLast(".")?.let { "BadCase-$it" } ?: "BadCase-${SimpleDateFormat("yyyy-MM-dd-HH-mm-ss", Locale.getDefault()).format(Date())}" CallerLogger.d("${M_DEVA}${TAG}", "录制Bag开始, 触发录制全量日志 ...") - CallerDevaToolsManager.startCatchLog(1,record.fileName) + CallerLogger.d("${M_DEVA}${TAG}", "全量日志前缀: $prefix") + CallerDevaToolsManager.startCatchLog(1, prefix) } private fun stopRecordLog(newRecord: AutoPilotRecord) { + val prefix = newRecord.fileName?.split(File.separator)?.last()?.substringBeforeLast(".")?.let { "BadCase-$it" } ?: "BadCase-${SimpleDateFormat("yyyy-MM-dd-HH-mm-ss", Locale.getDefault()).format(Date())}" CallerLogger.d("${M_DEVA}${TAG}", "录制Bag完成, 触发结束录制全量日志 ...") - CallerDevaToolsManager.startCatchLog() + CallerDevaToolsManager.stopCatchLog(prefix) } private suspend fun upload(ctx: Context, badCase: BadCase, checked: Reason, record: AutoPilotRecord): Boolean { diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt index f0c5c94477..6a761ab21c 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/logcatch/MogoLogCatchManager.kt @@ -36,8 +36,8 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl ILogListener { private const val TAG = "MogoLogCatchManager" - private const val MANUAL_CATCH_PKG_NAME = "manual-catch-log" private const val MSG_TRY_CLOSE_LOG = 1001 + private const val MSG_TRY_START_LOG = 1002 private var mContext: Context? = null @@ -81,47 +81,68 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl override fun onMsgReceived(obj: RemoteLogPushContent?) { obj?.let { CallerLogger.d("$M_DEVA$TAG", "收到push消息: $obj") - when (obj.type) { - START_CATCH_LOG -> if (!catchingList.contains(obj.pkgName)) { - startCatchLog(obj) - } - STOP_CATCH_LOG -> stopCatchLog(obj) - LOCAL_CONFIG_OPEN_LOG -> openLoggerLevel() - LOCAL_CONFIG_CLOSE_LOG -> closeLoggerLevel() - else -> { + ThreadUtils.runOnUiThread { + obj.pkgName = mContext?.packageName + when (obj.type) { + START_CATCH_LOG -> if (!catchingList.contains(obj.pkgName)) { + TipToast.longTip("云端下发抓取日志,时间:${obj.duration}分钟") + startCatchLog(obj.duration) + } + STOP_CATCH_LOG -> { + TipToast.longTip("云端下发停止抓取日志") + stopCatchLog(obj) + } + LOCAL_CONFIG_OPEN_LOG -> { + TipToast.longTip("云端下发打开日志开关") + openLoggerLevel() + } + LOCAL_CONFIG_CLOSE_LOG -> { + TipToast.longTip("云端下发关闭日志开关") + closeLoggerLevel() + } + else -> { + } } } } } override fun handleMessage(msg: Message): Boolean { - if (msg.what == MSG_TRY_CLOSE_LOG) { - CallerDevaToolsListenerManager.invokeDevaToolsLogCatchClose() - closeLoggerLevel() - return true + when(msg.what){ + MSG_TRY_CLOSE_LOG -> { + CallerDevaToolsListenerManager.invokeDevaToolsLogCatchClose() + closeLoggerLevel() + return true + } + MSG_TRY_START_LOG -> { + CallerDevaToolsListenerManager.invokeDevaToolsLogCatchStart() + return true + } } return false } fun startCatchLog(duration: Int = 10, logPrefixName: String? = null) { - if (catchingList.contains(MANUAL_CATCH_PKG_NAME)) { + if (catchingList.contains(manualContent.pkgName + logPrefixName)) { TipToast.shortTip("已经在抓取日志了,请稍后再试") } else { CallerLogger.d("$M_DEVA$TAG", "开始抓取日志==== duration : $duration") manualContent.type = START_CATCH_LOG manualContent.duration = duration + CallerLogger.d("$M_DEVA$TAG", "manualContent : $manualContent") startCatchLog(manualContent, logPrefixName) } } - fun stopCatchLog() { + fun stopCatchLog(logPrefixName: String? = null) { CallerLogger.d("$M_DEVA$TAG", "结束抓取日志====") manualContent.type = STOP_CATCH_LOG - stopCatchLog(manualContent) + stopCatchLog(manualContent, logPrefixName) } private fun startCatchLog(content: RemoteLogPushContent, logPrefixName: String? = null) { - catchingList.add(content.pkgName) + CallerLogger.d("$M_DEVA$TAG", "startCatchLog path : ${content.pkgName + logPrefixName}") + catchingList.add(content.pkgName + logPrefixName) var delay = (content.duration).toLong() handler.removeMessages(MSG_TRY_CLOSE_LOG) if (delay <= 0) { @@ -131,7 +152,6 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl handler.sendEmptyMessageDelayed(MSG_TRY_CLOSE_LOG, delay * 1000L * 60) openLoggerLevel() - logInfoManager = LogInfoManagerFactory.createPushLogInfoManager( mContext, MoGoAiCloudClientConfig.getInstance().sn, @@ -140,19 +160,23 @@ object MogoLogCatchManager : IMogoOnMessageListener, Handl content, this ) - logInfoManager?.start() logInfoManager?.registerLogOutListener { lineLog -> CallerDevaToolsListenerManager.invokeDevaToolsLogCatchLines(lineLog) } + handler.sendEmptyMessage(MSG_TRY_START_LOG) SharedPrefsMgr.getInstance(mContext!!).putBoolean(MoGoConfig.CATCH_LOG, true) SharedPrefsMgr.getInstance(mContext!!) .putLong(MoGoConfig.CATCH_LOG_TIME, System.currentTimeMillis()) } - private fun stopCatchLog(content: RemoteLogPushContent) { - catchingList.remove(content.pkgName) + private fun stopCatchLog(content: RemoteLogPushContent, logPrefixName: String? = null) { + CallerLogger.d("$M_DEVA$TAG", "stopCatchLog path : ${content.pkgName + logPrefixName}") + if (!catchingList.contains(content.pkgName + logPrefixName)) { + return + } + catchingList.remove(content.pkgName + logPrefixName) if (catchingList.isEmpty()) { handler.removeMessages(MSG_TRY_CLOSE_LOG) } diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/scene/SceneManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/scene/SceneManager.kt index 55205d11a9..5baadf1dc3 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/scene/SceneManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/scene/SceneManager.kt @@ -45,7 +45,7 @@ class SceneManager { private var sceneModuleTAG: SceneModuleTAG = SceneModuleTAG(mutableMapOf()) private var sceneLogTAG: SceneLogTAG = SceneLogTAG(mutableMapOf()) - fun init() { + init { //过滤所需条件 sceneModuleTAG.map[ADAS] = SceneModule(true, M_ADAS_IMPL) sceneModuleTAG.map[DEVA] = SceneModule(true, M_DEVA) diff --git a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/trace/TraceManager.kt b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/trace/TraceManager.kt index 23694c81a2..75c67d6cfa 100644 --- a/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/trace/TraceManager.kt +++ b/core/function-impl/mogo-core-function-devatools/src/main/java/com/zhjt/mogo_core_function_devatools/trace/TraceManager.kt @@ -4,8 +4,8 @@ import android.content.Context import com.mogo.cloud.passport.MoGoAiCloudClientConfig import com.mogo.eagle.core.data.deva.chain.ChainConstant import com.mogo.eagle.core.data.deva.chain.ChainLogParam -import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger +import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_DEVA import com.mogo.eagle.core.utilcode.util.DeviceUtils import com.mogo.eagle.core.utilcode.util.Utils import com.zhidao.loglib.fw.FileWriteManager @@ -33,14 +33,27 @@ class TraceManager { // Trace过程中进行日志抓取,对日志进行配置 fwBuildMap[ChainConstant.CHAIN_LINK_LOG_CONNECT_STATUS] = - FwBuild(true, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_INIT, 5_000) - fwBuildMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA] = - FwBuild(false, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_MSG, 500) + FwBuild(true, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_INIT) + fwBuildMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT] = + FwBuild(true, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_AUTO) + fwBuildMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED] = + FwBuild(false, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_DATA_TRACK) + fwBuildMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY] = + FwBuild(false, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_TRAJECTORY) + fwBuildMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE] = + FwBuild(false, pkgName + ChainConstant.CHAIN_LINK_LOG_ADAS_VEHICLE) traceInfoCache[ChainConstant.CHAIN_LINK_LOG_CONNECT_STATUS] = ChainLogParam(true, "ADAS连接状态") - traceInfoCache[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA] = - ChainLogParam(false, "ADAS长链数据") + traceInfoCache[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT] = + ChainLogParam(true, "ADAS自动驾驶链路(包含: 定位,自动驾驶状态,全局路径,到站提醒,节点状态,异常上报)") + traceInfoCache[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED] = + ChainLogParam(false, "ADAS感知物体") + traceInfoCache[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY] = + ChainLogParam(false, "ADAS车前引导线") + traceInfoCache[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE] = + ChainLogParam(false, "ADAS车辆底盘数据") + FileWriteManager.getInstance() .init(context, MoGoAiCloudClientConfig.getInstance().sn, pkgName, fwBuildMap) } @@ -51,10 +64,12 @@ class TraceManager { fun refreshTraceInfo(map: HashMap) { map.forEach { (type, param) -> - val fwBuild = this.fwBuildMap[type] - fwBuild?.let { - CallerLogger.d("$M_DEVA$TAG", "param : ${param.des} , record : ${param.record}") - it.isRecord = param.record + if(type != ChainConstant.CHAIN_LINK_LOG_CONNECT_STATUS){ + val fwBuild = this.fwBuildMap[type] + fwBuild?.let { + CallerLogger.d("$M_DEVA$TAG", "param : ${param.des} , record : ${param.record}") + it.isRecord = param.record + } } } FileWriteManager.getInstance().operateChainMap(fwBuildMap) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt index 040628e086..8df1a947ee 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/notification/WarningFloatWindowHelper.kt @@ -7,17 +7,15 @@ import android.app.Service import android.content.Context import android.graphics.PixelFormat import android.graphics.Rect -import android.view.Gravity -import android.view.LayoutInflater -import android.view.View -import android.view.WindowManager -import com.mogo.eagle.core.function.hmi.notification.anim.AnimatorManager +import android.view.* import com.mogo.eagle.core.data.enums.ShowPattern +import com.mogo.eagle.core.function.hmi.notification.anim.AnimatorManager import com.mogo.eagle.core.function.hmi.notification.widget.ParentFrameLayout import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_HMI import com.mogo.eagle.core.utilcode.util.WindowUtils + /** * @author donghongyu * @date 2021/8/5 5:29 下午 @@ -89,12 +87,18 @@ internal class WarningFloatWindowHelper( frameLayout = ParentFrameLayout(context, config) frameLayout?.tag = config.floatTag // 将浮窗布局文件添加到父容器frameLayout中,并返回该浮窗文件 - val floatingView = config.layoutView?.also { frameLayout?.addView(it) } - ?: LayoutInflater.from(context).inflate(config.layoutId!!, frameLayout, true) + val floatingView = config.layoutView?.also { + try { + val parent = (it.parent as ViewGroup) + parent.removeAllViews() + } catch (e: Exception) { + e.printStackTrace() + } + frameLayout?.addView(it) + } ?: LayoutInflater.from(context).inflate(config.layoutId!!, frameLayout, true) // 为了避免创建的时候闪一下,我们先隐藏视图,不能直接设置GONE,否则定位会出现问题 floatingView.visibility = View.INVISIBLE // 将frameLayout添加到系统windowManager中 - windowManager.addView(frameLayout, params) // 在浮窗绘制完成的时候,设置初始坐标、执行入场动画 @@ -216,12 +220,12 @@ internal class WarningFloatWindowHelper( * 退出动画执行结束/没有退出动画,进行回调、移除等操作 */ fun remove(force: Boolean = false) = try { + frameLayout?.removeAllViews() frameLayout?.removeCallbacks(closeWarningTask) config.isAnim = false WarningFloatWindowManager.remove(config.floatTag) // removeView是异步删除,在Activity销毁的时候会导致窗口泄漏,所以使用removeViewImmediate直接删除view windowManager.run { - frameLayout?.removeAllViews() if (force) { removeViewImmediate(frameLayout) } else { diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt index 5ffa84b7e7..9b66fdfcb8 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/MoGoHmiFragment.kt @@ -195,14 +195,23 @@ class MoGoHmiFragment : MvpFragment } } + /** + * 设置 V2X 通知 代理View + */ override fun setProxyNotificationView(view: IViewNotification) { mViewNotification = view } + /** + * 设置 红绿灯 代理View + */ override fun setProxyTrafficLightView(view: IViewTrafficLight) { mViewTrafficLight = view } + /** + * 设置 限速 代理View + */ override fun setProxyLimitingSpeedView(view: IViewLimitingVelocity) { mViewLimitingVelocity = view } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ModifyBindingCarDialog.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ModifyBindingCarDialog.kt index 12912d60fe..84f070921c 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ModifyBindingCarDialog.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ModifyBindingCarDialog.kt @@ -1,6 +1,7 @@ package com.mogo.eagle.core.function.hmi.ui.bindingcar import android.content.Context +import android.util.Log import android.widget.TextView import androidx.lifecycle.LifecycleObserver import com.mogo.eagle.core.function.call.bindingcar.CallerBindingcarManager diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ToBindingCarDialog.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ToBindingCarDialog.kt index db27456c94..6d38ac8373 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ToBindingCarDialog.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/bindingcar/ToBindingCarDialog.kt @@ -46,7 +46,7 @@ class ToBindingCarDialog(context: Context) : BaseFloatDialog(context), Lifecycle } /** - * 修改绑定车机 TODO + * 修改绑定车机 */ fun toBindingcar() { CallerBindingcarManager.getBindingcarProvider().modifyCarInfo { diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt index 0b58988782..419160c5aa 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/setting/DebugSettingView.kt @@ -20,7 +20,6 @@ import com.mogo.eagle.core.data.config.FunctionBuildConfig import com.mogo.eagle.core.data.constants.MoGoConfig import com.mogo.eagle.core.data.deva.chain.ChainConstant import com.mogo.eagle.core.data.deva.scene.SceneModule -import com.mogo.eagle.core.data.deva.scene.SceneTAG import com.mogo.eagle.core.data.enums.TrafficTypeEnum import com.mogo.eagle.core.data.map.MogoLocation import com.mogo.eagle.core.data.obu.ObuStatusInfo @@ -97,18 +96,25 @@ class DebugSettingView @JvmOverloads constructor( //当前PAD支持的CPU架构 private var cpuList = "CPU架构:" + //日志过滤标签集合 - private val sceneMap = mutableMapOf< String, SceneModule>() + private val sceneMap = mutableMapOf() private var dockerRebootDialog: DockerRebootDialog? = null //docker重启对话框 - private var adUpgradeDialog : AdUpgradeDialog? = null //工控机升级对话框 - private var upgradeMode: Int=-1 //升级模式 - private var downloadStatus: Int=-1 //下载状态 - private var currentProgress: Int=-1 //当前已下载包体大小 - private var previousProgress: Int=-1 //前一秒的下载进度,用于计算下载剩余时间 - private var totalProgress: Int=-1 //包体总大小 - private var downloadVersion: String?=null //工控机docker版本 - private var upgradeStatus: Int=-1 //升级状态 + private var adUpgradeDialog: AdUpgradeDialog? = null //工控机升级对话框 + private var upgradeMode: Int = -1 //升级模式 + private var downloadStatus: Int = -1 //下载状态 + private var currentProgress: Int = -1 //当前已下载包体大小 + private var previousProgress: Int = -1 //前一秒的下载进度,用于计算下载剩余时间 + private var totalProgress: Int = -1 //包体总大小 + private var downloadVersion: String? = null //工控机docker版本 + private var upgradeStatus: Int = -1 //升级状态 + + //ADAS连接状态 + private var adasConnectStatus: Boolean = false + + //OBU连接状态 + private var obuConnectStatus: Boolean = false private val mapUiController by lazy { CallerMapUIServiceManager.getMapUIController() @@ -181,23 +187,23 @@ class DebugSettingView @JvmOverloads constructor( } private fun initView() { - val iconDown = ContextCompat.getDrawable(context,R.drawable.icon_down) - iconDown?.setBounds(0,0,iconDown.minimumWidth,iconDown.minimumHeight) - val iconRight = ContextCompat.getDrawable(context,R.drawable.icon_right) - iconRight?.setBounds(0,0,iconRight.minimumWidth,iconRight.minimumHeight) + val iconDown = ContextCompat.getDrawable(context, R.drawable.icon_down) + iconDown?.setBounds(0, 0, iconDown.minimumWidth, iconDown.minimumHeight) + val iconRight = ContextCompat.getDrawable(context, R.drawable.icon_right) + iconRight?.setBounds(0, 0, iconRight.minimumWidth, iconRight.minimumHeight) /** * 设备绑定关系 */ tbDeviceBind.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示隐藏设备绑定关系视图 - deviceBindLayout.visibility =View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + deviceBindLayout.visibility = View.VISIBLE + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //默认隐藏设备绑定关系视图 - deviceBindLayout.visibility =View.GONE + deviceBindLayout.visibility = View.GONE } } @@ -205,12 +211,12 @@ class DebugSettingView @JvmOverloads constructor( * 版本信息 */ tbAppVersionInfo.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示版本信息 appVersionInfoLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏版本信息 appVersionInfoLayout.visibility = View.GONE } @@ -219,48 +225,60 @@ class DebugSettingView @JvmOverloads constructor( * 状态中心 */ tbStatusCenter.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示状态中心 statusCenterLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏状态中心 statusCenterLayout.visibility = View.GONE } } - for(element in DeviceUtils.getABIs()){ + for (element in DeviceUtils.getABIs()) { cpuList = "$cpuList$element " } - tvCPUFrameworkInfo.text =cpuList + tvCPUFrameworkInfo.text = cpuList /** * 控制中心 */ tbControlCenter.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示控制中心 controlCenterLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏控制中心 controlCenterLayout.visibility = View.GONE } } + tbEagleEyeController.setOnCheckedChangeListener { buttonView, isChecked -> + if(isChecked){ + buttonView.setCompoundDrawables(null, null, iconDown, null) + //展示参数配置 + eagleEyeControllerLayout.visibility = View.VISIBLE + }else{ + buttonView.setCompoundDrawables(null, null, iconRight, null) + //隐藏参数配置 + eagleEyeControllerLayout.visibility = View.GONE + } + } + /** * 域控制器 */ tbDomainController.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示域控制器 domainControllerLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏域控制器 domainControllerLayout.visibility = View.GONE } @@ -270,13 +288,13 @@ class DebugSettingView @JvmOverloads constructor( * OBU控制中心 */ tbObuController.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示OBU控制中心 obuControllerLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏OBU控制中心 obuControllerLayout.visibility = View.GONE } @@ -286,12 +304,12 @@ class DebugSettingView @JvmOverloads constructor( * HMI控制中心 */ tbHmiController.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示HMI控制中心 hmiControllerLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏HMI控制中心 hmiControllerLayout.visibility = View.GONE } @@ -301,12 +319,12 @@ class DebugSettingView @JvmOverloads constructor( * 高精地图控制中心 */ tbHdMapController.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示高精地图控制中心 hdMapControllerLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏高精地图控制中心 hdMapControllerLayout.visibility = View.GONE } @@ -316,12 +334,12 @@ class DebugSettingView @JvmOverloads constructor( * 日志中心 */ tbLogcatCenter.setOnCheckedChangeListener { buttonView, isChecked -> - if(isChecked){ - buttonView.setCompoundDrawables(null,null,iconDown,null) + if (isChecked) { + buttonView.setCompoundDrawables(null, null, iconDown, null) //展示日志中心 logcatCenterLayout.visibility = View.VISIBLE - }else{ - buttonView.setCompoundDrawables(null,null,iconRight,null) + } else { + buttonView.setCompoundDrawables(null, null, iconRight, null) //隐藏日志中心 logcatCenterLayout.visibility = View.GONE } @@ -369,9 +387,6 @@ class DebugSettingView @JvmOverloads constructor( } - - - /** * 修改自车按钮(出租车、小巴车) */ @@ -385,6 +400,8 @@ class DebugSettingView @JvmOverloads constructor( } } + //设置鹰眼本地参数配置监听 + setEagleEyeConfigListener() //域控制器中心事件点击监听 setDomainControllerCheckedChangeListener() //Hmi控制中心事件点击监听 @@ -392,9 +409,6 @@ class DebugSettingView @JvmOverloads constructor( //日志中心事件点击监听 setLogCheckedChangeListener() - - - //OBU配置信息 tvObuInfo.text = CallerObuListenerManager.getObuStatusInfoJsonString() @@ -474,7 +488,6 @@ class DebugSettingView @JvmOverloads constructor( } - // 初始化 ADAS感知数据是否绘制 选择情况 tbIsDrawIdentifyData.isChecked = FunctionBuildConfig.isDrawIdentifyData tbIsDrawIdentifyData.setOnCheckedChangeListener { buttonView, isChecked -> @@ -501,10 +514,43 @@ class DebugSettingView @JvmOverloads constructor( } + /** + * 设置鹰眼本地参数配置监听 + */ + private fun setEagleEyeConfigListener(){ + //初始化刹车加速度阈值信息 + val brakeThreshold = SharedPrefsMgr.getInstance(context) + .getFloat(MoGoConfig.BRAKE_ACCELERATION_THRESHOLD,-2.5F) + etInputBrakeThreshold.setText(brakeThreshold.toString()) + etInputBrakeThreshold.text?.let { etInputBrakeThreshold.setSelection(brakeThreshold.toString().length) } + //设置刹车加速度阈值信息 + btnBrakeThreshold.setOnClickListener { + val thresholdStr = etInputBrakeThreshold.text.toString() + if(thresholdStr.isNullOrEmpty()){ + ToastUtils.showShort("请输入正确的判定刹车加速度阈值") + }else{ + try{ + val thresholdStrFloat = thresholdStr.toFloat() + if(thresholdStrFloat<0){ + SharedPrefsMgr.getInstance(context).putFloat(MoGoConfig.BRAKE_ACCELERATION_THRESHOLD,thresholdStrFloat) + ToastUtils.showShort("刹车阈值设置成功") + }else{ + ToastUtils.showShort("刹车阈值加速度值应小于0") + } + }catch (e: Exception){ + ToastUtils.showShort("判定刹车加速度阈值格式设置不正确") + } + + + + } + } + } + /** * 设置域控制器点击监听 */ - private fun setDomainControllerCheckedChangeListener(){ + private fun setDomainControllerCheckedChangeListener() { // 初始化工控机 IP信息 val autoPilotIpAddress = @@ -523,21 +569,25 @@ class DebugSettingView @JvmOverloads constructor( } } + //断开与工控机的连接 + btnDisconnectIpc.setOnClickListener { + CallerAutoPilotManager.disconnectIpc() + } updateSpeedSettingViews() /** * 设置最大速度 */ - btnSetAutopilotSpeed.onClick{ - if(AppConfigInfo.isConnectAutopilot){ + btnSetAutopilotSpeed.onClick { + if (AppConfigInfo.isConnectAutopilot) { val speedStr = etInputSpeed.text?.toString() try { - if(speedStr.isNullOrEmpty()){ + if (speedStr.isNullOrEmpty()) { ToastUtils.showShort("请输入最大车速") } val speed = speedStr?.toInt() - if(speed!=null && speed>0 && speed<60){ + if (speed != null && speed > 0 && speed < 60) { // 设置自动驾驶速度 val isSuccess = CallerAutoPilotManager.setAutoPilotSpeed(speed) when { @@ -548,13 +598,13 @@ class DebugSettingView @JvmOverloads constructor( ToastUtils.showShort("设置车速失败,请启动域控制器") } } - }else{ + } else { ToastUtils.showShort("最大车速应大于0且小于60") } - }catch (e: Exception){ + } catch (e: Exception) { ToastUtils.showShort("车速设置失败,请正确设置车速") } - }else{ + } else { ToastUtils.showShort("设置车速失败,请启动域控制器") } } @@ -562,19 +612,19 @@ class DebugSettingView @JvmOverloads constructor( /** * 录制Bag包 */ - btnRecordPackage.onClick{ + btnRecordPackage.onClick { val recordTimeStr = etInputRecordTime.text?.toString() - try{ - if(recordTimeStr.isNullOrEmpty()){ + try { + if (recordTimeStr.isNullOrEmpty()) { CallerAutoPilotManager.recordPackage() } val recordTime = recordTimeStr?.toInt() - if(recordTime!=null && recordTime>0){ + if (recordTime != null && recordTime > 0) { CallerAutoPilotManager.recordPackage(recordTime) - }else{ + } else { CallerAutoPilotManager.recordPackage() } - }catch (e: Exception){ + } catch (e: Exception) { CallerAutoPilotManager.recordPackage() } } @@ -582,30 +632,43 @@ class DebugSettingView @JvmOverloads constructor( /** * 工控机升级 */ - btnSystemUpgrade.onClick{ - if(AppConfigInfo.isConnectAutopilot){ - Logger.i(TAG,"upgradeMode="+upgradeMode+" downloadStatus="+downloadStatus+" upgradeStatus="+upgradeStatus) - if(AdUpgradeStateHelper.isDownloading(downloadStatus)){ + btnSystemUpgrade.onClick { + if (AppConfigInfo.isConnectAutopilot) { + Logger.i( + TAG, + "upgradeMode=" + upgradeMode + " downloadStatus=" + downloadStatus + " upgradeStatus=" + upgradeStatus + ) + if (AdUpgradeStateHelper.isDownloading(downloadStatus)) { //点击Toast提示:下载剩余时间 - ToastUtils.showShort("预计"+AdUpgradeStateHelper.getRemainingTime(totalProgress,previousProgress,currentProgress)+"下载完成") - }else if(AdUpgradeStateHelper.getUpgradeStatus()){ + ToastUtils.showShort( + "预计" + AdUpgradeStateHelper.getRemainingTime( + totalProgress, + previousProgress, + currentProgress + ) + "下载完成" + ) + } else if (AdUpgradeStateHelper.getUpgradeStatus()) { //工控机状态为“升级中” ToastUtils.showShort("新版本升级中,预计5分钟升级完成") - }else if(AdUpgradeStateHelper.isUpgradeFailed(upgradeStatus)){ + } else if (AdUpgradeStateHelper.isUpgradeFailed(upgradeStatus)) { //如果升级失败,则Toast提示:升级失败,请联系运维人员 ToastUtils.showShort("升级失败,请联系运维人员") - }else if(AdUpgradeStateHelper.isHintUpgradeMode(upgradeMode) && AdUpgradeStateHelper.isDownloadFinish(downloadStatus,upgradeStatus)){ + } else if (AdUpgradeStateHelper.isHintUpgradeMode(upgradeMode) && AdUpgradeStateHelper.isDownloadFinish( + downloadStatus, + upgradeStatus + ) + ) { //如果升级模式为“提示升级”,并且下载状态为已经下载完成,点击弹出升级确认弹窗 - if(adUpgradeDialog == null){ + if (adUpgradeDialog == null) { adUpgradeDialog = AdUpgradeDialog(context) - adUpgradeDialog?.setClickListener(object : AdUpgradeDialog.ClickListener{ + adUpgradeDialog?.setClickListener(object : AdUpgradeDialog.ClickListener { override fun confirm() { - if(mAutoPilotStatusInfo?.state==2){ + if (mAutoPilotStatusInfo?.state == 2) { //当前处于自动驾驶状态,不可进行升级,Toast提示 ToastUtils.showShort("升级前请先退出自动驾驶模式") - }else{ + } else { //确认升级 - Logger.i(TAG,"upgrade confirm") + Logger.i(TAG, "upgrade confirm") //设置当前状态为“升级中” AdUpgradeStateHelper.setUpgradeStatus(true) CallerAutoPilotManager.setIPCUpgradeAffirm() @@ -614,7 +677,7 @@ class DebugSettingView @JvmOverloads constructor( override fun cancel() { //取消升级 - Logger.i(TAG,"upgrade cancel") + Logger.i(TAG, "upgrade cancel") //取消升级命令不下发 // CallerAutoPilotManager.setIPCUpgradeCancel() } @@ -622,10 +685,10 @@ class DebugSettingView @JvmOverloads constructor( }) } adUpgradeDialog?.showUpgradeDialog() - }else{ + } else { ToastUtils.showShort("当前工控机处于最新版本状态,不可升级") } - }else{ + } else { ToastUtils.showShort("域控制器未连接") } @@ -635,34 +698,38 @@ class DebugSettingView @JvmOverloads constructor( /** * 重启系统 */ - btnSystemRestart.onClick{ - if(AppConfigInfo.isConnectAutopilot){ - if(dockerRebootDialog == null){ + btnSystemRestart.onClick { + if (AppConfigInfo.isConnectAutopilot) { + if (dockerRebootDialog == null) { dockerRebootDialog = DockerRebootDialog(context) - dockerRebootDialog?.setClickListener(object : DockerRebootDialog.ClickListener{ + dockerRebootDialog?.setClickListener(object : DockerRebootDialog.ClickListener { override fun confirm() { - if(mAutoPilotStatusInfo?.state==2){ + if (mAutoPilotStatusInfo?.state == 2) { //当前处于自动驾驶状态,不可进行重启,Toast提示 ToastUtils.showShort("请先退出自动驾驶状态") - }else if(AdUpgradeStateHelper.showCannotReboot(downloadStatus, upgradeStatus)){ + } else if (AdUpgradeStateHelper.showCannotReboot( + downloadStatus, + upgradeStatus + ) + ) { //当工控机处于下载或者升级状态,需要先进行升级 ToastUtils.showShort("请先完成新自动驾驶系统的下载/升级") - } else{ + } else { //确认重启 - Logger.i(TAG,"reboot confirm") + Logger.i(TAG, "reboot confirm") CallerAutoPilotManager.setIPCReboot() } } override fun cancel() { //取消重启 - Logger.i(TAG,"reboot cancel") + Logger.i(TAG, "reboot cancel") } }) } dockerRebootDialog?.showUpgradeDialog() - }else{ + } else { ToastUtils.showShort("域控制器未连接") } @@ -696,21 +763,23 @@ class DebugSettingView @JvmOverloads constructor( * @param downloadVersion 下载版本 * @param upgradeStatus 升级状态 */ - fun setAdUpgradeInfo(upgradeMode: Int,downloadStatus: Int,currentProgress: Int,totalProgress: Int, - downloadVersion: String,upgradeStatus: Int){ - this.upgradeMode=upgradeMode - this.downloadStatus=downloadStatus - this.previousProgress=this.currentProgress - this.currentProgress=currentProgress - this.totalProgress=totalProgress - this.downloadVersion=downloadVersion - this.upgradeStatus=upgradeStatus + fun setAdUpgradeInfo( + upgradeMode: Int, downloadStatus: Int, currentProgress: Int, totalProgress: Int, + downloadVersion: String, upgradeStatus: Int + ) { + this.upgradeMode = upgradeMode + this.downloadStatus = downloadStatus + this.previousProgress = this.currentProgress + this.currentProgress = currentProgress + this.totalProgress = totalProgress + this.downloadVersion = downloadVersion + this.upgradeStatus = upgradeStatus } /** * 设置Hmi点击监听 */ - private fun setHmiCheckedChangeListener(){ + private fun setHmiCheckedChangeListener() { /** * 显示、隐藏迈速表 */ @@ -793,7 +862,40 @@ class DebugSettingView @JvmOverloads constructor( /** * 设置日志点击监听 */ - private fun setLogCheckedChangeListener(){ + private fun setLogCheckedChangeListener() { + //初始化标签选中状态 + val tagMap = CallerDevaToolsManager.getModuleTAG() + tagMap?.let { + it.iterator().forEach { map -> + val name = map.value.name + val log = map.value.log + when (name) { + ////ADAS日志标签 + SceneConstant.M_ADAS_IMPL -> cbAdasLog.isChecked = log + //OBU日志标签 + SceneConstant.M_OBU -> cbObuLog.isChecked = log + //HMI日志标签 + SceneConstant.M_HMI -> cbHmiLog.isChecked = log + //V2X日志标签 + SceneConstant.M_V2X -> cbV2xLog.isChecked = log + //地图日志标签 + SceneConstant.M_MAP -> cbMapLog.isChecked = log + //DEVA日志标签 + SceneConstant.M_DEVA -> cbDevaLog.isChecked = log + //网络模块日志标签 + SceneConstant.M_NETWORK -> cbNetworkLog.isChecked = log + //ROUTE日志标签 + SceneConstant.M_OLD_ROUTE -> cbOldRouteLog.isChecked = log + //BUS日志标签 + SceneConstant.M_BUS -> cbBusLog.isChecked = log + //TAXI日志标签 + SceneConstant.M_TAXI -> cbTaxiLog.isChecked = log + //TAXI_P日志标签 + SceneConstant.M_TAXI_P -> cbTaxiPLog.isChecked = log + } + } + } + /** * 打开、关闭鹰眼Log */ @@ -821,40 +923,72 @@ class DebugSettingView @JvmOverloads constructor( } - //ADAS日志标签 cbAdasLog.setOnCheckedChangeListener { _, isChecked -> - val adasModule = SceneModule(isChecked,SceneConstant.M_ADAS_IMPL) + val adasModule = SceneModule(isChecked, SceneConstant.M_ADAS_IMPL) sceneMap[SceneConstant.M_ADAS_IMPL] = adasModule CallerDevaToolsManager.updateModuleTAG(sceneMap) } //OBU日志标签 cbObuLog.setOnCheckedChangeListener { _, isChecked -> - val obuModule = SceneModule(isChecked,SceneConstant.M_OBU) + val obuModule = SceneModule(isChecked, SceneConstant.M_OBU) sceneMap[SceneConstant.M_OBU] = obuModule CallerDevaToolsManager.updateModuleTAG(sceneMap) } //HMI日志标签 cbHmiLog.setOnCheckedChangeListener { _, isChecked -> - val hmiModule = SceneModule(isChecked,SceneConstant.M_HMI) + val hmiModule = SceneModule(isChecked, SceneConstant.M_HMI) sceneMap[SceneConstant.M_HMI] = hmiModule CallerDevaToolsManager.updateModuleTAG(sceneMap) } //V2X日志标签 cbV2xLog.setOnCheckedChangeListener { _, isChecked -> - val v2xModule = SceneModule(isChecked,SceneConstant.M_V2X) + val v2xModule = SceneModule(isChecked, SceneConstant.M_V2X) sceneMap[SceneConstant.M_V2X] = v2xModule CallerDevaToolsManager.updateModuleTAG(sceneMap) } //地图日志标签 cbMapLog.setOnCheckedChangeListener { _, isChecked -> - val mapModule = SceneModule(isChecked,SceneConstant.M_MAP) + val mapModule = SceneModule(isChecked, SceneConstant.M_MAP) sceneMap[SceneConstant.M_MAP] = mapModule CallerDevaToolsManager.updateModuleTAG(sceneMap) } - - - + //DEVA日志标签 + cbDevaLog.setOnCheckedChangeListener { _, isChecked -> + val devaModule = SceneModule(isChecked, SceneConstant.M_DEVA) + sceneMap[SceneConstant.M_DEVA] = devaModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } + //网络模块日志标签 + cbNetworkLog.setOnCheckedChangeListener { _, isChecked -> + val networkModule = SceneModule(isChecked, SceneConstant.M_NETWORK) + sceneMap[SceneConstant.M_NETWORK] = networkModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } + //ROUTE日志标签 + cbOldRouteLog.setOnCheckedChangeListener { _, isChecked -> + val oldRouteModule = SceneModule(isChecked, SceneConstant.M_OLD_ROUTE) + sceneMap[SceneConstant.M_OLD_ROUTE] = oldRouteModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } + //BUS日志标签 + cbBusLog.setOnCheckedChangeListener { _, isChecked -> + val busModule = SceneModule(isChecked, SceneConstant.M_BUS) + sceneMap[SceneConstant.M_BUS] = busModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } + //TAXI日志标签 + cbTaxiLog.setOnCheckedChangeListener { _, isChecked -> + val taxiModule = SceneModule(isChecked, SceneConstant.M_TAXI) + sceneMap[SceneConstant.M_TAXI] = taxiModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } + //TAXI_P日志标签 + cbTaxiPLog.setOnCheckedChangeListener { _, isChecked -> + val taxiPModule = SceneModule(isChecked, SceneConstant.M_TAXI_P) + sceneMap[SceneConstant.M_TAXI_P] = taxiPModule + CallerDevaToolsManager.updateModuleTAG(sceneMap) + } //开始停止抓取全量日志 tbLogCatch.isChecked = @@ -862,7 +996,7 @@ class DebugSettingView @JvmOverloads constructor( tbLogCatch.setOnCheckedChangeListener { _, isChecked -> if (isChecked) { var logTimeStr = etLogCatch.text?.toString() - if(logTimeStr.isNullOrEmpty()){ + if (logTimeStr.isNullOrEmpty()) { logTimeStr = "10" } val logCatchTime = logTimeStr.toInt() @@ -878,6 +1012,11 @@ class DebugSettingView @JvmOverloads constructor( } CallerDevaToolsListenerManager.registerDevaToolsLogCatchListener(TAG, object : IMoGoDevaToolsListener { + override fun onLogCatchStart() { + super.onLogCatchStart() + tbLogCatch.isChecked = true + } + override fun onLogCatchClose() { super.onLogCatchClose() tbLogCatch.isChecked = false @@ -896,7 +1035,7 @@ class DebugSettingView @JvmOverloads constructor( } override fun upgradeVersionUrls(urls: Map?) { - //todo 版本信息更新 + } }) @@ -923,16 +1062,73 @@ class DebugSettingView @JvmOverloads constructor( } } + val traceInfoMap = CallerDevaToolsManager.getTraceInfo() + val autopilot = traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT] + autopilot?.let{ + cbAdasAutoPilot.isChecked = it.record + } + val dataTrack = traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED] + dataTrack?.let { + cbAdasDataTrack.isChecked = it.record + } + val trajectory = traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY] + trajectory?.let { + cbAdasTrajectory.isChecked = it.record + } + val vehicle = traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE] + vehicle?.let { + cbAdasVehicle.isChecked = it.record + } + /** - * ADAS长链数据 + * ADAS自动驾驶链路 */ - cbAdasChainLog.setOnCheckedChangeListener { _, isChecked -> - val traceInfoMap = CallerDevaToolsManager.getTraceInfo() - val chainLogParam = traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA] - chainLogParam?.let { + cbAdasAutoPilot.setOnCheckedChangeListener { _, isChecked -> + val map = CallerDevaToolsManager.getTraceInfo() + val param = map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT] + param?.let { it.record = isChecked - traceInfoMap[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA] = chainLogParam - CallerDevaToolsManager.refreshTraceInfo(traceInfoMap) + map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_AUTOPILOT] = param + CallerDevaToolsManager.refreshTraceInfo(map) + } + } + + /** + * ADAS感知物体 + */ + cbAdasDataTrack.setOnCheckedChangeListener { _, isChecked -> + val map = CallerDevaToolsManager.getTraceInfo() + val param = map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED] + param?.let { + it.record = isChecked + map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_DATA_TRACKED] = param + CallerDevaToolsManager.refreshTraceInfo(map) + } + } + + /** + * ADAS前车引导线 + */ + cbAdasTrajectory.setOnCheckedChangeListener { _, isChecked -> + val map = CallerDevaToolsManager.getTraceInfo() + val param = map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY] + param?.let { + it.record = isChecked + map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_TRAJECTORY] = param + CallerDevaToolsManager.refreshTraceInfo(map) + } + } + + /** + * ADAS车辆地盘数据 + */ + cbAdasVehicle.setOnCheckedChangeListener { _, isChecked -> + val map = CallerDevaToolsManager.getTraceInfo() + val param = map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE] + param?.let { + it.record = isChecked + map[ChainConstant.CHAIN_LINK_LOG_WEB_SOCKET_VEHICLE] = param + CallerDevaToolsManager.refreshTraceInfo(map) } } } @@ -965,7 +1161,8 @@ class DebugSettingView @JvmOverloads constructor( AppConfigInfo.uniqueDeviceId = DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp()) } if (AppConfigInfo.widevineIDMd5.isNullOrEmpty()) { - AppConfigInfo.widevineIDMd5 = DeviceIdUtils.getWidevineIDWithMd5(AbsMogoApplication.getApp()) + AppConfigInfo.widevineIDMd5 = + DeviceIdUtils.getWidevineIDWithMd5(AbsMogoApplication.getApp()) } AppConfigInfo.mogoSN = MoGoAiCloudClient.getInstance().aiCloudClientConfig.sn AppConfigInfo.mogoToken = MoGoAiCloudClient.getInstance().aiCloudClientConfig.token @@ -1003,7 +1200,9 @@ class DebugSettingView @JvmOverloads constructor( tvObuAppInfo.text = "OBU程序版本:${CallerObuListenerManager.getObuStatusInfo().appInfo}" tvObuHliInfo.text = "OBU协议版本:${CallerObuListenerManager.getObuStatusInfo().hliInfo}" tvObuSdkVersion.text = "OBU-SDK版本:${AppConfigInfo.obuSdkVersion}" - tvAutopilotVersionInfo.text = "Autopilot版本:${AppConfigInfo.adasSdkVersion}" + tvAutopilotProtocolVersionInfo.text = + "Autopilot协议版本:${CallerAutoPilotManager.getProtocolVersion()}" + tvIpcProtocolVersionInfo.text = "工控机协议版本:${AppConfigInfo.protocolVersionNumber}" tvMoGoMapVersion.text = "HD-Map版本:${MogoMap.getInstance().mogoMap.mapVersion}" tvGitBranchInfo.text = "Git分支:${AppConfigInfo.workingBranchName}" tvGitHashInfo.text = "Git-Hash:${AppConfigInfo.workingBranchHash}" @@ -1029,82 +1228,94 @@ class DebugSettingView @JvmOverloads constructor( } }" - tvInternetEnvironment.text =Html.fromHtml("当前网络环境:${ - if(NetworkUtils.isConnected(context)){ - if(NetworkUtils.isConnectedMobile(context)){ - //已连接移动数据 - "移动数据" - }else{ - //WiFi - CommonUtils.getWifiName(context) + tvInternetEnvironment.text = Html.fromHtml( + "当前网络环境:${ + if (NetworkUtils.isConnected(context)) { + if (NetworkUtils.isConnectedMobile(context)) { + //已连接移动数据 + "移动数据" + } else { + //WiFi + CommonUtils.getWifiName(context) + } + + } else { + //未连接任何网络 + "异常" } - - }else{ - //未连接任何网络 - "异常" - } - }") + }" + ) - tvServerSocketStatus.text = Html.fromHtml("服务器Socket状态:${ - if(DebugConfig.isDownloadSnapshot()){ - "正常" - }else{ - "异常" - } - }") - - tvAutopilotConnectStatus.text =Html.fromHtml("Autopilot系统连接状态:${ - if(AppConfigInfo.isConnectAutopilot){ - "正常" - }else{ - "异常" - } - }") - - tvObuConnectStatus.text =Html.fromHtml("OBU连接状态:${ - if(AppConfigInfo.isConnectObu){ - "正常" - }else{ - "异常" - } - }") - - tvDriverServerStartupStatus.text = Html.fromHtml("${ - when { - AppConfigInfo.isDriver -> { - "司机端Server启动" + tvServerSocketStatus.text = Html.fromHtml( + "服务器Socket状态:${ + if (DebugConfig.isDownloadSnapshot()) { + "正常" + } else { + "异常" } - else -> { - "乘客端${ - when { - AppConfigInfo.serverIp.isNotEmpty() -> "(目标ip为:${AppConfigInfo.serverIp})" - else -> "" - } - }连接" - } - } - }是否正常:${ - if (AppConfigInfo.isConnectedNetty) { - "正常" - } else { - "异常" - } - }") + }" + ) - tvLocationEnabled.text =Html.fromHtml("定位服务开启状态:${ - if(DeviceUtils.isLocationEnabled()){ - "正常" - }else{ - "异常" - } - }") + tvAutopilotConnectStatus.text = Html.fromHtml( + "Autopilot系统连接状态:${ + if (AppConfigInfo.isConnectAutopilot) { + "正常" + } else { + "异常" + } + }" + ) + + tvObuConnectStatus.text = Html.fromHtml( + "OBU连接状态:${ + if (AppConfigInfo.isConnectObu) { + "正常" + } else { + "异常" + } + }" + ) + + tvDriverServerStartupStatus.text = Html.fromHtml( + "${ + when { + AppConfigInfo.isDriver -> { + "司机端Server启动" + } + else -> { + "乘客端${ + when { + AppConfigInfo.serverIp.isNotEmpty() -> "(目标ip为:${AppConfigInfo.serverIp})" + else -> "" + } + }连接" + } + } + }是否正常:${ + if (AppConfigInfo.isConnectedNetty) { + "正常" + } else { + "异常" + } + }" + ) + + tvLocationEnabled.text = Html.fromHtml( + "定位服务开启状态:${ + if (DeviceUtils.isLocationEnabled()) { + "正常" + } else { + "异常" + } + }" + ) tvAutopilotInfo.text = GsonUtils.toJson(mAutoPilotStatusInfo) tvCarInfo.text = - "GPS时间:${mGnssInfo?.satelliteTime}\n" + + "GPS时间:${(mGnssInfo?.satelliteTime?.times(1000))?.toLong()}\n" + "自车经纬度:\n${mGnssInfo?.longitude}\n${mGnssInfo?.latitude}\n" tvIdentifyInfo.text = @@ -1116,7 +1327,6 @@ class DebugSettingView @JvmOverloads constructor( "全局路径规划点个数:${mRouteInfoSize}" - // 用完之后重制为0,防止节点回掉突然没数据,导致页面显示还是之前的数据情况 mIdentifyDataSize = 0 mUnknownIdentifyDataSize = 0 @@ -1132,6 +1342,15 @@ class DebugSettingView @JvmOverloads constructor( AppConfigInfo.obuSdkVersion = obuStatusInfo.obuSdkVersion AppConfigInfo.isConnectObu = obuStatusInfo.obuStatus + + if (obuStatusInfo.obuStatus) { + obuConnectStatus = true + } + //OBU断开连接,提示异常 + if (obuConnectStatus && !obuStatusInfo.obuStatus) { + obuConnectStatus = false + toastMsg("OBU连接状态异常") + } } /** @@ -1139,14 +1358,21 @@ class DebugSettingView @JvmOverloads constructor( */ override fun onAutopilotStatusResponse(autoPilotStatusInfo: AutopilotStatusInfo) { mAutoPilotStatusInfo = autoPilotStatusInfo - - AppConfigInfo.adasSdkVersion = autoPilotStatusInfo.version AppConfigInfo.isConnectAutopilot = autoPilotStatusInfo.connectStatus - if(AppConfigInfo.isConnectAutopilot && (AppConfigInfo.plateNumber.isNullOrEmpty() || AppConfigInfo.iPCMacAddress.isNullOrEmpty())){ + if (AppConfigInfo.isConnectAutopilot && (AppConfigInfo.plateNumber.isNullOrEmpty() || AppConfigInfo.iPCMacAddress.isNullOrEmpty())) { //查询工控机基础配置信息 CallerAutoPilotManager.getCarConfig() } + + if (autoPilotStatusInfo.connectStatus) { + adasConnectStatus = true + } + //ADAS断开连接,提示异常 + if (adasConnectStatus && !autoPilotStatusInfo.connectStatus) { + adasConnectStatus = false + toastMsg("Autopilot系统连接状态异常") + } } override fun onAutopilotCarStateData(gnssInfo: MessagePad.GnssInfo?) { @@ -1181,8 +1407,9 @@ class DebugSettingView @JvmOverloads constructor( */ override fun onAutopilotCarConfig(carConfigResp: MessagePad.CarConfigResp) { carConfigResp?.let { - AppConfigInfo.plateNumber = it.plateNumber - AppConfigInfo.iPCMacAddress = it.macAddress + AppConfigInfo.plateNumber = it.plateNumber//车牌号 + AppConfigInfo.iPCMacAddress = it.macAddress//工控机MAC地址 + AppConfigInfo.protocolVersionNumber = it.protocolVersion.number//工控机协议版本 } } @@ -1191,27 +1418,30 @@ class DebugSettingView @JvmOverloads constructor( * 工控机异常回调 */ override fun onAutopilotGuardian(guardianInfo: MogoReportMsg.MogoReportMessage?) { - ThreadUtils.runOnUiThread{ + ThreadUtils.runOnUiThread { guardianInfo?.let { reportMsgLayout.visibility = View.VISIBLE tvReportSrc.text = "src:${it.src}" tvReportLevel.text = "level:${it.level}" tvReportMsg.text = "msg:${it.msg}" tvReportCode.text = "code:${it.code}" - var resultStr="result:" - for(result in it.resultList){ + var resultStr = "result:" + for (result in it.resultList) { resultStr = "$resultStr$result " } tvReportResult.text = resultStr - var actionStr="action:" - for(action in it.actionsList){ + var actionStr = "action:" + for (action in it.actionsList) { actionStr = "$actionStr$action " } tvReportActions.text = actionStr + tvReportSec.text = "sec:${it.timestamp.sec}" + tvReportNSec.text = "nsec:${it.timestamp.nsec}" - if("error".equals(it.level)){ + + if ("error" == it.level) { //字体为红色,吐司提示 tvReportSrc.setTextColor(Color.RED) tvReportLevel.setTextColor(Color.RED) @@ -1219,14 +1449,18 @@ class DebugSettingView @JvmOverloads constructor( tvReportCode.setTextColor(Color.RED) tvReportResult.setTextColor(Color.RED) tvReportActions.setTextColor(Color.RED) - ToastUtils.showShort(it.msg) - }else{ + tvReportSec.setTextColor(Color.RED) + tvReportNSec.setTextColor(Color.RED) + toastMsg(it.msg) + } else { tvReportSrc.setTextColor(Color.BLACK) tvReportLevel.setTextColor(Color.BLACK) tvReportMsg.setTextColor(Color.BLACK) tvReportCode.setTextColor(Color.BLACK) tvReportResult.setTextColor(Color.BLACK) tvReportActions.setTextColor(Color.BLACK) + tvReportSec.setTextColor(Color.BLACK) + tvReportNSec.setTextColor(Color.BLACK) } } } @@ -1243,4 +1477,14 @@ class DebugSettingView @JvmOverloads constructor( tvObuDelay.text = "obu时延:" + delayTime.toString() } + /** + * 吐司提示 + */ + private fun toastMsg(msg: String) { + //当处于美化(演示)模式、msg为空时不弹吐司 + if (!FunctionBuildConfig.isDemoMode && msg.isNotEmpty()) { + ToastUtils.showLong(msg) + } + } + } \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt index 99f5b52ca4..74d7a2f745 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/tools/AutoPilotAndCheckView.kt @@ -120,6 +120,7 @@ class AutoPilotAndCheckView @JvmOverloads constructor( } } updateSpeedSettingViews() + CallerAutoPilotManager.getCarConfig() // // 比如需要设置默认速度 // val speed = "30" // etInputSpeed.setText(speed) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/BrakeViewStatus.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/BrakeViewStatus.kt index a5c9f77a40..5324d03e61 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/BrakeViewStatus.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/BrakeViewStatus.kt @@ -39,6 +39,7 @@ class BrakeViewStatus @JvmOverloads constructor( fun setBrakeLight(brakeLight: Int) { if (brakeLight == 1) { //刹车灯亮 if (!isBrake) { + isBrake = true GlobalScope.launch(Dispatchers.Main) { var appearAnimation = AlphaAnimation(0f, 1f) appearAnimation.duration = 300 @@ -48,7 +49,6 @@ class BrakeViewStatus @JvmOverloads constructor( layout_brake.visibility = View.VISIBLE image_brake.visibility = View.VISIBLE tv_brake.visibility = View.VISIBLE - isBrake = true } } } else { //不踩刹车,就消失 @@ -56,7 +56,6 @@ class BrakeViewStatus @JvmOverloads constructor( isBrake = false GlobalScope.launch(Dispatchers.Main) { scaleImageAndTv() - var disappearAnimation = AlphaAnimation(1f, 0f) disappearAnimation.duration = 1200 layout_brake.startAnimation(disappearAnimation) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/TurnLightViewStatus.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/TurnLightViewStatus.kt index 222aad6344..394e463161 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/TurnLightViewStatus.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/turnlight/TurnLightViewStatus.kt @@ -2,6 +2,7 @@ package com.mogo.eagle.core.function.hmi.ui.turnlight import android.content.Context import android.util.AttributeSet +import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.animation.AlphaAnimation @@ -46,10 +47,10 @@ class TurnLightViewStatus @JvmOverloads constructor( */ fun setTurnLight(directionLight: Int) { if (!isShowNormalBg && (directionLight == 1 || directionLight == 2)) { + isShowNormalBg = true GlobalScope.launch(Dispatchers.Main) { showNormalAnimation() } - isShowNormalBg = true } if (directionLight == 1 || directionLight == 2) { @@ -62,41 +63,43 @@ class TurnLightViewStatus @JvmOverloads constructor( //根据左右进行显示和隐藏,实际要判断每个来的时间和频度 if (directionLight == 1) { //左转向 if (!isLeftLight) { + isLeftLight = true + isRightLight = false + isDisappare = false GlobalScope.launch(Dispatchers.Main) { left_select_image.visibility = View.VISIBLE right_select_image.visibility = View.GONE right_select_image.clearAnimation() setAnimation(left_select_image) } - isLeftLight = true - isRightLight = false - isDisappare = false + } } else if (directionLight == 2) { //右转向 if (!isRightLight) { + isRightLight = true + isLeftLight = false + isDisappare = false GlobalScope.launch(Dispatchers.Main) { left_select_image.visibility = View.GONE right_select_image.visibility = View.VISIBLE left_select_image.clearAnimation() setAnimation(right_select_image) } - isRightLight = true - isLeftLight = false - isDisappare = false } } else { //消失 - CallerVisualAngleManager.changeVisualAngle(Default()) - isVisualAngleChanged = false + if (isVisualAngleChanged) { + isVisualAngleChanged = false + CallerVisualAngleManager.changeVisualAngle(Default()) + } if (!isDisappare) { - GlobalScope.launch(Dispatchers.Main) { - animationDisappear() - } isDisappare = true isShowNormalBg = false isLeftLight = false isRightLight = false - isDisappare = false + GlobalScope.launch(Dispatchers.Main) { + animationDisappear() + } } } } diff --git a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SpeedPanelView.kt b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SpeedPanelView.kt index 59af18a473..72374b2774 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SpeedPanelView.kt +++ b/core/function-impl/mogo-core-function-hmi/src/main/java/com/mogo/eagle/core/function/hmi/ui/widget/SpeedPanelView.kt @@ -65,7 +65,7 @@ class SpeedPanelView @JvmOverloads constructor( override fun run() { if (mLatLng != null) { mSpeedLimmit = MogoMapUIController.getInstance() - .getSpeedLimmit(mLatLng!!.longitude, mLatLng!!.latitude, mLatLng!!.bearing) + .getLimitSpeed(mLatLng!!.longitude, mLatLng!!.latitude, mLatLng!!.bearing) UiThreadHandler.post { val speed = (mLatLng!!.speed * 3.6f).toInt() mSpeedChartView.setArcColor(Color.parseColor(if (speed > mSpeedLimmit) "#DB3137" else "#3E77F6")) diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/setting_toggle_button_background.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/setting_toggle_button_background.xml new file mode 100644 index 0000000000..f977e253e9 --- /dev/null +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/drawable/setting_toggle_button_background.xml @@ -0,0 +1,15 @@ + + + + + + + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml index 33fb48ffc0..4cb2702ebb 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/fragment_hmi.xml @@ -53,6 +53,18 @@ app:layout_constraintTop_toBottomOf="@+id/viewSpeedChart" app:layout_goneMarginStart="@dimen/module_mogo_autopilot_status_margin_left" /> + + + - - - - - - - - - + + app:layout_goneMarginStart="50px" /> + app:layout_constraintCircle="@id/ivToolsIcon" + app:layout_constraintCircleAngle="45" + app:layout_constraintCircleRadius="60px" + tools:ignore="MissingConstraints" /> - - @@ -159,23 +151,23 @@ android:id="@+id/turnLightView" android:layout_width="wrap_content" android:layout_height="wrap_content" - app:layout_constraintTop_toTopOf="parent" + android:layout_marginTop="42px" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - android:layout_marginTop="42px" /> + app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toTopOf="parent" /> - - - + + + \ No newline at end of file diff --git a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml index 512efa5bde..b0c4f8f304 100644 --- a/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml +++ b/core/function-impl/mogo-core-function-hmi/src/main/res/layout/view_debug_setting.xml @@ -11,9 +11,8 @@ android:id="@+id/reportMsgLayout" android:layout_width="match_parent" android:layout_height="@dimen/dp_350" - app:layout_constraintBottom_toBottomOf="parent" android:visibility="gone" - > + app:layout_constraintBottom_toBottomOf="parent"> + android:layout_height="6dp" + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> - + android:background="#F0F0F0" /> @@ -141,9 +122,8 @@ android:id="@+id/svLayout" android:layout_width="match_parent" android:layout_height="0dp" - app:layout_constraintTop_toTopOf="parent" app:layout_constraintBottom_toTopOf="@id/reportMsgLayout" - > + app:layout_constraintTop_toTopOf="parent"> + android:textOff="设备绑定关系" + android:textOn="设备绑定关系" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> @@ -240,13 +209,12 @@ android:id="@+id/tbAppVersionInfo" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textOff="版本信息" - android:textOn="版本信息" + android:layout_margin="@dimen/dp_10" android:background="@drawable/radio_button_normal_background_right" android:drawableEnd="@drawable/icon_right" android:padding="@dimen/dp_20" - android:layout_margin="@dimen/dp_10" - /> + android:textOff="版本信息" + android:textOn="版本信息" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + + + + + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> @@ -404,13 +361,12 @@ android:id="@+id/tbStatusCenter" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textOff="状态中心" - android:textOn="状态中心" + android:layout_margin="@dimen/dp_10" android:background="@drawable/radio_button_normal_background_right" android:drawableEnd="@drawable/icon_right" android:padding="@dimen/dp_20" - android:layout_margin="@dimen/dp_10" - /> + android:textOff="状态中心" + android:textOn="状态中心" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + android:background="#F0F0F0" /> @@ -516,33 +458,99 @@ android:id="@+id/tbControlCenter" android:layout_width="match_parent" android:layout_height="wrap_content" - android:textOff="控制中心" - android:textOn="控制中心" + android:layout_margin="@dimen/dp_10" android:background="@drawable/radio_button_normal_background_right" android:drawableEnd="@drawable/icon_right" android:padding="@dimen/dp_20" - android:layout_margin="@dimen/dp_10" - /> + android:textOff="控制中心" + android:textOn="控制中心" /> + android:visibility="gone"> + + + + + +