命名规范
This commit is contained in:
26
.idea/misc.xml
generated
26
.idea/misc.xml
generated
@@ -11,7 +11,32 @@
|
|||||||
<component name="DesignSurface">
|
<component name="DesignSurface">
|
||||||
<option name="filePathToZoomLevelMap">
|
<option name="filePathToZoomLevelMap">
|
||||||
<map>
|
<map>
|
||||||
|
<entry key="../../../../../../layout/custom_preview.xml" value="0.390625" />
|
||||||
<entry key="../../../../../layout/custom_preview.xml" value="0.19947916666666668" />
|
<entry key="../../../../../layout/custom_preview.xml" value="0.19947916666666668" />
|
||||||
|
<entry key="modules/mogo-module-authorize/src/main/res/layout/module_authorize_fragment.xml" value="0.273046875" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/camera_item_v2x_live_video.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/camera_push_live_video.xml" value="0.27447916666666666" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/camera_view_video_layout_normal.xml" value="0.27447916666666666" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/include_debug_panel.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/merge_vertical_traffic_light_in_vr.xml" value="0.27447916666666666" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_ext_include_seeking_help_notice.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance.xml" value="0.2953125" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_entrance_no_map.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_ext_layout_extensions.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-extensions/src/main/res/layout/module_map_layout_navi_info_panel.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-guide/src/main/res/layout/module_guide_fragment.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-guide/src/main/res/layout/module_guide_item_stage_five.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-hmi/src/main/res/layout/fragment_warning.xml" value="1.0" />
|
||||||
|
<entry key="modules/mogo-module-hmi/src/main/res/layout/notification_v2x_msg_vr.xml" value="0.3453125" />
|
||||||
|
<entry key="modules/mogo-module-hmi/src/main/res/layout/view_traffic_light_vr.xml" value="1.25" />
|
||||||
|
<entry key="modules/mogo-module-left-panel/src/main/res/layout/module_left_panel_simple_speed.xml" value="0.28854166666666664" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/drawable-xhdpi/module_main_warning_bkg_bottom.xml" value="0.359375" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/drawable-xhdpi/module_main_warning_bkg_left.xml" value="0.359375" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/drawable-xhdpi/module_main_warning_bkg_right.xml" value="0.359375" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/drawable-xhdpi/module_main_warning_bkg_top.xml" value="0.33" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/layout/module_main_activity_main.xml" value="0.3125" />
|
||||||
|
<entry key="modules/mogo-module-main/src/main/res/layout/module_main_activity_main_no_map.xml" value="0.33645833333333336" />
|
||||||
|
<entry key="modules/mogo-module-search/src/main/res/layout/fragment_navi_setting.xml" value="0.315625" />
|
||||||
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_adas_dispatch.xml" value="0.184" />
|
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_adas_dispatch.xml" value="0.184" />
|
||||||
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_adas_dispatch_affirm.xml" value="0.19166666666666668" />
|
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_adas_dispatch_affirm.xml" value="0.19166666666666668" />
|
||||||
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_map_marker_blue_info.xml" value="0.184" />
|
<entry key="modules/mogo-module-service/src/main/res/drawable/bg_map_marker_blue_info.xml" value="0.184" />
|
||||||
@@ -22,6 +47,7 @@
|
|||||||
<entry key="modules/mogo-module-service/src/main/res/layout/module_dialog_adas_dispatch_cars.xml" value="0.5546876453218006" />
|
<entry key="modules/mogo-module-service/src/main/res/layout/module_dialog_adas_dispatch_cars.xml" value="0.5546876453218006" />
|
||||||
<entry key="modules/mogo-module-service/src/main/res/layout/module_dialog_adas_dispatch_remind.xml" value="0.35734252929687504" />
|
<entry key="modules/mogo-module-service/src/main/res/layout/module_dialog_adas_dispatch_remind.xml" value="0.35734252929687504" />
|
||||||
<entry key="modules/mogo-module-service/src/main/res/layout/module_services_fragment_online_car_panel.xml" value="0.28919677734374993" />
|
<entry key="modules/mogo-module-service/src/main/res/layout/module_services_fragment_online_car_panel.xml" value="0.28919677734374993" />
|
||||||
|
<entry key="modules/mogo-module-widgets/src/main/res/layout/module_widgets_app_entrance.xml" value="0.2838541666666667" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ adb shell am broadcast -a com.hmi.v2x.limitingvelocity --ez limitingVelocityIsSh
|
|||||||
// 控制OBU场景自测 obuStates 1-添加,2-删除,0-更新
|
// 控制OBU场景自测 obuStates 1-添加,2-删除,0-更新
|
||||||
adb shell am broadcast -a com.obu.test_trigger --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2A01
|
adb shell am broadcast -a com.obu.test_trigger --ei obuStates 1 --ei obuLevel 3 --ei obuType 0x2A01
|
||||||
|
|
||||||
// 控制OBU 展示周边周边车辆 惠新西街南口附近,南向北
|
// 控制OBU 模拟自车位置
|
||||||
adb shell am broadcast -a com.obu.test_trigger_recognized
|
adb shell am broadcast -a com.obu.test_trigger_recognized
|
||||||
|
|
||||||
//与Rsu相关
|
//与Rsu相关
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import com.mogo.module.hmi.R
|
|||||||
import com.mogo.module.hmi.notification.WarningFloat
|
import com.mogo.module.hmi.notification.WarningFloat
|
||||||
import com.mogo.module.hmi.notification.anim.DefaultAnimator
|
import com.mogo.module.hmi.notification.anim.DefaultAnimator
|
||||||
import com.mogo.module.hmi.notification.enums.SidePattern
|
import com.mogo.module.hmi.notification.enums.SidePattern
|
||||||
import com.mogo.module.hmi.ui.widget.ViewV2XNotification
|
import com.mogo.module.hmi.ui.widget.V2XNotificationView
|
||||||
import kotlinx.android.synthetic.main.fragment_warning.*
|
import kotlinx.android.synthetic.main.fragment_warning.*
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -53,7 +53,7 @@ class MoGoWarningFragment : MvpFragment<MoGoWarningContract.View?, WaringPresent
|
|||||||
|
|
||||||
activity?.let {
|
activity?.let {
|
||||||
|
|
||||||
val notificationView = ViewV2XNotification(activity)
|
val notificationView = V2XNotificationView(activity)
|
||||||
notificationView.setWarningIcon(WarningTypeEnum.getWarningIcon(v2xType))
|
notificationView.setWarningIcon(WarningTypeEnum.getWarningIcon(v2xType))
|
||||||
|
|
||||||
notificationView.setWarningContent(
|
notificationView.setWarningContent(
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import kotlinx.android.synthetic.main.view_traffic_light_vr.view.*
|
|||||||
* @date 2021/8/4 3:16 下午
|
* @date 2021/8/4 3:16 下午
|
||||||
* 红绿灯控件
|
* 红绿灯控件
|
||||||
*/
|
*/
|
||||||
class ViewTrafficLight @JvmOverloads constructor(
|
class TrafficLightView @JvmOverloads constructor(
|
||||||
context: Context?,
|
context: Context?,
|
||||||
attrs: AttributeSet? = null,
|
attrs: AttributeSet? = null,
|
||||||
defStyleAttr: Int = 0
|
defStyleAttr: Int = 0
|
||||||
@@ -15,7 +15,7 @@ import kotlinx.android.synthetic.main.notification_v2x_msg_vr.view.*
|
|||||||
*@author xiaoyuzhou
|
*@author xiaoyuzhou
|
||||||
*@date 2021/8/6 12:25 下午
|
*@date 2021/8/6 12:25 下午
|
||||||
*/
|
*/
|
||||||
class ViewV2XNotification @JvmOverloads constructor(
|
class V2XNotificationView @JvmOverloads constructor(
|
||||||
context: Context?,
|
context: Context?,
|
||||||
attrs: AttributeSet? = null,
|
attrs: AttributeSet? = null,
|
||||||
defStyleAttr: Int = 0
|
defStyleAttr: Int = 0
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
|
||||||
<com.mogo.module.hmi.ui.widget.ViewTrafficLight
|
<com.mogo.module.hmi.ui.widget.TrafficLightView
|
||||||
android:id="@+id/viewTrafficLightVr"
|
android:id="@+id/viewTrafficLightVr"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.mogo.utils.logger.Logger
|
|||||||
import com.zhidao.support.obu.model.CvxHvInfoIndInfo
|
import com.zhidao.support.obu.model.CvxHvInfoIndInfo
|
||||||
import com.zhidao.support.obu.model.advance.MovingObjectInfo
|
import com.zhidao.support.obu.model.advance.MovingObjectInfo
|
||||||
import com.zhidao.support.obu.model.advance.Position
|
import com.zhidao.support.obu.model.advance.Position
|
||||||
|
import kotlin.random.Random
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author xiaoyuzhou
|
* @author xiaoyuzhou
|
||||||
@@ -36,8 +37,18 @@ class ObuTestTriggerRecognizedReceiver : BroadcastReceiver() {
|
|||||||
|
|
||||||
val cvxHvInfoIndInfo = CvxHvInfoIndInfo(0, 1, 2)
|
val cvxHvInfoIndInfo = CvxHvInfoIndInfo(0, 1, 2)
|
||||||
|
|
||||||
val position = Position(0, 399739429, 1164115207, 20)
|
val randomLocation = Random.nextInt(100, 2000)
|
||||||
val movingObjectInfo = MovingObjectInfo(0, position, 1800, 60)
|
|
||||||
|
val position = Position(
|
||||||
|
0, (399739429 + randomLocation).toLong(),
|
||||||
|
(1164115207 + randomLocation).toLong(), 20
|
||||||
|
)
|
||||||
|
val movingObjectInfo = MovingObjectInfo(
|
||||||
|
0,
|
||||||
|
position,
|
||||||
|
1800 +randomLocation,
|
||||||
|
6000 +randomLocation
|
||||||
|
)
|
||||||
cvxHvInfoIndInfo.basic_info = movingObjectInfo
|
cvxHvInfoIndInfo.basic_info = movingObjectInfo
|
||||||
|
|
||||||
MogoPrivateObuManager.INSTANCE
|
MogoPrivateObuManager.INSTANCE
|
||||||
|
|||||||
Reference in New Issue
Block a user