• Home
  • Raw
  • Download

Lines Matching refs:conn_id

81   void set_sample_database(uint16_t conn_id, bool vcs, bool vcs_broken,  in set_sample_database()  argument
128 services_map[conn_id] = builder.Build().Services(); in set_sample_database()
130 ON_CALL(gatt_queue, ReadCharacteristic(conn_id, _, _, _)) in set_sample_database()
131 .WillByDefault(Invoke([&](uint16_t conn_id, uint16_t handle, in set_sample_database()
156 cb(conn_id, GATT_SUCCESS, handle, value.size(), value.data(), in set_sample_database()
171 Invoke([&](uint16_t conn_id, in SetUp()
173 std::list<gatt::Service>& services = services_map[conn_id]; in SetUp()
188 [&](uint16_t conn_id, uint16_t handle) -> const gatt::Service* { in SetUp() argument
189 std::list<gatt::Service>& services = services_map[conn_id]; in SetUp()
202 Invoke([&](uint16_t conn_id) -> std::list<gatt::Service>* { in SetUp() argument
203 return &services_map[conn_id]; in SetUp()
217 Invoke([](uint16_t conn_id, uint16_t handle, in SetUp()
220 if (cb) cb(conn_id, GATT_SUCCESS, handle, cb_data); in SetUp()
261 void TestDisconnect(const RawAddress& address, uint16_t conn_id) { in TestDisconnect() argument
262 if (conn_id) { in TestDisconnect()
263 EXPECT_CALL(gatt_interface, Close(conn_id)); in TestDisconnect()
284 void TestSubscribeNotifications(const RawAddress& address, uint16_t conn_id, in TestSubscribeNotifications() argument
286 SetSampleDatabase(conn_id); in TestSubscribeNotifications()
289 GetConnectedEvent(address, conn_id); in TestSubscribeNotifications()
298 EXPECT_CALL(gatt_queue, WriteDescriptor(conn_id, handles.second, in TestSubscribeNotifications()
306 GetSearchCompleteEvent(conn_id); in TestSubscribeNotifications()
310 void TestReadCharacteristic(const RawAddress& address, uint16_t conn_id, in TestReadCharacteristic() argument
312 SetSampleDatabase(conn_id); in TestReadCharacteristic()
315 GetConnectedEvent(address, conn_id); in TestReadCharacteristic()
317 EXPECT_CALL(gatt_queue, ReadCharacteristic(conn_id, _, _, _)) in TestReadCharacteristic()
320 EXPECT_CALL(gatt_queue, ReadCharacteristic(conn_id, handle, _, _)) in TestReadCharacteristic()
324 GetSearchCompleteEvent(conn_id); in TestReadCharacteristic()
328 void GetConnectedEvent(const RawAddress& address, uint16_t conn_id) { in GetConnectedEvent() argument
331 .conn_id = conn_id, in GetConnectedEvent()
341 void GetDisconnectedEvent(const RawAddress& address, uint16_t conn_id) { in GetDisconnectedEvent() argument
344 .conn_id = conn_id, in GetDisconnectedEvent()
353 void GetSearchCompleteEvent(uint16_t conn_id) { in GetSearchCompleteEvent() argument
356 .conn_id = conn_id, in GetSearchCompleteEvent()
377 void SetSampleDatabaseVCS(uint16_t conn_id) { in SetSampleDatabaseVCS() argument
378 set_sample_database(conn_id, true, false, false, false, false, false); in SetSampleDatabaseVCS()
381 void SetSampleDatabaseNoVCS(uint16_t conn_id) { in SetSampleDatabaseNoVCS() argument
382 set_sample_database(conn_id, false, false, true, false, true, false); in SetSampleDatabaseNoVCS()
385 void SetSampleDatabaseVCSBroken(uint16_t conn_id) { in SetSampleDatabaseVCSBroken() argument
386 set_sample_database(conn_id, true, true, true, false, true, false); in SetSampleDatabaseVCSBroken()
389 void SetSampleDatabase(uint16_t conn_id) { in SetSampleDatabase() argument
390 set_sample_database(conn_id, true, false, true, false, true, false); in SetSampleDatabase()
570 uint16_t conn_id = 22; member in bluetooth::vc::internal::__anon0e49f4590111::VolumeControlCallbackTest
574 SetSampleDatabase(conn_id); in SetUp()
577 GetConnectedEvent(test_address, conn_id); in SetUp()
578 GetSearchCompleteEvent(conn_id); in SetUp()
588 .conn_id = conn_id, in GetNotificationEvent()
617 uint16_t conn_id = 22; member in bluetooth::vc::internal::__anon0e49f4590111::VolumeControlValueSetTest
621 SetSampleDatabase(conn_id); in SetUp()
624 GetConnectedEvent(test_address, conn_id); in SetUp()
625 GetSearchCompleteEvent(conn_id); in SetUp()
636 EXPECT_CALL(gatt_queue, WriteCharacteristic(conn_id, 0x0024, expected_data, in TEST_F()