Merge branch 'test_MogoAP_eagle-220_211207_8.0.15.2'
This commit is contained in:
@@ -61,8 +61,6 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
IMoGoAutopilotStatusListener, IMoGoAutopilotCarStateListener, IMoGoMapLocationListener {
|
||||
|
||||
private val TAG = "DebugSettingView"
|
||||
// 初始化App 配置信息
|
||||
val mAppConfigInfo = AppConfigInfo()
|
||||
|
||||
init {
|
||||
LayoutInflater.from(context).inflate(R.layout.view_debug_setting, this, true)
|
||||
@@ -323,20 +321,21 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
* 绘制应用基本
|
||||
*/
|
||||
private fun drawAppInfo() {
|
||||
|
||||
mAppConfigInfo.appName = AppUtils.getAppName()
|
||||
mAppConfigInfo.appVersionCode = AppUtils.getAppVersionCode()
|
||||
mAppConfigInfo.appVersionName = AppUtils.getAppVersionName()
|
||||
mAppConfigInfo.appPackageName = AppUtils.getAppPackageName()
|
||||
mAppConfigInfo.uniqueDeviceId = DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp())
|
||||
mAppConfigInfo.mogoSN = MoGoAiCloudClient.getInstance().aiCloudClientConfig.sn
|
||||
mAppConfigInfo.mogoToken = MoGoAiCloudClient.getInstance().aiCloudClientConfig.token
|
||||
mAppConfigInfo.mapSdkVersion = MogoMap.getInstance().mogoMap.mapVersion
|
||||
mAppConfigInfo.isConnectNet = NetworkUtils.isConnected(context)
|
||||
mAppConfigInfo.isConnectSocket = DebugConfig.isDownloadSnapshot()
|
||||
AppConfigInfo.appName = AppUtils.getAppName()
|
||||
AppConfigInfo.appName = AppUtils.getAppName()
|
||||
AppConfigInfo.appVersionCode = AppUtils.getAppVersionCode()
|
||||
AppConfigInfo.appVersionName = AppUtils.getAppVersionName()
|
||||
AppConfigInfo.appPackageName = AppUtils.getAppPackageName()
|
||||
AppConfigInfo.uniqueDeviceId = DeviceIdUtils.getDeviceId(AbsMogoApplication.getApp())
|
||||
AppConfigInfo.mogoSN = MoGoAiCloudClient.getInstance().aiCloudClientConfig.sn
|
||||
AppConfigInfo.mogoToken = MoGoAiCloudClient.getInstance().aiCloudClientConfig.token
|
||||
AppConfigInfo.netMode = DebugConfig.getNetMode()
|
||||
AppConfigInfo.mapSdkVersion = MogoMap.getInstance().mogoMap.mapVersion
|
||||
AppConfigInfo.isConnectNet = NetworkUtils.isConnected(context)
|
||||
AppConfigInfo.isConnectSocket = DebugConfig.isDownloadSnapshot()
|
||||
|
||||
// 将数据绘制
|
||||
tvAppInfo.text = mAppConfigInfo.toString()
|
||||
tvAppInfo.text = AppConfigInfo.toString()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -346,8 +345,8 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
UiThreadHandler.post {
|
||||
tvObuInfo.text = GsonUtils.toJson(obuStatusInfo)
|
||||
|
||||
mAppConfigInfo.obuSdkVersion = obuStatusInfo.obuSdkVersion
|
||||
mAppConfigInfo.isConnectObu = obuStatusInfo.obuStatus
|
||||
AppConfigInfo.obuSdkVersion = obuStatusInfo.obuSdkVersion
|
||||
AppConfigInfo.isConnectObu = obuStatusInfo.obuStatus
|
||||
drawAppInfo()
|
||||
}
|
||||
}
|
||||
@@ -360,8 +359,8 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
tvAutopilotInfo.post {
|
||||
tvAutopilotInfo.text = GsonUtils.toJson(autoPilotStatusInfo)
|
||||
|
||||
mAppConfigInfo.adasSdkVersion = autoPilotStatusInfo.version
|
||||
mAppConfigInfo.isConnectAutopilot = autoPilotStatusInfo.connectStatus
|
||||
AppConfigInfo.adasSdkVersion = autoPilotStatusInfo.version
|
||||
AppConfigInfo.isConnectAutopilot = autoPilotStatusInfo.connectStatus
|
||||
drawAppInfo()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,27 @@
|
||||
android:textSize="@dimen/dp_34"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="PAD系统时间:"
|
||||
android:textColor="#000"
|
||||
android:textSize="@dimen/dp_36" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/tvNowTime"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:format12Hour="yyyy年MM月dd日 EEEE aa HH:mm:ss"
|
||||
android:format24Hour="yyyy年MM月dd日 EEEE aa HH:mm:ss"
|
||||
android:textColor="#000"
|
||||
android:textSize="@dimen/dp_36" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvAppInfo"
|
||||
android:layout_width="match_parent"
|
||||
|
||||
Reference in New Issue
Block a user