Home
last modified time | relevance | path

Searched refs:occupantZones (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/automotive/ivn_android_device/impl/default/test/
DIvnAndroidDeviceServiceUnittest.cpp94 std::vector<OccupantZoneInfo> occupantZones; in TEST_F() local
97 mService->getOccupantZonesForDevice(/*androidDeviceId=*/0, &occupantZones); in TEST_F()
100 EXPECT_EQ(occupantZones.size(), 2); in TEST_F()
101 if (occupantZones.size() == 2) { in TEST_F()
102 EXPECT_EQ(occupantZones[0].zoneId, 0); in TEST_F()
103 EXPECT_EQ(occupantZones[0].occupantType, OccupantType::DRIVER); in TEST_F()
104 EXPECT_EQ(occupantZones[0].seat, 1); in TEST_F()
105 EXPECT_EQ(occupantZones[1].zoneId, 1); in TEST_F()
106 EXPECT_EQ(occupantZones[1].occupantType, OccupantType::FRONT_PASSENGER); in TEST_F()
107 EXPECT_EQ(occupantZones[1].seat, 4); in TEST_F()
/hardware/interfaces/automotive/ivn_android_device/impl/default/src/
DIvnAndroidDeviceService.cpp80 Json::Value& occupantZones = device["OccupantZones"]; in init() local
81 for (unsigned int j = 0; j < occupantZones.size(); j++) { in init()
82 Json::Value& occupantZone = occupantZones[j]; in init()
99 deviceInfo.occupantZones.push_back(std::move(occupantZoneInfo)); in init()
154 for (const auto& occupantZoneInfo : deviceInfo.occupantZones) { in getDeviceIdForOccupantZone()
166 int androidDeviceId, std::vector<OccupantZoneInfo>* occupantZones) { in getOccupantZonesForDevice() argument
171 for (const auto& occupantZoneInfo : mDeviceInfoById[androidDeviceId].occupantZones) { in getOccupantZonesForDevice()
172 occupantZones->push_back(occupantZoneInfo); in getOccupantZonesForDevice()
/hardware/interfaces/automotive/ivn_android_device/vts/src/
DVtsHalIvnTargetTest.cpp104 std::vector<OccupantZoneInfo> occupantZones; in TEST_P() local
105 status = getHal()->getOccupantZonesForDevice(deviceId, &occupantZones); in TEST_P()
109 ASSERT_FALSE(occupantZones.empty()) << "No occupant zones for device: " << deviceId; in TEST_P()
111 for (const OccupantZoneInfo& occupantZone : occupantZones) { in TEST_P()
/hardware/interfaces/automotive/ivn_android_device/impl/default/include/
DIvnAndroidDeviceService.h34 std::vector<aidl::android::hardware::automotive::ivn::OccupantZoneInfo> occupantZones; member
54 std::vector<aidl::android::hardware::automotive::ivn::OccupantZoneInfo>* occupantZones)