Home
last modified time | relevance | path

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

12345678910>>...14

/system/keymaster/tests/fuzzers/
Dserializable_types.h87 return std::make_unique<SupportedImportFormatsRequest>(kMaxMessageVersion); in getSerializable()
89 return std::make_unique<SupportedExportFormatsRequest>(kMaxMessageVersion); in getSerializable()
91 return std::make_unique<SupportedBlockModesRequest>(kMaxMessageVersion); in getSerializable()
93 return std::make_unique<SupportedPaddingModesRequest>(kMaxMessageVersion); in getSerializable()
95 return std::make_unique<SupportedDigestsRequest>(kMaxMessageVersion); in getSerializable()
97 return std::make_unique<SupportedAlgorithmsResponse>(kMaxMessageVersion); in getSerializable()
99 return std::make_unique<SupportedBlockModesResponse>(kMaxMessageVersion); in getSerializable()
101 return std::make_unique<SupportedPaddingModesResponse>(kMaxMessageVersion); in getSerializable()
103 return std::make_unique<SupportedDigestsResponse>(kMaxMessageVersion); in getSerializable()
105 return std::make_unique<SupportedImportFormatsResponse>(kMaxMessageVersion); in getSerializable()
[all …]
/system/bt/test/headless/
Dmain.cc64 std::make_unique<bluetooth::test::headless::Dumpsys>(options)); in Main()
67 std::make_unique<bluetooth::test::headless::Connect>(options)); in Main()
69 "nop", std::make_unique<bluetooth::test::headless::Nop>(options)); in Main()
72 std::make_unique<bluetooth::test::headless::Pairing>(options)); in Main()
74 "read", std::make_unique<bluetooth::test::headless::Read>(options)); in Main()
76 "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()
102 …std::make_unique<BasicModeDataController>(channel_id_, remote_channel_id_, queue_end_, handler_, s… in UpdateClassicConfiguration()
107 …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()
/system/update_engine/cros/
Domaha_request_action_fuzzer.cc36 std::make_unique<chromeos_update_engine::OmahaRequestAction>( in LLVMFuzzerTestOneInput()
38 std::make_unique<chromeos_update_engine::MockHttpFetcher>( in LLVMFuzzerTestOneInput()
43 std::make_unique<chromeos_update_engine::ObjectCollectorAction< in LLVMFuzzerTestOneInput()
/system/bt/common/benchmark/
Dthread_performance_benchmark.cc70 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp()
138 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
152 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
185 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
199 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
230 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
244 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
273 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
287 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
301 g_counter_promise = std::make_unique<std::promise<void>>(); in BENCHMARK_F()
[all …]
/system/update_engine/
Dupdate_boot_flags_action_unittest.cc35 auto action = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
51 auto action1 = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
52 auto action2 = std::make_unique<UpdateBootFlagsAction>(&boot_control_); in TEST_F()
/system/core/fs_mgr/libsnapshot/
Dcow_snapuserd_test.cpp269 std::unique_ptr<uint8_t[]> random_buffer = std::make_unique<uint8_t[]>(1_MiB); in CreateBaseDevice()
278 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in CreateBaseDevice()
286 std::unique_ptr<uint8_t[]> snapuserd_buffer = std::make_unique<uint8_t[]>(size_); in ReadSnapshotDeviceAndValidate()
311 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_2()
337 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceWithCopyOverlap_2()
363 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_1()
390 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceWithCopyOverlap_1()
409 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceOrderedOpsInverted()
414 std::unique_ptr<uint8_t[]> random_buffer_1_ = std::make_unique<uint8_t[]>(size_); in CreateCowDeviceOrderedOpsInverted()
449 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceOrderedOpsInverted()
[all …]
Dsnapshot_writer.cpp58 cow_ = std::make_unique<CowWriter>(options_); in SetCowDevice()
77 auto cow = std::make_unique<CowReader>(); in OpenReader()
83 auto reader = std::make_unique<CompressedSnapshotReader>(); in OpenReader()
192 return std::make_unique<ReadFdFileDescriptor>(std::move(fd)); in OpenReader()
Dcow_api_test.cpp38 cow_ = std::make_unique<TemporaryFile>(); in SetUp()
347 auto writer = std::make_unique<CowWriter>(options); in TEST_F()
358 writer = std::make_unique<CowWriter>(options); in TEST_F()
413 auto writer = std::make_unique<CowWriter>(options); in TEST_F()
426 writer = std::make_unique<CowWriter>(options); in TEST_F()
467 auto writer = std::make_unique<CowWriter>(options); in TEST_F()
490 writer = std::make_unique<CowWriter>(options); in TEST_F()
520 auto writer = std::make_unique<CowWriter>(options); in TEST_F()
539 writer = std::make_unique<CowWriter>(options); in TEST_F()
608 auto writer = std::make_unique<CowWriter>(options); in TEST_F()
[all …]
/system/update_engine/payload_consumer/
Dpartition_writer_factory_android.cc38 return std::make_unique<VABCPartitionWriter>(partition_update, in CreatePartitionWriter()
46 return std::make_unique<PartitionWriter>(partition_update, in CreatePartitionWriter()
Dcow_writer_file_descriptor_unittest.cc53 auto snapshot_writer = std::make_unique<CompressedSnapshotWriter>(options); in GetCowWriter()
95 std::make_unique<CowWriterFileDescriptor>(std::move(cow_writer)); in TEST_F()
109 cow_fd = std::make_unique<CowWriterFileDescriptor>(std::move(cow_writer)); in TEST_F()
/system/bt/gd/l2cap/fuzz/
Dfuzz_l2cap_classic_module.h35 return std::make_unique<FuzzDynamicChannelManager>(*impl_); in GetDynamicChannelManager()
46 impl_ = std::make_unique<FuzzDynamicChannelManagerImpl>(); in Start()
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc133 first_command = std::make_unique<CommandView>(CommandView::Create(temp_cmd_view)); in dequeue_callback_central()
149 first_command = std::make_unique<CommandView>(CommandView::Create(temp_cmd_view)); in dequeue_callback_peripheral()
172 …up_buffer_a_ = std::make_unique<os::EnqueueBuffer<packet::BasePacketBuilder>>(l2cap_->GetQueueAUpE… in SetUp()
173 …up_buffer_b_ = std::make_unique<os::EnqueueBuffer<packet::BasePacketBuilder>>(l2cap_->GetQueueBUpE… in SetUp()
325 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, central_setup); in TEST_F()
344 …pairing_handler_b = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, peripheral_setup); in TEST_F()
414 …pairing_handler_b = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, peripheral_setup); in TEST_F()
432 auto view_to_packet = std::make_unique<packet::RawBuilder>(); in TEST_F()
436 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, central_setup); in TEST_F()
459 pairing_handler_a = std::make_unique<PairingHandlerLe>(PairingHandlerLe::PHASE1, central_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/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/bt/gd/packet/
Dpython3_module.cc67 .def(py::init([](std::vector<uint8_t> bytes) { return std::make_unique<RawBuilder>(bytes); })) in PYBIND11_MODULE()
69 return std::make_unique<RawBuilder>(std::vector<uint8_t>(bytes.begin(), bytes.end())); in PYBIND11_MODULE()
93 return std::make_unique<PacketView<kLittleEndian>>(bytes_shared); in PYBIND11_MODULE()
105 return std::make_unique<PacketView<!kLittleEndian>>(bytes_shared); in PYBIND11_MODULE()
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/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/core/init/
Dinit_test.cpp52 std::make_unique<ServiceParser>(service_list, nullptr, std::nullopt)); in TestInit()
53 parser.AddSectionParser("on", std::make_unique<ActionParser>(&am, nullptr)); in TestInit()
54 parser.AddSectionParser("import", std::make_unique<ImportParser>(&parser)); in TestInit()
114 parser.AddSectionParser("on", std::make_unique<ActionParser>(&am, nullptr)); in TEST()
266 std::make_unique<ServiceParser>(&service_list, nullptr, std::nullopt)); in TEST()
/system/bt/common/test/
Dthread_performance_test.cc54 set_up_promise_ = std::make_unique<std::promise<void>>(); in SetUp()
120 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
165 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
210 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
251 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
301 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
349 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()

12345678910>>...14