This commit is contained in:
zhongchao
2022-03-14 14:11:29 +08:00
parent 3ffcb4bd27
commit d35700cb08
32 changed files with 332 additions and 1874 deletions

View File

@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

View File

@@ -50,7 +50,6 @@ public class AdasManager implements IAdasNetCommApi {
}
public void setCarConfig(MessagePad.CarConfigResp carConfig) {
this.carConfig = carConfig;
}
@@ -127,7 +126,6 @@ public class AdasManager implements IAdasNetCommApi {
}
}
/**
* 连接工控机
*/

View File

@@ -25,34 +25,34 @@ public class CupidLogUtils {
if (!mIsEnableLog) {
return;
}
Log.i(tag, msg);
Log.i("[tag=" + tag + "]", "[data=" + msg + "]");
}
public static void w(String tag, String msg) {
if (!mIsEnableLog) {
return;
}
Log.w(tag, msg);
Log.w("[tag=" + tag + "]", "[data=" + msg + "]");
}
public static void e(String tag, String msg) {
if (!mIsEnableLog) {
return;
}
Log.e(tag, msg);
Log.e("[tag=" + tag + "]", "[data=" + msg + "]");
}
public static void e(String msg) {
if (!mIsEnableLog) {
return;
}
Log.e("elita_lib", msg);
Log.e("[tag=elita_lib]", "[data=" + msg + "]");
}
public static void w(String msg) {
if (!mIsEnableLog) {
return;
}
Log.e("elita_lib", msg);
Log.e("[tag=elita_lib]", "[data=" + msg + "]");
}
}

View File

@@ -1,63 +0,0 @@
package com.zhidao.support.adas.high.common;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.Executor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
public class HandlerThreadManager {
private volatile static HandlerThread sBackgroundHandlerThread;
private volatile static HandlerThread sIOHandlerThread;
private volatile static Handler sBackgroundHandler;
private volatile static Handler sMainHandler;
public static Handler getBackgroundHandler() {
if (sBackgroundHandler == null) {
sBackgroundHandler = new Handler(getBackgroundHandlerThread().getLooper());
}
return sBackgroundHandler;
}
public static HandlerThread getBackgroundHandlerThread() {
synchronized (HandlerThreadManager.class) {
if (sBackgroundHandlerThread == null) {
sBackgroundHandlerThread = new HandlerThread("autopilot_bgd_thread");
sBackgroundHandlerThread.start();
}
}
return sBackgroundHandlerThread;
}
private static HandlerThread getVideoHandlerThread() {
synchronized (HandlerThreadManager.class) {
if (sIOHandlerThread == null) {
sIOHandlerThread = new HandlerThread("autopilot_video_thread");
sIOHandlerThread.start();
}
}
return sIOHandlerThread;
}
public static Handler getMainHandler() {
if (sMainHandler == null) {
sMainHandler = new Handler(Looper.getMainLooper());
}
return sMainHandler;
}
public static final Executor EXECUTOR = new ThreadPoolExecutor(2, 5, 60L, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(30),
new ThreadFactory() {
private final AtomicInteger mCount = new AtomicInteger(1);
public Thread newThread(Runnable r) {
return new Thread(r, "autopilot-thread-pool" + mCount.getAndIncrement());
}
});
}

View File

@@ -22,7 +22,6 @@ public class ReportMessage extends MyAbstractMessageHandler {
if (adasListener != null) {
adasListener.onReportMessage(header, mogoReportMessage);
}
// CupidLogUtils.e("监控事件报告--->" + mogoReportMessage.toString());
}