Lines Matching refs:device

109   VolumeControlDevice* device = devices_->FindByAddress(test_address_1);  in TEST_F()  local
110 ASSERT_NE(nullptr, device); in TEST_F()
111 ASSERT_EQ(test_address_1, device->address); in TEST_F()
146 VolumeControlDevice* device = devices_->FindByAddress(test_address); in TEST_F() local
147 device->connection_id = connection_id; in TEST_F()
148 device->change_counter = change_counter; in TEST_F()
149 device->volume_control_point_handle = control_point_handle; in TEST_F()
176 VolumeControlDevice* device = devices_->FindByAddress(test_address); in TEST_F() local
177 device->connection_id = connection_id; in TEST_F()
178 device->change_counter = change_counter; in TEST_F()
179 device->volume_control_point_handle = control_point_handle; in TEST_F()
196 VolumeControlDevice* device = devices_->FindByAddress(test_address); in TEST_F() local
197 device->connection_id = GATT_INVALID_CONN_ID; in TEST_F()
199 device->volume_control_point_handle = control_point_handle; in TEST_F()
216 device = new VolumeControlDevice(GetTestAddress(1), true); in SetUp()
255 delete device; in TearDown()
279 ASSERT_EQ(true, device->UpdateHandles()); in SetSampleDatabase1()
289 ASSERT_EQ(false, device->UpdateHandles()); in SetSampleDatabase2()
292 VolumeControlDevice* device = nullptr; member in bluetooth::vc::internal::VolumeControlDeviceTest
301 ASSERT_EQ(false, device->HasHandles()); in TEST_F()
315 ASSERT_EQ(false, device->UpdateHandles()); in TEST_F()
316 ASSERT_EQ(0x0000, device->volume_state_handle); in TEST_F()
317 ASSERT_EQ(0x0000, device->volume_state_ccc_handle); in TEST_F()
318 ASSERT_EQ(0x0000, device->volume_control_point_handle); in TEST_F()
319 ASSERT_EQ(0x0000, device->volume_flags_handle); in TEST_F()
320 ASSERT_EQ(0x0000, device->volume_flags_ccc_handle); in TEST_F()
321 ASSERT_EQ(false, device->HasHandles()); in TEST_F()
326 ASSERT_NE(0, device->volume_state_handle); in TEST_F()
327 ASSERT_NE(0, device->volume_control_point_handle); in TEST_F()
328 ASSERT_NE(0, device->volume_flags_handle); in TEST_F()
329 ASSERT_EQ(true, device->HasHandles()); in TEST_F()
331 ASSERT_EQ(0, device->volume_state_handle); in TEST_F()
332 ASSERT_EQ(0, device->volume_control_point_handle); in TEST_F()
333 ASSERT_EQ(0, device->volume_flags_handle); in TEST_F()
334 ASSERT_EQ(false, device->HasHandles()); in TEST_F()
359 ASSERT_EQ(true, device->EnqueueInitialRequests(gatt_if, chrc_read_cb, in TEST_F()
385 ASSERT_EQ(true, device->EnqueueInitialRequests(0x0001, chrc_read_cb, in TEST_F()
390 ASSERT_EQ(false, device->device_ready); in TEST_F()
391 device->VerifyReady(0xffff); in TEST_F()
394 ASSERT_EQ(false, device->device_ready); in TEST_F()
395 device->VerifyReady(handle); in TEST_F()
398 ASSERT_EQ(true, device->device_ready); in TEST_F()
427 device->EnqueueRemainingRequests(gatt_if, chrc_read_cb, cccd_write_cb); in TEST_F()
434 ASSERT_EQ(true, device->IsEncryptionEnabled()); in TEST_F()
438 ASSERT_NE(true, device->IsEncryptionEnabled()); in TEST_F()
442 ASSERT_NE(true, device->IsEncryptionEnabled()); in TEST_F()
449 device->change_counter = 0x01; in TEST_F()
453 device->ControlPointOperation(0x03, nullptr, write_cb, nullptr); in TEST_F()
460 device->change_counter = 0x55; in TEST_F()
465 device->ControlPointOperation(0x01, &arg, write_cb, nullptr); in TEST_F()