update mogoaiCloudsdk version and add log check logic

This commit is contained in:
zhongchao
2022-02-28 15:18:19 +08:00
parent c0451f5f7a
commit f52b441f3d
9 changed files with 16 additions and 55 deletions

View File

@@ -211,7 +211,6 @@ public class AdasRecognizedResultDrawer extends BaseDrawer {
return;
}
Iterator<TrafficData> iterator = mLastPositions.values().iterator();
Log.d("EmArrow", "removeUselessLastRecord size : " + mLastPositions.size());
while (iterator.hasNext()) {
TrafficData result = iterator.next();
long internal = result.getSatelliteTime() - getCurSatelliteTime();

View File

@@ -253,7 +253,6 @@ public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClic
return;
}
Iterator<SocketDownData.CloudRoadDataProto> iterator = mLastPositions.values().iterator();
Log.d("EmArrow", "removeUselessLastRecord size : " + mLastPositions.size());
while (iterator.hasNext()) {
SocketDownData.CloudRoadDataProto result = iterator.next();
long internal = Long.parseLong(adasControllerApi.getSatelliteTime()) - result.getSatelliteTime();

View File

@@ -1,35 +0,0 @@
package com.mogo.module.common.kt
import androidx.annotation.RestrictTo
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.launch
/**
* @author congtaowang
* @since 2021/3/3
*
* 描述
*/
object ScopeManager {
private var mScope = MainScope()
private var mAdasScope = MainScope()
private var mThreadScope: RestrictTo.Scope? = null
fun mainScope(runnable: Runnable?) {
mScope.launch(Dispatchers.Default) {
runnable?.apply {
run()
}
}
}
fun adasScope(runnable: Runnable?) {
mAdasScope.launch(Dispatchers.Default) {
runnable?.apply {
run()
}
}
}
}