Home
last modified time | relevance | path

Searched refs:A2dpSink (Results 1 – 5 of 5) sorted by relevance

/system/bt/service/
Da2dp_sink.cc29 const int A2dpSink::kSingletonInstanceId = 0;
31 A2dpSink::A2dpSink(const Uuid& uuid) : app_identifier_(uuid) { in A2dpSink() function in bluetooth::A2dpSink
35 A2dpSink::~A2dpSink() { in ~A2dpSink()
39 const Uuid& A2dpSink::GetAppIdentifier() const { return app_identifier_; } in GetAppIdentifier()
41 int A2dpSink::GetInstanceId() const { return kSingletonInstanceId; } in GetInstanceId()
43 void A2dpSink::SetDelegate(Delegate* delegate) { in SetDelegate()
48 bool A2dpSink::Enable() { in Enable()
53 void A2dpSink::Disable() { in Disable()
58 bool A2dpSink::Connect(const std::string& device_address) { in Connect()
77 bool A2dpSink::Disconnect(const std::string& device_address) { in Disconnect()
[all …]
Da2dp_sink.h31 class A2dpSink : public BluetoothInstance,
49 ~A2dpSink() override;
67 explicit A2dpSink(const Uuid& uuid);
87 DISALLOW_COPY_AND_ASSIGN(A2dpSink);
/system/bt/service/test/
Da2dp_sink_unittest.cc44 class TestDelegate : public A2dpSink::Delegate {
127 a2dp_sink_ = std::unique_ptr<A2dpSink>( in SetUp()
128 static_cast<A2dpSink*>(in_client.release())); in SetUp()
160 std::unique_ptr<A2dpSink> a2dp_sink_;
171 std::unique_ptr<A2dpSink> a2dp_sink; in TEST_F()
178 a2dp_sink = std::unique_ptr<A2dpSink>( in TEST_F()
179 static_cast<A2dpSink*>(in_a2dp_sink.release())); in TEST_F()
194 EXPECT_EQ(bluetooth::A2dpSink::kSingletonInstanceId, in TEST_F()
/system/bt/service/ipc/binder/
Dbluetooth_a2dp_sink_binder_server.cc197 auto cb = GetCallback(bluetooth::A2dpSink::kSingletonInstanceId); in GetA2dpSinkCallback()
202 std::shared_ptr<bluetooth::A2dpSink>
204 return std::static_pointer_cast<bluetooth::A2dpSink>( in GetA2dpSink()
205 GetInstance(bluetooth::A2dpSink::kSingletonInstanceId)); in GetA2dpSink()
213 bluetooth::A2dpSink* a2dp_sink = static_cast<bluetooth::A2dpSink*>(instance); in OnRegisterInstanceImpl()
Dbluetooth_a2dp_sink_binder_server.h40 public bluetooth::A2dpSink::Delegate {
73 std::shared_ptr<bluetooth::A2dpSink> GetA2dpSink();