[6.4.0][启自驾指引][埋点] 添加来源字段

This commit is contained in:
renwj
2024-05-06 16:50:28 +08:00
parent 66036e8206
commit 02a2e411b9
12 changed files with 28 additions and 27 deletions

View File

@@ -553,8 +553,8 @@ class DevaToolsProvider : IDevaToolsProvider, IAppStateListener {
group.addView(child, ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT))
}
override fun getExceptionStatusBeforeLaunchAutopilot(): Int {
return StatusManager.getExceptionStatusBeforeLaunchAutopilot()
override fun getExceptionStatusBeforeLaunchAutopilot(source: Int): Int {
return StatusManager.getExceptionStatusBeforeLaunchAutopilot(source)
}
override fun registerRouteDownloadListener(tag: String, block: (state: Int) -> Unit) {

View File

@@ -248,7 +248,7 @@ internal class MoFangCommandExecutor {
if (AppIdentityModeUtils.isSweeper(FunctionBuildConfig.appIdentityMode)) {
CallerAutoPilotControlManager.startAutoPilotByMoFang(parameters)
} else {
if (CallerAutoPilotControlManager.isCanStartAutopilot(true)) {
if (CallerAutoPilotControlManager.isCanStartAutopilot(true, -1)) {
CallerAutoPilotControlManager.startAutoPilot(parameters)
}
}

View File

@@ -184,7 +184,7 @@ object StatusManager {
listeners.remove(tag)
}
fun getExceptionStatusBeforeLaunchAutopilot(): Int {
fun getExceptionStatusBeforeLaunchAutopilot(source: Int): Int {
if (!hasInit) {
return 0
}
@@ -202,6 +202,7 @@ object StatusManager {
"vehicle_start_autopilot_state_check",
HashMap<String, Any>().also { itx ->
itx["time"] = time
itx["src"] = source
itx["desc"] = ll.joinToString(",") { item ->
when (item) {
is SteerStatus -> "方向盘"