Home
last modified time | relevance | path

Searched refs:make_unique (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/system/bt/test/headless/
Dmain.cc39 "nop", std::make_unique<bluetooth::test::headless::Nop>(options)); in Main()
42 std::make_unique<bluetooth::test::headless::Pairing>(options)); in Main()
44 "read", std::make_unique<bluetooth::test::headless::Read>(options)); in Main()
46 "sdp", std::make_unique<bluetooth::test::headless::Sdp>(options)); in Main()
/system/bt/gd/l2cap/internal/
Dsender.cc35 …data_controller_(std::make_unique<BasicModeDataController>(channel_id_, remote_channel_id_, queue_… in Sender()
46 …std::make_unique<BasicModeDataController>(channel_id_, remote_channel_id_, queue_end_, handler_, s… in Sender()
49 …std::make_unique<ErtmController>(link_, channel_id_, remote_channel_id_, queue_end_, handler_, sch… in Sender()
51 …data_controller_ = std::make_unique<LeCreditBasedDataController>(link_, channel_id_, remote_channe… in Sender()
100 …std::make_unique<BasicModeDataController>(channel_id_, remote_channel_id_, queue_end_, handler_, s… in UpdateClassicConfiguration()
105 …std::make_unique<ErtmController>(link_, channel_id_, remote_channel_id_, queue_end_, handler_, sch… in UpdateClassicConfiguration()
Ddynamic_channel_impl_test.cc88 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
113 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
133 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
158 auto user_handler = std::make_unique<os::Handler>(thread_); in TEST_F()
Ddynamic_channel_allocator_fuzz_test.cc50 … std::make_unique<NiceMock<MockClassicAclConnection>>(), nullptr); in SetUp()
52 channel_allocator_ = std::make_unique<DynamicChannelAllocator>(mock_classic_link_, handler_); in SetUp()
/system/update_engine/
Domaha_request_action_fuzzer.cc36 std::make_unique<chromeos_update_engine::OmahaRequestAction>( in LLVMFuzzerTestOneInput()
39 std::make_unique<chromeos_update_engine::MockHttpFetcher>( in LLVMFuzzerTestOneInput()
44 std::make_unique<chromeos_update_engine::ObjectCollectorAction< in LLVMFuzzerTestOneInput()
Dupdate_boot_flags_action_unittest.cc36 auto action = std::make_unique<UpdateBootFlagsAction>(boot_control); in TEST_F()
53 auto action1 = std::make_unique<UpdateBootFlagsAction>(boot_control); in TEST_F()
54 auto action2 = std::make_unique<UpdateBootFlagsAction>(boot_control); in TEST_F()
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc69 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp()
137 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
151 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
184 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
198 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
229 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
243 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
272 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
286 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
300 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
[all …]
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc125 first_command = std::make_unique<CommandView>(CommandView::Create(temp_cmd_view)); in dequeue_callback_master()
141 first_command = std::make_unique<CommandView>(CommandView::Create(temp_cmd_view)); in dequeue_callback_slave()
164 …up_buffer_a_ = std::make_unique<os::EnqueueBuffer<packet::BasePacketBuilder>>(l2cap_->GetQueueAUpE… in SetUp()
165 …up_buffer_b_ = std::make_unique<os::EnqueueBuffer<packet::BasePacketBuilder>>(l2cap_->GetQueueBUpE… in SetUp()
308 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, master_setup); in TEST_F()
327 pairing_handler_b = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, slave_setup); in TEST_F()
381 pairing_handler_b = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, slave_setup); in TEST_F()
399 auto view_to_packet = std::make_unique<packet::RawBuilder>(); in TEST_F()
403 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, master_setup); in TEST_F()
426 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, master_setup); in TEST_F()
[all …]
/system/bt/gd/os/linux_generic/
Dqueue_unittest.cc209 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
251 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
263 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
286 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
318 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
330 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
352 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
387 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
417 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
459 std::unique_ptr<std::string> data = std::make_unique<std::string>(std::to_string(i)); in TEST_F()
[all …]
/system/core/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp22 std::unique_ptr<unwindstack::RegsArm> regs = std::make_unique<unwindstack::RegsArm>(); in GetRegisters()
26 std::unique_ptr<unwindstack::RegsArm64> regs = std::make_unique<unwindstack::RegsArm64>(); in GetRegisters()
30 std::unique_ptr<unwindstack::RegsX86> regs = std::make_unique<unwindstack::RegsX86>(); in GetRegisters()
34 std::unique_ptr<unwindstack::RegsX86_64> regs = std::make_unique<unwindstack::RegsX86_64>(); in GetRegisters()
38 std::unique_ptr<unwindstack::RegsMips> regs = std::make_unique<unwindstack::RegsMips>(); in GetRegisters()
42 std::unique_ptr<unwindstack::RegsMips64> regs = std::make_unique<unwindstack::RegsMips64>(); in GetRegisters()
47 std::unique_ptr<unwindstack::RegsX86_64> regs = std::make_unique<unwindstack::RegsX86_64>(); in GetRegisters()
113 std::unique_ptr<Maps> maps = std::make_unique<Maps>(); in GetMaps()
352 return std::make_unique<DexFiles>(memory); in GetDexFiles()
355 return std::make_unique<DexFiles>(memory, search_libs); in GetDexFiles()
/system/bt/gd/os/
Dalarm_benchmark.cc38 thread_ = std::make_unique<Thread>("timer_benchmark", Thread::Priority::REAL_TIME); in SetUp()
39 handler_ = std::make_unique<Handler>(thread_.get()); in SetUp()
40 alarm_ = std::make_unique<Alarm>(handler_.get()); in SetUp()
41 repeating_alarm_ = std::make_unique<RepeatingAlarm>(handler_.get()); in SetUp()
/system/security/keystore/include/keystore/
DKeystoreResponse.h34 : response_code_(response_code), error_msg_(std::make_unique<String16>(error_msg)) {} in KeystoreResponse()
43 error_msg_ = std::make_unique<String16>(*other.error_msg_); in KeystoreResponse()
/system/bt/gd/packet/
Draw_builder_unittest.cc47 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(); in TEST()
70 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(count_first); in TEST()
91 std::unique_ptr<RawBuilder> count_builder = std::make_unique<RawBuilder>(kMaxBytes); in TEST()
Dfragmenting_inserter.cc26 …: BitInserter(to_construct_bit_inserter_), mtu_(mtu), curr_packet_(std::make_unique<RawBuilder>(mt… in FragmentingInserter()
39 curr_packet_ = std::make_unique<RawBuilder>(mtu_); in insert_bits()
/system/bt/osi/test/
Dalarm_mock.h30 localAlarmMock = std::make_unique<AlarmMock>(); in Get()
35 static inline void Reset() { localAlarmMock = std::make_unique<AlarmMock>(); } in Reset()
/system/core/libprocessgroup/profiles/
Dtest_vendor.cpp38 return std::make_unique<T>(); in CreateMessage()
52 return [path]() { return std::make_unique<TestConfig<T>>(path); }; in MakeTestParam()
/system/core/init/
Dinit_test.cpp51 std::make_unique<ServiceParser>(service_list, nullptr, std::nullopt)); in TestInit()
52 parser.AddSectionParser("on", std::make_unique<ActionParser>(&am, nullptr)); in TestInit()
53 parser.AddSectionParser("import", std::make_unique<ImportParser>(&parser)); in TestInit()
113 parser.AddSectionParser("on", std::make_unique<ActionParser>(&am, nullptr)); in TEST()
265 std::make_unique<ServiceParser>(&service_list, nullptr, std::nullopt)); in TEST()
/system/security/keystore/tests/
Daaid_truncation_test.cpp81 return std::make_unique<KeyAttestationPackageInfo>( in make_package_info_with_signatures()
114 signatures.push_back(std::make_unique<Signature>(dummy_sig_data)); in TEST()
134 signatures.push_back(std::make_unique<Signature>(dummy_sig_data)); in TEST()
/system/core/fs_mgr/libsnapshot/
Dsnapuserd.cpp55 auto buf = std::make_unique<char>(buf_size); in daemon_main()
69 buf = std::make_unique<char>(buf_size); in daemon_main()
90 buf = std::make_unique<char>(buf_size); in daemon_main()
/system/connectivity/wifilogd/
Dmain_loop.cpp38 : MainLoop(socket_name, std::make_unique<Os>(), in MainLoop()
39 std::make_unique<CommandProcessor>(kMainBufferSizeBytes)) {} in MainLoop()
/system/core/fs_mgr/libvbmeta/
Dreader.cpp60 std::make_unique<uint8_t[]>(SUPER_VBMETA_HEADER_SIZE); in ReadVBMetaTable()
73 std::make_unique<uint8_t[]>(table->header.descriptors_size); in ReadVBMetaTable()
97 std::unique_ptr<uint8_t[]> buffer = std::make_unique<uint8_t[]>(VBMETA_IMAGE_MAX_SIZE); in ReadVBMetaImage()
/system/bt/common/test/
Dthread_performance_test.cc53 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp()
119 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
164 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
209 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
250 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
300 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
348 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
/system/bt/gd/dumpsys/
Dfilter_test.cc46 test_data_classes_.push_back(std::make_unique<BarTestDataClass>()); in SetUp()
47 test_data_classes_.push_back(std::make_unique<BazTestDataClass>()); in SetUp()
48 test_data_classes_.push_back(std::make_unique<FooTestDataClass>()); in SetUp()
49 test_data_classes_.push_back(std::make_unique<QuxTestDataClass>()); in SetUp()
/system/update_engine/payload_consumer/
Ddownload_action_unittest.cc158 auto feeder_action = std::make_unique<ObjectFeederAction<InstallPlan>>(); in TestWithData()
165 std::make_unique<DownloadAction>(&prefs, in TestWithData()
274 auto feeder_action = std::make_unique<ObjectFeederAction<InstallPlan>>(); in TEST()
281 std::make_unique<DownloadAction>(&prefs, in TEST()
363 auto feeder_action = std::make_unique<ObjectFeederAction<InstallPlan>>(); in TestTerminateEarly()
369 auto download_action = std::make_unique<DownloadAction>( in TestTerminateEarly()
477 auto feeder_action = std::make_unique<ObjectFeederAction<InstallPlan>>(); in TEST()
482 std::make_unique<DownloadAction>(&prefs, in TEST()
490 auto test_action = std::make_unique<DownloadActionTestAction>(); in TEST()
563 auto feeder_action = std::make_unique<ObjectFeederAction<InstallPlan>>(); in StartDownload()
[all …]
/system/core/adb/
Dtransport_benchmark.cpp45 auto fd_connection = std::make_unique<FdConnection>(std::move(fd)); in MakeConnection()
46 return std::make_unique<BlockingConnectionAdapter>(std::move(fd_connection)); in MakeConnection()
82 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Unidirectional()
156 std::unique_ptr<apacket> packet = std::make_unique<apacket>(); in BM_Connection_Echo()

12345678910>>...13