Home
last modified time | relevance | path

Searched refs:shared_ptr (Results 1 – 25 of 271) sorted by relevance

1234567891011

/system/bt/vendor_libs/test_vendor_lib/packets/link_layer/
Dlink_layer_packet_builder.cc39 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapAcl(std::unique_ptr<ViewForward… in WrapAcl()
41 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapAcl()
45 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapCommand(std::unique_ptr<Command… in WrapCommand()
48 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapCommand()
52 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapDisconnect( in WrapDisconnect()
54 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapDisconnect()
58 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapEncryptConnection( in WrapEncryptConnection()
60 return std::shared_ptr<LinkLayerPacketBuilder>( in WrapEncryptConnection()
64 std::shared_ptr<LinkLayerPacketBuilder> LinkLayerPacketBuilder::WrapEncryptConnectionResponse( in WrapEncryptConnectionResponse()
66 return std::shared_ptr<LinkLayerPacketBuilder>(new LinkLayerPacketBuilder( in WrapEncryptConnectionResponse()
[all …]
Dlink_layer_packet_builder.h47 static std::shared_ptr<LinkLayerPacketBuilder> WrapAcl(std::unique_ptr<ViewForwarderBuilder> acl,
49 …static std::shared_ptr<LinkLayerPacketBuilder> WrapCommand(std::unique_ptr<CommandBuilder> command,
51 …static std::shared_ptr<LinkLayerPacketBuilder> WrapDisconnect(std::unique_ptr<DisconnectBuilder> d…
53 static std::shared_ptr<LinkLayerPacketBuilder> WrapEncryptConnection(
55 static std::shared_ptr<LinkLayerPacketBuilder> WrapEncryptConnectionResponse(
57 …static std::shared_ptr<LinkLayerPacketBuilder> WrapInquiry(std::unique_ptr<InquiryBuilder> inquiry,
59 static std::shared_ptr<LinkLayerPacketBuilder> WrapInquiryResponse(
61 static std::shared_ptr<LinkLayerPacketBuilder> WrapIoCapabilityRequest(
63 static std::shared_ptr<LinkLayerPacketBuilder> WrapIoCapabilityResponse(
65 static std::shared_ptr<LinkLayerPacketBuilder> WrapIoCapabilityNegativeResponse(
[all …]
/system/libvintf/
DVintfObjectAfterUpdate.h39 std::shared_ptr<const HalManifest> getDeviceHalManifest(bool skipCache = false) override {
44 std::shared_ptr<const HalManifest> getFrameworkHalManifest(bool skipCache = false) override {
49 std::shared_ptr<const CompatibilityMatrix> getDeviceCompatibilityMatrix(
55 std::shared_ptr<const CompatibilityMatrix> getFrameworkCompatibilityMatrix(
73 bool set(const std::shared_ptr<HalManifest>& o) { in set()
77 bool set(const std::shared_ptr<CompatibilityMatrix>& o) { in set()
83 std::shared_ptr<HalManifest> mDeviceManifest;
84 std::shared_ptr<HalManifest> mFrameworkManifest;
85 std::shared_ptr<CompatibilityMatrix> mDeviceMatrix;
86 std::shared_ptr<CompatibilityMatrix> mFrameworkMatrix;
[all …]
/system/bt/packet/base/
Dpacket_builder.h28 virtual bool Serialize(const std::shared_ptr<Packet>& pkt) = 0;
34 void ReserveSpace(const std::shared_ptr<Packet>& pkt, size_t size);
35 bool AddPayloadOctets1(const std::shared_ptr<Packet>& pkt, uint8_t value) { in AddPayloadOctets1()
38 bool AddPayloadOctets2(const std::shared_ptr<Packet>& pkt, uint16_t value) { in AddPayloadOctets2()
41 bool AddPayloadOctets3(const std::shared_ptr<Packet>& pkt, uint32_t value) { in AddPayloadOctets3()
44 bool AddPayloadOctets4(const std::shared_ptr<Packet>& pkt, uint32_t value) { in AddPayloadOctets4()
47 bool AddPayloadOctets6(const std::shared_ptr<Packet>& pkt, uint64_t value) { in AddPayloadOctets6()
50 bool AddPayloadOctets8(const std::shared_ptr<Packet>& pkt, uint64_t value) { in AddPayloadOctets8()
58 bool AddPayloadOctets(const std::shared_ptr<Packet>& pkt, size_t octets,
Dpacket.h41 Packet(std::shared_ptr<const Packet> pkt, size_t start, size_t end) in Packet()
43 Packet(std::shared_ptr<const Packet> pkt) : data_(pkt->data_) { in Packet()
71 static std::shared_ptr<T> Specialize(const std::shared_ptr<U>& pkt) { in Specialize()
78 return std::shared_ptr<T>( in Specialize()
86 std::shared_ptr<std::vector<uint8_t>> data_;
/system/bt/packet/tests/
Dpacket_test_helper.h32 static std::shared_ptr<TestPacketType<PacketType>> Make() { in Make()
33 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
37 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
38 std::shared_ptr<Packet> packet) { in Make()
39 return std::shared_ptr<TestPacketType<PacketType>>( in Make()
43 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
49 static std::shared_ptr<TestPacketType<PacketType>> Make( in Make()
51 auto pkt = std::shared_ptr<TestPacketType<PacketType>>( in Make()
61 std::shared_ptr<std::vector<uint8_t>> GetDataPointer() { in GetDataPointer()
/system/bt/profile/avrcp/
Ddevice.h133 void MessageReceived(uint8_t label, std::shared_ptr<Packet> pkt);
134 void BrowseMessageReceived(uint8_t label, std::shared_ptr<BrowsePacket> pkt);
135 void VendorPacketHandler(uint8_t label, std::shared_ptr<VendorPacket> pkt);
148 uint8_t label, const std::shared_ptr<GetCapabilitiesRequest>& pkt);
152 uint8_t label, const std::shared_ptr<RegisterNotificationRequest>& pkt);
178 uint8_t label, std::shared_ptr<GetElementAttributesRequest> pkt,
193 uint8_t label, std::shared_ptr<GetFolderItemsRequest> request);
195 uint8_t label, std::shared_ptr<GetFolderItemsRequest> pkt,
198 std::shared_ptr<GetFolderItemsRequest> pkt,
201 uint8_t label, std::shared_ptr<GetFolderItemsRequest> pkt,
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Dl2cap_test.cc26 using std::shared_ptr;
50 std::shared_ptr<L2capSdu> update_fcs(vector<uint8_t> sdu) { in update_fcs()
56 void compare_packets(shared_ptr<HciPacket> expected, shared_ptr<HciPacket> received) { in compare_packets()
74 vector<std::shared_ptr<L2capSdu> > test_packet; in TEST_F()
81 shared_ptr<L2capPacket> test_1 = L2capPacket::assemble(test_packet); in TEST_F()
84 shared_ptr<TestPacket> expected(new TestPacket(good_l2cap_packet)); in TEST_F()
110 vector<std::shared_ptr<L2capSdu> > test_packet; in TEST_F()
117 shared_ptr<L2capPacket> test_2 = L2capPacket::assemble(test_packet); in TEST_F()
139 vector<std::shared_ptr<L2capSdu> > test_packet; in TEST_F()
145 shared_ptr<L2capPacket> test_3 = L2capPacket::assemble(test_packet); in TEST_F()
[all …]
Dl2cap_sdu_test.cc28 std::shared_ptr<L2capSdu> packet_1 = L2capSdu::L2capSduConstructor(l2cap_test_packet_1);
29 std::shared_ptr<L2capSdu> packet_2 = L2capSdu::L2capSduConstructor(l2cap_test_packet_2);
30 std::shared_ptr<L2capSdu> packet_3 = L2capSdu::L2capSduConstructor(l2cap_test_packet_3);
31 std::shared_ptr<L2capSdu> packet_4 = L2capSdu::L2capSduConstructor(l2cap_test_packet_4);
32 std::shared_ptr<L2capSdu> packet_5 = L2capSdu::L2capSduConstructor(l2cap_test_packet_5);
33 std::shared_ptr<L2capSdu> packet_6 = L2capSdu::L2capSduConstructor(l2cap_test_packet_6);
34 std::shared_ptr<L2capSdu> packet_7 = L2capSdu::L2capSduConstructor(l2cap_test_packet_7);
35 std::shared_ptr<L2capSdu> packet_8 = L2capSdu::L2capSduConstructor(l2cap_test_packet_8);
36 std::shared_ptr<L2capSdu> packet_9 = L2capSdu::L2capSduConstructor(l2cap_test_packet_9);
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Ddevice_boutique.cc28 std::unordered_map<std::string, std::function<std::shared_ptr<Device>()>>& DeviceBoutique::GetMap()… in GetMap()
29 static std::unordered_map<std::string, std::function<std::shared_ptr<Device>()>> impl; in GetMap()
35 const std::function<std::shared_ptr<Device>()> device_constructor) { in Register()
41 std::shared_ptr<Device> DeviceBoutique::Create(const vector<std::string>& args) { in Create()
46 return std::shared_ptr<Device>(nullptr); in Create()
49 std::shared_ptr<Device> new_device = GetMap()[args[0]](); in Create()
Dphy_layer_factory.h39 …std::shared_ptr<PhyLayer> GetPhyLayer(const std::function<void(packets::LinkLayerPacketView)>& dev…
48 virtual void Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet, uint32_t id);
52 std::vector<std::shared_ptr<PhyLayer>> phy_layers_;
59 const std::shared_ptr<PhyLayerFactory>& factory);
62 virtual void Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet) override;
67 std::shared_ptr<PhyLayerFactory> factory_;
Dphy_layer_factory.cc33 std::shared_ptr<PhyLayer> PhyLayerFactory::GetPhyLayer( in GetPhyLayer()
35 std::shared_ptr<PhyLayer> new_phy = in GetPhyLayer()
36 …std::make_shared<PhyLayerImpl>(phy_type_, next_id_++, device_receive, std::shared_ptr<PhyLayerFact… in GetPhyLayer()
51 void PhyLayerFactory::Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet, uint32_t … in Send()
53 std::shared_ptr<std::vector<uint8_t>> serialized_packet = in Send()
54 std::shared_ptr<std::vector<uint8_t>>(new std::vector<uint8_t>()); in Send()
88 const std::shared_ptr<PhyLayerFactory>& factory) in PhyLayerImpl()
96 void PhyLayerImpl::Send(const std::shared_ptr<packets::LinkLayerPacketBuilder> packet) { in Send()
Dtest_model.h44 size_t Add(std::shared_ptr<Device> device);
50 size_t AddPhy(std::shared_ptr<PhyLayerFactory> phy);
82 std::vector<std::shared_ptr<PhyLayerFactory>> phys_;
83 std::vector<std::shared_ptr<Device>> devices_;
99 std::vector<std::shared_ptr<Device>> example_devices_;
/system/vold/
DVolumeManager.h80 void addDiskSource(const std::shared_ptr<DiskSource>& diskSource);
82 std::shared_ptr<android::vold::Disk> findDisk(const std::string& id);
83 std::shared_ptr<android::vold::VolumeBase> findVolume(const std::string& id);
96 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
140 void handleDiskAdded(const std::shared_ptr<android::vold::Disk>& disk);
149 std::list<std::shared_ptr<DiskSource>> mDiskSources;
150 std::list<std::shared_ptr<android::vold::Disk>> mDisks;
151 std::list<std::shared_ptr<android::vold::Disk>> mPendingDisks;
152 std::list<std::shared_ptr<android::vold::VolumeBase>> mObbVolumes;
153 std::list<std::shared_ptr<android::vold::VolumeBase>> mStubVolumes;
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_socket_device.cc81 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_com… in HciSocketDevice()
87 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_acl… in HciSocketDevice()
92 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_sco… in HciSocketDevice()
96 RegisterEventChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
100 RegisterAclChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
104 RegisterScoChannel([this](std::shared_ptr<std::vector<uint8_t>> packet) { in HciSocketDevice()
116 void HciSocketDevice::SendHci(hci::PacketType packet_type, const std::shared_ptr<std::vector<uint8_… in SendHci()
Ddevice.h72 void RegisterPhyLayer(std::shared_ptr<PhyLayer> phy);
74 void UnregisterPhyLayer(std::shared_ptr<PhyLayer> phy);
78 …virtual void SendLinkLayerPacket(std::shared_ptr<packets::LinkLayerPacketBuilder> packet, Phy::Typ…
81 std::map<Phy::Type, std::vector<std::shared_ptr<PhyLayer>>> phy_layers_;
/system/libvintf/include/vintf/
DVintfObject.h39 std::shared_ptr<T> object;
45 std::shared_ptr<RuntimeInfo> object;
87 virtual std::shared_ptr<const HalManifest> getDeviceHalManifest(bool skipCache = false);
93 virtual std::shared_ptr<const HalManifest> getFrameworkHalManifest(bool skipCache = false);
99 virtual std::shared_ptr<const CompatibilityMatrix> getDeviceCompatibilityMatrix(
109 virtual std::shared_ptr<const CompatibilityMatrix> getFrameworkCompatibilityMatrix(
125 std::shared_ptr<const RuntimeInfo> getRuntimeInfo(
215 static std::shared_ptr<VintfObject> GetInstance();
223 static std::shared_ptr<const HalManifest> GetDeviceHalManifest(bool skipCache = false);
229 static std::shared_ptr<const HalManifest> GetFrameworkHalManifest(bool skipCache = false);
[all …]
/system/netd/resolv/
DResolverEventReporter.h38 using ListenerSet = std::set<std::shared_ptr<aidl::android::net::metrics::INetdEventListener>>;
48 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener);
56 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener)
59 const std::shared_ptr<aidl::android::net::metrics::INetdEventListener>& listener)
/system/bt/packet/avrcp/
Davrcp_packet.cc43 bool PacketBuilder::Serialize(const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
54 const std::shared_ptr<::bluetooth::Packet>& pkt) { in PushHeader()
61 const std::shared_ptr<::bluetooth::Packet>& pkt, uint32_t company_id) { in PushCompanyId()
71 std::shared_ptr<Packet> Packet::Parse( in Parse()
72 std::shared_ptr<::bluetooth::Packet> pkt) { in Parse()
73 return std::shared_ptr<Packet>(new Packet(pkt)); in Parse()
Davrcp_packet.h42 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
51 void PushHeader(const std::shared_ptr<::bluetooth::Packet>& pkt);
52 bool PushCompanyId(const std::shared_ptr<::bluetooth::Packet>& pkt,
70 static std::shared_ptr<Packet> Parse(
71 std::shared_ptr<::bluetooth::Packet> pkt);
Davrcp_browse_packet.cc39 const std::shared_ptr<::bluetooth::Packet>& pkt) { in Serialize()
48 const std::shared_ptr<::bluetooth::Packet>& pkt, uint16_t length) { in PushHeader()
53 std::shared_ptr<BrowsePacket> BrowsePacket::Parse( in Parse()
54 std::shared_ptr<::bluetooth::Packet> pkt) { in Parse()
55 return std::shared_ptr<BrowsePacket>(new BrowsePacket(pkt)); in Parse()
Davrcp_browse_packet.h41 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
47 void PushHeader(const std::shared_ptr<::bluetooth::Packet>& pkt,
57 static std::shared_ptr<BrowsePacket> Parse(
58 std::shared_ptr<::bluetooth::Packet> pkt);
Dget_folder_items.h36 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
59 void PushMediaListItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
61 void PushMediaPlayerItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
63 void PushMediaElementItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
65 void PushFolderItem(const std::shared_ptr<::bluetooth::Packet>& pkt,
110 const std::shared_ptr<::bluetooth::Packet>& pkt) override;
/system/core/libunwindstack/benchmarks/
Dunwind_benchmarks.cpp32 size_t Call6(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call6()
40 size_t Call5(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call5()
44 size_t Call4(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call4()
48 size_t Call3(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call3()
52 size_t Call2(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call2()
56 size_t Call1(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call1()
112 unwindstack::Elf* elf = build_id_map_info->GetElf(std::shared_ptr<unwindstack::Memory>(), in BM_get_build_id_from_elf()
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.h70 std::shared_ptr<BleAdvertiserInterface> advertiser_handler,
71 std::shared_ptr<BleScannerInterface> scanner_handler,
72 std::shared_ptr<TestClientHandler> client_handler,
73 std::shared_ptr<TestServerHandler> server_handler);
144 std::shared_ptr<BleScannerInterface> scanner_handler_;
145 std::shared_ptr<TestClientHandler> client_handler_;
146 std::shared_ptr<TestServerHandler> server_handler_;

1234567891011