Lines Matching refs:config

80     for (auto& config : properties->getList()) {  in TEST_F()  local
81 String8 msg = String8::format("prop 0x%x\n", config->prop); in TEST_F()
86 for (auto& config : properties->getList()) { in TEST_F() local
87 String8 msg = String8::format("query single prop 0x%x\n", config->prop); in TEST_F()
89 sp<VehiclePropertiesHolder> singleProperty = vn->listProperties(config->prop); in TEST_F()
92 ASSERT_EQ(config->prop, newConfig->prop); in TEST_F()
93 ASSERT_EQ(config->access, newConfig->access); in TEST_F()
94 ASSERT_EQ(config->change_mode, newConfig->change_mode); in TEST_F()
105 for (auto& config : properties->getList()) { in TEST_F() local
106 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F()
109 String8 msg = String8::format("getting prop 0x%x\n", config->prop); in TEST_F()
112 value.value.prop = config->prop; in TEST_F()
113 value.value.value_type = config->value_type; in TEST_F()
115 if ((config->access & VEHICLE_PROP_ACCESS_READ) == 0) { // cannot read in TEST_F()
119 ASSERT_EQ(config->value_type, value.value.value_type); in TEST_F()
131 for (auto& config : properties->getList()) { in TEST_F() local
132 if (config->prop == VEHICLE_PROPERTY_RADIO_PRESET) { in TEST_F()
135 String8 msg = String8::format("setting prop 0x%x\n", config->prop); in TEST_F()
138 value.value.prop = config->prop; in TEST_F()
139 value.value.value_type = config->value_type; in TEST_F()
141 if ((config->access & VEHICLE_PROP_ACCESS_WRITE) == 0) { // cannot write in TEST_F()
155 for (auto& config : properties->getList()) { in TEST_F() local
156 String8 msg = String8::format("subscribing property 0x%x\n", config->prop); in TEST_F()
158 status_t r = vn->subscribe(config->prop, config->max_sample_rate); in TEST_F()
159 if (((config->access & VEHICLE_PROP_ACCESS_READ) == 0) || in TEST_F()
160 (config->change_mode == VEHICLE_PROP_CHANGE_MODE_STATIC)) { // cannot subsctibe in TEST_F()
163 if ((config->prop >= (int32_t)VEHICLE_PROPERTY_INTERNAL_START) && in TEST_F()
164 (config->prop <= (int32_t)VEHICLE_PROPERTY_INTERNAL_END)) { in TEST_F()
167 value.value.prop = config->prop; in TEST_F()
168 value.value.value_type = config->value_type; in TEST_F()
173 ASSERT_TRUE(getTestListener().waitForEvent(config->prop, 0, 2000000000)); in TEST_F()
176 for (auto& config : properties->getList()) { in TEST_F() local
177 vn->unsubscribe(config->prop); in TEST_F()
181 for (auto& config : properties->getList()) { in TEST_F() local
182 int initialCount = getTestListener().getEventCount(config->prop); in TEST_F()
183 ASSERT_TRUE(!getTestListener().waitForEvent(config->prop, initialCount, 1000000000)); in TEST_F()