Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9e34c71 authored by Eva Chen's avatar Eva Chen
Browse files

Add ULTRASONICS_SENSOR_POSITION to emulator defaults.

Flag android_vic_vehicle_properties needs to be enabled.

Bug: 292141998
Bug: 316088542
Test: atest VtsHalAutomotiveVehicle_TargetTest
Test: atest CtsCarTestCases:CarPropertyManagerTest
Test: atest CtsCarTestCases:VehiclePropertyIdsTest
Change-Id: I4fe29258193138008155857c7a6fe7ae8367ef70
parent 0f8e7ec6
Loading
Loading
Loading
Loading
+139 −0
Original line number Diff line number Diff line
@@ -3455,6 +3455,145 @@
                ]
            }
        },
        {
            "property": "VehicleProperty::ULTRASONICS_SENSOR_POSITION",
            "comment":
                    "Default values for 12 individual ultrasonic sensors installed on the vehicle. Six sensors on the front bumper. Six sensors on the back bumper.",
            "areas": [
                {
                    "defaultValue": {
                        "int32Values": [
                            -1000,
                            3900,
                            0
                        ]
                    },
                    "areaId": 1,
                    "comment": "Rough numbers representing front left most sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            -600,
                            4000,
                            0
                        ]
                    },
                    "areaId": 2,
                    "comment": "Rough numbers representing front 2nd to the left sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            -200,
                            4000,
                            0
                        ]
                    },
                    "areaId": 4,
                    "comment": "Rough numbers representing front 3rd to the left sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            200,
                            4000,
                            0
                        ]
                    },
                    "areaId": 8,
                    "comment": "Rough numbers representing front 3rd to the right sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            600,
                            4000,
                            0
                        ]
                    },
                    "areaId": 16,
                    "comment": "Rough numbers representing front 2nd to the right sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            1000,
                            3900,
                            0
                        ]
                    },
                    "areaId": 32,
                    "comment": "Rough numbers representing front right most sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            -1000,
                            -900,
                            0
                        ]
                    },
                    "areaId": 64,
                    "comment": "Rough numbers representing back left most sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            -600,
                            -1000,
                            0
                        ]
                    },
                    "areaId": 128,
                    "comment": "Rough numbers representing back 2nd to the left sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            -200,
                            -1000,
                            0
                        ]
                    },
                    "areaId": 256,
                    "comment": "Rough numbers representing back 3rd to the left sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            200,
                            -1000,
                            0
                        ]
                    },
                    "areaId": 512,
                    "comment": "Rough numbers representing back 3rd to the right sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            600,
                            -1000,
                            0
                        ]
                    },
                    "areaId": 1024,
                    "comment": "Rough numbers representing back 2nd to the right sensor."
                },
                {
                    "defaultValue": {
                        "int32Values": [
                            1000,
                            -900,
                            0
                        ]
                    },
                    "areaId": 2048,
                    "comment": "Rough numbers representing back right most sensor."
                }
            ]
        },
        {
            "property": "VehicleProperty::ELECTRONIC_TOLL_COLLECTION_CARD_TYPE",
            "defaultValue": {