Home
last modified time | relevance | path

Searched refs:ConnectionHandler (Results 1 – 6 of 6) sorted by relevance

/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc79 ConnectionHandler* connection_handler_ = nullptr;
101 ASSERT_TRUE(ConnectionHandler::Initialize(bound_callback, &mock_avrcp_, in TEST_F()
103 connection_handler_ = ConnectionHandler::Get(); in TEST_F()
109 ConnectionHandler::CleanUp(); in TEST_F()
125 ASSERT_TRUE(ConnectionHandler::Initialize(bound_callback, &mock_avrcp_, in TEST_F()
127 connection_handler_ = ConnectionHandler::Get(); in TEST_F()
133 ConnectionHandler::CleanUp(); in TEST_F()
149 ASSERT_TRUE(ConnectionHandler::Initialize(bound_callback, &mock_avrcp_, in TEST_F()
151 connection_handler_ = ConnectionHandler::Get(); in TEST_F()
154 ConnectionHandler::CleanUp(); in TEST_F()
[all …]
/system/bt/profile/avrcp/
Dconnection_handler.h46 class ConnectionHandler {
78 static ConnectionHandler* Get();
120 static void InitForTesting(ConnectionHandler* handler);
134 static ConnectionHandler* instance_;
152 ConnectionHandler() : weak_ptr_factory_(this){}; in ConnectionHandler() function
153 virtual ~ConnectionHandler() = default;
159 base::WeakPtrFactory<ConnectionHandler> weak_ptr_factory_;
160 DISALLOW_COPY_AND_ASSIGN(ConnectionHandler);
Dconnection_handler.cc38 ConnectionHandler* ConnectionHandler::instance_ = nullptr;
40 ConnectionHandler* ConnectionHandler::Get() { in Get()
60 bool ConnectionHandler::Initialize(const ConnectionCallback& callback, in Initialize()
69 instance_ = new ConnectionHandler(); in Initialize()
84 bool ConnectionHandler::CleanUp() { in CleanUp()
103 void ConnectionHandler::InitForTesting(ConnectionHandler* handler) { in InitForTesting()
108 bool ConnectionHandler::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice()
118 auto connection_lambda = [](ConnectionHandler* instance_, in ConnectDevice()
138 bool ConnectionHandler::DisconnectDevice(const RawAddress& bdaddr) { in DisconnectDevice()
151 std::vector<std::shared_ptr<Device>> ConnectionHandler::GetListOfDevices() in GetListOfDevices()
[all …]
Ddevice.h60 friend class ConnectionHandler;
/system/bt/btif/avrcp/
Davrcp_service.h93 ConnectionHandler* connection_handler_;
Davrcp_service.cc303 ConnectionHandler::Initialize( in Init()
306 connection_handler_ = ConnectionHandler::Get(); in Init()