去掉部分日志
This commit is contained in:
@@ -126,7 +126,6 @@ public class AutoNaviReceiver extends BroadcastReceiver {
|
||||
if ( state == -1 ) {
|
||||
return;
|
||||
}
|
||||
Logger.d( TAG, "map status: state = %d", state );
|
||||
switch ( state ) {
|
||||
case MapStateValue.START_NAVI:
|
||||
case MapStateValue.START_EMULATOR_NAVI:
|
||||
|
||||
@@ -45,7 +45,6 @@ import com.mogo.module.service.launchercard.LauncherCardRefresher;
|
||||
import com.mogo.module.service.marker.MapMarkerManager;
|
||||
import com.mogo.module.service.network.RefreshCallback;
|
||||
import com.mogo.module.service.network.RefreshModel;
|
||||
import com.mogo.module.service.ttsConfig.TtsConfigModleData;
|
||||
import com.mogo.module.service.network.bean.HomeCompanyDistanceForPushData;
|
||||
import com.mogo.module.service.network.bean.HomeCompanyDistanceForPushResponse;
|
||||
import com.mogo.module.service.onlinecar.panel.NavigationTargetInfo;
|
||||
@@ -54,6 +53,7 @@ import com.mogo.module.service.refresh.AutoRefreshStrategy;
|
||||
import com.mogo.module.service.refresh.CustomRefreshStrategy;
|
||||
import com.mogo.module.service.refresh.RefreshObject;
|
||||
import com.mogo.module.service.strategy.CarIconDisplayStrategy;
|
||||
import com.mogo.module.service.ttsConfig.TtsConfigModleData;
|
||||
import com.mogo.service.adas.IMogoADASController;
|
||||
import com.mogo.service.fragmentmanager.FragmentStackTransactionListener;
|
||||
import com.mogo.service.fragmentmanager.IMogoFragmentManager;
|
||||
@@ -76,7 +76,6 @@ import com.zhidao.carchattingprovider.CallChattingProviderConstant;
|
||||
import com.zhidao.carchattingprovider.ICallChatResponse;
|
||||
import com.zhidao.carchattingprovider.ICallProviderResponse;
|
||||
import com.zhidao.carchattingprovider.ICarsChattingProvider;
|
||||
import com.zhidao.smartv2x.common.utils.LoggerUtils;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.json.JSONObject;
|
||||
@@ -400,11 +399,9 @@ public class MogoServices implements IMogoMapListener,
|
||||
* 关闭所有模块的控制面板
|
||||
*/
|
||||
private void closeAllPanel() {
|
||||
LoggerUtils.log("zy=======stop");
|
||||
mCallProviderResponse = new ICallChatResponse() {
|
||||
@Override
|
||||
public void hideUserWindowError(@NotNull String errorMsg) {
|
||||
LoggerUtils.log("zy=======errorMsg:" + errorMsg);
|
||||
}
|
||||
};
|
||||
MogoApisHandler.getInstance().getApis().getShareManager().dismissShareDialog();
|
||||
@@ -566,7 +563,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);
|
||||
try {
|
||||
context.getApplicationContext().registerReceiver(mAIAssistReceiver, filter);
|
||||
Logger.i(TAG, "register voice receiver.");
|
||||
} catch (Exception e) {
|
||||
Logger.e(TAG, e, "error. ");
|
||||
}
|
||||
@@ -585,7 +581,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
float width = getMapCameraFactWidth();
|
||||
float height = getMapCameraFactHeight();
|
||||
mIsVertical = width < height;
|
||||
Logger.i(TAG, "map status is vertical : " + mIsVertical);
|
||||
mIsMapStatusOk = true;
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
@@ -620,7 +615,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
case MotionEvent.ACTION_DOWN:
|
||||
if (mLastZoomLevel == 0) {
|
||||
mLastZoomLevel = mUiController.getZoomLevel();
|
||||
Logger.i(TAG, "初始化缩放级别 为:%f", mLastZoomLevel);
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_UP:
|
||||
@@ -668,7 +662,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
if (mStatusManager.isUserInteracted()) {
|
||||
mLastCustomRefreshCenterLocation = latLng;
|
||||
mLastZoomLevel = zoom;
|
||||
Logger.d(TAG, "user interacted");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -676,7 +669,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
if (mStatusManager.isV2XShow()) {
|
||||
mLastCustomRefreshCenterLocation = latLng;
|
||||
mLastZoomLevel = zoom;
|
||||
Logger.d(TAG, "user v2x show");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -684,12 +676,9 @@ public class MogoServices implements IMogoMapListener,
|
||||
if (mStatusManager.isSearchUIShow()) {
|
||||
mLastCustomRefreshCenterLocation = latLng;
|
||||
mLastZoomLevel = zoom;
|
||||
Logger.d(TAG, "user search Ui show");
|
||||
return;
|
||||
}
|
||||
|
||||
Logger.d(TAG, "mLastZoomLevel = %s, zoom = %s", mLastZoomLevel, zoom);
|
||||
|
||||
// 手动刷新触发
|
||||
if (mLastZoomLevel - zoom > mCustomRefreshStrategy.getZoomOutLevel()) {
|
||||
// 缩放级别缩小
|
||||
@@ -704,7 +693,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
msg.what = ServiceConst.MSG_MAP_CHANGED;
|
||||
msg.obj = new RefreshObject(mCustomRefreshCallback, getQueryRadius(), latLng, 0);
|
||||
mThreadHandler.sendMessage(msg);
|
||||
Logger.d(TAG, "平移触发");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -738,7 +726,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
return false;
|
||||
}
|
||||
float distance = Utils.calculateLineDistance(latLng, mLastCustomRefreshCenterLocation);
|
||||
Logger.d(TAG, "move distance = %s, factor = %s", distance, (factor / 2));
|
||||
return distance > (factor / 2);
|
||||
} catch (Exception e) {
|
||||
Logger.e(TAG, e, "warming. ");
|
||||
@@ -838,7 +825,6 @@ public class MogoServices implements IMogoMapListener,
|
||||
if (mStatusManager.isSearchUIShow()) {
|
||||
return;
|
||||
}
|
||||
Logger.d(TAG, mAutoRefreshCallback == callback ? "触发自动刷新" : "触发手动刷新");
|
||||
int amount = 20;
|
||||
|
||||
Message msg = Message.obtain();
|
||||
@@ -886,16 +872,13 @@ public class MogoServices implements IMogoMapListener,
|
||||
delay = mRefreshRemainingTime;
|
||||
}
|
||||
if (time == 0) {
|
||||
Logger.d(TAG, "立即刷新");
|
||||
invokeAutoRefresh();
|
||||
} else {
|
||||
mHandler.sendEmptyMessageDelayed(ServiceConst.MSG_TYPE_REFRESH_DECREASE, delay);
|
||||
}
|
||||
Logger.i(TAG, "下次刷新时间:%sms后", mRefreshRemainingTime);
|
||||
}
|
||||
|
||||
public void refreshStrategy() {
|
||||
Logger.d(TAG, "move to center and refresh data.");
|
||||
mStatusManager.setUserInteractionStatus(ServiceConst.TYPE, true, false);
|
||||
mUiController.recoverLockMode();// 锁车代替移到中心点
|
||||
restartAutoRefreshAtTime(0);
|
||||
|
||||
@@ -7,20 +7,15 @@ import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
|
||||
import com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilder;
|
||||
import com.facebook.drawee.interfaces.DraweeController;
|
||||
import com.mogo.map.marker.IMogoMarker;
|
||||
import com.mogo.map.marker.MogoMarkerOptions;
|
||||
import com.mogo.module.common.entity.MarkerShowEntity;
|
||||
import com.mogo.module.common.marker.PoiWrapper;
|
||||
import com.mogo.module.service.MarkerServiceHandler;
|
||||
import com.mogo.module.service.R;
|
||||
import com.mogo.service.imageloader.IMogoImageLoaderListener;
|
||||
@@ -108,7 +103,6 @@ public abstract class MapMarkerBaseView extends LinearLayout implements IMarkerV
|
||||
|
||||
@Override
|
||||
public void onCompleted(Bitmap bitmap) {
|
||||
Logger.d(TAG, "loadImageWithMarker loaded.");
|
||||
// 使用view渲染地图marker,刷新纹理的时候,需要重新用view生成纹理,然后在设置
|
||||
if (mMarker != null) {
|
||||
mMarker.setIcon(fromView(MapMarkerBaseView.this));
|
||||
@@ -117,7 +111,6 @@ public abstract class MapMarkerBaseView extends LinearLayout implements IMarkerV
|
||||
|
||||
@Override
|
||||
public void onFailure(Exception e) {
|
||||
Logger.e(TAG, "loadImageWithMarker onFailure.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -36,12 +36,10 @@ import com.mogo.module.service.utils.ViewUtils;
|
||||
import com.mogo.service.adas.IMogoADASControlStatusChangedListener;
|
||||
import com.mogo.service.connection.IMogoOnMessageListener;
|
||||
import com.mogo.service.module.IMogoBizActionDoneListener;
|
||||
import com.mogo.utils.AppUtils;
|
||||
import com.mogo.utils.ResourcesHelper;
|
||||
import com.mogo.utils.ThreadPoolService;
|
||||
import com.mogo.utils.UiThreadHandler;
|
||||
import com.mogo.utils.WorkThreadHandler;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
import com.zhidao.carchattingprovider.ICallChatResponse;
|
||||
|
||||
import org.json.JSONArray;
|
||||
@@ -105,8 +103,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
return;
|
||||
}
|
||||
|
||||
Logger.d( TAG, "初始化" );
|
||||
|
||||
mContext = context.getApplicationContext();
|
||||
mRefreshModel = new RefreshModel( mContext );
|
||||
CloudPoiManager.getInstance().updateFromConfig(context);
|
||||
@@ -140,7 +136,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
*/
|
||||
@Override
|
||||
public boolean onMarkerClicked( IMogoMarker marker ) {
|
||||
Logger.d( TAG, "onMarkerClicked 点击了大而全中的Marker:" + marker );
|
||||
try {
|
||||
boolean result = switchMarkerOpenStatus( marker );
|
||||
if ( !result ) {
|
||||
@@ -181,7 +176,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
if ( mLastCheckMarker != null ) {
|
||||
// 判断点击的是否是同一个
|
||||
if ( marker.equals( mLastCheckMarker ) ) {
|
||||
Logger.d( TAG, "onMarkerClicked 与上一次点击的Marker一样,不做处理:" + marker );
|
||||
return false;
|
||||
}
|
||||
// 将上次选中 Marker 设置为未选中状态
|
||||
@@ -235,7 +229,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
MarkerOnlineCar onlineCar = ( MarkerOnlineCar ) ( ( MarkerShowEntity ) marker.getObject() ).getBindObj();
|
||||
CallChatApi.getInstance().showUserWindow( mContext, onlineCar );
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "openMarker" );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -406,7 +399,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
}
|
||||
int size = getAppropriateSize( maxAmount, exploreWayList );
|
||||
Map< String, IMogoMarker > existCarMap = purgeMarkerData( exploreWayList, ModuleNames.CARD_TYPE_ROAD_CONDITION );
|
||||
Logger.i( TAG, "existCarMap: size = %d", existCarMap.size() );
|
||||
for ( int i = 0; i < size; i++ ) {
|
||||
MarkerExploreWay markerExploreWay = exploreWayList.get( i );
|
||||
if ( !markerExploreWay.getCanLive() ) {
|
||||
@@ -449,7 +441,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
marker.startScaleAnimationWithAlpha( 0, 1.2f, 0, 1.2f, 0f, 1f, 300, new LinearInterpolator(), new OnMarkerAnimationListener() {
|
||||
@Override
|
||||
public void onAnimStart() {
|
||||
Logger.d( TAG, " onAnimStart ---1----> " );
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -641,7 +632,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
return;
|
||||
}
|
||||
try {
|
||||
Logger.d( TAG, "dispatch data to %s", biz );
|
||||
MarkerServiceHandler.getDataManager().syncData( biz, object );
|
||||
} catch ( Exception e ) {
|
||||
e.printStackTrace();
|
||||
@@ -689,7 +679,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
try {
|
||||
return drawMapMarkerImpl( markerShowEntity, zIndex );
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "drawMapMarker" );
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -730,7 +719,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
if ( ignoreDrawRequest() ) {
|
||||
return;
|
||||
}
|
||||
Logger.d( TAG, "接收到了地图大而全数据" );
|
||||
runOnTargetThread( () -> {
|
||||
drawMapMarker( response );
|
||||
} );
|
||||
@@ -925,7 +913,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
if ( points.size() >= 1 ) {
|
||||
iMogoMarker.startSmooth( points, SMOOTH_DURATION );
|
||||
} else {
|
||||
Logger.d( TAG, "静止小车,但是有相同的连续坐标" );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -947,7 +934,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
double lat2 = Double.valueOf( end.getCoordinates().get( 1 ) + "" );
|
||||
double lng2 = Double.valueOf( end.getCoordinates().get( 0 ) + "" );
|
||||
if ( Utils.calculateLineDistance( new MogoLatLng( lat1, lng1 ), new MogoLatLng( lat2, lng2 ) ) >= 500 ) {
|
||||
Logger.d( TAG, "filter point" );
|
||||
return true;
|
||||
}
|
||||
} catch ( Exception e ) {
|
||||
@@ -975,7 +961,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
|
||||
@Override
|
||||
public void onBizActionDone( String biz, int position, Object data ) {
|
||||
Logger.d( TAG, "biz = %s, position = %s", biz, position );
|
||||
if ( data instanceof MarkerShowEntity && ( ( MarkerShowEntity ) data ).getMarker() != null ) {
|
||||
switchMarkerOpenStatus( ( ( MarkerShowEntity ) data ).getMarker() );
|
||||
} else {
|
||||
@@ -986,7 +971,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
IMogoMarker marker = markers.get( position );
|
||||
switchMarkerOpenStatus( marker );
|
||||
} catch ( Exception e ) {
|
||||
Logger.e( TAG, e, "occur error." );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,11 +72,9 @@ public class MogoReceiver extends BroadcastReceiver {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
final String action = intent.getAction();
|
||||
Logger.i(TAG, "receive intent action: %s", action);
|
||||
if (TextUtils.equals(VOICE_ACTION, action)) {
|
||||
String cmd = intent.getStringExtra(PARAM_COMMAND);
|
||||
if (!TextUtils.isEmpty(cmd)) {
|
||||
Logger.d( TAG, "receive command: %s", cmd );
|
||||
mMogoIntentManager.invoke(cmd, intent);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -89,7 +89,6 @@ class AutoNaviIntentHandler implements IMogoVoiceCmdCallBack {
|
||||
break;
|
||||
case 10019:
|
||||
int extraState = intent.getIntExtra( "EXTRA_STATE", -1 );
|
||||
Logger.d( TAG, "EXTRA_STATE = " + extraState );
|
||||
switch ( extraState ) {
|
||||
case 3: // 前台
|
||||
syncAutoNaviNavingStatus( context );
|
||||
@@ -257,7 +256,6 @@ class AutoNaviIntentHandler implements IMogoVoiceCmdCallBack {
|
||||
}
|
||||
|
||||
public void syncAutoNaviForgroundStatus( Context context ) {
|
||||
Logger.d( TAG, "查询高德前后台状态" );
|
||||
Intent intent = new Intent();
|
||||
intent.setAction( "AUTONAVI_STANDARD_BROADCAST_RECV" );
|
||||
intent.putExtra( "KEY_TYPE", 12404 );
|
||||
@@ -266,7 +264,6 @@ class AutoNaviIntentHandler implements IMogoVoiceCmdCallBack {
|
||||
}
|
||||
|
||||
public void syncAutoNaviNavingStatus( Context context ) {
|
||||
Logger.d( TAG, "查询高德导航状态" );
|
||||
Intent intent = new Intent();
|
||||
intent.setAction( "AUTONAVI_STANDARD_BROADCAST_RECV" );
|
||||
intent.putExtra( "KEY_TYPE", 12404 );
|
||||
|
||||
@@ -107,7 +107,6 @@ public class MogoADASController implements IMogoADASController {
|
||||
mAutopolitDataCallBack = new IAutopolitDataCallBack() {
|
||||
@Override
|
||||
public void sendMsg( String msg ) {
|
||||
Logger.d( TAG, "收到adas数据回调: " + msg );
|
||||
for ( IMogoAdasDataCallback callback : adasDataCallbackList ) {
|
||||
try {
|
||||
callback.onAdasDataCallback( msg );
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.mogo.service.map.IMogoMapService;
|
||||
import com.mogo.service.network.IMogoNetwork;
|
||||
import com.mogo.service.statusmanager.IMogoMsgCenter;
|
||||
import com.mogo.service.statusmanager.IMogoStatusManager;
|
||||
import com.mogo.utils.logger.Logger;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
@@ -23,6 +24,8 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
*/
|
||||
public class SingletonsHolder {
|
||||
|
||||
private static final String TAG = "SingletonsHolder";
|
||||
|
||||
private static final Map< Class, Object > sSingletons = new ConcurrentHashMap<>();
|
||||
|
||||
static {
|
||||
@@ -39,7 +42,7 @@ public class SingletonsHolder {
|
||||
|
||||
public static < T extends IProvider > void registerApi( Class< ? extends IProvider > api, T impl ) throws Exception {
|
||||
if ( api == null || impl == null ) {
|
||||
throw new Exception( "IProvider 接口类型和实例不能为 null" );
|
||||
return;
|
||||
}
|
||||
sSingletons.put( api, impl );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user