删除了MoGoWarningProvider.kt, 由MoGoHmiFragment接管处理。

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2021-11-08 20:32:04 +08:00
parent 8a693b5d94
commit 2089e2578e
10 changed files with 75 additions and 610 deletions

View File

@@ -1,312 +0,0 @@
package com.mogo.module.map;
public class NavConstants {
public interface NativeApi {
/**
* 导航去某地
*/
String NATIVE_API_NAVI = "com.ileja.navi.address.get";
/**
* 继续导航
*/
String NATIVE_API_NAVI_CONTINUE = "com.ileja.navi.continue.get";
/**
* 途径点设置
*/
String NATIVE_API_NAVI_PASSPOI = "com.ileja.navi.passpoi.address.get";
/**
* 沿途搜索
*/
String NATIVE_API_NAVI_WAY_SEARCH = "com.ileja.navi.along.route.poi.query";
/**
*导航路状态
*/
String NATIVE_API_NAVI_STATUS_QUERY = "com.ileja.navi.status.query";
/**
* 下一个服务区查询 service area
*/
String NATIVE_API_NAVI_NEXT_SERVICEAREA = "com.ileja.navi.sapa.query";
/**
* 导航常用地址
*/
String NATIVE_API_NAVI_GET_COMMON_ADDRESS = "com.ileja.navi.address.common.get";
/**
* 提供地址 设置家/公司
*/
String NATIVE_API_NAVI_COMMON_ADDRESS = "com.ileja.navi.common.get";
/**
* 设在当前位置
*/
String NATIVE_API_NAVI_CURRENT_ADDRESS = "com.ileja.navi.common.current.get";
/**
* 导航指令
*/
String NATIVE_API_NAVI_INI_GET = "com.ileja.navi.ini.get";
/**
* 沿途路况
*/
String NATIVE_API_NAVI_WAY_TRAFFIC= "com.ileja.traffic.poi.get";
/**
* 前方路况
*/
String NATIVE_API_NAVI_FRONT_TRAFFIC= "com.ileja.traffic.front.get";
}
interface WakeUpCommandApi {
/**
* 放大地图
*/
String COMMAND_MAP_FLEX_UP = "com.zhidao.map.flex.up";
/**
* 缩小地图
*/
String COMMAND_MAP_FLEX_DOWN= "com.zhidao.map.flex.down";
/**
* 白天模式
*/
String COMMAND_MAP_MODE_DAY= "com.zhidao.map.mode.day";
/**
* 夜晚模式
*/
String COMMAND_MAP_MODE_NIGHT= "com.zhidao.map.mode.night";
/**
* 自动模式
*/
String COMMAND_MAP_MODE_AUTO= "com.zhidao.map.mode.auto";
/**
* * 地图设置为2d 车上模式
*/
String COMMAND_MAP_NAVI_OPEN_2D_CAR = "com.zhidao.map.navi.open.2dcar";
/**
* 地图设置为2d 北上模式
*/
String COMMAND_MAP_NAVI_OPEN_2D_NORTH = "com.zhidao.map.navi.open.2dnorth";
/**
* 地图设置为3d模式
*/
String COMMAND_MAP_NAVI_OPEN_3D = "com.zhidao.map.navi.open.3d";
/**
* 导航偏好设置 推荐路线(导航场景) //推荐路线/躲避拥堵/高速优先/少收费/避免收费/不走高速
*/
String COMMAND_MAP_NAVI_PREFERENCE_RECOMMEND = "com.zhidao.map.preference.recommend";
/**
* 导航偏好设置 躲避拥堵(导航场景)
*/
String COMMAND_MAP_NAVI_PREFERENCE_AVOID_BLOCK = "com.zhidao.map.preference.avoid.block";
/**
* 导航偏好设置 高速优先(导航场景)
*/
String COMMAND_MAP_NAVI_PREFERENCE_HIGHSPEED = "com.zhidao.map.preference.high.speed";
/**
* 导航偏好设置 少收费(导航场景)
*/
String COMMAND_MAP_NAVI_PREFERENCE_LESS_CHARGE = "com.zhidao.map.preference.less.charge";
/**
* 导航偏好设置 避免收费(导航场景)
*/
String COMMAND_MAP_NAVI_PREFERENCE_NO_CHARGE= "com.zhidao.map.preference.no.charge";
/**
* 导航偏好设置 不走高速(导航场景)
*/
String COMMAND_MAP_NAVI_NO_HIGH_SPEED = "com.zhidao.map.preference.avoid.highspeed";
/**
* 打开实况模式
*/
String COMMAND_MAP_NAVI_OPEN_LIVE = "com.zhidao.map.navi.open.live";
/**
* 关闭实况模式
*/
String COMMAND_MAP_NAVI_CLOSE_LIVE = "com.zhidao.map.navi.close.live";
/**
* 进入全览
*/
String COMMAND_MAP_NAVI_ENTER_OVERVIEW = "com.zhidao.map.navi.enter.overview";
/**
* 退出全览
*/
String COMMAND_MAP_NAVI_EXIT_OVERVIEW = "com.zhidao.map.navi.exit.overview";
/**
* 继续导航 返回导航
*/
String COMMAND_MAP_NAVI_OVERVIEW_BACK_NAVI = "com.zhidao.map.navi.backnavi";
/**
* 刷新路线
*/
String COMMAND_MAP_NAVI_REFRESH_PATH= "com.zhidao.map.navi.refresh.path";
/**
* 选择线路
*/
String COMMAND_MAP_SELECT_PATH1 = "com.zhidao.map.select.path1";
String COMMAND_MAP_SELECT_PATH2 = "com.zhidao.map.select.path2";
String COMMAND_MAP_SELECT_PATH3 = "com.zhidao.map.select.path3";
/**
* 继续导航 确定
*/
String COMMAND_ZHIDAO_CONTINUE_SURE = "com.zhidao.contine.sure";
/**
* 继续导航 取消
*/
String COMMAND_ZHIDAO_CONTINUE_CANCLE = "com.zhidao.contine.cancle";
/**
* 规划界面 确定
*/
String COMMAND_ZHIDAO_PLAN_SURE = "com.zhidao.plan.sure";
/**
* 规划界面 取消
*/
String COMMAND_ZHIDAO_PLAN_CANCLE = "com.zhidao.v.cancle";
/**
* 关闭地图
*/
String COMMAND_MAP_CLOSEMAP = "com.zhidao.map.close";
}
interface CommmandApi {
/**
* 选择导航
*/
String COMMAND_NAVI_RESULT_SELECT = "com.ileja.navi.jump.route";
/**
* 继续导航
*/
String COMMAND_NAVI_CONTINUE = "com.ileja.navi.route.continue";
/**
* 导航过程中增加途径点
*/
String COMMAND_NAVI_ADD_PASSPOINT = "com.ileja.navi.passpoi.address.result";
/**
* 目的地纠错
*/
String COMMAND_NAVI_CHANGE_DES = "com.ileja.navi.address.change";
/**
* 酒店查询
*/
String COMMAND_HOTEL_SELECT = "com.aispeech.hotel.select";
/**
* 美食查询
*/
String COMMAND_FOOD_SELECT = "com.aispeech.food.select";
/**
* 查询我的位置
*/
String COMMAND_NAVI_MYLOCATION = "com.ileja.navi.mylocation.query";
/**
* 白天模式
*/
String COMMAND_NAVI_DAY_MODE = "com.ileja.navi.mode.daytime";
/**
* 夜晚模式
*/
String COMMAND_NAVI_NIGHT_MODE = "com.ileja.navi.mode.night";
/**
* 夜晚模式
*/
String COMMAND_NAVI_AUTODAY_MODE = "com.ileja.navi.mode.autodaynight";
/**
* 打开实况
*/
String COMMAND_NAVI_TRAFFIC_OPEN = "com.ileja.navi.traffic.open";
/**
* 关闭实况
*/
String COMMAND_NAVI_TRAFFIC_CLOSE = "com.ileja.navi.traffic.close";
/**
* 车头朝上
*/
String COMMAND_NAVI_TRAFFIC_HEAD_UP = "com.ileja.traffic.head.up";
/**
* 北朝上
*/
String COMMAND_NAVI_TRAFFIC_NORTH_UP = "com.ileja.traffic.north.up";
/**
* 选择沿途搜索
*/
String COMMAND_NAVI_AWAY_SEARCH = "com.ileja.navi.along.route.poi.select";
/**
* 打开地图相关操作
*/
String COMMAND_NAVI_OPEN_MAP = "com.ileja.navi.map.open";
/**
* 退出地图相关操作
*/
String COMMAND_NAVI_CLOSE_MAP = "com.ileja.navi.map.close";
/**
* 退出导航
*/
String COMMAND_NAVI_EXIT_NAVI = "com.ileja.navi.exit";
/**
* 放大地图
*/
String COMMAND_NAVI_MAP_ENLARGE = "com.ileja.navi.map.enlarge";
/**
* 缩小地图
*/
String COMMAND_NAVI_MAP_REDUCE = "com.ileja.navi.map.reduce";
/**
* 全览图
*/
String COMMAND_NAVI_FULL_MAP = "com.ileja.navi.map.full";
/**
* 3D模式
*/
String COMMAND_NAVI_MODE_3D = "com.ileja.navi.mode.3d";
/**
* 2D模式
*/
String COMMAND_NAVI_MODE_2D = "com.ileja.navi.mode.2d";
/**
* 收藏当前位置
*/
String COMMAND_NAVI_COLLECTION_CURRENT= "com.ileja.navi.collection.location";
/**
* 设在当前位置
*/
String COMMAND_NAVI_COMMON_CURRENT= "com.ileja.navi.common.current";
/**
* 导航剩余距离
*/
String COMMAND_NAVI_QUERY_DISTANCE= "com.ileja.navi.remaining.distance";
/**
* 导航剩時間
*/
String COMMAND_NAVI_QUERY_TIME= "com.ileja.navi.remaining.time";
/**
* 查询路况
*/
String COMMAND_NAVI_QUERY_TRAFFIC= "com.ileja.traffic.show";
/**
* 去常用地址的沿途路况
*/
String COMMAND_NAVI_COMMON_SIT= "com.ileja.traffic.turn.common.site";
/**
* 拥堵情况
*/
String COMMAND_NAVI_WAY_TRAFFIC= "com.ileja.traffic.route";
/**
* 航班查询
*/
String COMMAND_FLIGHT_RESULT= "native.flight.result";
}
}

