Lines Matching refs:config

73     for (auto& config : properties->getList()) {  in TEST_F()  local
74 String8 msg = String8::format("prop 0x%x\n", config->prop); in TEST_F()
79 for (auto& config : properties->getList()) { in TEST_F() local
80 String8 msg = String8::format("query single prop 0x%x\n", config->prop); in TEST_F()
82 sp<VehiclePropertiesHolder> singleProperty = vn->listProperties(config->prop); in TEST_F()
85 ASSERT_EQ(config->prop, newConfig->prop); in TEST_F()
86 ASSERT_EQ(config->access, newConfig->access); in TEST_F()
87 ASSERT_EQ(config->change_mode, newConfig->change_mode); in TEST_F()
98 for (auto& config : properties->getList()) { in TEST_F() local
99 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F()
102 String8 msg = String8::format("getting prop 0x%x\n", config->prop); in TEST_F()
104 if ((config->prop >= (int32_t)VEHICLE_PROPERTY_INTERNAL_START) && in TEST_F()
105 (config->prop <= (int32_t)VEHICLE_PROPERTY_INTERNAL_END)) { in TEST_F()
108 value.value.prop = config->prop; in TEST_F()
109 value.value.value_type = config->value_type; in TEST_F()
114 value.value.prop = config->prop; in TEST_F()
115 value.value.value_type = config->value_type; in TEST_F()
117 if ((config->access & VEHICLE_PROP_ACCESS_READ) == 0) { // cannot read in TEST_F()
121 ASSERT_EQ(config->value_type, value.value.value_type); in TEST_F()
133 for (auto& config : properties->getList()) { in TEST_F() local
134 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F()
137 String8 msg = String8::format("setting prop 0x%x\n", config->prop); in TEST_F()
140 value.value.prop = config->prop; in TEST_F()
141 value.value.value_type = config->value_type; in TEST_F()
143 if ((config->access & VEHICLE_PROP_ACCESS_WRITE) == 0) { // cannot write in TEST_F()
158 for (auto& config : properties->getList()) { in TEST_F() local
159 String8 msg = String8::format("subscribing property 0x%x\n", config->prop); in TEST_F()
161 status_t r = vn->subscribe(listener, config->prop, config->max_sample_rate, 0); in TEST_F()
162 if (((config->access & VEHICLE_PROP_ACCESS_READ) == 0) || in TEST_F()
163 (config->change_mode == VEHICLE_PROP_CHANGE_MODE_STATIC)) { // cannot subsctibe in TEST_F()
166 if ((config->prop >= (int32_t)VEHICLE_PROPERTY_INTERNAL_START) && in TEST_F()
167 (config->prop <= (int32_t)VEHICLE_PROPERTY_INTERNAL_END)) { in TEST_F()
170 value.value.prop = config->prop; in TEST_F()
171 value.value.value_type = config->value_type; in TEST_F()
176 ASSERT_TRUE(listener->waitForEvent(config->prop, 2000000000)); in TEST_F()
179 for (auto& config : properties->getList()) { in TEST_F() local
180 vn->unsubscribe(listener, config->prop); in TEST_F()
184 for (auto& config : properties->getList()) { in TEST_F() local
185 ASSERT_TRUE(!listener->waitForEvent(config->prop, 1000000000)); in TEST_F()