From 658cfcec20ca506bc68584efb9481e63156becf3 Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 27 Jan 2021 10:23:48 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/gradle.xml | 1 - .../main/java/com/mogo/cloud/RealTimeActivity.java | 13 +++---------- .../java/com/mogo/cloud/SPIRealTimeTestClass.java | 10 ++++++++++ app/src/main/res/layout/activity_real_time.xml | 2 +- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 7abdbfc..54349e6 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -23,7 +23,6 @@ diff --git a/app/src/main/java/com/mogo/cloud/RealTimeActivity.java b/app/src/main/java/com/mogo/cloud/RealTimeActivity.java index f9ab3c4..c94bd8d 100644 --- a/app/src/main/java/com/mogo/cloud/RealTimeActivity.java +++ b/app/src/main/java/com/mogo/cloud/RealTimeActivity.java @@ -8,8 +8,6 @@ import androidx.appcompat.app.AppCompatActivity; import com.mogo.cloud.passport.MoGoAiCloudClient; import com.mogo.realtime.core.SnapshotUploadInTime; -import com.mogo.realtime.entity.MogoSnapshotSetData; -import com.mogo.realtime.socket.IMogoCloudOnMsgListener; import java.nio.Buffer; @@ -32,18 +30,13 @@ public class RealTimeActivity extends AppCompatActivity { snapshotStartButton = findViewById(R.id.snapshotStart); snapshotStartButton.setOnClickListener(view -> { if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isNeedUploadCoordinatesDurationInTime()) { -// SnapshotUploadInTime.getInstance().start(getApplicationContext(), "com.mogo.launcher", new IMogoCloudOnMsgListener() { -// @Override -// public void onMsgReceived(MogoSnapshotSetData mogoSnapshotSetData) { -// -// } -// }); + SnapshotUploadInTime.getInstance().start(getApplicationContext(), "com.mogo.launcher"); } }); - snapshotStopButton = findViewById(R.id.snapshotStart); + snapshotStopButton = findViewById(R.id.snapshotStop); snapshotStopButton.setOnClickListener(view -> { -// SnapshotUploadInTime.getInstance().stop(); + SnapshotUploadInTime.getInstance().stop(); }); } diff --git a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java index 90f6566..9db6716 100644 --- a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java +++ b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java @@ -5,6 +5,7 @@ import com.mogo.realtime.Interface.RealTimeProvider; import com.mogo.realtime.entity.ADASRecognizedResult; import com.mogo.realtime.entity.CloudLocationInfo; import com.mogo.realtime.socket.IMogoCloudOnMsgListener; +import com.zhidao.utils.common.SystemUtils; import java.util.List; @@ -31,6 +32,15 @@ class SPIRealTimeTestClass implements RealTimeProvider { @Override public List getLocationMsg() { + List list = null; + CloudLocationInfo info = new CloudLocationInfo(); + info.setAlt(55); + info.setLat(39.968309); + info.setLon(116.410871); + info.setSatelliteTime(System.currentTimeMillis()); + info.setSystemTime(System.currentTimeMillis()); + info.setHeading(120); + info.setSpeed(7.0); return null; } } diff --git a/app/src/main/res/layout/activity_real_time.xml b/app/src/main/res/layout/activity_real_time.xml index 66cbaa9..d9d8e3a 100644 --- a/app/src/main/res/layout/activity_real_time.xml +++ b/app/src/main/res/layout/activity_real_time.xml @@ -18,6 +18,6 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" - android:text="开启实时数据上传" /> + android:text="结束实时数据上传" /> \ No newline at end of file From 73c7867d4c25c8c471e648c6daecc713f84778cf Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 27 Jan 2021 10:27:53 +0800 Subject: [PATCH 02/14] no message --- app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java index 9db6716..2077d39 100644 --- a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java +++ b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java @@ -41,6 +41,7 @@ class SPIRealTimeTestClass implements RealTimeProvider { info.setSystemTime(System.currentTimeMillis()); info.setHeading(120); info.setSpeed(7.0); - return null; + list.add(info); + return list; } } From 97c778a14e3c323f2ee4efeefc19da103506323b Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 10:38:02 +0800 Subject: [PATCH 03/14] fix bug --- .../main/java/com/mogo/cloud/SPIRealTimeTestClass.java | 10 ---------- foudations/mogo-commons/build.gradle | 7 ------- foudations/mogo-httpdns/build.gradle | 3 --- foudations/mogo-passport/build.gradle | 2 -- .../realtime/core/SimpleLocationCorrectStrategy.java | 3 --- .../com/mogo/realtime/spi/RealTimeProviderImp.java | 2 +- modules/mogo-tanlu/build.gradle | 3 --- 7 files changed, 1 insertion(+), 29 deletions(-) diff --git a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java index abf02f6..90f6566 100644 --- a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java +++ b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java @@ -29,16 +29,6 @@ class SPIRealTimeTestClass implements RealTimeProvider { return list; } - @Override - public void registerOnMessageListener(IMogoCloudOnMsgListener listener) { - - } - - @Override - public void unRegisterOnMessageListener(IMogoCloudOnMsgListener listener) { - - } - @Override public List getLocationMsg() { return null; diff --git a/foudations/mogo-commons/build.gradle b/foudations/mogo-commons/build.gradle index 2c8f9e8..ce3a005 100644 --- a/foudations/mogo-commons/build.gradle +++ b/foudations/mogo-commons/build.gradle @@ -15,7 +15,6 @@ android { versionCode 1 versionName "1.0" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -51,13 +50,7 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation rootProject.ext.dependencies.androidxccorektx - implementation rootProject.ext.dependencies.androidxappcompat implementation rootProject.ext.dependencies.okhttpinterceptor - implementation rootProject.ext.dependencies.retrofit - implementation rootProject.ext.dependencies.retrofitadapter - implementation rootProject.ext.dependencies.retrofitconvertergson - implementation rootProject.ext.dependencies.retrofitconverterscalars if (Boolean.valueOf(RELEASE)) { api "com.mogo.cloud:passport:${MOGO_PASSPORT_VERSION}" diff --git a/foudations/mogo-httpdns/build.gradle b/foudations/mogo-httpdns/build.gradle index bf7c86d..f9a556c 100644 --- a/foudations/mogo-httpdns/build.gradle +++ b/foudations/mogo-httpdns/build.gradle @@ -15,7 +15,6 @@ android { versionCode 1 versionName "${MOGO_HTTPDNS_VERSION}" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -54,8 +53,6 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" - implementation rootProject.ext.dependencies.androidxccorektx - implementation rootProject.ext.dependencies.androidxappcompat } apply from: new File(rootProject.rootDir, "gradle/upload.gradle").toString() \ No newline at end of file diff --git a/foudations/mogo-passport/build.gradle b/foudations/mogo-passport/build.gradle index 7a61ee2..8c2fb1d 100644 --- a/foudations/mogo-passport/build.gradle +++ b/foudations/mogo-passport/build.gradle @@ -10,7 +10,6 @@ android { versionCode 1 versionName "${MOGO_PASSPORT_VERSION}" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -28,7 +27,6 @@ android { dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) - implementation rootProject.ext.dependencies.androidxappcompat api rootProject.ext.dependencies.mogoutils // passport implementation 'com.zhidao.thirdlogin:third-login:1.0.2' diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SimpleLocationCorrectStrategy.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SimpleLocationCorrectStrategy.java index 1b3da19..dde89dd 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SimpleLocationCorrectStrategy.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SimpleLocationCorrectStrategy.java @@ -11,7 +11,6 @@ import java.util.ArrayList; import java.util.List; /** - * Ø * 定位预测纠错策略 */ public class SimpleLocationCorrectStrategy { @@ -102,7 +101,6 @@ public class SimpleLocationCorrectStrategy { anchorTime = SystemClock.elapsedRealtime(); errCount++; Logger.d(TAG, "异常点纠偏 info: " + lastLocation); -// return lastLocation; if (recordLocation()) { correctList.add(nextInfo); } @@ -141,7 +139,6 @@ public class SimpleLocationCorrectStrategy { if (recordLocation()) { correctList.add(nextInfo); } -// return lastLocation; return nextInfo; } catch (Exception e) { Logger.e(TAG, e, "纠偏异常"); diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/spi/RealTimeProviderImp.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/spi/RealTimeProviderImp.java index 355528f..878cd79 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/spi/RealTimeProviderImp.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/spi/RealTimeProviderImp.java @@ -26,7 +26,7 @@ public class RealTimeProviderImp implements RealTimeProvider { } public RealTimeProviderImp() { - mDelegate = (RealTimeProvider) RealTimeProviderDelegateManager.getInstance(); + mDelegate = RealTimeProviderDelegateManager.getInstance().getRealTimeProvider(); } @Override diff --git a/modules/mogo-tanlu/build.gradle b/modules/mogo-tanlu/build.gradle index 638e2b1..f411e5d 100644 --- a/modules/mogo-tanlu/build.gradle +++ b/modules/mogo-tanlu/build.gradle @@ -11,7 +11,6 @@ android { versionCode 1 versionName "${MOGO_TANLU_VERSION}" - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" } @@ -31,8 +30,6 @@ dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation rootProject.ext.dependencies.androidxccorektx - implementation rootProject.ext.dependencies.androidxappcompat - implementation rootProject.ext.dependencies.androidxconstraintlayout implementation rootProject.ext.dependencies.rxjava implementation rootProject.ext.dependencies.rxandroid From 1052d1faa54291476562c95c741b38a53850efcf Mon Sep 17 00:00:00 2001 From: liujing Date: Wed, 27 Jan 2021 10:45:47 +0800 Subject: [PATCH 04/14] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java index 2077d39..dfbe634 100644 --- a/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java +++ b/app/src/main/java/com/mogo/cloud/SPIRealTimeTestClass.java @@ -7,6 +7,7 @@ import com.mogo.realtime.entity.CloudLocationInfo; import com.mogo.realtime.socket.IMogoCloudOnMsgListener; import com.zhidao.utils.common.SystemUtils; +import java.util.ArrayList; import java.util.List; /** @@ -19,7 +20,7 @@ class SPIRealTimeTestClass implements RealTimeProvider { @Override public List getLastADASRecognizedResult() { - List list = null; + List list = new ArrayList<>(); ADASRecognizedResult recognizedResult = new ADASRecognizedResult(); recognizedResult.lat = 39.968309; recognizedResult.lon = 116.410871; @@ -32,7 +33,7 @@ class SPIRealTimeTestClass implements RealTimeProvider { @Override public List getLocationMsg() { - List list = null; + List list = new ArrayList<>(); CloudLocationInfo info = new CloudLocationInfo(); info.setAlt(55); info.setLat(39.968309); From 88b90da90c0ac8844f9a8b2db30472aaa05ba1c1 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 11:57:29 +0800 Subject: [PATCH 05/14] fixbug and wait socket to fic --- .idea/gradle.xml | 1 + .../com/mogo/cloud/socket/SocketManager.java | 2 +- .../realtime/core/SnapshotUploadInTime.java | 18 +++++++--- .../realtime/core/UploadInTimeHandler.java | 35 +++++++++++++------ .../realtime/location/MogoRTKLocation.java | 6 ++++ .../mogo/realtime/net/RealTimeApiService.java | 10 ------ .../socket/IMogoCloudOnAckListener.java | 7 ++++ .../socket/IMogoCloudOnMsgListener.java | 13 +++++++ .../mogo/realtime/socket/SocketHandler.java | 14 +++++++- 9 files changed, 78 insertions(+), 28 deletions(-) delete mode 100644 modules/mogo-realtime/src/main/java/com/mogo/realtime/net/RealTimeApiService.java diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 54349e6..7abdbfc 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -23,6 +23,7 @@ diff --git a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java index 51f7aa9..23f7365 100644 --- a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java +++ b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java @@ -32,7 +32,7 @@ import static com.mogo.cloud.httpdns.MogoHttpDnsConfig.HTTP_DNS_ENV_QA; import static com.mogo.cloud.httpdns.MogoHttpDnsConfig.HTTP_DNS_ENV_RELEASE; /** - * Socket 长链服务 + * Socket 长链核心服务 */ public class SocketManager implements IMogoCloudSocketManager, Callback { diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SnapshotUploadInTime.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SnapshotUploadInTime.java index e648d68..66ecb7b 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SnapshotUploadInTime.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/SnapshotUploadInTime.java @@ -33,12 +33,13 @@ public class SnapshotUploadInTime implements UploadInTimeHandler.IUploadInTimeLi return sInstance; } - public synchronized void release() { - sInstance = null; - } - + /** + * 开始实时定位数据上报 + * @param context 上下文对象 + * @param appId 注册id + */ public void start(Context context, String appId) { - //开启内部定位 + //开启内部定位服务 if (!isUseExternalLocation) { MogoRTKLocation.getInstance().init(); } @@ -53,12 +54,19 @@ public class SnapshotUploadInTime implements UploadInTimeHandler.IUploadInTimeLi } + /** + * 停止实时定位数据上报 + */ public void stop() { + //上传数据服务关闭 UploadInTimeHandler.getInstance().stop(); + //关闭长链服务 SocketHandler.getInstance().stop(); + //关闭内部定位服务 if (!isUseExternalLocation) { MogoRTKLocation.getInstance().stop(); } + sInstance = null; } @Override diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/UploadInTimeHandler.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/UploadInTimeHandler.java index f9ce08a..ac2e268 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/UploadInTimeHandler.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/core/UploadInTimeHandler.java @@ -5,6 +5,9 @@ import android.os.Message; import com.mogo.utils.WorkThreadHandler; +/** + * AI云 实时上报数据频率处理类 + */ public class UploadInTimeHandler { private static final String TAG = "UploadInTimeHandler"; @@ -17,14 +20,14 @@ public class UploadInTimeHandler { private IUploadInTimeListener iUploadInTimeListener; - private UploadInTimeHandler(){ + private UploadInTimeHandler() { } - public static UploadInTimeHandler getInstance(){ - if(uploadInTimeHandler == null){ - synchronized (UploadInTimeHandler.class){ - if(uploadInTimeHandler == null){ + public static UploadInTimeHandler getInstance() { + if (uploadInTimeHandler == null) { + synchronized (UploadInTimeHandler.class) { + if (uploadInTimeHandler == null) { uploadInTimeHandler = new UploadInTimeHandler(); } } @@ -32,14 +35,14 @@ public class UploadInTimeHandler { return uploadInTimeHandler; } - public void start(){ + public void start() { mHandler = new Handler(WorkThreadHandler.newInstance(TAG).getLooper()) { @Override public void handleMessage(Message msg) { super.handleMessage(msg); if (msg.what == MSG_DATA_CHANGED) { mHandler.sendEmptyMessageDelayed(MSG_DATA_CHANGED, uploadDelay); - if(iUploadInTimeListener != null){ + if (iUploadInTimeListener != null) { iUploadInTimeListener.sendLocationData(); } } @@ -48,7 +51,7 @@ public class UploadInTimeHandler { mHandler.sendEmptyMessage(MSG_DATA_CHANGED); } - public void setUploadInTimeListener(IUploadInTimeListener uploadInTimeListener){ + public void setUploadInTimeListener(IUploadInTimeListener uploadInTimeListener) { this.iUploadInTimeListener = uploadInTimeListener; } @@ -64,13 +67,23 @@ public class UploadInTimeHandler { } } - public void stop(){ - mHandler.removeMessages(MSG_DATA_CHANGED); - mHandler = null; + public void stop() { + if (mHandler.hasMessages(MSG_DATA_CHANGED)) { + mHandler.removeMessages(MSG_DATA_CHANGED); + mHandler = null; + } + iUploadInTimeListener = null; + uploadInTimeHandler = null; } + /** + * 实时上报数据回调 + */ public interface IUploadInTimeListener { + /** + * 上报自车数据 + */ void sendLocationData(); } diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/location/MogoRTKLocation.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/location/MogoRTKLocation.java index 23a77ef..08a9e6a 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/location/MogoRTKLocation.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/location/MogoRTKLocation.java @@ -44,6 +44,9 @@ public class MogoRTKLocation { return list; } + /** + * 开启定位服务 + */ public void init() { locationManager = (LocationManager) MoGoAiCloudClient.getInstance().getContext().getSystemService(Context.LOCATION_SERVICE); String provider = locationManager.getBestProvider(getCriteria(), true); @@ -110,6 +113,9 @@ public class MogoRTKLocation { } }; + /** + * 关闭定位服务 + */ public void stop() { Logger.d(TAG, "stop RTK Location"); if (locationManager != null && locationListener != null) { diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/net/RealTimeApiService.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/net/RealTimeApiService.java deleted file mode 100644 index e1f9bd8..0000000 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/net/RealTimeApiService.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.mogo.realtime.net; - -/** - * @author liujing - * @description <> - * date: 2021/1/20 - */ -interface RealTimeApiService { - -} diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnAckListener.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnAckListener.java index 09fc360..1d18a35 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnAckListener.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnAckListener.java @@ -1,6 +1,13 @@ package com.mogo.realtime.socket; +/** + * 长连接数据消息ack回调 + */ public interface IMogoCloudOnAckListener { + /** + * 对齐系统时间 + * @param resetTime 系统时间 + */ void onAck(long resetTime); } diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnMsgListener.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnMsgListener.java index ba641f1..dc779ac 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnMsgListener.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/IMogoCloudOnMsgListener.java @@ -2,7 +2,20 @@ package com.mogo.realtime.socket; import com.mogo.realtime.entity.MogoSnapshotSetData; +/** + * 长连接数据上报下发回调 + */ public interface IMogoCloudOnMsgListener { + /** + * 长连接数据发送回调 + * @param id 发送消息id + */ + void onMsgSend(long id); + + /** + * 长连接数据接收回调 + * @param mogoSnapshotSetData 自车周边数据 + */ void onMsgReceived(MogoSnapshotSetData mogoSnapshotSetData); } diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/SocketHandler.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/SocketHandler.java index 81fabc5..5db6382 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/SocketHandler.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/socket/SocketHandler.java @@ -121,6 +121,10 @@ public class SocketHandler { } }; + /** + * 发送自车和ADAS数据 + * @param cloudLocationInfo 自车定位信息 + */ public void sendMsg(List cloudLocationInfo) { if (cloudLocationInfo == null) { Log.e(TAG, "请检查传入数组对象为Null"); @@ -158,6 +162,7 @@ public class SocketHandler { Log.d(TAG, "no information to sent"); return; } + WebSocketData webSocketData = new WebSocketData(); webSocketData.setMsgType(MSG_TYPE_UPLINK_CAR_DATA.getMsgType()); webSocketData.setSeq(computeSendMsgTime()); @@ -173,15 +178,22 @@ public class SocketHandler { msgBody.msgType(msgType); msgBody.content(msg); SocketManager.getInstance().sendMsg(msgBody, msgId -> { - + for (IMogoCloudOnMsgListener listener : onMsgListenerList) { + if (listener != null) { + listener.onMsgSend(msgId); + } + } }); } public void stop() { SocketManager.getInstance().unregisterOnMessageListener(0x040002, onMessageListener); SocketManager.getInstance().unregisterOnMessageListener(0x040003, onMessageListener); + SocketManager.getInstance().release(); onMsgListenerList.clear(); onAckListenerList.clear(); + mLastInfo = null; + mInstance = null; } /** From 410d56609518f2db307d9a6ee6ffc775a5508e75 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 12:14:53 +0800 Subject: [PATCH 06/14] code style --- .../src/main/java/com/mogo/cloud/socket/SocketManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java index 23f7365..f13fece 100644 --- a/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java +++ b/foudations/mogo-socket/src/main/java/com/mogo/cloud/socket/SocketManager.java @@ -12,6 +12,7 @@ import com.mogo.cloud.passport.MoGoAiCloudClientConfig; import com.mogo.utils.logger.Logger; import com.mogo.utils.network.utils.GsonUtil; import com.zhidao.locupload.Platform; +import com.zhidao.ptech.connsvr.commom.protocol.MogoCommon; import com.zhidao.ptech.connsvr.protocol.MogoConnsvr; import com.zhidao.socket.Callback; import com.zhidao.socket.CallbackManager; @@ -120,7 +121,7 @@ public class SocketManager implements IMogoCloudSocketManager, Callback { public void sendMsg(MsgBody body, IMogoCloudSocketMsgAckListener listener) { Logger.d(TAG, "sendMsg."); final byte[] pb = convertToPBBytes(body.getMsgType(), objectToBytes(body.getContent())); - RequestUtil.sendPayloadData(mAppId, 2, pb, 1, true, System.currentTimeMillis()); + SocketClient.getInstance().sendData(mAppId, MogoCommon.Product.mogoBussiness.getNumber(), pb, 1, true, System.currentTimeMillis()); } @Override From 98301d9ab6f17a56b7c2edd47d0e1dcc78ff5535 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 27 Jan 2021 12:25:38 +0800 Subject: [PATCH 07/14] fixed conflict --- .../mogo/cloud/network/NetworkActivity.java | 75 +++++---- .../java/com/mogo/cloud/tanlu/CosUpload.java | 98 +++++++----- .../cloud/tanlu/MogoRoadSearchManager.java | 16 +- .../mogo/cloud/tanlu/MogoUploadManager.java | 29 ---- .../com/mogo/cloud/tanlu/UploadManager.java | 35 ++-- .../com/mogo/cloud/tanlu/bean/UploadInfo.java | 20 ++- .../cloud/tanlu/constant/HttpConstant.java | 2 + .../com/mogo/cloud/tanlu/utils/FileUtil.kt | 149 ++++++++++++++++++ .../mogo/cloud/tanlu/utils/TanluUtils.java | 1 + 9 files changed, 280 insertions(+), 145 deletions(-) create mode 100644 modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt diff --git a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java index 97e841d..a07172f 100644 --- a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java +++ b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java @@ -97,48 +97,34 @@ public class NetworkActivity extends AppCompatActivity { } public void uploadRoadInfo() { -// MogoUploadManager.getInstance(NetworkActivity.this).init(); + UploadInfo info = new UploadInfo(); -// UploadInfo info = new UploadInfo(); -// // List filePath = new ArrayList<>(); // filePath.add("/storage/emulated/0/Movies/compress_video_20210126174432.mp4"); // filePath.add("/data/user/0/com.mogo.launcher.f/Thumbnail1611654285824.jpg"); -// info.setFilePath(filePath); -// -// info.setAddr("北京市东城区小黄庄北街2号靠近中国银行"); -// info.setLongitude(116.410892); -// info.setLatitude(39.968317); -// info.setPoiType("10007"); -// info.setDirection(0); -// info.setAreaCode("110101"); -// info.setCityCode("010"); -// info.setSn("F803EB2046PZD00228"); -// -// MogoUploadManager.getInstance(NetworkActivity.this).uploadInfo(info, new ITanluUploadCallback() { -// @Override -// public void onSuccess(UploadResult result) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo result.id = " + result.id); -// tvResult.setText("onSuccess - " + result.id + ""); -// } -// -// @Override -// public void onFailure(int code) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo code = " + code); -// } -// -// @Override -// public void onError(Throwable e) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo onError e = " + e); -// } -// }); - UploadManager.getInstance(NetworkActivity.this).init(); - UploadManager.getInstance(NetworkActivity.this).loadUpload(null, new ITanluUploadCallback() { +// info.setFilePath("/storage/emulated/0/Movies/compress_video_20210127112035.mp4"); + info.setFilePath("/storage/emulated/0/Movies/2222.png"); + + info.setAddr("北京市东城区小黄庄北街2号靠近中国银行"); + info.setLongitude(116.410892); + info.setLatitude(39.968317); + info.setPoiType("10007"); + info.setDirection(0); + info.setAreaCode("110101"); + info.setCityCode("010"); + info.setSn("F803EB2046PZD00228"); + info.setType(0); //0为图片, 1为视频 + + MogoUploadManager.getInstance(NetworkActivity.this).uploadInfo(info, new ITanluUploadCallback() { @Override public void onSuccess(BaseData result) { - Log.d(TAG, "NetworkActivity uploadRoadInfo result.id = " + result.getResult().id); - tvResult.setText(result.getResult().id + ""); + if (result != null && result.getResult() != null) { + Log.d(TAG, "NetworkActivity uploadRoadInfo result.id = " + result.getResult().id); + tvResult.setText(result.getResult().id + ""); + } else { + Log.e(TAG, "NetworkActivity uploadRoadInfo result == null"); + } } @Override @@ -151,6 +137,25 @@ public class NetworkActivity extends AppCompatActivity { Log.d(TAG, "NetworkActivity uploadRoadInfo onError e = " + e); } }); + +// UploadManager.getInstance(NetworkActivity.this).init(); +// UploadManager.getInstance(NetworkActivity.this).loadUpload(null,new ITanluUploadCallback() { +// @Override +// public void onSuccess(BaseData result) { +// Log.d(TAG, "NetworkActivity uploadRoadInfo result.id = " + result.getResult().id); +// tvResult.setText(result.getResult().id + ""); +// } +// +// @Override +// public void onFailure(int code) { +// Log.d(TAG, "NetworkActivity uploadRoadInfo code = " + code); +// } +// +// @Override +// public void onError(Throwable e) { +// Log.d(TAG, "NetworkActivity uploadRoadInfo onError e = " + e); +// } +// }); } public void queryRoadData(String sn) { diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java index 93c1ab1..e7b3e0d 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java @@ -10,11 +10,18 @@ import com.mogo.cloud.tanlu.api.ITanluUploadCallback; import com.mogo.cloud.tanlu.bean.InformationBody; import com.mogo.cloud.tanlu.bean.UploadInfo; import com.mogo.cloud.tanlu.bean.UploadResult; +import com.mogo.cloud.tanlu.constant.HttpConstant; import com.zhidao.cosupload.DbPriorityConfig; import com.zhidao.cosupload.callback.CosStatusCallback; import com.zhidao.cosupload.callback.CosStatusCallbackManager; import com.zhidao.cosupload.manager.CosUploadManagerImpl; +import java.util.ArrayList; +import java.util.List; + +import static com.mogo.cloud.tanlu.utils.FileUtilKt.deletePicFile; +import static com.mogo.cloud.tanlu.utils.FileUtilKt.getVideoPicPath; +import static com.mogo.cloud.tanlu.utils.FileUtilKt.getVideoThumbnail; import static com.mogo.cloud.tanlu.utils.TanluUtils.isVideo; /** @@ -23,7 +30,6 @@ import static com.mogo.cloud.tanlu.utils.TanluUtils.isVideo; * @since 2021/1/21 */ public class CosUpload implements CosStatusCallback { - private static final String TAG = "liyz"; private static CosUpload sInstance; private Context mContext; private String mPicEventId; @@ -31,7 +37,8 @@ public class CosUpload implements CosStatusCallback { private UploadInfo mUploadInfo; private String mCosVideoUrl; private String mCosPicUrl; - + private List filePath = new ArrayList<>(); + private String videoCoverImage; private CosUpload(Context context) { mContext = context; @@ -55,54 +62,58 @@ public class CosUpload implements CosStatusCallback { } public void uploadInfo(UploadInfo info, ITanluUploadCallback callback) { - Log.d(TAG, "info.getFilePath() = " + info.getFilePath().toString()); + Log.d(HttpConstant.TANLU, "videoPath = " + info.getFilePath()); + if (isVideo(info.getFilePath())) { + videoCoverImage = getVideoPicPath(); + Log.d(HttpConstant.TANLU, "videoCoverImage = " + videoCoverImage); + boolean isSuccess = getVideoThumbnail(info.getFilePath(), videoCoverImage); + Log.d(HttpConstant.TANLU, "isSuccess = " + isSuccess); + filePath.add(info.getFilePath()); + filePath.add(videoCoverImage); + } else { + videoCoverImage = null; + filePath.add(info.getFilePath()); + } + + Log.e(HttpConstant.TANLU, "filePath.size() = " + filePath.size()); CosUploadManagerImpl.getInstance(mContext.getApplicationContext()) - .upload(info.getFilePath(), mPicEventId, DbPriorityConfig.PRIORITY_HIGH); + .upload(filePath, mPicEventId, DbPriorityConfig.PRIORITY_HIGH); mCallback = callback; mUploadInfo = info; } @Override public void onStartUpload(String eventId, String localPath) { - Log.d(TAG, "onStartUpload ----> "); + Log.d(HttpConstant.TANLU, "onStartUpload ----> "); } @Override public void uploadCosCompleted(String cosPath, String eventId, String downloadUrl, String localPath) { - Log.d(TAG, "uploadCosCompleted ----> cosPath =" + cosPath + "--eventId =" + eventId); - Log.d(TAG, "uploadCosCompleted ----> downloadUrl =" + downloadUrl + "--localPath =" + localPath); -// if (localPath.endsWith("mp4")) { //如何判断视频图片 -// //如果是视频文件或者缩略图文件 -// if (localPath.endsWith("mp4")) { -// mCosVideoUrl = downloadUrl; -// } else { -// mCosPicUrl = downloadUrl; -// } -// -// if (mCosVideoUrl != null && mCosPicUrl != null) { -// //上传录像以及缩略图成功 -// sendInformation(); -// } -// } else { -// //上传图片成功, 如果是上报路况,直接上传 -// Log.d(TAG, "uploadCosCompleted 分享成功 ---- mType = $mType"); -// } - - if (isVideo(localPath)) { //如果是视频 TODO + Log.d(HttpConstant.TANLU, "uploadCosCompleted ----> cosPath =" + cosPath + "--eventId =" + eventId); + Log.d(HttpConstant.TANLU, "uploadCosCompleted ----> downloadUrl =" + downloadUrl + "--localPath =" + localPath); + if (filePath.size() == 2) { + if (isVideo(localPath)) { //如果是视频 localPath + Log.e(HttpConstant.TANLU, "1111111-------"); + mCosVideoUrl = downloadUrl; + } else { + Log.e(HttpConstant.TANLU, "22222222------"); + mCosPicUrl = downloadUrl; + } + Log.d(HttpConstant.TANLU, "mCosVideoUrl = " + mCosVideoUrl + " >>>mCosPicUrl = " + mCosPicUrl); + if (mCosPicUrl != null && mCosVideoUrl != null) { + sendInformation(); + } } else { + Log.e(HttpConstant.TANLU, "333333------"); + mCosPicUrl = downloadUrl; sendInformation(); } - - //TODO - mCosVideoUrl = downloadUrl; - - } @Override public void uploadCosFailed(String cosPath, String eventId, String localPath) { - Log.e(TAG, "uploadCosFailed ----> cosPath = " + cosPath + "--eventId =" + eventId + "--localPath =" + localPath); + Log.e(HttpConstant.TANLU, "uploadCosFailed ----> cosPath = " + cosPath + "--eventId =" + eventId + "--localPath =" + localPath); sendInformation(); } @@ -112,22 +123,34 @@ public class CosUpload implements CosStatusCallback { } private void sendInformation() { + //清理数据 + if (filePath != null) { + filePath.clear(); + } + + //删除本地生成的图片封面 + if (videoCoverImage != null) { + boolean isDeleteSuccess = deletePicFile(videoCoverImage); + } + UploadManager.getInstance(mContext.getApplicationContext()).loadUpload(getInformation(), new ITanluUploadCallback() { @Override public void onSuccess(BaseData result) { - Log.d(TAG, "uploadRoadInfo result.id = " + result.getResult().id); + if (result != null && result.getResult() != null) { + Log.d(HttpConstant.TANLU, "uploadRoadInfo result.id = " + result.getResult().id); + } mCallback.onSuccess(result); } @Override public void onFailure(int code) { - Log.d(TAG, " uploadRoadInfo code = " + code); + Log.d(HttpConstant.TANLU, " uploadRoadInfo code = " + code); mCallback.onFailure(code); } @Override public void onError(Throwable e) { - Log.d(TAG, "uploadRoadInfo onError e = " + e); + Log.d(HttpConstant.TANLU, "uploadRoadInfo onError e = " + e); mCallback.onError(e); } }); @@ -137,11 +160,10 @@ public class CosUpload implements CosStatusCallback { InformationBody informationBody = new InformationBody(); JsonArray jsonArray = new JsonArray(); JsonObject jsonObject = new JsonObject(); - jsonObject.addProperty("thumbnail", mCosVideoUrl); - jsonObject.addProperty("url", mCosPicUrl); + jsonObject.addProperty("thumbnail", mCosPicUrl); + jsonObject.addProperty("url", mCosVideoUrl); jsonArray.add(jsonObject); - Log.d(TAG, "mCosVideoUrl = " + mCosVideoUrl + "--mCosPicUrl =" + mCosPicUrl); - Log.d(TAG, "jsonArray.toString() = " + jsonArray.toString()); + Log.d(HttpConstant.TANLU, "jsonArray.toString() = " + jsonArray.toString()); informationBody.setData(jsonArray.toString()); informationBody.setAddr(mUploadInfo.getAddr()); diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java index 6b7e234..9cb99d9 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java @@ -3,21 +3,16 @@ package com.mogo.cloud.tanlu; import android.content.Context; import android.util.Log; -import com.google.gson.Gson; import com.mogo.cloud.commons.network.BaseData; import com.mogo.cloud.commons.network.RetrofitFactory; import com.mogo.cloud.passport.MoGoAiCloudClient; import com.mogo.cloud.tanlu.api.IRoadInfoSearchCallback; -import com.mogo.cloud.tanlu.api.ITanluUploadCallback; -import com.mogo.cloud.tanlu.bean.InformationBody; import com.mogo.cloud.tanlu.bean.RoadInfoRequest; import com.mogo.cloud.tanlu.bean.RoadInfos; -import com.mogo.cloud.tanlu.bean.UploadResult; -import com.mogo.cloud.tanlu.bean.location.Location; +import com.mogo.cloud.tanlu.constant.HttpConstant; import com.mogo.cloud.tanlu.net.TanluApiService; import com.mogo.utils.network.utils.GsonUtil; -import java.util.ArrayList; import java.util.HashMap; import java.util.Map; @@ -33,7 +28,6 @@ import io.reactivex.schedulers.Schedulers; * @since 2021/1/21 */ public class MogoRoadSearchManager { - private static final String TAG = "MogoRoadSearchManager"; private static MogoRoadSearchManager sInstance; private Context mContext; private TanluApiService apiService; @@ -88,24 +82,24 @@ public class MogoRoadSearchManager { .subscribe(new Observer>() { @Override public void onSubscribe(@NonNull Disposable d) { - Log.d(TAG, "queryRoadInfos onSubscribe "); + Log.d(HttpConstant.TANLU, "queryRoadInfos onSubscribe "); } @Override public void onNext(@NonNull BaseData roadInfos) { - Log.d(TAG, "queryRoadInfos onNext roadInfos = " + roadInfos.getResult().getData()); + Log.d(HttpConstant.TANLU, "queryRoadInfos onNext roadInfos = " + roadInfos.getResult().getData()); callback.onSuccess(roadInfos); } @Override public void onError(@NonNull Throwable e) { - Log.d(TAG, "queryRoadInfos onError "); + Log.d(HttpConstant.TANLU, "queryRoadInfos onError "); callback.onError(e); } @Override public void onComplete() { - Log.d(TAG, "queryRoadInfos onComplete "); + Log.d(HttpConstant.TANLU, "queryRoadInfos onComplete "); } }); } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoUploadManager.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoUploadManager.java index 3be608d..c01a438 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoUploadManager.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoUploadManager.java @@ -1,36 +1,9 @@ package com.mogo.cloud.tanlu; import android.content.Context; -import android.util.Log; -import com.google.gson.Gson; -import com.google.gson.JsonArray; -import com.google.gson.JsonObject; -import com.mogo.cloud.commons.network.RetrofitFactory; -import com.mogo.cloud.passport.MoGoAiCloudClient; -import com.mogo.cloud.tanlu.api.IRoadInfoSearchCallback; import com.mogo.cloud.tanlu.api.ITanluUploadCallback; -import com.mogo.cloud.tanlu.bean.InformationBody; -import com.mogo.cloud.tanlu.bean.RoadInfoRequest; -import com.mogo.cloud.tanlu.bean.RoadInfos; import com.mogo.cloud.tanlu.bean.UploadInfo; -import com.mogo.cloud.tanlu.bean.UploadResult; -import com.mogo.cloud.tanlu.bean.location.Location; -import com.mogo.cloud.tanlu.net.TanluApiService; -import com.mogo.utils.network.utils.GsonUtil; -import com.zhidao.cosupload.DbPriorityConfig; -import com.zhidao.cosupload.callback.CosStatusCallback; -import com.zhidao.cosupload.manager.CosUploadManagerImpl; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Map; - -import io.reactivex.Observer; -import io.reactivex.android.schedulers.AndroidSchedulers; -import io.reactivex.annotations.NonNull; -import io.reactivex.disposables.Disposable; -import io.reactivex.schedulers.Schedulers; /** * @author lixiaopeng @@ -38,7 +11,6 @@ import io.reactivex.schedulers.Schedulers; * @since 2021/1/21 */ public class MogoUploadManager { - private static final String TAG = "liyz"; private static MogoUploadManager sInstance; private Context mContext; @@ -53,7 +25,6 @@ public class MogoUploadManager { sInstance = new MogoUploadManager(context); } } - return sInstance; } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java index 8c91e88..ff45a56 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java @@ -7,30 +7,17 @@ import com.google.gson.Gson; import com.mogo.cloud.commons.network.BaseData; import com.mogo.cloud.commons.network.RetrofitFactory; import com.mogo.cloud.passport.MoGoAiCloudClient; -import com.mogo.cloud.tanlu.api.IRoadInfoSearchCallback; import com.mogo.cloud.tanlu.api.ITanluUploadCallback; import com.mogo.cloud.tanlu.bean.InformationBody; -import com.mogo.cloud.tanlu.bean.RoadInfoRequest; -import com.mogo.cloud.tanlu.bean.RoadInfos; import com.mogo.cloud.tanlu.bean.UploadResult; -import com.mogo.cloud.tanlu.bean.location.Location; -import com.mogo.cloud.tanlu.bean.location.MogoLocation; +import com.mogo.cloud.tanlu.constant.HttpConstant; import com.mogo.cloud.tanlu.net.TanluApiService; -import com.mogo.utils.logger.Logger; -import com.mogo.utils.network.RequestOptions; -import com.mogo.utils.network.utils.GsonUtil; -import java.util.ArrayList; import java.util.HashMap; import java.util.Map; -import io.reactivex.Observable; -import io.reactivex.ObservableEmitter; -import io.reactivex.ObservableOnSubscribe; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; -import io.reactivex.annotations.NonNull; import io.reactivex.disposables.Disposable; -import io.reactivex.functions.Function; import io.reactivex.schedulers.Schedulers; /** @@ -39,7 +26,6 @@ import io.reactivex.schedulers.Schedulers; * @since 2021/1/21 */ public class UploadManager { - private static final String TAG = "UploadManager"; private static UploadManager sInstance; private Context mContext; private TanluApiService apiService; @@ -75,37 +61,36 @@ public class UploadManager { Gson gson = new Gson(); Map map = new HashMap<>(); // map.put("sn", MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); //TODO -// map.put("sn", "F803EB2046PZD00228"); -// map.put("data", gson.toJson(informationBody)); -// Log.d(TAG, "info = " + gson.toJson(informationBody)); - map.put("sn", "ZD802C1938L10797"); - map.put("data", "{\"addr\":\"北京市东城区小黄庄北街2号靠近中国银行(北京安贞桥支行)\",\"areaCode\":\"110101\",\"areaName\":\"东城区\",\"cityCode\":\"010\",\"cityName\":\"北京市\",\"data\":\"[{\\\"thumbnail\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/Thumbnail1611219200669.jpg\\\",\\\"url\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/compress_video_20210121165307.mp4\\\"}]\",\"direction\":0.0,\"fromType\":\"2\",\"generateTime\":1611219213616,\"infoTimeout\":240,\"infoType\":1,\"isShare\":false,\"lat\":39.968317,\"lon\":116.410892,\"mainInfoId\":0,\"poiType\":\"10008\",\"provinceName\":\"北京市\",\"sn\":\"F803EB2046PZD00228\",\"speed\":0.0,\"street\":\"小黄庄北街\",\"trafficInfoType\":\"\",\"type\":1,\"uid\":0}"); + map.put("sn", "F803EB2046PZD00228"); + map.put("data", gson.toJson(informationBody)); + Log.d(HttpConstant.TANLU, "info = " + gson.toJson(informationBody)); +// map.put("sn", "ZD802C1938L10797"); +// map.put("data", "{\"addr\":\"北京市东城区小黄庄北街2号靠近中国银行(北京安贞桥支行)\",\"areaCode\":\"110101\",\"areaName\":\"东城区\",\"cityCode\":\"010\",\"cityName\":\"北京市\",\"data\":\"[{\\\"thumbnail\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/Thumbnail1611219200669.jpg\\\",\\\"url\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/compress_video_20210121165307.mp4\\\"}]\",\"direction\":0.0,\"fromType\":\"2\",\"generateTime\":1611219213616,\"infoTimeout\":240,\"infoType\":1,\"isShare\":false,\"lat\":39.968317,\"lon\":116.410892,\"mainInfoId\":0,\"poiType\":\"10008\",\"provinceName\":\"北京市\",\"sn\":\"F803EB2046PZD00228\",\"speed\":0.0,\"street\":\"小黄庄北街\",\"trafficInfoType\":\"\",\"type\":1,\"uid\":0}"); - Log.d(TAG, "sn = " + MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); + Log.d(HttpConstant.TANLU, "sn = " + MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); apiService.uploadInformation(map) .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(new Observer>() { @Override public void onSubscribe(Disposable d) { - Log.d(TAG, "onSubscribe -----> "); + Log.d(HttpConstant.TANLU, "onSubscribe -----> "); } @Override public void onNext(BaseData result) { - Log.d(TAG, "onNext id = -----> " + result.getResult().id); callback.onSuccess(result); } @Override public void onError(Throwable e) { - Log.e(TAG, "onError -----> e " + e); + Log.e(HttpConstant.TANLU, "onError -----> e " + e); callback.onError(e); } @Override public void onComplete() { - Log.d(TAG, "onComplete -----> "); + Log.d(HttpConstant.TANLU, "onComplete -----> "); } }); } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/bean/UploadInfo.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/bean/UploadInfo.java index 2de9f00..d405b59 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/bean/UploadInfo.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/bean/UploadInfo.java @@ -1,6 +1,5 @@ package com.mogo.cloud.tanlu.bean; -import java.util.List; /** * @author lixiaopeng @@ -9,7 +8,8 @@ import java.util.List; */ public class UploadInfo { - private List filePath; //文件路径 +// private List filePath; //文件路径 + private String filePath; //文件路径 // String TYPE_TRAFFIC_CHECK = "10002"; //交通检查 // String TYPE_CLOSURE = "10003"; //封路 @@ -50,16 +50,22 @@ public class UploadInfo { private int infoTimeout; //过期事件 private boolean isShare; // 是否分享给附近车机 - - - public List getFilePath() { + public String getFilePath() { return filePath; } - public void setFilePath(List filePath) { + public void setFilePath(String filePath) { this.filePath = filePath; } + // public List getFilePath() { +// return filePath; +// } +// +// public void setFilePath(List filePath) { +// this.filePath = filePath; +// } + public String getPoiType() { return poiType; } @@ -231,7 +237,7 @@ public class UploadInfo { @Override public String toString() { return "UploadInfo{" + - "filePath=" + filePath + + "filePath='" + filePath + '\'' + ", poiType='" + poiType + '\'' + ", fromType='" + fromType + '\'' + ", mainInfoId=" + mainInfoId + diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java index e7b8a34..0b00aab 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java @@ -10,4 +10,6 @@ public class HttpConstant { public static final String DZT_HOTS = "http://dzt-deva.zhidaozhixing.com"; public static final String LAUNCHER_HOTS = "http://dzt-launcherSnapshot.zhidaozhixing.com"; + public static final String TANLU = "TANLU_MODULE"; + } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt new file mode 100644 index 0000000..2acdaa7 --- /dev/null +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt @@ -0,0 +1,149 @@ +package com.mogo.cloud.tanlu.utils + +import android.graphics.Bitmap +import android.media.MediaMetadataRetriever +import android.os.Environment +import android.util.Log +import java.io.* +import java.text.SimpleDateFormat +import java.util.* + +/** + * @author lixiaopeng + * @description 文件处理类 + * @since 2021/1/26 + */ +fun deletePicFile(filePath: String?): Boolean { + var file = File(filePath) + if (file.exists()) { + //如果图片地址包含此路径则是C上面的拍照,需要再删除后摄图片 + if (filePath!!.contains("usbotg-1-1.1")) { + //将地址替换成后摄图片地址 + var backFile = + File(filePath.replace("frontPic", "backPic").replace("PhotoFront", "PhotoBack")) + if (backFile.exists()) { + return backFile.delete() + } + return file.delete() + } else + return file.delete() + } + return false +} + +//删除某个目录下所有文件 +fun deleteAllFile(file: File?) { //判断文件不为null或文件目录存在 + if (file == null || !file.exists()) { + Log.e("liyz", "文件删除失败,请检查文件路径是否正确") + return + } + //取得这个目录下的所有子文件对象 + val files: Array = file.listFiles() + //遍历该目录下的文件对象 + for (f in files) { + //判断子目录是否存在子目录,如果是文件则删除 + if (f.isDirectory) { + deleteAllFile(f) + } else { + f.delete() + } + } + //删除空文件夹 for循环已经把上一层节点的目录清空。 +// file.delete() +} + + +//根据本地视频文件生成缩略图文件 +fun getVideoThumbnail(filePath: String, picPath: String): Boolean { + var b: Bitmap? = null + var retriever = MediaMetadataRetriever() + try { + retriever.setDataSource(filePath) + b = retriever.getFrameAtTime(0) + } catch (e: IllegalArgumentException) { + e.printStackTrace() + } catch (e: RuntimeException) { + e.printStackTrace() + } finally { + try { + retriever.release() + } catch (e: RuntimeException) { + e.printStackTrace() + } + } + return bitmapToFile(b, picPath) +} + +//bitmap转为file +fun bitmapToFile(bitmap: Bitmap?, filePath: String): Boolean { + val baos = ByteArrayOutputStream() + bitmap?.compress(Bitmap.CompressFormat.JPEG, 50, baos) + val file = File(filePath) + try { + if (file.exists()) + file.delete() + file.createNewFile() + val fos = FileOutputStream(file) + var ins = ByteArrayInputStream(baos.toByteArray()) + var x = 0 + val b = ByteArray(1024 * 100) + while ({ x = ins.read(b);x }() != -1) { + fos.write(b, 0, x) + } + fos.close() + bitmap?.recycle() + } catch (e: Exception) { + e.printStackTrace() + return false + } + + return true +} + +// +fun getVideoPicPath(): String { + val moviesDir = Environment.getExternalStoragePublicDirectory( + Environment.DIRECTORY_PICTURES + ) + moviesDir.mkdirs() + + val builder = StringBuilder() + builder.append("pic_") + .append(SimpleDateFormat("yyyyMMddHHmmss").format(Date())) + val filePrefix = builder.toString() + val fileExtn = ".jpg" + var destPath = File(moviesDir, filePrefix + fileExtn) + + var fileNo = 0 + while (destPath.exists()) { + fileNo++ + destPath = File(moviesDir, filePrefix + fileNo + fileExtn) + } + + return destPath.absolutePath +} + + +//获取压缩后的视频路径 /storage/emulated/0/Movies/compress_video_20210126174432.mp4 +fun getCompressVideoPath(): String { + val moviesDir = Environment.getExternalStoragePublicDirectory( + Environment.DIRECTORY_MOVIES + ) + moviesDir.mkdirs() + + val builder = StringBuilder() + builder.append("compress_video_") + .append(SimpleDateFormat("yyyyMMddHHmmss").format(Date())) + val filePrefix = builder.toString() + val fileExtn = ".mp4" + var destPath = File(moviesDir, filePrefix + fileExtn) + + var fileNo = 0 + while (destPath.exists()) { + fileNo++ + destPath = File(moviesDir, filePrefix + fileNo + fileExtn) + } + + return destPath.absolutePath +} + diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/TanluUtils.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/TanluUtils.java index 9d95a96..f511b50 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/TanluUtils.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/TanluUtils.java @@ -16,4 +16,5 @@ public class TanluUtils { return p.matcher(path).find(); } + } From 55c91e080fa9fe20b1e5273dc22d9a1e0b628893 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 12:26:10 +0800 Subject: [PATCH 08/14] add realtime enter class --- .../Interface/MoGoAiCloudRealTime.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java new file mode 100644 index 0000000..d38c697 --- /dev/null +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java @@ -0,0 +1,18 @@ +package com.mogo.realtime.Interface; + +import com.mogo.realtime.socket.IMogoCloudOnMsgListener; +import com.mogo.realtime.socket.SocketHandler; + +/** + * RealTime实时上报数据服务SDK + */ +public class MoGoAiCloudRealTime { + + public static void registerOnMsgListener(IMogoCloudOnMsgListener onMsgListener) { + SocketHandler.getInstance().registerOnMsgListener(onMsgListener); + } + + public static void unRegisterOnMsgListener(IMogoCloudOnMsgListener onMsgListener) { + SocketHandler.getInstance().unRegisterOnMsgListener(onMsgListener); + } +} From 4ef575e156c7a4c63fb74376d471c6e39685ff56 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 14:06:21 +0800 Subject: [PATCH 09/14] fix bug --- .../java/com/mogo/cloud/RealTimeActivity.java | 37 +++++++++++++++---- .../Interface/MoGoAiCloudRealTime.java | 11 ++++++ 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/mogo/cloud/RealTimeActivity.java b/app/src/main/java/com/mogo/cloud/RealTimeActivity.java index c94bd8d..218e129 100644 --- a/app/src/main/java/com/mogo/cloud/RealTimeActivity.java +++ b/app/src/main/java/com/mogo/cloud/RealTimeActivity.java @@ -1,22 +1,25 @@ package com.mogo.cloud; import android.os.Bundle; +import android.util.Log; import android.widget.Button; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import com.mogo.cloud.passport.MoGoAiCloudClient; -import com.mogo.realtime.core.SnapshotUploadInTime; - -import java.nio.Buffer; +import com.mogo.realtime.Interface.MoGoAiCloudRealTime; +import com.mogo.realtime.entity.MogoSnapshotSetData; +import com.mogo.realtime.socket.IMogoCloudOnMsgListener; /** * @author liujing * @description 描述 * @since: 2021/1/21 */ -public class RealTimeActivity extends AppCompatActivity { +public class RealTimeActivity extends AppCompatActivity implements IMogoCloudOnMsgListener { + + private static final String TAG = "RealTimeActivity"; private Button snapshotStartButton; private Button snapshotStopButton; @@ -30,13 +33,14 @@ public class RealTimeActivity extends AppCompatActivity { snapshotStartButton = findViewById(R.id.snapshotStart); snapshotStartButton.setOnClickListener(view -> { if (MoGoAiCloudClient.getInstance().getAiCloudClientConfig().isNeedUploadCoordinatesDurationInTime()) { - SnapshotUploadInTime.getInstance().start(getApplicationContext(), "com.mogo.launcher"); + MoGoAiCloudRealTime.startRealTime(this, "com.mogo.launcher"); + MoGoAiCloudRealTime.registerOnMsgListener(this); } }); snapshotStopButton = findViewById(R.id.snapshotStop); snapshotStopButton.setOnClickListener(view -> { - SnapshotUploadInTime.getInstance().stop(); + stopRealTimeService(); }); } @@ -44,7 +48,26 @@ public class RealTimeActivity extends AppCompatActivity { private void setConfig() { MoGoAiCloudClient.getInstance().getAiCloudClientConfig().setIsUseExternalLocation(false); MoGoAiCloudClient.getInstance().getAiCloudClientConfig().setNeedUploadCoordinatesDurationInTime(true); - } + public void stopRealTimeService() { + MoGoAiCloudRealTime.unRegisterOnMsgListener(this); + MoGoAiCloudRealTime.stopRealTime(); + } + + @Override + protected void onDestroy() { + super.onDestroy(); + stopRealTimeService(); + } + + @Override + public void onMsgSend(long id) { + Log.i(TAG, "send msg id : " + id); + } + + @Override + public void onMsgReceived(MogoSnapshotSetData mogoSnapshotSetData) { + Log.i(TAG, "onMsgReceived : " + mogoSnapshotSetData); + } } diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java index d38c697..c9055bb 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java @@ -1,5 +1,8 @@ package com.mogo.realtime.Interface; +import android.content.Context; + +import com.mogo.realtime.core.SnapshotUploadInTime; import com.mogo.realtime.socket.IMogoCloudOnMsgListener; import com.mogo.realtime.socket.SocketHandler; @@ -8,6 +11,14 @@ import com.mogo.realtime.socket.SocketHandler; */ public class MoGoAiCloudRealTime { + public static void startRealTime(Context context, String appId) { + SnapshotUploadInTime.getInstance().start(context, appId); + } + + public static void stopRealTime(){ + SnapshotUploadInTime.getInstance().stop(); + } + public static void registerOnMsgListener(IMogoCloudOnMsgListener onMsgListener) { SocketHandler.getInstance().registerOnMsgListener(onMsgListener); } From 97e1c97d354165026d1e277ac7a7608e075c8a38 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 14:11:29 +0800 Subject: [PATCH 10/14] add note --- .../realtime/Interface/MoGoAiCloudRealTime.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java index c9055bb..6a00a4f 100644 --- a/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java +++ b/modules/mogo-realtime/src/main/java/com/mogo/realtime/Interface/MoGoAiCloudRealTime.java @@ -11,18 +11,34 @@ import com.mogo.realtime.socket.SocketHandler; */ public class MoGoAiCloudRealTime { + /** + * 开始实时上报定位坐标服务 + * @param context 上下文对象 + * @param appId 配置id + */ public static void startRealTime(Context context, String appId) { SnapshotUploadInTime.getInstance().start(context, appId); } + /** + * 停止实时上报定位坐标服务 + */ public static void stopRealTime(){ SnapshotUploadInTime.getInstance().stop(); } + /** + * 注册上报定位回调 + * @param onMsgListener {@link IMogoCloudOnMsgListener} + */ public static void registerOnMsgListener(IMogoCloudOnMsgListener onMsgListener) { SocketHandler.getInstance().registerOnMsgListener(onMsgListener); } + /** + * 取消注册上报定位回调 + * @param onMsgListener {@link IMogoCloudOnMsgListener} + */ public static void unRegisterOnMsgListener(IMogoCloudOnMsgListener onMsgListener) { SocketHandler.getInstance().unRegisterOnMsgListener(onMsgListener); } From f9e3f6a887956faad937a5375f4ba2a9d9d95710 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 27 Jan 2021 14:11:27 +0800 Subject: [PATCH 11/14] opt --- .../mogo/cloud/network/NetworkActivity.java | 35 ++--------------- .../java/com/mogo/cloud/tanlu/CosUpload.java | 39 +++++++++++-------- 2 files changed, 26 insertions(+), 48 deletions(-) diff --git a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java index a07172f..99fbdd0 100644 --- a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java +++ b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java @@ -14,20 +14,14 @@ import com.mogo.cloud.commons.network.BaseData; import com.mogo.cloud.commons.network.RetrofitFactory; import com.mogo.cloud.tanlu.MogoRoadSearchManager; import com.mogo.cloud.tanlu.MogoUploadManager; -import com.mogo.cloud.tanlu.UploadManager; import com.mogo.cloud.tanlu.api.IRoadInfoSearchCallback; import com.mogo.cloud.tanlu.api.ITanluUploadCallback; -import com.mogo.cloud.tanlu.bean.InformationBody; import com.mogo.cloud.tanlu.bean.RoadInfos; import com.mogo.cloud.tanlu.bean.UploadInfo; import com.mogo.cloud.tanlu.bean.UploadResult; - -import java.util.ArrayList; import java.util.HashMap; -import java.util.List; import java.util.Map; -import java.util.concurrent.atomic.AtomicInteger; import io.reactivex.Observer; import io.reactivex.android.schedulers.AndroidSchedulers; @@ -42,7 +36,7 @@ public class NetworkActivity extends AppCompatActivity { private Button btn; private TextView tvResult; private ApiService apiService; - private static final String TAG = "liyz"; + private static final String TAG = "NetworkActivity"; @Override @@ -62,7 +56,7 @@ public class NetworkActivity extends AppCompatActivity { // queryHelpSignal("ZD802C1938L10797"); //上报路况到服务端 - // uploadRoadInfo(); + uploadRoadInfo(); //查询路况 // queryRoad(); } @@ -98,13 +92,8 @@ public class NetworkActivity extends AppCompatActivity { public void uploadRoadInfo() { UploadInfo info = new UploadInfo(); - -// List filePath = new ArrayList<>(); -// filePath.add("/storage/emulated/0/Movies/compress_video_20210126174432.mp4"); -// filePath.add("/data/user/0/com.mogo.launcher.f/Thumbnail1611654285824.jpg"); - // info.setFilePath("/storage/emulated/0/Movies/compress_video_20210127112035.mp4"); - info.setFilePath("/storage/emulated/0/Movies/2222.png"); +// info.setFilePath("/storage/emulated/0/Movies/2222.png"); info.setAddr("北京市东城区小黄庄北街2号靠近中国银行"); info.setLongitude(116.410892); @@ -138,24 +127,6 @@ public class NetworkActivity extends AppCompatActivity { } }); -// UploadManager.getInstance(NetworkActivity.this).init(); -// UploadManager.getInstance(NetworkActivity.this).loadUpload(null,new ITanluUploadCallback() { -// @Override -// public void onSuccess(BaseData result) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo result.id = " + result.getResult().id); -// tvResult.setText(result.getResult().id + ""); -// } -// -// @Override -// public void onFailure(int code) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo code = " + code); -// } -// -// @Override -// public void onError(Throwable e) { -// Log.d(TAG, "NetworkActivity uploadRoadInfo onError e = " + e); -// } -// }); } public void queryRoadData(String sn) { diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java index e7b3e0d..de98653 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java @@ -1,6 +1,7 @@ package com.mogo.cloud.tanlu; import android.content.Context; +import android.text.TextUtils; import android.util.Log; import com.google.gson.JsonArray; @@ -62,24 +63,30 @@ public class CosUpload implements CosStatusCallback { } public void uploadInfo(UploadInfo info, ITanluUploadCallback callback) { - Log.d(HttpConstant.TANLU, "videoPath = " + info.getFilePath()); - if (isVideo(info.getFilePath())) { - videoCoverImage = getVideoPicPath(); - Log.d(HttpConstant.TANLU, "videoCoverImage = " + videoCoverImage); - boolean isSuccess = getVideoThumbnail(info.getFilePath(), videoCoverImage); - Log.d(HttpConstant.TANLU, "isSuccess = " + isSuccess); - filePath.add(info.getFilePath()); - filePath.add(videoCoverImage); - } else { - videoCoverImage = null; - filePath.add(info.getFilePath()); - } - - Log.e(HttpConstant.TANLU, "filePath.size() = " + filePath.size()); - CosUploadManagerImpl.getInstance(mContext.getApplicationContext()) - .upload(filePath, mPicEventId, DbPriorityConfig.PRIORITY_HIGH); mCallback = callback; mUploadInfo = info; + + Log.d(HttpConstant.TANLU, "videoPath = " + info.getFilePath()); + if (!TextUtils.isEmpty(info.getFilePath())) { //不传路径 + if (isVideo(info.getFilePath())) { + videoCoverImage = getVideoPicPath(); + Log.d(HttpConstant.TANLU, "videoCoverImage = " + videoCoverImage); + boolean isSuccess = getVideoThumbnail(info.getFilePath(), videoCoverImage); + Log.d(HttpConstant.TANLU, "isSuccess = " + isSuccess); + filePath.add(info.getFilePath()); + filePath.add(videoCoverImage); + } else { + videoCoverImage = null; + filePath.add(info.getFilePath()); + } + + Log.e(HttpConstant.TANLU, "filePath.size() = " + filePath.size()); + CosUploadManagerImpl.getInstance(mContext.getApplicationContext()) + .upload(filePath, mPicEventId, DbPriorityConfig.PRIORITY_HIGH); + } else { + //直接上报 + sendInformation(); + } } @Override From 34cfa07e3fd624dc4d31f1d0e8e7869e5fd68d1d Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 27 Jan 2021 14:12:16 +0800 Subject: [PATCH 12/14] opt --- app/src/main/java/com/mogo/cloud/network/NetworkActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java index 99fbdd0..b94e020 100644 --- a/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java +++ b/app/src/main/java/com/mogo/cloud/network/NetworkActivity.java @@ -52,11 +52,11 @@ public class NetworkActivity extends AppCompatActivity { @Override public void onClick(View view) { tvResult.setText("结果显示"); - queryRoadData("ZD802C1938L10797"); +// queryRoadData("ZD802C1938L10797"); // queryHelpSignal("ZD802C1938L10797"); //上报路况到服务端 - uploadRoadInfo(); +// uploadRoadInfo(); //查询路况 // queryRoad(); } From 9b792f7c504408015b9d20f85f9447b62276d575 Mon Sep 17 00:00:00 2001 From: zhongchao Date: Wed, 27 Jan 2021 14:20:27 +0800 Subject: [PATCH 13/14] module:realtime add javadoc --- ApiDoc/allclasses-frame.html | 40 + ApiDoc/allclasses-noframe.html | 40 + .../Interface/MoGoAiCloudRealTime.html | 339 ++++++++ .../realtime/Interface/RealTimeProvider.html | 246 ++++++ .../class-use/MoGoAiCloudRealTime.html | 125 +++ .../Interface/class-use/RealTimeProvider.html | 167 ++++ .../realtime/Interface/package-frame.html | 25 + .../realtime/Interface/package-summary.html | 162 ++++ .../mogo/realtime/Interface/package-tree.html | 142 +++ .../mogo/realtime/Interface/package-use.html | 160 ++++ ...orrectStrategy.RecordLocationListener.html | 232 +++++ .../core/SimpleLocationCorrectStrategy.html | 342 ++++++++ .../realtime/core/SnapshotUploadInTime.html | 304 +++++++ ...adInTimeHandler.IUploadInTimeListener.html | 234 +++++ .../realtime/core/UploadInTimeHandler.html | 319 +++++++ ...orrectStrategy.RecordLocationListener.html | 165 ++++ .../SimpleLocationCorrectStrategy.html | 165 ++++ .../core/class-use/SnapshotUploadInTime.html | 165 ++++ ...adInTimeHandler.IUploadInTimeListener.html | 180 ++++ .../core/class-use/UploadInTimeHandler.html | 165 ++++ .../com/mogo/realtime/core/package-frame.html | 28 + .../mogo/realtime/core/package-summary.html | 178 ++++ .../com/mogo/realtime/core/package-tree.html | 145 ++++ .../com/mogo/realtime/core/package-use.html | 178 ++++ .../realtime/entity/ADASRecognizedResult.html | 453 ++++++++++ .../realtime/entity/CloudLocationInfo.html | 646 ++++++++++++++ .../mogo/realtime/entity/CloudRoadData.html | 806 ++++++++++++++++++ .../mogo/realtime/entity/LocationResult.html | 325 +++++++ .../realtime/entity/MogoSnapshotSetData.html | 588 +++++++++++++ .../entity/OnePerSecondSendContent.html | 294 +++++++ .../class-use/ADASRecognizedResult.html | 213 +++++ .../entity/class-use/CloudLocationInfo.html | 424 +++++++++ .../entity/class-use/CloudRoadData.html | 233 +++++ .../entity/class-use/LocationResult.html | 167 ++++ .../entity/class-use/MogoSnapshotSetData.html | 189 ++++ .../class-use/OnePerSecondSendContent.html | 125 +++ .../mogo/realtime/entity/package-frame.html | 26 + .../mogo/realtime/entity/package-summary.html | 169 ++++ .../mogo/realtime/entity/package-tree.html | 143 ++++ .../com/mogo/realtime/entity/package-use.html | 309 +++++++ .../realtime/location/MogoRTKLocation.html | 284 ++++++ .../location/class-use/MogoRTKLocation.html | 165 ++++ .../mogo/realtime/location/package-frame.html | 21 + .../realtime/location/package-summary.html | 145 ++++ .../mogo/realtime/location/package-tree.html | 138 +++ .../mogo/realtime/location/package-use.html | 160 ++++ .../socket/IMogoCloudOnAckListener.html | 230 +++++ .../socket/IMogoCloudOnMsgListener.html | 250 ++++++ .../mogo/realtime/socket/SocketHandler.html | 368 ++++++++ .../class-use/IMogoCloudOnAckListener.html | 165 ++++ .../class-use/IMogoCloudOnMsgListener.html | 199 +++++ .../socket/class-use/SocketHandler.html | 165 ++++ .../mogo/realtime/socket/package-frame.html | 26 + .../mogo/realtime/socket/package-summary.html | 168 ++++ .../mogo/realtime/socket/package-tree.html | 143 ++++ .../com/mogo/realtime/socket/package-use.html | 191 +++++ .../realtime/spi/RealTimeProviderImp.html | 320 +++++++ .../spi/class-use/RealTimeProviderImp.html | 165 ++++ .../com/mogo/realtime/spi/package-frame.html | 21 + .../mogo/realtime/spi/package-summary.html | 145 ++++ .../com/mogo/realtime/spi/package-tree.html | 138 +++ ApiDoc/com/mogo/realtime/spi/package-use.html | 160 ++++ .../mogo/realtime/util/LocationParseUtil.html | 299 +++++++ ApiDoc/com/mogo/realtime/util/MogoLatLng.html | 479 +++++++++++ ApiDoc/com/mogo/realtime/util/MortonCode.html | 326 +++++++ .../util/class-use/LocationParseUtil.html | 125 +++ .../realtime/util/class-use/MogoLatLng.html | 206 +++++ .../realtime/util/class-use/MortonCode.html | 125 +++ .../com/mogo/realtime/util/package-frame.html | 23 + .../mogo/realtime/util/package-summary.html | 157 ++++ .../com/mogo/realtime/util/package-tree.html | 140 +++ .../com/mogo/realtime/util/package-use.html | 181 ++++ ApiDoc/constant-values.html | 168 ++++ ApiDoc/deprecated-list.html | 125 +++ ApiDoc/help-doc.html | 230 +++++ ApiDoc/index-files/index-1.html | 140 +++ ApiDoc/index-files/index-10.html | 166 ++++ ApiDoc/index-files/index-11.html | 148 ++++ ApiDoc/index-files/index-12.html | 130 +++ ApiDoc/index-files/index-13.html | 150 ++++ ApiDoc/index-files/index-14.html | 262 ++++++ ApiDoc/index-files/index-15.html | 138 +++ ApiDoc/index-files/index-16.html | 146 ++++ ApiDoc/index-files/index-17.html | 138 +++ ApiDoc/index-files/index-2.html | 195 +++++ ApiDoc/index-files/index-3.html | 140 +++ ApiDoc/index-files/index-4.html | 138 +++ ApiDoc/index-files/index-5.html | 134 +++ ApiDoc/index-files/index-6.html | 214 +++++ ApiDoc/index-files/index-7.html | 136 +++ ApiDoc/index-files/index-8.html | 144 ++++ ApiDoc/index-files/index-9.html | 158 ++++ ApiDoc/index.html | 76 ++ ApiDoc/overview-frame.html | 28 + ApiDoc/overview-summary.html | 160 ++++ ApiDoc/overview-tree.html | 167 ++++ ApiDoc/package-list | 7 + ApiDoc/script.js | 30 + ApiDoc/stylesheet.css | 574 +++++++++++++ 99 files changed, 19426 insertions(+) create mode 100644 ApiDoc/allclasses-frame.html create mode 100644 ApiDoc/allclasses-noframe.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/MoGoAiCloudRealTime.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/RealTimeProvider.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/class-use/MoGoAiCloudRealTime.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/class-use/RealTimeProvider.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/Interface/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.RecordLocationListener.html create mode 100644 ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.html create mode 100644 ApiDoc/com/mogo/realtime/core/SnapshotUploadInTime.html create mode 100644 ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.IUploadInTimeListener.html create mode 100644 ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.html create mode 100644 ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.RecordLocationListener.html create mode 100644 ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.html create mode 100644 ApiDoc/com/mogo/realtime/core/class-use/SnapshotUploadInTime.html create mode 100644 ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.IUploadInTimeListener.html create mode 100644 ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.html create mode 100644 ApiDoc/com/mogo/realtime/core/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/core/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/core/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/core/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/entity/ADASRecognizedResult.html create mode 100644 ApiDoc/com/mogo/realtime/entity/CloudLocationInfo.html create mode 100644 ApiDoc/com/mogo/realtime/entity/CloudRoadData.html create mode 100644 ApiDoc/com/mogo/realtime/entity/LocationResult.html create mode 100644 ApiDoc/com/mogo/realtime/entity/MogoSnapshotSetData.html create mode 100644 ApiDoc/com/mogo/realtime/entity/OnePerSecondSendContent.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/ADASRecognizedResult.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/CloudLocationInfo.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/CloudRoadData.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/LocationResult.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/MogoSnapshotSetData.html create mode 100644 ApiDoc/com/mogo/realtime/entity/class-use/OnePerSecondSendContent.html create mode 100644 ApiDoc/com/mogo/realtime/entity/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/entity/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/entity/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/entity/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/location/MogoRTKLocation.html create mode 100644 ApiDoc/com/mogo/realtime/location/class-use/MogoRTKLocation.html create mode 100644 ApiDoc/com/mogo/realtime/location/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/location/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/location/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/location/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/socket/IMogoCloudOnAckListener.html create mode 100644 ApiDoc/com/mogo/realtime/socket/IMogoCloudOnMsgListener.html create mode 100644 ApiDoc/com/mogo/realtime/socket/SocketHandler.html create mode 100644 ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnAckListener.html create mode 100644 ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnMsgListener.html create mode 100644 ApiDoc/com/mogo/realtime/socket/class-use/SocketHandler.html create mode 100644 ApiDoc/com/mogo/realtime/socket/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/socket/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/socket/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/socket/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/spi/RealTimeProviderImp.html create mode 100644 ApiDoc/com/mogo/realtime/spi/class-use/RealTimeProviderImp.html create mode 100644 ApiDoc/com/mogo/realtime/spi/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/spi/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/spi/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/spi/package-use.html create mode 100644 ApiDoc/com/mogo/realtime/util/LocationParseUtil.html create mode 100644 ApiDoc/com/mogo/realtime/util/MogoLatLng.html create mode 100644 ApiDoc/com/mogo/realtime/util/MortonCode.html create mode 100644 ApiDoc/com/mogo/realtime/util/class-use/LocationParseUtil.html create mode 100644 ApiDoc/com/mogo/realtime/util/class-use/MogoLatLng.html create mode 100644 ApiDoc/com/mogo/realtime/util/class-use/MortonCode.html create mode 100644 ApiDoc/com/mogo/realtime/util/package-frame.html create mode 100644 ApiDoc/com/mogo/realtime/util/package-summary.html create mode 100644 ApiDoc/com/mogo/realtime/util/package-tree.html create mode 100644 ApiDoc/com/mogo/realtime/util/package-use.html create mode 100644 ApiDoc/constant-values.html create mode 100644 ApiDoc/deprecated-list.html create mode 100644 ApiDoc/help-doc.html create mode 100644 ApiDoc/index-files/index-1.html create mode 100644 ApiDoc/index-files/index-10.html create mode 100644 ApiDoc/index-files/index-11.html create mode 100644 ApiDoc/index-files/index-12.html create mode 100644 ApiDoc/index-files/index-13.html create mode 100644 ApiDoc/index-files/index-14.html create mode 100644 ApiDoc/index-files/index-15.html create mode 100644 ApiDoc/index-files/index-16.html create mode 100644 ApiDoc/index-files/index-17.html create mode 100644 ApiDoc/index-files/index-2.html create mode 100644 ApiDoc/index-files/index-3.html create mode 100644 ApiDoc/index-files/index-4.html create mode 100644 ApiDoc/index-files/index-5.html create mode 100644 ApiDoc/index-files/index-6.html create mode 100644 ApiDoc/index-files/index-7.html create mode 100644 ApiDoc/index-files/index-8.html create mode 100644 ApiDoc/index-files/index-9.html create mode 100644 ApiDoc/index.html create mode 100644 ApiDoc/overview-frame.html create mode 100644 ApiDoc/overview-summary.html create mode 100644 ApiDoc/overview-tree.html create mode 100644 ApiDoc/package-list create mode 100644 ApiDoc/script.js create mode 100644 ApiDoc/stylesheet.css diff --git a/ApiDoc/allclasses-frame.html b/ApiDoc/allclasses-frame.html new file mode 100644 index 0000000..e0b0d9c --- /dev/null +++ b/ApiDoc/allclasses-frame.html @@ -0,0 +1,40 @@ + + + + + + +所有类 (蘑菇AI云平台Doc) + + + + + +

所有类

+ + + diff --git a/ApiDoc/allclasses-noframe.html b/ApiDoc/allclasses-noframe.html new file mode 100644 index 0000000..f3be973 --- /dev/null +++ b/ApiDoc/allclasses-noframe.html @@ -0,0 +1,40 @@ + + + + + + +所有类 (蘑菇AI云平台Doc) + + + + + +

所有类

+ + + diff --git a/ApiDoc/com/mogo/realtime/Interface/MoGoAiCloudRealTime.html b/ApiDoc/com/mogo/realtime/Interface/MoGoAiCloudRealTime.html new file mode 100644 index 0000000..bf6a059 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/MoGoAiCloudRealTime.html @@ -0,0 +1,339 @@ + + + + + + +MoGoAiCloudRealTime (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.Interface
+

类 MoGoAiCloudRealTime

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.Interface.MoGoAiCloudRealTime
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MoGoAiCloudRealTime
    +extends java.lang.Object
    +
    RealTime实时上报数据服务SDK
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        MoGoAiCloudRealTime

        +
        public MoGoAiCloudRealTime()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        startRealTime

        +
        public static void startRealTime(android.content.Context context,
        +                                 java.lang.String appId)
        +
        开始实时上报定位坐标服务
        +
        +
        参数:
        +
        context - 上下文对象
        +
        appId - 配置id
        +
        +
      • +
      + + + +
        +
      • +

        stopRealTime

        +
        public static void stopRealTime()
        +
        停止实时上报定位坐标服务
        +
      • +
      + + + + + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/RealTimeProvider.html b/ApiDoc/com/mogo/realtime/Interface/RealTimeProvider.html new file mode 100644 index 0000000..94cc677 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/RealTimeProvider.html @@ -0,0 +1,246 @@ + + + + + + +RealTimeProvider (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.Interface
+

接口 RealTimeProvider

+
+
+
+
    +
  • +
    +
    所有已知实现类:
    +
    RealTimeProviderImp
    +
    +
    +
    +
    public interface RealTimeProvider
    +
    蘑菇AI云平台实时定位点上报服务接口
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getLastADASRecognizedResult

        +
        java.util.List<ADASRecognizedResult> getLastADASRecognizedResult()
        +
        获取 adas 识别列表,由外部传入
        +
      • +
      + + + +
        +
      • +

        getLocationMsg

        +
        java.util.List<CloudLocationInfo> getLocationMsg()
        +
        发送消息,由外部传入
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/class-use/MoGoAiCloudRealTime.html b/ApiDoc/com/mogo/realtime/Interface/class-use/MoGoAiCloudRealTime.html new file mode 100644 index 0000000..bd8c6f1 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/class-use/MoGoAiCloudRealTime.html @@ -0,0 +1,125 @@ + + + + + + +类 com.mogo.realtime.Interface.MoGoAiCloudRealTime的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.Interface.MoGoAiCloudRealTime

+
+
没有com.mogo.realtime.Interface.MoGoAiCloudRealTime的用法
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/class-use/RealTimeProvider.html b/ApiDoc/com/mogo/realtime/Interface/class-use/RealTimeProvider.html new file mode 100644 index 0000000..cf2a322 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/class-use/RealTimeProvider.html @@ -0,0 +1,167 @@ + + + + + + +接口 com.mogo.realtime.Interface.RealTimeProvider的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

接口的使用
com.mogo.realtime.Interface.RealTimeProvider

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/package-frame.html b/ApiDoc/com/mogo/realtime/Interface/package-frame.html new file mode 100644 index 0000000..f8a3d9a --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/package-frame.html @@ -0,0 +1,25 @@ + + + + + + +com.mogo.realtime.Interface (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.Interface

+
+

接口

+ +

+ +
+ + diff --git a/ApiDoc/com/mogo/realtime/Interface/package-summary.html b/ApiDoc/com/mogo/realtime/Interface/package-summary.html new file mode 100644 index 0000000..b473551 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/package-summary.html @@ -0,0 +1,162 @@ + + + + + + +com.mogo.realtime.Interface (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.Interface

+
+
+
    +
  • + + + + + + + + + + + + +
    接口概要 
    接口说明
    RealTimeProvider +
    蘑菇AI云平台实时定位点上报服务接口
    +
    +
  • +
  • + + + + + + + + + + + + +
    类概要 
    说明
    MoGoAiCloudRealTime +
    RealTime实时上报数据服务SDK
    +
    +
  • +
+
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/package-tree.html b/ApiDoc/com/mogo/realtime/Interface/package-tree.html new file mode 100644 index 0000000..f0094be --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/package-tree.html @@ -0,0 +1,142 @@ + + + + + + +com.mogo.realtime.Interface 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.Interface的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

接口分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/Interface/package-use.html b/ApiDoc/com/mogo/realtime/Interface/package-use.html new file mode 100644 index 0000000..e6845f3 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/Interface/package-use.html @@ -0,0 +1,160 @@ + + + + + + +程序包 com.mogo.realtime.Interface的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.Interface

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.RecordLocationListener.html b/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.RecordLocationListener.html new file mode 100644 index 0000000..2ad4d86 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.RecordLocationListener.html @@ -0,0 +1,232 @@ + + + + + + +SimpleLocationCorrectStrategy.RecordLocationListener (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.core
+

接口 SimpleLocationCorrectStrategy.RecordLocationListener

+
+
+
+ +
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.html b/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.html new file mode 100644 index 0000000..ce2d432 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/SimpleLocationCorrectStrategy.html @@ -0,0 +1,342 @@ + + + + + + +SimpleLocationCorrectStrategy (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.core
+

类 SimpleLocationCorrectStrategy

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.core.SimpleLocationCorrectStrategy
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SimpleLocationCorrectStrategy
    +extends java.lang.Object
    +
    定位预测纠错策略
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        SimpleLocationCorrectStrategy

        +
        public SimpleLocationCorrectStrategy()
        +
      • +
      +
    • +
    + + +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/SnapshotUploadInTime.html b/ApiDoc/com/mogo/realtime/core/SnapshotUploadInTime.html new file mode 100644 index 0000000..cf6a8dd --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/SnapshotUploadInTime.html @@ -0,0 +1,304 @@ + + + + + + +SnapshotUploadInTime (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.core
+

类 SnapshotUploadInTime

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.core.SnapshotUploadInTime
    • +
    +
  • +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 静态方法 实例方法 具体方法 
      限定符和类型方法和说明
      static SnapshotUploadInTimegetInstance() 
      voidsendLocationData() +
      上报自车数据
      +
      voidstart(android.content.Context context, + java.lang.String appId) +
      开始实时定位数据上报
      +
      voidstop() +
      停止实时定位数据上报
      +
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+ +
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.IUploadInTimeListener.html b/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.IUploadInTimeListener.html new file mode 100644 index 0000000..f905e65 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.IUploadInTimeListener.html @@ -0,0 +1,234 @@ + + + + + + +UploadInTimeHandler.IUploadInTimeListener (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.core
+

接口 UploadInTimeHandler.IUploadInTimeListener

+
+
+
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        sendLocationData

        +
        void sendLocationData()
        +
        上报自车数据
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.html b/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.html new file mode 100644 index 0000000..275480e --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/UploadInTimeHandler.html @@ -0,0 +1,319 @@ + + + + + + +UploadInTimeHandler (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.core
+

类 UploadInTimeHandler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.core.UploadInTimeHandler
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class UploadInTimeHandler
    +extends java.lang.Object
    +
    AI云 实时上报数据频率处理类
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + + + + + +
        +
      • +

        start

        +
        public void start()
        +
      • +
      + + + + + + + +
        +
      • +

        resetUploadDelay

        +
        public void resetUploadDelay(long delay)
        +
        默认保持uploadDelay间隔进行位置上报,如遇服务端控制,进行上报间隔修改
        +
        +
        参数:
        +
        delay - 上报间隔
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.RecordLocationListener.html b/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.RecordLocationListener.html new file mode 100644 index 0000000..d671edd --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.RecordLocationListener.html @@ -0,0 +1,165 @@ + + + + + + +接口 com.mogo.realtime.core.SimpleLocationCorrectStrategy.RecordLocationListener的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

接口的使用
com.mogo.realtime.core.SimpleLocationCorrectStrategy.RecordLocationListener

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.html b/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.html new file mode 100644 index 0000000..acd8479 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/class-use/SimpleLocationCorrectStrategy.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.core.SimpleLocationCorrectStrategy的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.core.SimpleLocationCorrectStrategy

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/class-use/SnapshotUploadInTime.html b/ApiDoc/com/mogo/realtime/core/class-use/SnapshotUploadInTime.html new file mode 100644 index 0000000..a9dc89b --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/class-use/SnapshotUploadInTime.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.core.SnapshotUploadInTime的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.core.SnapshotUploadInTime

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.IUploadInTimeListener.html b/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.IUploadInTimeListener.html new file mode 100644 index 0000000..ee9d113 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.IUploadInTimeListener.html @@ -0,0 +1,180 @@ + + + + + + +接口 com.mogo.realtime.core.UploadInTimeHandler.IUploadInTimeListener的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

接口的使用
com.mogo.realtime.core.UploadInTimeHandler.IUploadInTimeListener

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.html b/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.html new file mode 100644 index 0000000..29d5304 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/class-use/UploadInTimeHandler.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.core.UploadInTimeHandler的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.core.UploadInTimeHandler

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/package-frame.html b/ApiDoc/com/mogo/realtime/core/package-frame.html new file mode 100644 index 0000000..7c17939 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/package-frame.html @@ -0,0 +1,28 @@ + + + + + + +com.mogo.realtime.core (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.core

+ + + diff --git a/ApiDoc/com/mogo/realtime/core/package-summary.html b/ApiDoc/com/mogo/realtime/core/package-summary.html new file mode 100644 index 0000000..a04bc79 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/package-summary.html @@ -0,0 +1,178 @@ + + + + + + +com.mogo.realtime.core (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.core

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/package-tree.html b/ApiDoc/com/mogo/realtime/core/package-tree.html new file mode 100644 index 0000000..1555dd2 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/package-tree.html @@ -0,0 +1,145 @@ + + + + + + +com.mogo.realtime.core 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.core的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +

接口分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/core/package-use.html b/ApiDoc/com/mogo/realtime/core/package-use.html new file mode 100644 index 0000000..a644cc9 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/core/package-use.html @@ -0,0 +1,178 @@ + + + + + + +程序包 com.mogo.realtime.core的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.core

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/ADASRecognizedResult.html b/ApiDoc/com/mogo/realtime/entity/ADASRecognizedResult.html new file mode 100644 index 0000000..2aeeab9 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/ADASRecognizedResult.html @@ -0,0 +1,453 @@ + + + + + + +ADASRecognizedResult (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 ADASRecognizedResult

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.ADASRecognizedResult
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class ADASRecognizedResult
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      字段 
      限定符和类型字段和说明
      doublealt +
      海拔
      +
      java.lang.StringcarId +
      车ID
      +
      java.lang.Stringcolor +
      红绿灯颜色
      +
      doubleheading +
      车头朝向
      +
      doublelat +
      识别物体的纬度
      +
      doublelon +
      识别物体的经度
      +
      longmortonCode +
      莫顿码
      +
      longsatelliteTime +
      定位卫星时间
      +
      doublespeed +
      速度
      +
      longsystemTime +
      系统时间
      +
      inttype +
      识别物体类型
      +
      java.lang.Stringuuid +
      识别物体唯一标识
      +
      +
    • +
    + + + +
      +
    • + + +

      方法概要

      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        type

        +
        public int type
        +
        识别物体类型
        +
      • +
      + + + +
        +
      • +

        uuid

        +
        public java.lang.String uuid
        +
        识别物体唯一标识
        +
      • +
      + + + +
        +
      • +

        color

        +
        public java.lang.String color
        +
        红绿灯颜色
        +
      • +
      + + + +
        +
      • +

        carId

        +
        public java.lang.String carId
        +
        车ID
        +
      • +
      + + + +
        +
      • +

        lat

        +
        public double lat
        +
        识别物体的纬度
        +
      • +
      + + + +
        +
      • +

        lon

        +
        public double lon
        +
        识别物体的经度
        +
      • +
      + + + +
        +
      • +

        heading

        +
        public double heading
        +
        车头朝向
        +
      • +
      + + + +
        +
      • +

        systemTime

        +
        public long systemTime
        +
        系统时间
        +
      • +
      + + + +
        +
      • +

        satelliteTime

        +
        public long satelliteTime
        +
        定位卫星时间
        +
      • +
      + + + +
        +
      • +

        alt

        +
        public double alt
        +
        海拔
        +
      • +
      + + + +
        +
      • +

        speed

        +
        public double speed
        +
        速度
        +
      • +
      + + + +
        +
      • +

        mortonCode

        +
        public long mortonCode
        +
        莫顿码
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        ADASRecognizedResult

        +
        public ADASRecognizedResult()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/CloudLocationInfo.html b/ApiDoc/com/mogo/realtime/entity/CloudLocationInfo.html new file mode 100644 index 0000000..72ef5a0 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/CloudLocationInfo.html @@ -0,0 +1,646 @@ + + + + + + +CloudLocationInfo (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 CloudLocationInfo

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.CloudLocationInfo
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.os.Parcelable
    +
    +
    +
    +
    public class CloudLocationInfo
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
    自车定位信息
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        CREATOR

        +
        public static final android.os.Parcelable.Creator<CloudLocationInfo> CREATOR
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        CloudLocationInfo

        +
        public CloudLocationInfo()
        +
      • +
      + + + + + + + +
        +
      • +

        CloudLocationInfo

        +
        protected CloudLocationInfo(android.os.Parcel in)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        convertCoor2GCJ02

        +
        public void convertCoor2GCJ02()
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        指定者:
        +
        writeToParcel 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        指定者:
        +
        describeContents 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        getLat

        +
        public double getLat()
        +
      • +
      + + + +
        +
      • +

        setLat

        +
        public void setLat(double lat)
        +
      • +
      + + + +
        +
      • +

        getLon

        +
        public double getLon()
        +
      • +
      + + + +
        +
      • +

        setLon

        +
        public void setLon(double lon)
        +
      • +
      + + + +
        +
      • +

        getHeading

        +
        public double getHeading()
        +
      • +
      + + + +
        +
      • +

        setHeading

        +
        public void setHeading(double heading)
        +
      • +
      + + + +
        +
      • +

        getSystemTime

        +
        public long getSystemTime()
        +
      • +
      + + + +
        +
      • +

        setSystemTime

        +
        public void setSystemTime(long systemTime)
        +
      • +
      + + + +
        +
      • +

        getSatelliteTime

        +
        public long getSatelliteTime()
        +
      • +
      + + + +
        +
      • +

        setSatelliteTime

        +
        public void setSatelliteTime(long satelliteTime)
        +
      • +
      + + + +
        +
      • +

        getAlt

        +
        public double getAlt()
        +
      • +
      + + + +
        +
      • +

        setAlt

        +
        public void setAlt(double alt)
        +
      • +
      + + + +
        +
      • +

        getSpeed

        +
        public double getSpeed()
        +
      • +
      + + + +
        +
      • +

        setSpeed

        +
        public void setSpeed(double speed)
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        覆盖:
        +
        toString 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        print

        +
        public java.lang.String print()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        覆盖:
        +
        equals 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        覆盖:
        +
        hashCode 在类中 java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/CloudRoadData.html b/ApiDoc/com/mogo/realtime/entity/CloudRoadData.html new file mode 100644 index 0000000..f9e5c77 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/CloudRoadData.html @@ -0,0 +1,806 @@ + + + + + + +CloudRoadData (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 CloudRoadData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.CloudRoadData
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.os.Parcelable
    +
    +
    +
    +
    public class CloudRoadData
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
    AI云平台下发 道路数据
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        FROM_MY_LOCATION

        +
        public static final int FROM_MY_LOCATION
        +
        +
        另请参阅:
        +
        常量字段值
        +
        +
      • +
      + + + +
        +
      • +

        FROM_ADAS

        +
        public static final int FROM_ADAS
        +
        +
        另请参阅:
        +
        常量字段值
        +
        +
      • +
      + + + +
        +
      • +

        FROM_ROAD_UNIT

        +
        public static final int FROM_ROAD_UNIT
        +
        +
        另请参阅:
        +
        常量字段值
        +
        +
      • +
      + + + +
        +
      • +

        CREATOR

        +
        public static final android.os.Parcelable.Creator<CloudRoadData> CREATOR
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        CloudRoadData

        +
        public CloudRoadData()
        +
      • +
      + + + +
        +
      • +

        CloudRoadData

        +
        protected CloudRoadData(android.os.Parcel in)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getType

        +
        public int getType()
        +
      • +
      + + + +
        +
      • +

        setType

        +
        public void setType(int type)
        +
      • +
      + + + +
        +
      • +

        getLat

        +
        public double getLat()
        +
      • +
      + + + +
        +
      • +

        setLat

        +
        public void setLat(double lat)
        +
      • +
      + + + +
        +
      • +

        getLon

        +
        public double getLon()
        +
      • +
      + + + +
        +
      • +

        setLon

        +
        public void setLon(double lon)
        +
      • +
      + + + +
        +
      • +

        getSpeed

        +
        public double getSpeed()
        +
      • +
      + + + +
        +
      • +

        setSpeed

        +
        public void setSpeed(double speed)
        +
      • +
      + + + +
        +
      • +

        getSystemTime

        +
        public long getSystemTime()
        +
      • +
      + + + +
        +
      • +

        setSystemTime

        +
        public void setSystemTime(long systemTime)
        +
      • +
      + + + +
        +
      • +

        getLightStatus

        +
        public int getLightStatus()
        +
      • +
      + + + +
        +
      • +

        setLightStatus

        +
        public void setLightStatus(int lightStatus)
        +
      • +
      + + + +
        +
      • +

        getLightLeftTime

        +
        public int getLightLeftTime()
        +
      • +
      + + + +
        +
      • +

        setLightLeftTime

        +
        public void setLightLeftTime(int lightLeftTime)
        +
      • +
      + + + +
        +
      • +

        getRtmpUrl

        +
        public java.lang.String getRtmpUrl()
        +
      • +
      + + + +
        +
      • +

        setRtmpUrl

        +
        public void setRtmpUrl(java.lang.String rtmpUrl)
        +
      • +
      + + + +
        +
      • +

        getDistance

        +
        public double getDistance()
        +
      • +
      + + + +
        +
      • +

        setDistance

        +
        public void setDistance(double distance)
        +
      • +
      + + + + + + + +
        +
      • +

        setCoordinates

        +
        public void setCoordinates(java.util.List<CloudLocationInfo> coordinates)
        +
      • +
      + + + +
        +
      • +

        setUuid

        +
        public void setUuid(java.lang.String uuid)
        +
      • +
      + + + +
        +
      • +

        getUuid

        +
        public java.lang.String getUuid()
        +
      • +
      + + + +
        +
      • +

        getSn

        +
        public java.lang.String getSn()
        +
      • +
      + + + +
        +
      • +

        getHeading

        +
        public double getHeading()
        +
      • +
      + + + +
        +
      • +

        setHeading

        +
        public void setHeading(double heading)
        +
      • +
      + + + +
        +
      • +

        getUniqueKey

        +
        public java.lang.String getUniqueKey()
        +
      • +
      + + + +
        +
      • +

        getFromType

        +
        public int getFromType()
        +
      • +
      + + + +
        +
      • +

        setFromType

        +
        public void setFromType(int fromType)
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        指定者:
        +
        describeContents 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        指定者:
        +
        writeToParcel 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        覆盖:
        +
        equals 在类中 java.lang.Object
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/LocationResult.html b/ApiDoc/com/mogo/realtime/entity/LocationResult.html new file mode 100644 index 0000000..a27225d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/LocationResult.html @@ -0,0 +1,325 @@ + + + + + + +LocationResult (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 LocationResult

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.LocationResult
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LocationResult
    +extends java.lang.Object
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      LocationResult() 
      +
    • +
    + +
      +
    • + + +

      方法概要

      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        sn

        +
        public java.lang.String sn
        +
        sn 车辆唯一识别号
        +
      • +
      + + + +
        +
      • +

        mortonCode

        +
        public long mortonCode
        +
        最后一个定位点的莫顿码
        +
      • +
      + + + +
        +
      • +

        lastCoordinate

        +
        public CloudLocationInfo lastCoordinate
        +
        最后一个定位点
        +
      • +
      + + + +
        +
      • +

        coordinates

        +
        public java.util.List<CloudLocationInfo> coordinates
        +
        1s 内的连续定位点
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        LocationResult

        +
        public LocationResult()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/MogoSnapshotSetData.html b/ApiDoc/com/mogo/realtime/entity/MogoSnapshotSetData.html new file mode 100644 index 0000000..31833cd --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/MogoSnapshotSetData.html @@ -0,0 +1,588 @@ + + + + + + +MogoSnapshotSetData (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 MogoSnapshotSetData

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.MogoSnapshotSetData
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.os.Parcelable
    +
    +
    +
    +
    public class MogoSnapshotSetData
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        curSpeed

        +
        public double curSpeed
        +
        自车速度 本地添加
        +
      • +
      + + + +
        +
      • +

        CREATOR

        +
        public static final android.os.Parcelable.Creator<MogoSnapshotSetData> CREATOR
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        MogoSnapshotSetData

        +
        public MogoSnapshotSetData()
        +
      • +
      + + + +
        +
      • +

        MogoSnapshotSetData

        +
        protected MogoSnapshotSetData(android.os.Parcel in)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        覆盖:
        +
        toString 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        getMsgId

        +
        public java.lang.String getMsgId()
        +
      • +
      + + + +
        +
      • +

        setMsgId

        +
        public void setMsgId(java.lang.String msgId)
        +
      • +
      + + + +
        +
      • +

        getTime

        +
        public long getTime()
        +
      • +
      + + + +
        +
      • +

        setTime

        +
        public void setTime(long time)
        +
      • +
      + + + +
        +
      • +

        getExpire

        +
        public long getExpire()
        +
      • +
      + + + +
        +
      • +

        setExpire

        +
        public void setExpire(long expire)
        +
      • +
      + + + +
        +
      • +

        getAllList

        +
        public java.util.List<CloudRoadData> getAllList()
        +
      • +
      + + + +
        +
      • +

        setAllList

        +
        public void setAllList(java.util.List<CloudRoadData> allList)
        +
      • +
      + + + +
        +
      • +

        getTrafficLight

        +
        public CloudRoadData getTrafficLight()
        +
      • +
      + + + +
        +
      • +

        setTrafficLight

        +
        public void setTrafficLight(CloudRoadData trafficLight)
        +
      • +
      + + + + + + + +
        +
      • +

        setCamera

        +
        public void setCamera(CloudRoadData camera)
        +
      • +
      + + + +
        +
      • +

        getNearList

        +
        public java.util.List<CloudRoadData> getNearList()
        +
      • +
      + + + +
        +
      • +

        setNearList

        +
        public void setNearList(java.util.List<CloudRoadData> nearList)
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        指定者:
        +
        describeContents 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        指定者:
        +
        writeToParcel 在接口中 android.os.Parcelable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/OnePerSecondSendContent.html b/ApiDoc/com/mogo/realtime/entity/OnePerSecondSendContent.html new file mode 100644 index 0000000..232f69d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/OnePerSecondSendContent.html @@ -0,0 +1,294 @@ + + + + + + +OnePerSecondSendContent (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.entity
+

类 OnePerSecondSendContent

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.entity.OnePerSecondSendContent
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class OnePerSecondSendContent
    +extends java.lang.Object
    +
    自车上报数据 1s内一次
    +
  • +
+
+
+
    +
  • + + + + + +
      +
    • + + +

      方法概要

      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + + + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        OnePerSecondSendContent

        +
        public OnePerSecondSendContent()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/ADASRecognizedResult.html b/ApiDoc/com/mogo/realtime/entity/class-use/ADASRecognizedResult.html new file mode 100644 index 0000000..1f81839 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/ADASRecognizedResult.html @@ -0,0 +1,213 @@ + + + + + + +类 com.mogo.realtime.entity.ADASRecognizedResult的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.ADASRecognizedResult

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/CloudLocationInfo.html b/ApiDoc/com/mogo/realtime/entity/class-use/CloudLocationInfo.html new file mode 100644 index 0000000..ca9b3c5 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/CloudLocationInfo.html @@ -0,0 +1,424 @@ + + + + + + +类 com.mogo.realtime.entity.CloudLocationInfo的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.CloudLocationInfo

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/CloudRoadData.html b/ApiDoc/com/mogo/realtime/entity/class-use/CloudRoadData.html new file mode 100644 index 0000000..3b5ff55 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/CloudRoadData.html @@ -0,0 +1,233 @@ + + + + + + +类 com.mogo.realtime.entity.CloudRoadData的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.CloudRoadData

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/LocationResult.html b/ApiDoc/com/mogo/realtime/entity/class-use/LocationResult.html new file mode 100644 index 0000000..edf6ec2 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/LocationResult.html @@ -0,0 +1,167 @@ + + + + + + +类 com.mogo.realtime.entity.LocationResult的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.LocationResult

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/MogoSnapshotSetData.html b/ApiDoc/com/mogo/realtime/entity/class-use/MogoSnapshotSetData.html new file mode 100644 index 0000000..bdafc05 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/MogoSnapshotSetData.html @@ -0,0 +1,189 @@ + + + + + + +类 com.mogo.realtime.entity.MogoSnapshotSetData的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.MogoSnapshotSetData

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/class-use/OnePerSecondSendContent.html b/ApiDoc/com/mogo/realtime/entity/class-use/OnePerSecondSendContent.html new file mode 100644 index 0000000..97fba0d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/class-use/OnePerSecondSendContent.html @@ -0,0 +1,125 @@ + + + + + + +类 com.mogo.realtime.entity.OnePerSecondSendContent的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.entity.OnePerSecondSendContent

+
+
没有com.mogo.realtime.entity.OnePerSecondSendContent的用法
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/package-frame.html b/ApiDoc/com/mogo/realtime/entity/package-frame.html new file mode 100644 index 0000000..aa0ff49 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +com.mogo.realtime.entity (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.entity

+ + + diff --git a/ApiDoc/com/mogo/realtime/entity/package-summary.html b/ApiDoc/com/mogo/realtime/entity/package-summary.html new file mode 100644 index 0000000..8a1209b --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/package-summary.html @@ -0,0 +1,169 @@ + + + + + + +com.mogo.realtime.entity (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.entity

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/package-tree.html b/ApiDoc/com/mogo/realtime/entity/package-tree.html new file mode 100644 index 0000000..c5a2d0d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +com.mogo.realtime.entity 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.entity的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/entity/package-use.html b/ApiDoc/com/mogo/realtime/entity/package-use.html new file mode 100644 index 0000000..9413357 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/entity/package-use.html @@ -0,0 +1,309 @@ + + + + + + +程序包 com.mogo.realtime.entity的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.entity

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/location/MogoRTKLocation.html b/ApiDoc/com/mogo/realtime/location/MogoRTKLocation.html new file mode 100644 index 0000000..57b2378 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/MogoRTKLocation.html @@ -0,0 +1,284 @@ + + + + + + +MogoRTKLocation (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.location
+

类 MogoRTKLocation

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.location.MogoRTKLocation
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MogoRTKLocation
    +extends java.lang.Object
    +
    AI云SDK内部定位服务
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + + + + + +
        +
      • +

        sendLocationData

        +
        public java.util.List<CloudLocationInfo> sendLocationData()
        +
      • +
      + + + +
        +
      • +

        init

        +
        public void init()
        +
        开启定位服务
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
        关闭定位服务
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/location/class-use/MogoRTKLocation.html b/ApiDoc/com/mogo/realtime/location/class-use/MogoRTKLocation.html new file mode 100644 index 0000000..8f68481 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/class-use/MogoRTKLocation.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.location.MogoRTKLocation的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.location.MogoRTKLocation

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/location/package-frame.html b/ApiDoc/com/mogo/realtime/location/package-frame.html new file mode 100644 index 0000000..fd0b544 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +com.mogo.realtime.location (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.location

+
+

+ +
+ + diff --git a/ApiDoc/com/mogo/realtime/location/package-summary.html b/ApiDoc/com/mogo/realtime/location/package-summary.html new file mode 100644 index 0000000..c68825d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/package-summary.html @@ -0,0 +1,145 @@ + + + + + + +com.mogo.realtime.location (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.location

+
+
+
    +
  • + + + + + + + + + + + + +
    类概要 
    说明
    MogoRTKLocation +
    AI云SDK内部定位服务
    +
    +
  • +
+
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/location/package-tree.html b/ApiDoc/com/mogo/realtime/location/package-tree.html new file mode 100644 index 0000000..4d981ed --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/package-tree.html @@ -0,0 +1,138 @@ + + + + + + +com.mogo.realtime.location 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.location的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/location/package-use.html b/ApiDoc/com/mogo/realtime/location/package-use.html new file mode 100644 index 0000000..fd53a8d --- /dev/null +++ b/ApiDoc/com/mogo/realtime/location/package-use.html @@ -0,0 +1,160 @@ + + + + + + +程序包 com.mogo.realtime.location的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.location

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnAckListener.html b/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnAckListener.html new file mode 100644 index 0000000..3e9625a --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnAckListener.html @@ -0,0 +1,230 @@ + + + + + + +IMogoCloudOnAckListener (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.socket
+

接口 IMogoCloudOnAckListener

+
+
+
+
    +
  • +
    +
    +
    public interface IMogoCloudOnAckListener
    +
    长连接数据消息ack回调
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法概要

      + + + + + + + + + + +
      所有方法 实例方法 抽象方法 
      限定符和类型方法和说明
      voidonAck(long resetTime) +
      对齐系统时间
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onAck

        +
        void onAck(long resetTime)
        +
        对齐系统时间
        +
        +
        参数:
        +
        resetTime - 系统时间
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnMsgListener.html b/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnMsgListener.html new file mode 100644 index 0000000..004aec2 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/IMogoCloudOnMsgListener.html @@ -0,0 +1,250 @@ + + + + + + +IMogoCloudOnMsgListener (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.socket
+

接口 IMogoCloudOnMsgListener

+
+
+
+
    +
  • +
    +
    +
    public interface IMogoCloudOnMsgListener
    +
    长连接数据上报下发回调
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        onMsgSend

        +
        void onMsgSend(long id)
        +
        长连接数据发送回调
        +
        +
        参数:
        +
        id - 发送消息id
        +
        +
      • +
      + + + +
        +
      • +

        onMsgReceived

        +
        void onMsgReceived(MogoSnapshotSetData mogoSnapshotSetData)
        +
        长连接数据接收回调
        +
        +
        参数:
        +
        mogoSnapshotSetData - 自车周边数据
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/SocketHandler.html b/ApiDoc/com/mogo/realtime/socket/SocketHandler.html new file mode 100644 index 0000000..374e6d1 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/SocketHandler.html @@ -0,0 +1,368 @@ + + + + + + +SocketHandler (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.socket
+

类 SocketHandler

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.socket.SocketHandler
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class SocketHandler
    +extends java.lang.Object
    +
    Socket长链 业务服务处理类
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        SocketHandler

        +
        public SocketHandler()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + + + + + +
        +
      • +

        initSocket

        +
        public void initSocket(android.content.Context context,
        +                       java.lang.String appId)
        +
        初始化长连接服务
        +
        +
        参数:
        +
        context - 上下文
        +
        appId - 外部传入
        +
        +
      • +
      + + + + + + + + + + + + + + + +
        +
      • +

        sendMsg

        +
        public void sendMsg(java.util.List<CloudLocationInfo> cloudLocationInfo)
        +
        发送自车和ADAS数据
        +
        +
        参数:
        +
        cloudLocationInfo - 自车定位信息
        +
        +
      • +
      + + + +
        +
      • +

        stop

        +
        public void stop()
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnAckListener.html b/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnAckListener.html new file mode 100644 index 0000000..2697306 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnAckListener.html @@ -0,0 +1,165 @@ + + + + + + +接口 com.mogo.realtime.socket.IMogoCloudOnAckListener的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

接口的使用
com.mogo.realtime.socket.IMogoCloudOnAckListener

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnMsgListener.html b/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnMsgListener.html new file mode 100644 index 0000000..589f063 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/class-use/IMogoCloudOnMsgListener.html @@ -0,0 +1,199 @@ + + + + + + +接口 com.mogo.realtime.socket.IMogoCloudOnMsgListener的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

接口的使用
com.mogo.realtime.socket.IMogoCloudOnMsgListener

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/class-use/SocketHandler.html b/ApiDoc/com/mogo/realtime/socket/class-use/SocketHandler.html new file mode 100644 index 0000000..53190ed --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/class-use/SocketHandler.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.socket.SocketHandler的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.socket.SocketHandler

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/package-frame.html b/ApiDoc/com/mogo/realtime/socket/package-frame.html new file mode 100644 index 0000000..f8dd83b --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/package-frame.html @@ -0,0 +1,26 @@ + + + + + + +com.mogo.realtime.socket (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.socket

+ + + diff --git a/ApiDoc/com/mogo/realtime/socket/package-summary.html b/ApiDoc/com/mogo/realtime/socket/package-summary.html new file mode 100644 index 0000000..3f39312 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/package-summary.html @@ -0,0 +1,168 @@ + + + + + + +com.mogo.realtime.socket (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.socket

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/package-tree.html b/ApiDoc/com/mogo/realtime/socket/package-tree.html new file mode 100644 index 0000000..c27fb8a --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/package-tree.html @@ -0,0 +1,143 @@ + + + + + + +com.mogo.realtime.socket 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.socket的分层结构

+程序包分层结构: + +
+
+

类分层结构

+
    +
  • java.lang.Object + +
  • +
+

接口分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/socket/package-use.html b/ApiDoc/com/mogo/realtime/socket/package-use.html new file mode 100644 index 0000000..734883a --- /dev/null +++ b/ApiDoc/com/mogo/realtime/socket/package-use.html @@ -0,0 +1,191 @@ + + + + + + +程序包 com.mogo.realtime.socket的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.socket

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/spi/RealTimeProviderImp.html b/ApiDoc/com/mogo/realtime/spi/RealTimeProviderImp.html new file mode 100644 index 0000000..cd1bfcb --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/RealTimeProviderImp.html @@ -0,0 +1,320 @@ + + + + + + +RealTimeProviderImp (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.spi
+

类 RealTimeProviderImp

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.spi.RealTimeProviderImp
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    RealTimeProvider
    +
    +
    +
    +
    public class RealTimeProviderImp
    +extends java.lang.Object
    +implements RealTimeProvider
    +
    RealTime Provider SPI 单例对象
    +
  • +
+
+
+ +
+
+ +
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/spi/class-use/RealTimeProviderImp.html b/ApiDoc/com/mogo/realtime/spi/class-use/RealTimeProviderImp.html new file mode 100644 index 0000000..6797f45 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/class-use/RealTimeProviderImp.html @@ -0,0 +1,165 @@ + + + + + + +类 com.mogo.realtime.spi.RealTimeProviderImp的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.spi.RealTimeProviderImp

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/spi/package-frame.html b/ApiDoc/com/mogo/realtime/spi/package-frame.html new file mode 100644 index 0000000..c5a81db --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/package-frame.html @@ -0,0 +1,21 @@ + + + + + + +com.mogo.realtime.spi (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.spi

+
+

+ +
+ + diff --git a/ApiDoc/com/mogo/realtime/spi/package-summary.html b/ApiDoc/com/mogo/realtime/spi/package-summary.html new file mode 100644 index 0000000..6740475 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/package-summary.html @@ -0,0 +1,145 @@ + + + + + + +com.mogo.realtime.spi (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.spi

+
+
+
    +
  • + + + + + + + + + + + + +
    类概要 
    说明
    RealTimeProviderImp +
    RealTime Provider SPI 单例对象
    +
    +
  • +
+
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/spi/package-tree.html b/ApiDoc/com/mogo/realtime/spi/package-tree.html new file mode 100644 index 0000000..03dd828 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/package-tree.html @@ -0,0 +1,138 @@ + + + + + + +com.mogo.realtime.spi 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.spi的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/spi/package-use.html b/ApiDoc/com/mogo/realtime/spi/package-use.html new file mode 100644 index 0000000..e28d5c9 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/spi/package-use.html @@ -0,0 +1,160 @@ + + + + + + +程序包 com.mogo.realtime.spi的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.spi

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/LocationParseUtil.html b/ApiDoc/com/mogo/realtime/util/LocationParseUtil.html new file mode 100644 index 0000000..45ecfb4 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/LocationParseUtil.html @@ -0,0 +1,299 @@ + + + + + + +LocationParseUtil (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.util
+

类 LocationParseUtil

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.util.LocationParseUtil
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class LocationParseUtil
    +extends java.lang.Object
    +
    定位数据类型转换工具
    +
    +
    作者:
    +
    tongchenfei
    +
    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        LocationParseUtil

        +
        public LocationParseUtil()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        locationToCloudLocation

        +
        public static CloudLocationInfo locationToCloudLocation(android.location.Location info)
        +
        从Location 转 CloudLocationInfo
        +
        +
        参数:
        +
        info - 待转数据
        +
        返回:
        +
        转后数据
        +
        +
      • +
      + + + + +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/MogoLatLng.html b/ApiDoc/com/mogo/realtime/util/MogoLatLng.html new file mode 100644 index 0000000..229a1b2 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/MogoLatLng.html @@ -0,0 +1,479 @@ + + + + + + +MogoLatLng (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.util
+

类 MogoLatLng

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.util.MogoLatLng
    • +
    +
  • +
+
+
    +
  • +
    +
    所有已实现的接口:
    +
    android.os.Parcelable
    +
    +
    +
    +
    public class MogoLatLng
    +extends java.lang.Object
    +implements android.os.Parcelable
    +
    经纬度
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      嵌套类概要

      +
        +
      • + + +

        从接口继承的嵌套类/接口 android.os.Parcelable

        +android.os.Parcelable.ClassLoaderCreator<T>, android.os.Parcelable.Creator<T>
      • +
      +
    • +
    + +
      +
    • + + +

      字段概要

      + + + + + + + + + + + + + + + + + + +
      字段 
      限定符和类型字段和说明
      static android.os.Parcelable.Creator<MogoLatLng>CREATOR 
      doublelat 
      doublelon 
      +
        +
      • + + +

        从接口继承的字段 android.os.Parcelable

        +CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
      • +
      +
    • +
    + +
      +
    • + + +

      构造器概要

      + + + + + + + + + + + + + + +
      构造器 
      限定符构造器和说明
       MogoLatLng(double lat, + double lon) 
      protected MogoLatLng(android.os.Parcel in) 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      所有方法 实例方法 具体方法 
      限定符和类型方法和说明
      intdescribeContents() 
      booleanequals(java.lang.Object o) 
      doublegetLat() 
      doublegetLon() 
      inthashCode() 
      java.lang.StringtoString() 
      voidwriteToParcel(android.os.Parcel dest, + int flags) 
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      字段详细资料

      + + + +
        +
      • +

        lat

        +
        public final double lat
        +
      • +
      + + + +
        +
      • +

        lon

        +
        public final double lon
        +
      • +
      + + + +
        +
      • +

        CREATOR

        +
        public static final android.os.Parcelable.Creator<MogoLatLng> CREATOR
        +
      • +
      +
    • +
    + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        MogoLatLng

        +
        public MogoLatLng(double lat,
        +                  double lon)
        +
      • +
      + + + +
        +
      • +

        MogoLatLng

        +
        protected MogoLatLng(android.os.Parcel in)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        getLat

        +
        public double getLat()
        +
      • +
      + + + +
        +
      • +

        getLon

        +
        public double getLon()
        +
      • +
      + + + +
        +
      • +

        equals

        +
        public boolean equals(java.lang.Object o)
        +
        +
        覆盖:
        +
        equals 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        hashCode

        +
        public int hashCode()
        +
        +
        覆盖:
        +
        hashCode 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        toString

        +
        public java.lang.String toString()
        +
        +
        覆盖:
        +
        toString 在类中 java.lang.Object
        +
        +
      • +
      + + + +
        +
      • +

        describeContents

        +
        public int describeContents()
        +
        +
        指定者:
        +
        describeContents 在接口中 android.os.Parcelable
        +
        +
      • +
      + + + +
        +
      • +

        writeToParcel

        +
        public void writeToParcel(android.os.Parcel dest,
        +                          int flags)
        +
        +
        指定者:
        +
        writeToParcel 在接口中 android.os.Parcelable
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/MortonCode.html b/ApiDoc/com/mogo/realtime/util/MortonCode.html new file mode 100644 index 0000000..b7e3859 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/MortonCode.html @@ -0,0 +1,326 @@ + + + + + + +MortonCode (蘑菇AI云平台Doc) + + + + + + + + + + + + +
+
com.mogo.realtime.util
+

类 MortonCode

+
+
+
    +
  • java.lang.Object
  • +
  • +
      +
    • com.mogo.realtime.util.MortonCode
    • +
    +
  • +
+
+
    +
  • +
    +
    +
    public class MortonCode
    +extends java.lang.Object
    +
    莫顿编码
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器概要

      + + + + + + + + +
      构造器 
      构造器和说明
      MortonCode() 
      +
    • +
    + +
      +
    • + + +

      方法概要

      + + + + + + + + + + + + + + + + + + +
      所有方法 静态方法 具体方法 
      限定符和类型方法和说明
      static double[]decodeMorton(long mortonCode) +
      将莫顿码解码为坐标
      +
      static longencodeMorton(java.lang.Double lon, + java.lang.Double lat) +
      编码 morton code
      +
      static longwrapEncodeMorton(java.lang.Double lon, + java.lang.Double lat) 
      +
        +
      • + + +

        从类继承的方法 java.lang.Object

        +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      构造器详细资料

      + + + +
        +
      • +

        MortonCode

        +
        public MortonCode()
        +
      • +
      +
    • +
    + +
      +
    • + + +

      方法详细资料

      + + + +
        +
      • +

        wrapEncodeMorton

        +
        public static long wrapEncodeMorton(java.lang.Double lon,
        +                                    java.lang.Double lat)
        +
        +
        参数:
        +
        lon -
        +
        lat -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        encodeMorton

        +
        public static long encodeMorton(java.lang.Double lon,
        +                                java.lang.Double lat)
        +
        编码 morton code
        +
        +
        参数:
        +
        lon -
        +
        lat -
        +
        返回:
        +
        +
      • +
      + + + +
        +
      • +

        decodeMorton

        +
        public static double[] decodeMorton(long mortonCode)
        +
        将莫顿码解码为坐标
        +
        +
        参数:
        +
        mortonCode -
        +
        返回:
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/class-use/LocationParseUtil.html b/ApiDoc/com/mogo/realtime/util/class-use/LocationParseUtil.html new file mode 100644 index 0000000..85299f4 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/class-use/LocationParseUtil.html @@ -0,0 +1,125 @@ + + + + + + +类 com.mogo.realtime.util.LocationParseUtil的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.util.LocationParseUtil

+
+
没有com.mogo.realtime.util.LocationParseUtil的用法
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/class-use/MogoLatLng.html b/ApiDoc/com/mogo/realtime/util/class-use/MogoLatLng.html new file mode 100644 index 0000000..32f76a6 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/class-use/MogoLatLng.html @@ -0,0 +1,206 @@ + + + + + + +类 com.mogo.realtime.util.MogoLatLng的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.util.MogoLatLng

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/class-use/MortonCode.html b/ApiDoc/com/mogo/realtime/util/class-use/MortonCode.html new file mode 100644 index 0000000..16ab025 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/class-use/MortonCode.html @@ -0,0 +1,125 @@ + + + + + + +类 com.mogo.realtime.util.MortonCode的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

类的使用
com.mogo.realtime.util.MortonCode

+
+
没有com.mogo.realtime.util.MortonCode的用法
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/package-frame.html b/ApiDoc/com/mogo/realtime/util/package-frame.html new file mode 100644 index 0000000..63ac7dd --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/package-frame.html @@ -0,0 +1,23 @@ + + + + + + +com.mogo.realtime.util (蘑菇AI云平台Doc) + + + + + +

com.mogo.realtime.util

+ + + diff --git a/ApiDoc/com/mogo/realtime/util/package-summary.html b/ApiDoc/com/mogo/realtime/util/package-summary.html new file mode 100644 index 0000000..8811c7e --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/package-summary.html @@ -0,0 +1,157 @@ + + + + + + +com.mogo.realtime.util (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包 com.mogo.realtime.util

+
+
+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/package-tree.html b/ApiDoc/com/mogo/realtime/util/package-tree.html new file mode 100644 index 0000000..12039fb --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/package-tree.html @@ -0,0 +1,140 @@ + + + + + + +com.mogo.realtime.util 类分层结构 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包com.mogo.realtime.util的分层结构

+程序包分层结构: + +
+
+

类分层结构

+ +
+ + + + + + diff --git a/ApiDoc/com/mogo/realtime/util/package-use.html b/ApiDoc/com/mogo/realtime/util/package-use.html new file mode 100644 index 0000000..fb9a4d8 --- /dev/null +++ b/ApiDoc/com/mogo/realtime/util/package-use.html @@ -0,0 +1,181 @@ + + + + + + +程序包 com.mogo.realtime.util的使用 (蘑菇AI云平台Doc) + + + + + + + + + + + +
+

程序包的使用
com.mogo.realtime.util

+
+
+ +
+ + + + + + diff --git a/ApiDoc/constant-values.html b/ApiDoc/constant-values.html new file mode 100644 index 0000000..bcf458b --- /dev/null +++ b/ApiDoc/constant-values.html @@ -0,0 +1,168 @@ + + + + + + +常量字段值 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
+

常量字段值

+

目录

+ +
+
+ + +

com.mogo.*

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/deprecated-list.html b/ApiDoc/deprecated-list.html new file mode 100644 index 0000000..3503840 --- /dev/null +++ b/ApiDoc/deprecated-list.html @@ -0,0 +1,125 @@ + + + + + + +已过时的列表 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
+

已过时的 API

+

目录

+
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/help-doc.html b/ApiDoc/help-doc.html new file mode 100644 index 0000000..aa19c71 --- /dev/null +++ b/ApiDoc/help-doc.html @@ -0,0 +1,230 @@ + + + + + + +API 帮助 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
+

此 API 文档的组织方式

+
此 API (应用程序编程接口) 文档包含对应于导航栏中的项目的页面, 如下所述。
+
+
+
    +
  • +

    概览

    +

    概览 页面是此 API 文档的首页, 提供了所有程序包的列表及其概要。此页面也可能包含这些程序包的总体说明。

    +
  • +
  • +

    程序包

    +

    每个程序包都有一个页面, 其中包含它的类和接口的列表及其概要。此页面可以包含六个类别:

    +
      +
    • 接口 (斜体)
    • +
    • +
    • 枚举
    • +
    • 异常错误
    • +
    • 错误
    • +
    • 注释类型
    • +
    +
  • +
  • +

    类/接口

    +

    每个类, 接口, 嵌套类和嵌套接口都有各自的页面。其中每个页面都由三部分 (类/接口说明, 概要表, 以及详细的成员说明) 组成:

    +
      +
    • 类继承图
    • +
    • 直接子类
    • +
    • 所有已知子接口
    • +
    • 所有已知实现类
    • +
    • 类/接口声明
    • +
    • 类/接口说明
    • +
    +
      +
    • 嵌套类概要
    • +
    • 字段概要
    • +
    • 构造器概要
    • +
    • 方法概要
    • +
    +
      +
    • 字段详细资料
    • +
    • 构造器详细资料
    • +
    • 方法详细资料
    • +
    +

    每个概要条目都包含该项目的详细说明的第一句。概要条目按字母顺序排列, 而详细说明则按其在源代码中出现的顺序排列。这样保持了程序员所建立的逻辑分组。

    +
  • +
  • +

    注释类型

    +

    每个注释类型都有各自的页面, 其中包含以下部分:

    +
      +
    • 注释类型声明
    • +
    • 注释类型说明
    • +
    • 必需元素概要
    • +
    • 可选元素概要
    • +
    • 元素详细资料
    • +
    +
  • +
  • +

    枚举

    +

    每个枚举都有各自的页面, 其中包含以下部分:

    +
      +
    • 枚举声明
    • +
    • 枚举说明
    • +
    • 枚举常量概要
    • +
    • 枚举常量详细资料
    • +
    +
  • +
  • +

    使用

    +

    每个已文档化的程序包, 类和接口都有各自的“使用”页面。此页面介绍了使用给定类或程序包的任何部分的程序包, 类, 方法, 构造器和字段。对于给定的类或接口 A, 其“使用”页面包含 A 的子类, 声明为 A 的字段, 返回 A 的方法, 以及带有类型为 A 的参数的方法和构造器。访问此页面的方法是: 首先转至程序包, 类或接口, 然后单击导航栏中的 "使用" 链接。

    +
  • +
  • +

    树 (类分层结构)

    +

    对于所有程序包, 有一个类分层结构页面, 以及每个程序包的分层结构。每个分层结构页面都包含类的列表和接口的列表。从java.lang.Object开始, 按继承结构对类进行排列。接口不从java.lang.Object继承。

    +
      +
    • 查看“概览”页面时, 单击 "树" 将显示所有程序包的分层结构。
    • +
    • 查看特定程序包, 类或接口页面时, 单击 "树" 将仅显示该程序包的分层结构。
    • +
    +
  • +
  • +

    已过时的 API

    +

    已过时的 API 页面列出了所有已过时的 API。一般由于进行了改进并且通常提供了替代的 API, 所以建议不要使用已过时的 API。在将来的实现过程中, 可能会删除已过时的 API。

    +
  • +
  • +

    索引

    +

    索引 包含按字母顺序排列的所有类, 接口, 构造器, 方法和字段的列表。

    +
  • +
  • +

    上一个/下一个

    +

    这些链接使您可以转至下一个或上一个类, 接口, 程序包或相关页面。

    +
  • +
  • +

    框架/无框架

    +

    这些链接用于显示和隐藏 HTML 框架。所有页面均具有有框架和无框架两种显示方式。

    +
  • +
  • +

    所有类

    +

    所有类链接显示所有类和接口 (除了非静态嵌套类型)。

    +
  • +
  • +

    序列化表格

    +

    每个可序列化或可外部化的类都有其序列化字段和方法的说明。此信息对重新实现者有用, 而对使用 API 的开发者则没有什么用处。尽管导航栏中没有链接, 但您可以通过下列方式获取此信息: 转至任何序列化类, 然后单击类说明的 "另请参阅" 部分中的 "序列化表格"。

    +
  • +
  • +

    常量字段值

    +

    常量字段值页面列出了静态最终字段及其值。

    +
  • +
+此帮助文件适用于使用标准 doclet 生成的 API 文档。
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-1.html b/ApiDoc/index-files/index-1.html new file mode 100644 index 0000000..106e5bc --- /dev/null +++ b/ApiDoc/index-files/index-1.html @@ -0,0 +1,140 @@ + + + + + + +A - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

A

+
+
adas - 类 中的变量com.mogo.realtime.entity.OnePerSecondSendContent
+
+
adas 识别物体:1s 识别到的最后帧
+
+
ADASRecognizedResult - com.mogo.realtime.entity中的类
+
 
+
ADASRecognizedResult() - 类 的构造器com.mogo.realtime.entity.ADASRecognizedResult
+
 
+
alt - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
海拔
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-10.html b/ApiDoc/index-files/index-10.html new file mode 100644 index 0000000..6a9ebd0 --- /dev/null +++ b/ApiDoc/index-files/index-10.html @@ -0,0 +1,166 @@ + + + + + + +M - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

M

+
+
MoGoAiCloudRealTime - com.mogo.realtime.Interface中的类
+
+
RealTime实时上报数据服务SDK
+
+
MoGoAiCloudRealTime() - 类 的构造器com.mogo.realtime.Interface.MoGoAiCloudRealTime
+
 
+
MogoLatLng - com.mogo.realtime.util中的类
+
+
经纬度
+
+
MogoLatLng(double, double) - 类 的构造器com.mogo.realtime.util.MogoLatLng
+
 
+
MogoLatLng(Parcel) - 类 的构造器com.mogo.realtime.util.MogoLatLng
+
 
+
MogoRTKLocation - com.mogo.realtime.location中的类
+
+
AI云SDK内部定位服务
+
+
MogoSnapshotSetData - com.mogo.realtime.entity中的类
+
 
+
MogoSnapshotSetData() - 类 的构造器com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
MogoSnapshotSetData(Parcel) - 类 的构造器com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
mortonCode - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
莫顿码
+
+
mortonCode - 类 中的变量com.mogo.realtime.entity.LocationResult
+
+
最后一个定位点的莫顿码
+
+
MortonCode - com.mogo.realtime.util中的类
+
+
莫顿编码
+
+
MortonCode() - 类 的构造器com.mogo.realtime.util.MortonCode
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-11.html b/ApiDoc/index-files/index-11.html new file mode 100644 index 0000000..d78804a --- /dev/null +++ b/ApiDoc/index-files/index-11.html @@ -0,0 +1,148 @@ + + + + + + +O - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

O

+
+
onAck(long) - 接口 中的方法com.mogo.realtime.socket.IMogoCloudOnAckListener
+
+
对齐系统时间
+
+
OnePerSecondSendContent - com.mogo.realtime.entity中的类
+
+
自车上报数据 1s内一次
+
+
OnePerSecondSendContent() - 类 的构造器com.mogo.realtime.entity.OnePerSecondSendContent
+
 
+
onMsgReceived(MogoSnapshotSetData) - 接口 中的方法com.mogo.realtime.socket.IMogoCloudOnMsgListener
+
+
长连接数据接收回调
+
+
onMsgSend(long) - 接口 中的方法com.mogo.realtime.socket.IMogoCloudOnMsgListener
+
+
长连接数据发送回调
+
+
onRecordFinish(List<CloudLocationInfo>, List<CloudLocationInfo>, List<CloudLocationInfo>, List<CloudLocationInfo>) - 接口 中的方法com.mogo.realtime.core.SimpleLocationCorrectStrategy.RecordLocationListener
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-12.html b/ApiDoc/index-files/index-12.html new file mode 100644 index 0000000..bd00331 --- /dev/null +++ b/ApiDoc/index-files/index-12.html @@ -0,0 +1,130 @@ + + + + + + +P - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

P

+
+
print() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-13.html b/ApiDoc/index-files/index-13.html new file mode 100644 index 0000000..03a536a --- /dev/null +++ b/ApiDoc/index-files/index-13.html @@ -0,0 +1,150 @@ + + + + + + +R - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

R

+
+
RealTimeProvider - com.mogo.realtime.Interface中的接口
+
+
蘑菇AI云平台实时定位点上报服务接口
+
+
RealTimeProviderImp - com.mogo.realtime.spi中的类
+
+
RealTime Provider SPI 单例对象
+
+
RealTimeProviderImp() - 类 的构造器com.mogo.realtime.spi.RealTimeProviderImp
+
 
+
registerOnMsgListener(IMogoCloudOnMsgListener) - 类 中的静态方法com.mogo.realtime.Interface.MoGoAiCloudRealTime
+
+
注册上报定位回调
+
+
registerOnMsgListener(IMogoCloudOnMsgListener) - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
 
+
resetUploadDelay(long) - 类 中的方法com.mogo.realtime.core.UploadInTimeHandler
+
+
默认保持UploadInTimeHandler.uploadDelay间隔进行位置上报,如遇服务端控制,进行上报间隔修改
+
+
resetUploadDelayListener(IMogoCloudOnAckListener) - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-14.html b/ApiDoc/index-files/index-14.html new file mode 100644 index 0000000..512c2cb --- /dev/null +++ b/ApiDoc/index-files/index-14.html @@ -0,0 +1,262 @@ + + + + + + +S - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

S

+
+
satelliteTime - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
定位卫星时间
+
+
self - 类 中的变量com.mogo.realtime.entity.OnePerSecondSendContent
+
+
自车定位点
+
+
sendLocationData() - 类 中的方法com.mogo.realtime.core.SnapshotUploadInTime
+
 
+
sendLocationData() - 接口 中的方法com.mogo.realtime.core.UploadInTimeHandler.IUploadInTimeListener
+
+
上报自车数据
+
+
sendLocationData() - 类 中的方法com.mogo.realtime.location.MogoRTKLocation
+
 
+
sendMsg(List<CloudLocationInfo>) - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
+
发送自车和ADAS数据
+
+
setAllList(List<CloudRoadData>) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setAlt(double) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setCamera(CloudRoadData) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setCoordinates(List<CloudLocationInfo>) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setDistance(double) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setExpire(long) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setFromType(int) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setHeading(double) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setHeading(double) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setLat(double) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setLat(double) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setLightLeftTime(int) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setLightStatus(int) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setLon(double) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setLon(double) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setMsgId(String) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setNearList(List<CloudRoadData>) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setRecordLocationListener(SimpleLocationCorrectStrategy.RecordLocationListener) - 类 中的方法com.mogo.realtime.core.SimpleLocationCorrectStrategy
+
 
+
setRtmpUrl(String) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setSatelliteTime(long) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setSpeed(double) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setSpeed(double) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setSystemTime(long) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
setSystemTime(long) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setTime(long) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setTrafficLight(CloudRoadData) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
setType(int) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
setUploadInTimeListener(UploadInTimeHandler.IUploadInTimeListener) - 类 中的方法com.mogo.realtime.core.UploadInTimeHandler
+
 
+
setUuid(String) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
SimpleLocationCorrectStrategy - com.mogo.realtime.core中的类
+
+
定位预测纠错策略
+
+
SimpleLocationCorrectStrategy() - 类 的构造器com.mogo.realtime.core.SimpleLocationCorrectStrategy
+
 
+
SimpleLocationCorrectStrategy.RecordLocationListener - com.mogo.realtime.core中的接口
+
 
+
sn - 类 中的变量com.mogo.realtime.entity.LocationResult
+
+
sn 车辆唯一识别号
+
+
SnapshotUploadInTime - com.mogo.realtime.core中的类
+
+
上报坐标服务
+
+
SocketHandler - com.mogo.realtime.socket中的类
+
+
Socket长链 业务服务处理类
+
+
SocketHandler() - 类 的构造器com.mogo.realtime.socket.SocketHandler
+
 
+
speed - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
速度
+
+
start(Context, String) - 类 中的方法com.mogo.realtime.core.SnapshotUploadInTime
+
+
开始实时定位数据上报
+
+
start() - 类 中的方法com.mogo.realtime.core.UploadInTimeHandler
+
 
+
startRealTime(Context, String) - 类 中的静态方法com.mogo.realtime.Interface.MoGoAiCloudRealTime
+
+
开始实时上报定位坐标服务
+
+
stop() - 类 中的方法com.mogo.realtime.core.SnapshotUploadInTime
+
+
停止实时定位数据上报
+
+
stop() - 类 中的方法com.mogo.realtime.core.UploadInTimeHandler
+
 
+
stop() - 类 中的方法com.mogo.realtime.location.MogoRTKLocation
+
+
关闭定位服务
+
+
stop() - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
 
+
stopRealTime() - 类 中的静态方法com.mogo.realtime.Interface.MoGoAiCloudRealTime
+
+
停止实时上报定位坐标服务
+
+
systemTime - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
系统时间
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-15.html b/ApiDoc/index-files/index-15.html new file mode 100644 index 0000000..8545d7a --- /dev/null +++ b/ApiDoc/index-files/index-15.html @@ -0,0 +1,138 @@ + + + + + + +T - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

T

+
+
toString() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
toString() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
toString() - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
type - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
识别物体类型
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-16.html b/ApiDoc/index-files/index-16.html new file mode 100644 index 0000000..924dd81 --- /dev/null +++ b/ApiDoc/index-files/index-16.html @@ -0,0 +1,146 @@ + + + + + + +U - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

U

+
+
unRegisterOnMsgListener(IMogoCloudOnMsgListener) - 类 中的静态方法com.mogo.realtime.Interface.MoGoAiCloudRealTime
+
+
取消注册上报定位回调
+
+
unRegisterOnMsgListener(IMogoCloudOnMsgListener) - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
 
+
UploadInTimeHandler - com.mogo.realtime.core中的类
+
+
AI云 实时上报数据频率处理类
+
+
UploadInTimeHandler.IUploadInTimeListener - com.mogo.realtime.core中的接口
+
+
实时上报数据回调
+
+
uuid - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
识别物体唯一标识
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-17.html b/ApiDoc/index-files/index-17.html new file mode 100644 index 0000000..6ba2f30 --- /dev/null +++ b/ApiDoc/index-files/index-17.html @@ -0,0 +1,138 @@ + + + + + + +W - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

W

+
+
wrapEncodeMorton(Double, Double) - 类 中的静态方法com.mogo.realtime.util.MortonCode
+
 
+
writeToParcel(Parcel, int) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
writeToParcel(Parcel, int) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
writeToParcel(Parcel, int) - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
writeToParcel(Parcel, int) - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-2.html b/ApiDoc/index-files/index-2.html new file mode 100644 index 0000000..dc33ecc --- /dev/null +++ b/ApiDoc/index-files/index-2.html @@ -0,0 +1,195 @@ + + + + + + +C - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

C

+
+
carId - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
车ID
+
+
CloudLocationInfo - com.mogo.realtime.entity中的类
+
+
自车定位信息
+
+
CloudLocationInfo() - 类 的构造器com.mogo.realtime.entity.CloudLocationInfo
+
 
+
CloudLocationInfo(CloudLocationInfo) - 类 的构造器com.mogo.realtime.entity.CloudLocationInfo
+
 
+
CloudLocationInfo(Parcel) - 类 的构造器com.mogo.realtime.entity.CloudLocationInfo
+
 
+
cloudLocationToMogoLatLng(CloudLocationInfo) - 类 中的静态方法com.mogo.realtime.util.LocationParseUtil
+
 
+
CloudRoadData - com.mogo.realtime.entity中的类
+
+
AI云平台下发 道路数据
+
+
CloudRoadData() - 类 的构造器com.mogo.realtime.entity.CloudRoadData
+
 
+
CloudRoadData(Parcel) - 类 的构造器com.mogo.realtime.entity.CloudRoadData
+
 
+
color - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
红绿灯颜色
+
+
com.mogo.realtime.core - 程序包 com.mogo.realtime.core
+
 
+
com.mogo.realtime.entity - 程序包 com.mogo.realtime.entity
+
 
+
com.mogo.realtime.Interface - 程序包 com.mogo.realtime.Interface
+
 
+
com.mogo.realtime.location - 程序包 com.mogo.realtime.location
+
 
+
com.mogo.realtime.socket - 程序包 com.mogo.realtime.socket
+
 
+
com.mogo.realtime.spi - 程序包 com.mogo.realtime.spi
+
 
+
com.mogo.realtime.util - 程序包 com.mogo.realtime.util
+
 
+
computerThatLonLat(double, double, double, double) - 类 中的方法com.mogo.realtime.core.SimpleLocationCorrectStrategy
+
+
根据距离和角度计算下一个经纬度 + 大地坐标系资料WGS-84 长半径a=6378137 短半径b=6356752.3142 扁率f=1/298.2572236
+
+
convertCoor2GCJ02() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
coordinates - 类 中的变量com.mogo.realtime.entity.LocationResult
+
+
1s 内的连续定位点
+
+
correct(CloudLocationInfo) - 类 中的方法com.mogo.realtime.core.SimpleLocationCorrectStrategy
+
 
+
CREATOR - 类 中的静态变量com.mogo.realtime.entity.CloudLocationInfo
+
 
+
CREATOR - 类 中的静态变量com.mogo.realtime.entity.CloudRoadData
+
 
+
CREATOR - 类 中的静态变量com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
CREATOR - 类 中的静态变量com.mogo.realtime.util.MogoLatLng
+
 
+
curSpeed - 类 中的变量com.mogo.realtime.entity.MogoSnapshotSetData
+
+
自车速度 本地添加
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-3.html b/ApiDoc/index-files/index-3.html new file mode 100644 index 0000000..aee6f1f --- /dev/null +++ b/ApiDoc/index-files/index-3.html @@ -0,0 +1,140 @@ + + + + + + +D - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

D

+
+
decodeMorton(long) - 类 中的静态方法com.mogo.realtime.util.MortonCode
+
+
将莫顿码解码为坐标
+
+
describeContents() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
describeContents() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
describeContents() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
describeContents() - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-4.html b/ApiDoc/index-files/index-4.html new file mode 100644 index 0000000..216e965 --- /dev/null +++ b/ApiDoc/index-files/index-4.html @@ -0,0 +1,138 @@ + + + + + + +E - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

E

+
+
encodeMorton(Double, Double) - 类 中的静态方法com.mogo.realtime.util.MortonCode
+
+
编码 morton code
+
+
equals(Object) - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
equals(Object) - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
equals(Object) - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-5.html b/ApiDoc/index-files/index-5.html new file mode 100644 index 0000000..b3da629 --- /dev/null +++ b/ApiDoc/index-files/index-5.html @@ -0,0 +1,134 @@ + + + + + + +F - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

F

+
+
FROM_ADAS - 类 中的静态变量com.mogo.realtime.entity.CloudRoadData
+
 
+
FROM_MY_LOCATION - 类 中的静态变量com.mogo.realtime.entity.CloudRoadData
+
 
+
FROM_ROAD_UNIT - 类 中的静态变量com.mogo.realtime.entity.CloudRoadData
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-6.html b/ApiDoc/index-files/index-6.html new file mode 100644 index 0000000..57a8bb0 --- /dev/null +++ b/ApiDoc/index-files/index-6.html @@ -0,0 +1,214 @@ + + + + + + +G - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

G

+
+
getAllList() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getAlt() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getCamera() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getCoordinates() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getDistance() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getExpire() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getFromType() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getHeading() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getHeading() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.core.SimpleLocationCorrectStrategy
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.core.SnapshotUploadInTime
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.core.UploadInTimeHandler
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.location.MogoRTKLocation
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.socket.SocketHandler
+
 
+
getInstance() - 类 中的静态方法com.mogo.realtime.spi.RealTimeProviderImp
+
 
+
getLastADASRecognizedResult() - 接口 中的方法com.mogo.realtime.Interface.RealTimeProvider
+
+
获取 adas 识别列表,由外部传入
+
+
getLastADASRecognizedResult() - 类 中的方法com.mogo.realtime.spi.RealTimeProviderImp
+
 
+
getLat() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getLat() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getLat() - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
getLightLeftTime() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getLightStatus() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getLocationMsg() - 接口 中的方法com.mogo.realtime.Interface.RealTimeProvider
+
+
发送消息,由外部传入
+
+
getLocationMsg() - 类 中的方法com.mogo.realtime.spi.RealTimeProviderImp
+
 
+
getLon() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getLon() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getLon() - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
getMsgId() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getNearList() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getRtmpUrl() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getSatelliteTime() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getSn() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getSpeed() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getSpeed() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getSystemTime() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
getSystemTime() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getTime() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getTrafficLight() - 类 中的方法com.mogo.realtime.entity.MogoSnapshotSetData
+
 
+
getType() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getUniqueKey() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
getUuid() - 类 中的方法com.mogo.realtime.entity.CloudRoadData
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-7.html b/ApiDoc/index-files/index-7.html new file mode 100644 index 0000000..3a62f3e --- /dev/null +++ b/ApiDoc/index-files/index-7.html @@ -0,0 +1,136 @@ + + + + + + +H - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

H

+
+
hashCode() - 类 中的方法com.mogo.realtime.entity.CloudLocationInfo
+
 
+
hashCode() - 类 中的方法com.mogo.realtime.util.MogoLatLng
+
 
+
heading - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
车头朝向
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-8.html b/ApiDoc/index-files/index-8.html new file mode 100644 index 0000000..9f98cec --- /dev/null +++ b/ApiDoc/index-files/index-8.html @@ -0,0 +1,144 @@ + + + + + + +I - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

I

+
+
IMogoCloudOnAckListener - com.mogo.realtime.socket中的接口
+
+
长连接数据消息ack回调
+
+
IMogoCloudOnMsgListener - com.mogo.realtime.socket中的接口
+
+
长连接数据上报下发回调
+
+
init() - 类 中的方法com.mogo.realtime.location.MogoRTKLocation
+
+
开启定位服务
+
+
initSocket(Context, String) - 类 中的方法com.mogo.realtime.socket.SocketHandler
+
+
初始化长连接服务
+
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index-files/index-9.html b/ApiDoc/index-files/index-9.html new file mode 100644 index 0000000..30e4fe2 --- /dev/null +++ b/ApiDoc/index-files/index-9.html @@ -0,0 +1,158 @@ + + + + + + +L - 索引 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
A C D E F G H I L M O P R S T U W  + + +

L

+
+
lastCoordinate - 类 中的变量com.mogo.realtime.entity.LocationResult
+
+
最后一个定位点
+
+
lat - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
识别物体的纬度
+
+
lat - 类 中的变量com.mogo.realtime.util.MogoLatLng
+
 
+
LocationParseUtil - com.mogo.realtime.util中的类
+
+
定位数据类型转换工具
+
+
LocationParseUtil() - 类 的构造器com.mogo.realtime.util.LocationParseUtil
+
 
+
LocationResult - com.mogo.realtime.entity中的类
+
 
+
LocationResult() - 类 的构造器com.mogo.realtime.entity.LocationResult
+
 
+
locationToCloudLocation(Location) - 类 中的静态方法com.mogo.realtime.util.LocationParseUtil
+
+
从Location 转 CloudLocationInfo
+
+
lon - 类 中的变量com.mogo.realtime.entity.ADASRecognizedResult
+
+
识别物体的经度
+
+
lon - 类 中的变量com.mogo.realtime.util.MogoLatLng
+
 
+
+A C D E F G H I L M O P R S T U W 
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/index.html b/ApiDoc/index.html new file mode 100644 index 0000000..20879d9 --- /dev/null +++ b/ApiDoc/index.html @@ -0,0 +1,76 @@ + + + + + + +蘑菇AI云平台Doc + + + + + + + + + +<noscript> +<div>您的浏览器已禁用 JavaScript。</div> +</noscript> +<h2>框架预警</h2> +<p>请使用框架功能查看此文档。如果看到此消息, 则表明您使用的是不支持框架的 Web 客户机。链接到<a href="overview-summary.html">非框架版本</a>。</p> + + + diff --git a/ApiDoc/overview-frame.html b/ApiDoc/overview-frame.html new file mode 100644 index 0000000..0d28c4c --- /dev/null +++ b/ApiDoc/overview-frame.html @@ -0,0 +1,28 @@ + + + + + + +概览列表 (蘑菇AI云平台Doc) + + + + + + + +

 

+ + diff --git a/ApiDoc/overview-summary.html b/ApiDoc/overview-summary.html new file mode 100644 index 0000000..f5212ea --- /dev/null +++ b/ApiDoc/overview-summary.html @@ -0,0 +1,160 @@ + + + + + + +概览 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
程序包 
程序包说明
com.mogo.realtime.core 
com.mogo.realtime.entity 
com.mogo.realtime.Interface 
com.mogo.realtime.location 
com.mogo.realtime.socket 
com.mogo.realtime.spi 
com.mogo.realtime.util 
+
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/overview-tree.html b/ApiDoc/overview-tree.html new file mode 100644 index 0000000..84a1e7a --- /dev/null +++ b/ApiDoc/overview-tree.html @@ -0,0 +1,167 @@ + + + + + + +类分层结构 (蘑菇AI云平台Doc) + + + + + + + + +
+ + + + + + + +
+ + + +
+

类分层结构

+ +

接口分层结构

+ +
+ +
+ + + + + + + +
+ + + + diff --git a/ApiDoc/package-list b/ApiDoc/package-list new file mode 100644 index 0000000..230b9bb --- /dev/null +++ b/ApiDoc/package-list @@ -0,0 +1,7 @@ +com.mogo.realtime.Interface +com.mogo.realtime.core +com.mogo.realtime.entity +com.mogo.realtime.location +com.mogo.realtime.socket +com.mogo.realtime.spi +com.mogo.realtime.util diff --git a/ApiDoc/script.js b/ApiDoc/script.js new file mode 100644 index 0000000..b346356 --- /dev/null +++ b/ApiDoc/script.js @@ -0,0 +1,30 @@ +function show(type) +{ + count = 0; + for (var key in methods) { + var row = document.getElementById(key); + if ((methods[key] & type) != 0) { + row.style.display = ''; + row.className = (count++ % 2) ? rowColor : altColor; + } + else + row.style.display = 'none'; + } + updateTabs(type); +} + +function updateTabs(type) +{ + for (var value in tabs) { + var sNode = document.getElementById(tabs[value][0]); + var spanNode = sNode.firstChild; + if (value == type) { + sNode.className = activeTableTab; + spanNode.innerHTML = tabs[value][1]; + } + else { + sNode.className = tableTab; + spanNode.innerHTML = "" + tabs[value][1] + ""; + } + } +} diff --git a/ApiDoc/stylesheet.css b/ApiDoc/stylesheet.css new file mode 100644 index 0000000..98055b2 --- /dev/null +++ b/ApiDoc/stylesheet.css @@ -0,0 +1,574 @@ +/* Javadoc style sheet */ +/* +Overall document style +*/ + +@import url('resources/fonts/dejavu.css'); + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a:hover, a:focus { + text-decoration:none; + color:#bb7a2a; +} +a:active { + text-decoration:none; + color:#4A6782; +} +a[name] { + color:#353833; +} +a[name]:hover { + text-decoration:none; + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; + font-style:italic; +} +h4 { + font-size:13px; +} +h5 { + font-size:12px; +} +h6 { + font-size:11px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +table tr td dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +/* +Document title and Copyright styles +*/ +.clear { + clear:both; + height:0px; + overflow:hidden; +} +.aboutLanguage { + float:right; + padding:0px 21px; + font-size:11px; + z-index:200; + margin-top:-9px; +} +.legalCopy { + margin-left:.5em; +} +.bar a, .bar a:link, .bar a:visited, .bar a:active { + color:#FFFFFF; + text-decoration:none; +} +.bar a:hover, .bar a:focus { + color:#bb7a2a; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* +Navigation bar styles +*/ +.bar { + background-color:#4D7A97; + color:#FFFFFF; + padding:.8em .5em .4em .8em; + height:auto;/*height:1.8em;*/ + font-size:11px; + margin:0; +} +.topNav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.bottomNav { + margin-top:10px; + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.subNav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.subNav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +ul.navList, ul.subNavList { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.navList li{ + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +ul.subNavList li{ + list-style:none; + float:left; +} +.topNav a:link, .topNav a:active, .topNav a:visited, .bottomNav a:link, .bottomNav a:active, .bottomNav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.topNav a:hover, .bottomNav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.navBarCell1Rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skipNav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* +Page header and footer styles +*/ +.header, .footer { + clear:both; + margin:0 20px; + padding:5px 0 0 0; +} +.indexHeader { + margin:10px; + position:relative; +} +.indexHeader span{ + margin-right:15px; +} +.indexHeader h1 { + font-size:13px; +} +.title { + color:#2c4557; + margin:10px 0; +} +.subTitle { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.footer ul { + margin:20px 0 5px 0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* +Heading styles +*/ +div.details ul.blockList ul.blockList ul.blockList li.blockList h4, div.details ul.blockList ul.blockList ul.blockListLast li.blockList h4 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList ul.blockList li.blockList h3 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +ul.blockList ul.blockList li.blockList h3 { + padding:0; + margin:15px 0; +} +ul.blockList li.blockList h2 { + padding:0px 0 20px 0; +} +/* +Page layout container styles +*/ +.contentContainer, .sourceContainer, .classUseContainer, .serializedFormContainer, .constantValuesContainer { + clear:both; + padding:10px 20px; + position:relative; +} +.indexContainer { + margin:10px; + position:relative; + font-size:12px; +} +.indexContainer h2 { + font-size:13px; + padding:0 0 3px 0; +} +.indexContainer ul { + margin:0; + padding:0; +} +.indexContainer ul li { + list-style:none; + padding-top:2px; +} +.contentContainer .description dl dt, .contentContainer .details dl dt, .serializedFormContainer dl dt { + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +.contentContainer .description dl dd, .contentContainer .details dl dd, .serializedFormContainer dl dd { + margin:5px 0 10px 0px; + font-size:14px; + font-family:'DejaVu Sans Mono',monospace; +} +.serializedFormContainer dl.nameValue dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +.serializedFormContainer dl.nameValue dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* +List styles +*/ +ul.horizontal li { + display:inline; + font-size:0.9em; +} +ul.inheritance { + margin:0; + padding:0; +} +ul.inheritance li { + display:inline; + list-style:none; +} +ul.inheritance li ul.inheritance { + margin-left:15px; + padding-left:15px; + padding-top:1px; +} +ul.blockList, ul.blockListLast { + margin:10px 0 10px 0; + padding:0; +} +ul.blockList li.blockList, ul.blockListLast li.blockList { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +ul.blockList ul.blockList li.blockList, ul.blockList ul.blockListLast li.blockList { + padding:0px 20px 5px 10px; + border:1px solid #ededed; + background-color:#f8f8f8; +} +ul.blockList ul.blockList ul.blockList li.blockList, ul.blockList ul.blockList ul.blockListLast li.blockList { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockList { + margin-left:0; + padding-left:0; + padding-bottom:15px; + border:none; +} +ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast { + list-style:none; + border-bottom:none; + padding-bottom:0; +} +table tr td dl, table tr td dl dt, table tr td dl dd { + margin-top:0; + margin-bottom:1px; +} +/* +Table styles +*/ +.overviewSummary, .memberSummary, .typeSummary, .useSummary, .constantsSummary, .deprecatedSummary { + width:100%; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; +} +.overviewSummary, .memberSummary { + padding:0px; +} +.overviewSummary caption, .memberSummary caption, .typeSummary caption, +.useSummary caption, .constantsSummary caption, .deprecatedSummary caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0px; + padding-top:10px; + padding-left:1px; + margin:0px; + white-space:pre; +} +.overviewSummary caption a:link, .memberSummary caption a:link, .typeSummary caption a:link, +.useSummary caption a:link, .constantsSummary caption a:link, .deprecatedSummary caption a:link, +.overviewSummary caption a:hover, .memberSummary caption a:hover, .typeSummary caption a:hover, +.useSummary caption a:hover, .constantsSummary caption a:hover, .deprecatedSummary caption a:hover, +.overviewSummary caption a:active, .memberSummary caption a:active, .typeSummary caption a:active, +.useSummary caption a:active, .constantsSummary caption a:active, .deprecatedSummary caption a:active, +.overviewSummary caption a:visited, .memberSummary caption a:visited, .typeSummary caption a:visited, +.useSummary caption a:visited, .constantsSummary caption a:visited, .deprecatedSummary caption a:visited { + color:#FFFFFF; +} +.overviewSummary caption span, .memberSummary caption span, .typeSummary caption span, +.useSummary caption span, .constantsSummary caption span, .deprecatedSummary caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +.memberSummary caption span.activeTableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#F8981D; + height:16px; +} +.memberSummary caption span.tableTab span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + margin-right:3px; + display:inline-block; + float:left; + background-color:#4D7A97; + height:16px; +} +.memberSummary caption span.tableTab, .memberSummary caption span.activeTableTab { + padding-top:0px; + padding-left:0px; + padding-right:0px; + background-image:none; + float:none; + display:inline; +} +.overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd, +.useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd { + display:none; + width:5px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .activeTableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + float:left; + background-color:#F8981D; +} +.memberSummary .tableTab .tabEnd { + display:none; + width:5px; + margin-right:3px; + position:relative; + background-color:#4D7A97; + float:left; + +} +.overviewSummary td, .memberSummary td, .typeSummary td, +.useSummary td, .constantsSummary td, .deprecatedSummary td { + text-align:left; + padding:0px 0px 12px 10px; +} +th.colOne, th.colFirst, th.colLast, .useSummary th, .constantsSummary th, +td.colOne, td.colFirst, td.colLast, .useSummary td, .constantsSummary td{ + vertical-align:top; + padding-right:0px; + padding-top:8px; + padding-bottom:3px; +} +th.colFirst, th.colLast, th.colOne, .constantsSummary th { + background:#dee3e9; + text-align:left; + padding:8px 3px 3px 7px; +} +td.colFirst, th.colFirst { + white-space:nowrap; + font-size:13px; +} +td.colLast, th.colLast { + font-size:13px; +} +td.colOne, th.colOne { + font-size:13px; +} +.overviewSummary td.colFirst, .overviewSummary th.colFirst, +.useSummary td.colFirst, .useSummary th.colFirst, +.overviewSummary td.colOne, .overviewSummary th.colOne, +.memberSummary td.colFirst, .memberSummary th.colFirst, +.memberSummary td.colOne, .memberSummary th.colOne, +.typeSummary td.colFirst{ + width:25%; + vertical-align:top; +} +td.colOne a:link, td.colOne a:active, td.colOne a:visited, td.colOne a:hover, td.colFirst a:link, td.colFirst a:active, td.colFirst a:visited, td.colFirst a:hover, td.colLast a:link, td.colLast a:active, td.colLast a:visited, td.colLast a:hover, .constantValuesContainer td a:link, .constantValuesContainer td a:active, .constantValuesContainer td a:visited, .constantValuesContainer td a:hover { + font-weight:bold; +} +.tableSubHeadingColor { + background-color:#EEEEFF; +} +.altColor { + background-color:#FFFFFF; +} +.rowColor { + background-color:#EEEEEF; +} +/* +Content styles +*/ +.description pre { + margin-top:0; +} +.deprecatedContent { + margin:0; + padding:10px 0; +} +.docSummary { + padding:0; +} + +ul.blockList ul.blockList ul.blockList li.blockList h3 { + font-style:normal; +} + +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} + +td.colLast div { + padding-top:0px; +} + + +td.colLast a { + padding-bottom:3px; +} +/* +Formatting effect styles +*/ +.sourceLineNo { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:3px 10px 2px 0px; + color:#474747; +} +.deprecatedLabel, .descfrmTypeLabel, .memberNameLabel, .memberNameLink, +.overrideSpecifyLabel, .packageHierarchyLabel, .paramLabel, .returnLabel, +.seeLabel, .simpleTagLabel, .throwsLabel, .typeNameLabel, .typeNameLink { + font-weight:bold; +} +.deprecationComment, .emphasizedPhrase, .interfaceName { + font-style:italic; +} + +div.block div.block span.deprecationComment, div.block div.block span.emphasizedPhrase, +div.block div.block span.interfaceName { + font-style:normal; +} + +div.contentContainer ul.blockList li.blockList h2{ + padding-bottom:0px; +} From 9c1f40f9ad91057fcd00ec4fe08d5ae47ed13c01 Mon Sep 17 00:00:00 2001 From: lixiaopeng Date: Wed, 27 Jan 2021 15:47:00 +0800 Subject: [PATCH 14/14] opt --- .../main/java/com/mogo/cloud/tanlu/CosUpload.java | 6 +----- .../com/mogo/cloud/tanlu/MogoRoadSearchManager.java | 4 ++-- .../java/com/mogo/cloud/tanlu/UploadManager.java | 12 +++++------- .../com/mogo/cloud/tanlu/constant/HttpConstant.java | 5 +++++ .../main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt | 2 +- 5 files changed, 14 insertions(+), 15 deletions(-) diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java index de98653..2bbec9f 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/CosUpload.java @@ -65,7 +65,6 @@ public class CosUpload implements CosStatusCallback { public void uploadInfo(UploadInfo info, ITanluUploadCallback callback) { mCallback = callback; mUploadInfo = info; - Log.d(HttpConstant.TANLU, "videoPath = " + info.getFilePath()); if (!TextUtils.isEmpty(info.getFilePath())) { //不传路径 if (isVideo(info.getFilePath())) { @@ -100,10 +99,8 @@ public class CosUpload implements CosStatusCallback { Log.d(HttpConstant.TANLU, "uploadCosCompleted ----> downloadUrl =" + downloadUrl + "--localPath =" + localPath); if (filePath.size() == 2) { if (isVideo(localPath)) { //如果是视频 localPath - Log.e(HttpConstant.TANLU, "1111111-------"); mCosVideoUrl = downloadUrl; } else { - Log.e(HttpConstant.TANLU, "22222222------"); mCosPicUrl = downloadUrl; } @@ -112,7 +109,6 @@ public class CosUpload implements CosStatusCallback { sendInformation(); } } else { - Log.e(HttpConstant.TANLU, "333333------"); mCosPicUrl = downloadUrl; sendInformation(); } @@ -137,7 +133,7 @@ public class CosUpload implements CosStatusCallback { //删除本地生成的图片封面 if (videoCoverImage != null) { - boolean isDeleteSuccess = deletePicFile(videoCoverImage); + deletePicFile(videoCoverImage); } UploadManager.getInstance(mContext.getApplicationContext()).loadUpload(getInformation(), new ITanluUploadCallback() { diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java index 9cb99d9..11d25e2 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/MogoRoadSearchManager.java @@ -47,8 +47,8 @@ public class MogoRoadSearchManager { return sInstance; } - public void init () { //TODO - apiService = RetrofitFactory.INSTANCE.getInstance("http://dzt-test.zhidaozhixing.com") + public void init () { + apiService = RetrofitFactory.INSTANCE.getInstance(HttpConstant.DEV_HOTS) .create(TanluApiService.class); } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java index ff45a56..9efc316 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/UploadManager.java @@ -45,8 +45,8 @@ public class UploadManager { return sInstance; } - public void init () { //TODO - apiService = RetrofitFactory.INSTANCE.getInstance("http://dzt-test.zhidaozhixing.com") + public void init () { + apiService = RetrofitFactory.INSTANCE.getInstance(HttpConstant.DEV_HOTS) .create(TanluApiService.class); } @@ -60,11 +60,10 @@ public class UploadManager { public void loadUpload(InformationBody informationBody, ITanluUploadCallback callback) { Gson gson = new Gson(); Map map = new HashMap<>(); -// map.put("sn", MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); //TODO - map.put("sn", "F803EB2046PZD00228"); + map.put("sn", MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); map.put("data", gson.toJson(informationBody)); Log.d(HttpConstant.TANLU, "info = " + gson.toJson(informationBody)); -// map.put("sn", "ZD802C1938L10797"); +// map.put("sn", "F803EB2046PZD00228"); // map.put("data", "{\"addr\":\"北京市东城区小黄庄北街2号靠近中国银行(北京安贞桥支行)\",\"areaCode\":\"110101\",\"areaName\":\"东城区\",\"cityCode\":\"010\",\"cityName\":\"北京市\",\"data\":\"[{\\\"thumbnail\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/Thumbnail1611219200669.jpg\\\",\\\"url\\\":\\\"http://petchfile-1255510688.cos.ap-beijing.myqcloud.com/CarPad/com.zhidao.roadcondition/F803EB2046PZD00228/F803EB2046PZD00228_20210121165329/compress_video_20210121165307.mp4\\\"}]\",\"direction\":0.0,\"fromType\":\"2\",\"generateTime\":1611219213616,\"infoTimeout\":240,\"infoType\":1,\"isShare\":false,\"lat\":39.968317,\"lon\":116.410892,\"mainInfoId\":0,\"poiType\":\"10008\",\"provinceName\":\"北京市\",\"sn\":\"F803EB2046PZD00228\",\"speed\":0.0,\"street\":\"小黄庄北街\",\"trafficInfoType\":\"\",\"type\":1,\"uid\":0}"); Log.d(HttpConstant.TANLU, "sn = " + MoGoAiCloudClient.getInstance().getAiCloudClientConfig().getSn()); @@ -74,11 +73,11 @@ public class UploadManager { .subscribe(new Observer>() { @Override public void onSubscribe(Disposable d) { - Log.d(HttpConstant.TANLU, "onSubscribe -----> "); } @Override public void onNext(BaseData result) { + Log.d(HttpConstant.TANLU, "onNext -----> "); callback.onSuccess(result); } @@ -90,7 +89,6 @@ public class UploadManager { @Override public void onComplete() { - Log.d(HttpConstant.TANLU, "onComplete -----> "); } }); } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java index 0b00aab..d31a821 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/constant/HttpConstant.java @@ -10,6 +10,11 @@ public class HttpConstant { public static final String DZT_HOTS = "http://dzt-deva.zhidaozhixing.com"; public static final String LAUNCHER_HOTS = "http://dzt-launcherSnapshot.zhidaozhixing.com"; + public static final String DEV_HOTS = "http://dzt-test.zhidaozhixing.com"; + public static final String RELEASE_HOTS = "http://dzt.zhidaozhixing.com"; + public static final String TANLU = "TANLU_MODULE"; + + } diff --git a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt index 2acdaa7..bf862cb 100644 --- a/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt +++ b/modules/mogo-tanlu/src/main/java/com/mogo/cloud/tanlu/utils/FileUtil.kt @@ -100,7 +100,7 @@ fun bitmapToFile(bitmap: Bitmap?, filePath: String): Boolean { return true } -// + fun getVideoPicPath(): String { val moviesDir = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES