Home
last modified time | relevance | path

Searched refs:make_shared (Results 1 – 25 of 106) sorted by relevance

12345

/system/tools/aidl/
Dgenerate_java_binder.cpp52 auto v = std::make_shared<Variable>(JavaSignatureOf(type, typenames), in Get()
120 auto ctor = std::make_shared<Method>(); in StubClass()
126 ctor->statements = std::make_shared<StatementBlock>(); in StubClass()
128 auto stability = std::make_shared<LiteralStatement>("this.markVintfStability();\n"); in StubClass()
131 auto attach = std::make_shared<MethodCall>( in StubClass()
134 std::make_shared<LiteralExpression>("DESCRIPTOR")}); in StubClass()
142 auto asBinder = std::make_shared<Method>(); in StubClass()
146 asBinder->statements = std::make_shared<StatementBlock>(); in StubClass()
147 asBinder->statements->Add(std::make_shared<ReturnStatement>(THIS_VALUE)); in StubClass()
152 auto getDefaultTransactionName = std::make_shared<Method>(); in StubClass()
[all …]
Dgenerate_java.cpp132 parcel_class->elements.push_back(std::make_shared<LiteralClassElement>(out.str())); in generate_parcel_class()
140 parcel_class->elements.push_back(std::make_shared<LiteralClassElement>(out.str())); in generate_parcel_class()
162 parcel_class->elements.push_back(std::make_shared<LiteralClassElement>(out.str())); in generate_parcel_class()
164 auto flag_variable = std::make_shared<Variable>("int", "_aidl_flag"); in generate_parcel_class()
165 auto parcel_variable = std::make_shared<Variable>("android.os.Parcel", "_aidl_parcel"); in generate_parcel_class()
167 auto write_method = std::make_shared<Method>(); in generate_parcel_class()
173 write_method->statements = std::make_shared<StatementBlock>(); in generate_parcel_class()
178 write_method->statements->Add(std::make_shared<LiteralStatement>(out.str())); in generate_parcel_class()
193 write_method->statements->Add(std::make_shared<LiteralStatement>(code)); in generate_parcel_class()
202 write_method->statements->Add(std::make_shared<LiteralStatement>(out.str())); in generate_parcel_class()
[all …]
/system/bt/gd/packet/
Dpacket_view_unittest.cc61 …packet = std::shared_ptr<T>(new T({View(std::make_shared<const vector<uint8_t>>(count_all), 0, cou… in SetUp()
96 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())});
98 View(std::make_shared<const vector<uint8_t>>(count_1), 0, count_1.size()),
99 View(std::make_shared<const vector<uint8_t>>(count_2), 0, count_2.size()),
100 View(std::make_shared<const vector<uint8_t>>(count_3), 0, count_3.size()),
119 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.size())});
121 PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_1), 0, count_1.size())}),
122 … {PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_2), 0, count_2.size())}),
123 … PacketView<true>({View(std::make_shared<const vector<uint8_t>>(count_3), 0, count_3.size())})});
133 …PacketView<true> packet({View(std::make_shared<const vector<uint8_t>>(count_all), 0, count_all.siz… in TEST()
[all …]
/system/libvintf/include/vintf/
DObjectFactory.h26 virtual std::shared_ptr<T> make_shared() const { return std::make_shared<T>(); } in make_shared() function
/system/bt/gd/l2cap/
Dl2cap_packet_test.cc78 std::make_shared<std::vector<uint8_t>>(config_request_one_defined_option); in TEST()
88 std::make_shared<std::vector<uint8_t>>(config_request_two_defined_options); in TEST()
98 std::make_shared<std::vector<uint8_t>>(config_request_two_undefined_options); in TEST()
108 std::make_shared<std::vector<uint8_t>>(config_request_hint_one_defined_option); in TEST()
118 std::make_shared<std::vector<uint8_t>>(config_request_hint_two_undefined_options); in TEST()
/system/bt/gd/hci/
Dhci_packets_test.cc233 std::make_shared<std::vector<uint8_t>>(pixel_3_xl_write_extended_inquiry_response); in TEST()
252 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
270 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_par… in TEST()
288 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_scan_ena… in TEST()
304 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_get_vendor_c… in TEST()
318 std::make_shared<std::vector<uint8_t>>(le_get_vendor_capabilities_complete)); in TEST()
340 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST()
359 std::make_shared<std::vector<uint8_t>>(le_set_extended_scan_parameters_6553)); in TEST()
385 …PacketView<kLittleEndian> packet_bytes_view(std::make_shared<std::vector<uint8_t>>(le_set_extended… in TEST()
402 std::make_shared<std::vector<uint8_t>>(le_set_extended_scan_enable_disable)); in TEST()
[all …]
Dacl_builder_test.cc72 …std::shared_ptr<std::vector<uint8_t>> count_packet_bytes = std::make_shared<std::vector<uint8_t>>(… in TEST()
105 …std::shared_ptr<std::vector<uint8_t>> counting_down_bytes_packet_bytes = std::make_shared<std::vec… in TEST()
138 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_model.cc72 example_devices_.push_back(std::make_shared<Beacon>()); in TestModel()
73 example_devices_.push_back(std::make_shared<BeaconSwarm>()); in TestModel()
74 example_devices_.push_back(std::make_shared<Keyboard>()); in TestModel()
75 example_devices_.push_back(std::make_shared<CarKit>()); in TestModel()
76 example_devices_.push_back(std::make_shared<Classic>()); in TestModel()
77 example_devices_.push_back(std::make_shared<Sniffer>()); in TestModel()
78 example_devices_.push_back(std::make_shared<ScriptedBeacon>()); in TestModel()
79 example_devices_.push_back(std::make_shared<RemoteLoopbackDevice>()); in TestModel()
/system/bt/gd/hci/acl_manager/
Dassembler.h54 …PacketViewForRecombination recombination_stage_{PacketView<kLittleEndian>(std::make_shared<std::ve…
56 std::shared_ptr<std::atomic_bool> enqueue_registered_ = std::make_shared<std::atomic_bool>(false);
87 … PacketViewForRecombination(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())); in on_incoming_packet()
98 … PacketViewForRecombination(PacketView<kLittleEndian>(std::make_shared<std::vector<uint8_t>>())); in on_incoming_packet()
Dround_robin_scheduler_test.cc127 auto bytes = std::make_shared<std::vector<uint8_t>>(); in HciDownEndDequeue()
178 auto connection_queue = std::make_shared<AclConnection::Queue>(10); in TEST_F()
185 auto connection_queue = std::make_shared<AclConnection::Queue>(10); in TEST_F()
206 auto connection_queue = std::make_shared<AclConnection::Queue>(10); in TEST_F()
207 auto le_connection_queue = std::make_shared<AclConnection::Queue>(10); in TEST_F()
232 auto connection_queue = std::make_shared<AclConnection::Queue>(15); in TEST_F()
274 auto connection_queue1 = std::make_shared<AclConnection::Queue>(10); in TEST_F()
275 auto connection_queue2 = std::make_shared<AclConnection::Queue>(10); in TEST_F()
276 auto le_connection_queue1 = std::make_shared<AclConnection::Queue>(10); in TEST_F()
277 auto le_connection_queue2 = std::make_shared<AclConnection::Queue>(10); in TEST_F()
[all …]
/system/bt/gd/packet/parser/test/
Dgenerated_packet_test.cc73 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
105 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
132 …auto too_small = std::make_shared<std::vector<uint8_t>>(too_small_bytes.begin(), too_small_bytes.e… in TEST()
143 …auto too_small = std::make_shared<std::vector<uint8_t>>(too_small_bytes.begin(), too_small_bytes.e… in TEST()
155 …auto just_right = std::make_shared<std::vector<uint8_t>>(just_right_bytes.begin(), just_right_byte… in TEST()
165 auto too_big = std::make_shared<std::vector<uint8_t>>(too_big_bytes.begin(), too_big_bytes.end()); in TEST()
177 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
198 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
237 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
263 std::shared_ptr<std::vector<uint8_t>> packet_bytes = std::make_shared<std::vector<uint8_t>>(); in TEST()
[all …]
/system/linkerconfig/modules/tests/
Dlink_test.cc31 auto link = std::make_shared<android::linkerconfig::modules::Link>( in TEST()
45 auto link = std::make_shared<android::linkerconfig::modules::Link>( in TEST()
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_socket_device.cc77 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_com… in HciSocketDevice()
82 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_acl… in HciSocketDevice()
86 …std::shared_ptr<std::vector<uint8_t>> packet_copy = std::make_shared<std::vector<uint8_t>>(raw_sco… in HciSocketDevice()
Dlink_layer_socket_device.cc34 auto packet_size = std::make_shared<std::vector<uint8_t>>(kSizeBytes); in TimerTick()
44 received_ = std::make_shared<std::vector<uint8_t>>(bytes_left_); in TimerTick()
Dclassic.h32 return std::make_shared<Classic>(); in Create()
Dbeacon_swarm.h33 return std::make_shared<BeaconSwarm>(); in Create()
Dkeyboard.h34 return std::make_shared<Keyboard>(); in Create()
Dremote_loopback_device.h32 return std::make_shared<RemoteLoopbackDevice>(); in Create()
Dbeacon.h33 return std::make_shared<Beacon>(); in Create()
Dsniffer.h36 return std::make_shared<Sniffer>(); in Create()
Dcar_kit.h38 return std::make_shared<CarKit>(); in Create()
Dloopback.h33 return std::make_shared<Loopback>(); in Create()
Dbroken_adv.h32 return std::make_shared<BrokenAdv>(); in Create()
/system/memory/libmemunreachable/
DAllocator.h93 shared_ptr<T> make_shared(Args&&... args);
171 shared_ptr make_shared(Args&&... args) { in make_shared() function
172 return heap_.template make_shared<T>(std::forward<Args>(args)...); in make_shared()
187 inline Heap::shared_ptr<T> Heap::make_shared(Args&&... args) { in make_shared() function
/system/bt/common/benchmark/
Dtimer_performance_benchmark.cc67 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
111 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
163 g_promise = std::make_shared<std::promise<void>>(); in SetUp()
216 g_promise = std::make_shared<std::promise<void>>(); in SetUp()

12345