Home
last modified time | relevance | path

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

1234567

/system/tools/aidl/
Dtype_java.cpp249 Add(std::make_unique<BasicType>(this, "void", "XXX", "XXX", "XXX", "XXX", "XXX")); in Init()
251 AddAndSetMember(&m_bool_type, std::make_unique<BooleanType>(this)); in Init()
253 Add(std::make_unique<BasicType>(this, "byte", "writeByte", "readByte", "writeByteArray", in Init()
256 Add(std::make_unique<CharType>(this)); in Init()
259 std::make_unique<BasicType>(this, "int", "writeInt", "readInt", "writeIntArray", in Init()
262 Add(std::make_unique<BasicType>(this, "long", "writeLong", "readLong", "writeLongArray", in Init()
265 Add(std::make_unique<BasicType>(this, "float", "writeFloat", "readFloat", "writeFloatArray", in Init()
268 Add(std::make_unique<BasicType>(this, "double", "writeDouble", "readDouble", "writeDoubleArray", in Init()
271 AddAndSetMember(&m_string_type, std::make_unique<class StringType>(this, "java.lang", "String")); in Init()
272 Add(std::make_unique<class StringType>(this, ::android::aidl::kAidlReservedTypePackage, in Init()
[all …]
Dtype_cpp.cpp368 Add(std::make_unique<ByteType>()); in Init()
369 Add(std::make_unique<PrimitiveType>("int", "cstdint", "int32_t", "readInt32", "writeInt32", in Init()
371 Add(std::make_unique<PrimitiveType>("long", "cstdint", "int64_t", "readInt64", "writeInt64", in Init()
373 Add(std::make_unique<PrimitiveType>("float", kNoHeader, "float", "readFloat", "writeFloat", in Init()
375 Add(std::make_unique<PrimitiveType>("double", kNoHeader, "double", "readDouble", "writeDouble", in Init()
377 Add(std::make_unique<PrimitiveType>("boolean", kNoHeader, "bool", "readBool", "writeBool", in Init()
380 Add(std::make_unique<PrimitiveType>("char", kNoHeader, "char16_t", "readChar", "writeChar", in Init()
395 std::make_unique<Type>(ValidatableType::KIND_BUILT_IN, "java.lang", "String", in Init()
415 Add(std::make_unique<Type>(ValidatableType::KIND_BUILT_IN, kAidlReservedTypePackage, in Init()
426 std::make_unique<Type>(ValidatableType::KIND_BUILT_IN, "android.os", "IBinder", in Init()
[all …]
/system/bt/vendor_libs/test_vendor_lib/packets/test/
Dcounted_builder_test.cc45 std::unique_ptr<CountedBuilder> count_builder = std::make_unique<CountedBuilder>(); in TEST()
47 std::unique_ptr<RawBuilder> raw1 = std::make_unique<RawBuilder>(); in TEST()
48 std::unique_ptr<RawBuilder> raw2 = std::make_unique<RawBuilder>(); in TEST()
49 std::unique_ptr<RawBuilder> raw3 = std::make_unique<RawBuilder>(); in TEST()
50 std::unique_ptr<RawBuilder> raw4 = std::make_unique<RawBuilder>(); in TEST()
51 std::unique_ptr<RawBuilder> raw5 = std::make_unique<RawBuilder>(); in TEST()
52 std::unique_ptr<RawBuilder> raw6 = std::make_unique<RawBuilder>(); in TEST()
53 std::unique_ptr<RawBuilder> raw7 = std::make_unique<RawBuilder>(); in TEST()
/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()
43 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()
Dupdate_attempter.cc626 auto update_check_fetcher = std::make_unique<LibcurlHttpFetcher>( in BuildUpdateActions()
632 auto update_check_action = std::make_unique<OmahaRequestAction>( in BuildUpdateActions()
635 std::make_unique<OmahaResponseHandlerAction>(system_state_); in BuildUpdateActions()
637 std::make_unique<UpdateBootFlagsAction>(system_state_->boot_control()); in BuildUpdateActions()
638 auto download_started_action = std::make_unique<OmahaRequestAction>( in BuildUpdateActions()
641 std::make_unique<LibcurlHttpFetcher>(GetProxyResolver(), in BuildUpdateActions()
651 std::make_unique<DownloadAction>(prefs_, in BuildUpdateActions()
659 auto download_finished_action = std::make_unique<OmahaRequestAction>( in BuildUpdateActions()
662 std::make_unique<LibcurlHttpFetcher>(GetProxyResolver(), in BuildUpdateActions()
666 std::make_unique<FilesystemVerifierAction>(); in BuildUpdateActions()
[all …]
Dmetrics_reporter_stub.cc26 return std::make_unique<MetricsReporterStub>(); in CreateMetricsReporter()
/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/core/adb/
Dtransport_fd.cpp96 auto block = std::make_unique<IOVector::block_type>(MAX_PAYLOAD); in Run()
111 read_header_ = std::make_unique<amessage>(); in Run()
120 auto packet = std::make_unique<apacket>(); in Run()
202 auto header_block = std::make_unique<IOVector::block_type>(header_begin, header_end); in Write()
205 … write_buffer_.append(std::make_unique<IOVector::block_type>(std::move(packet->payload))); in Write()
236 return std::make_unique<NonblockingFdConnection>(std::move(fd)); in FromFd()
Dtypes_test.cpp23 return std::make_unique<IOVector::block_type>(string.begin(), string.end()); in create_block()
27 auto block = std::make_unique<IOVector::block_type>(); in create_block()
35 auto copy = std::make_unique<IOVector::block_type>(); in copy_block()
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()
/system/core/libion/tests/
Ddevice_test.cpp137 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
169 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
201 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
231 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
263 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
295 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
327 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
359 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
392 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
424 auto alloc_ptr = std::make_unique<char[]>(8192 + 1024); in TEST_F()
[all …]
/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/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/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/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/connectivity/wifilogd/
Dmain_loop.cpp38 : MainLoop(socket_name, std::make_unique<Os>(), in MainLoop()
39 std::make_unique<CommandProcessor>(kMainBufferSizeBytes)) {} in MainLoop()
/system/core/init/
Dhost_init_verifier.cpp145 parser.AddSectionParser("service", std::make_unique<ServiceParser>(&sl, nullptr)); in main()
146 parser.AddSectionParser("on", std::make_unique<ActionParser>(&am, nullptr)); in main()
147 parser.AddSectionParser("import", std::make_unique<HostImportParser>()); in main()
Dueventd.cpp245 uevent_handlers.emplace_back(std::make_unique<DeviceHandler>( in ueventd_main()
249 uevent_handlers.emplace_back(std::make_unique<FirmwareHandler>( in ueventd_main()
253 uevent_handlers.emplace_back(std::make_unique<ModaliasHandler>()); in ueventd_main()
/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()
299 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
347 g_counter_promise = std::make_unique<std::promise<void>>(); in TEST_F()
/system/bt/gd/os/
Dalarm_benchmark.cc36 thread_ = std::make_unique<Thread>("timer_benchmark", Thread::Priority::REAL_TIME); in SetUp()
37 alarm_ = std::make_unique<Alarm>(thread_.get()); in SetUp()
38 repeating_alarm_ = std::make_unique<RepeatingAlarm>(thread_.get()); 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/libprocessgroup/
Dtask_profiles.cpp340 attributes_[name] = std::make_unique<ProfileAttribute>(controller, file_attr); in Load()
357 auto profile = std::make_unique<TaskProfile>(); in Load()
369 profile->Add(std::make_unique<SetCgroupAction>(controller, path)); in Load()
380 profile->Add(std::make_unique<SetTimerSlackAction>(slack)); in Load()
391 std::make_unique<SetAttributeAction>(iter->second.get(), attr_value)); in Load()
405 profile->Add(std::make_unique<SetClampsAction>(boost, clamp)); in Load()
/system/connectivity/wifilogd/tests/
Dmock_command_processor.cpp34 std::make_unique<::testing::StrictMock<MockOs>>()) {} in MockCommandProcessor()
Dmain_loop_unittest.cpp51 main_loop_ = std::make_unique<MainLoop>( in MainLoopTest()
126 auto os = std::make_unique<StrictMock<MockOs>>(); in TEST_F()
127 auto command_processor = std::make_unique<StrictMock<MockCommandProcessor>>(); in TEST_F()

1234567