View File

@@ -21,20 +21,6 @@ public class VoiceConstants {
public static final String CMD_MAP_ZOOM_IN_UN_WAKEUP = "CMD_MAP_ZOOM_IN_UN_WAKEUP";
public static final String[] CMD_MAP_ZOOM_IN_TRIGGER_WORDS = {"放大地图"};
///**
// * 回家
// */
//public static final String CMD_MAP_GO_HOME = "com.ileja.navi.map.go.home";
//public static final String CMD_MAP_GO_HOME_UN_WAKEUP = "CMD_MAP_GO_HOME_UN_WAKEUP";
//public static final String[] CMD_MAP_ZOOM_IN_GO_HOME = {"我要回家", "导航回家", "带我回家"};
//
///**
// * 去公司
// */
//public static final String CMD_MAP_GO_COMPANY = "com.ileja.navi.map.go.company";
//public static final String CMD_MAP_GO_COMPANY_UN_WAKEUP = "CMD_MAP_GO_COMPANY_UN_WAKEUP";
//public static final String[] CMD_MAP_ZOOM_IN_GO_COMPANY = {"我要去公司", "导航去公司", "带我去公司"};
/**
* 导航历史记录
*/
@@ -185,22 +171,13 @@ public class VoiceConstants {
// 免唤醒
sVoiceCmds.put( VoiceConstants.CMD_MAP_ZOOM_IN_UN_WAKEUP, VoiceConstants.CMD_MAP_ZOOM_IN_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_ZOOM_OUT_UN_WAKEUP, VoiceConstants.CMD_MAP_ZOOM_OUT_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_2D_UN_WAKEUP, VoiceConstants.CMD_MAP_2D_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_3D_UN_WAKEUP, VoiceConstants.CMD_MAP_3D_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_TRAFFIC_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_TRAFFIC_MODE_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_UN_TRAFFIC_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_UN_TRAFFIC_MODE_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_DISPLAY_OVERVIEW_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_DISPLAY_OVERVIEW_MODE_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_CONTINUE_NAVI_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_CONTINUE_NAVI_MODE_MODE_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_CAR_UP_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_CAR_UP_MODE_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_NORTH_UP_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_NORTH_UP_MODE_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_GO_HOME_UN_WAKEUP, VoiceConstants.CMD_MAP_ZOOM_IN_GO_HOME );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_GO_COMPANY_UN_WAKEUP, VoiceConstants.CMD_MAP_ZOOM_IN_GO_COMPANY );
sVoiceCmds.put( VoiceConstants.CMD_MAP_HISTORY_UN_WAKEUP, VoiceConstants.CMD_MAP_HISTORY_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_STOP_NAVI_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_STOP_NAVI_MODE_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_GEO_NEARBY_WAKEUP, VoiceConstants.CMD_MAP_GEO_NEARBY_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_SPEAK_DETAIL_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_SPEAK_DETAIL_MODE_TRIGGER_WORDS );
sVoiceCmds.put( VoiceConstants.CMD_MAP_SPEAK_DRAFT_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_SPEAK_DRAFT_MODE_TRIGGER_WORDS );
//sVoiceCmds.put( VoiceConstants.CMD_MAP_SPEAK_REMAIN_UN_WAKEUP, VoiceConstants.CMD_MAP_SPEAK_REMAIN_TRIGGER_WORDS );
sUnRegisterVoiceCmds.put( VoiceConstants.CMD_MAP_DAY_TIME_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_DAY_TIME_MODE_TRIGGER_WORDS );
sUnRegisterVoiceCmds.put( VoiceConstants.CMD_MAP_NIGHT_MODE_UN_WAKEUP, VoiceConstants.CMD_MAP_NIGHT_MODE_TRIGGER_WORDS );