Home
last modified time | relevance | path

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

123456789

/aosp14/frameworks/base/tools/aapt2/
H A DDominatorTree_test.cpp77 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
78 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
127 configs.push_back(util::make_unique<ResourceConfigValue>(en_config, "")); in TEST()
129 configs.push_back(util::make_unique<ResourceConfigValue>(ldrtl_config, "")); in TEST()
135 configs.push_back(util::make_unique<ResourceConfigValue>(v20_config, "")); in TEST()
161 configs.push_back(util::make_unique<ResourceConfigValue>(fr_config, "")); in TEST()
211 configs.push_back(util::make_unique<ResourceConfigValue>(de_config, "")); in TEST()
212 configs.push_back(util::make_unique<ResourceConfigValue>(fr_config, "")); in TEST()
213 configs.push_back(util::make_unique<ResourceConfigValue>(mcc_config, "")); in TEST()
[all …]
H A DResourceValues_test.cpp43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
75 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
78 b.elements.push_back(util::make_unique<String>(pool.MakeRef("une"))); in TEST()
82 c.elements.push_back(util::make_unique<String>(pool.MakeRef("uno"))); in TEST()
85 d.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
86 d.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
98 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
[all …]
H A DMain.cpp69 AddOptionalSubcommand(util::make_unique<CompileCommand>(diagnostics)); in MainCommand()
70 AddOptionalSubcommand(util::make_unique<LinkCommand>(diagnostics)); in MainCommand()
71 AddOptionalSubcommand(util::make_unique<DumpCommand>(printer, diagnostics)); in MainCommand()
72 AddOptionalSubcommand(util::make_unique<DiffCommand>()); in MainCommand()
73 AddOptionalSubcommand(util::make_unique<OptimizeCommand>()); in MainCommand()
74 AddOptionalSubcommand(util::make_unique<ConvertCommand>()); in MainCommand()
75 AddOptionalSubcommand(util::make_unique<VersionCommand>()); in MainCommand()
76 AddOptionalSubcommand(util::make_unique<ApkInfoCommand>(diagnostics)); in MainCommand()
178 aapt::util::make_unique<aapt::DaemonCommand>(&fout, &diagnostics)); in MainImpl()
H A DResourceUtils.cpp358 return util::make_unique<Reference>(); in MakeNull()
376 return util::make_unique<BinaryPrimitive>(value); in TryParseEnumSymbol()
389 return util::make_unique<BinaryPrimitive>(flags); in TryParseFlagSymbol()
412 return util::make_unique<BinaryPrimitive>(flags); in TryParseFlagSymbol()
480 : util::make_unique<BinaryPrimitive>(value); in TryParseColor()
564 return util::make_unique<BinaryPrimitive>(value); in TryParseInt()
577 return util::make_unique<BinaryPrimitive>(value); in TryParseFloat()
740 return util::make_unique<Id>(); in ParseBinaryResValue()
782 return util::make_unique<String>( in ParseBinaryResValue()
799 return util::make_unique<Reference>(); in ParseBinaryResValue()
[all …]
/aosp14/frameworks/base/tools/aapt2/link/
H A DAutoVersioner_test.cpp33 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
34 entry.values.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
35 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
46 …entry.values.push_back(util::make_unique<ResourceConfigValue>(ConfigDescription::DefaultConfig(), … in TEST()
47 entry.values.push_back(util::make_unique<ResourceConfigValue>(sw600dp_v13_config, "")); in TEST()
48 entry.values.push_back(util::make_unique<ResourceConfigValue>(v21_config, "")); in TEST()
62 util::make_unique<Id>()) in TEST()
64 util::make_unique<Id>()) in TEST()
66 ResourceId(0x01010364), util::make_unique<Id>()) in TEST()
68 util::make_unique<Id>()) in TEST()
[all …]
H A DXmlCompatVersioner_test.cpp58 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
60 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
62 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
64 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
66 util::make_unique<Attribute>(TYPE_DIMENSION)) in SetUp()
68 util::make_unique<Attribute>(TYPE_STRING)) in SetUp()
/aosp14/frameworks/base/services/core/jni/gnss/
H A DGnss.cpp467 return std::make_unique<gnss::AGnss>(agnssAidl); in getAGnssInterface()
472 return std::make_unique<gnss::AGnss_V2_0>(agnss_V2_0); in getAGnssInterface()
477 return std::make_unique<gnss::AGnss_V1_0>(agnss_V1_0); in getAGnssInterface()
488 return std::make_unique<gnss::AGnssRil>(agnssRilAidl); in getAGnssRilInterface()
493 return std::make_unique<gnss::AGnssRil_V2_0>(agnssRil_V2_0); in getAGnssRilInterface()
498 return std::make_unique<gnss::AGnssRil_V1_0>(agnssRil_V1_0); in getAGnssRilInterface()
570 return std::make_unique<gnss::GnssDebug>(gnssDebugAidl); in getGnssDebugInterface()
576 return std::make_unique<gnss::GnssDebug_V2_0>(gnssDebug_V2_0); in getGnssDebugInterface()
582 return std::make_unique<gnss::GnssDebug_V1_0>(gnssDebug_V1_0); in getGnssDebugInterface()
735 return std::make_unique<gnss::GnssPsdsAidl>(gnssPsdsAidl); in getGnssPsdsInterface()
[all …]
/aosp14/frameworks/base/media/jni/soundpool/
H A DSoundPool.cpp106 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in load()
113 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in unload()
131 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in play()
148 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoPause()
155 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoResume()
162 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in mute()
169 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in pause()
178 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in resume()
187 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in stop()
198 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in setVolume()
[all …]
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DResEntryWriter_test.cpp84 std::unique_ptr<Array> array1 = util::make_unique<Array>(); in TEST_F()
86 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 1u)); in TEST_F()
88 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 2u)); in TEST_F()
89 std::unique_ptr<Array> array2 = util::make_unique<Array>(); in TEST_F()
91 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 1u)); in TEST_F()
93 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 2u)); in TEST_F()
153 std::unique_ptr<Array> array1 = util::make_unique<Array>(); in TEST_F()
155 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 1u)); in TEST_F()
157 util::make_unique<BinaryPrimitive>(uint8_t(Res_value::TYPE_INT_DEC), 2u)); in TEST_F()
158 std::unique_ptr<Array> array2 = util::make_unique<Array>(); in TEST_F()
[all …]
/aosp14/frameworks/base/tools/aapt2/cmd/
H A DDump.h281 AddOptionalSubcommand(util::make_unique<DumpAPCCommand>(printer, diag_)); in DumpCommand()
282 AddOptionalSubcommand(util::make_unique<DumpBadgingCommand>(printer, diag_)); in DumpCommand()
283 AddOptionalSubcommand(util::make_unique<DumpConfigsCommand>(printer, diag_)); in DumpCommand()
284 AddOptionalSubcommand(util::make_unique<DumpPackageNameCommand>(printer, diag_)); in DumpCommand()
285 AddOptionalSubcommand(util::make_unique<DumpPermissionsCommand>(printer, diag_)); in DumpCommand()
286 AddOptionalSubcommand(util::make_unique<DumpStringsCommand>(printer, diag_)); in DumpCommand()
287 AddOptionalSubcommand(util::make_unique<DumpStyleParentCommand>(printer, diag_)); in DumpCommand()
288 AddOptionalSubcommand(util::make_unique<DumpTableCommand>(printer, diag_)); in DumpCommand()
289 AddOptionalSubcommand(util::make_unique<DumpChunks>(printer, diag_)); in DumpCommand()
290 AddOptionalSubcommand(util::make_unique<DumpXmlStringsCommand>(printer, diag_)); in DumpCommand()
[all …]
/aosp14/frameworks/base/tools/aapt2/java/
H A DJavaClassGenerator_test.cpp43 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
67 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
91 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
126 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
163 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
190 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
340 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
378 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
408 .AddValue("android:attr/layout_gravity", util::make_unique<Attribute>()) in TEST()
409 .AddValue("android:attr/background", util::make_unique<Attribute>()) in TEST()
[all …]
H A DManifestClassGenerator.cpp72 util::make_unique<StringMember>(result.value(), attr->value); in WriteSymbol()
96 util::make_unique<ClassDefinition>("permission", ClassQualifier::kStatic, false); in GenerateManifestClass()
98 util::make_unique<ClassDefinition>("permission_group", ClassQualifier::kStatic, false); in GenerateManifestClass()
117 util::make_unique<ClassDefinition>("Manifest", ClassQualifier::kNone, false); in GenerateManifestClass()
/aosp14/frameworks/base/tools/aapt2/format/
H A DArchive_test.cpp38 auto array = std::make_unique<uint8_t[]>(kTestDataLength); in MakeTestArray()
62 auto buffer = std::make_unique<char[]>(kTestDataLength); in VerifyDirectory()
116 auto data1_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
120 auto data2_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
123 auto input1 = std::make_unique<TestData>(data1_copy, kTestDataLength); in TEST_F()
124 auto input2 = std::make_unique<TestData>(data2_copy, kTestDataLength); in TEST_F()
141 auto input = std::make_unique<TestData>(data, kTestDataLength); in TEST_F()
176 auto data1_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
180 auto data2_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
183 auto input1 = std::make_unique<TestData>(data1_copy, kTestDataLength); in TEST_F()
[all …]
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
H A Dcow_snapuserd_test.cpp280 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in ReadLastBlock()
284 cow_system_ = std::make_unique<TemporaryFile>(path); in ReadLastBlock()
347 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in CreateBaseDevice()
385 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_2()
411 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceWithCopyOverlap_2()
437 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_1()
483 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceOrderedOpsInverted()
546 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceOrderedOps()
607 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDevice()
907 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowPartialFilledArea()
[all …]
/aosp14/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator_test.cpp34 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
55 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
81 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
103 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
126 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
163 util::make_unique<StyledString>(pool.MakeRef(original_style)); in TEST()
241 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in TEST()
242 plural->values = {util::make_unique<String>(table->string_pool.MakeRef("zero")), in TEST()
243 util::make_unique<String>(table->string_pool.MakeRef("one"))}; in TEST()
248 std::unique_ptr<Plural> expected = util::make_unique<Plural>(); in TEST()
[all …]
/aosp14/frameworks/base/tools/aapt2/filter/
H A DFilter_test.cpp32 chain.AddFilter(util::make_unique<PrefixFilter>("keep/")); in TEST()
38 chain.AddFilter(util::make_unique<PrefixFilter>("keep/")); in TEST()
39 chain.AddFilter(util::make_unique<PrefixFilter>("keep/really/")); in TEST()
/aosp14/frameworks/base/libs/hwui/tests/microbench/
H A DDisplayListCanvasBench.cpp50 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_empty()
62 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_saverestore()
78 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_translate()
97 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_record_simpleBitmapView()
127 auto canvas = std::make_unique<SkiaRecordingCanvas>(nullptr, 100, 100); in BM_SkiaDisplayListCanvas_basicViewGroupDraw()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
H A Dsnapuserd_test.cpp264 base_loop_ = std::make_unique<LoopDevice>(base_fd_, 10s); in CreateBaseDevice()
301 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_2()
327 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceWithCopyOverlap_2()
353 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceWithCopyOverlap_1()
380 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceWithCopyOverlap_1()
399 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceOrderedOpsInverted()
445 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceOrderedOpsInverted()
462 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDeviceOrderedOps()
506 orig_buffer_ = std::make_unique<uint8_t[]>(total_base_size_); in CreateCowDeviceOrderedOps()
523 cow_system_ = std::make_unique<TemporaryFile>(path); in CreateCowDevice()
[all …]
H A Dsnapuserd_core.cpp50 std::make_unique<Worker>(cow_device_, backing_store_device_, control_device_, in InitializeWorkers()
60 merge_thread_ = std::make_unique<Worker>(cow_device_, backing_store_device_, control_device_, in InitializeWorkers()
63 read_ahead_thread_ = std::make_unique<ReadAhead>(cow_device_, backing_store_device_, misc_name_, in InitializeWorkers()
66 update_verify_ = std::make_unique<UpdateVerify>(misc_name_); in InitializeWorkers()
156 reader_ = std::make_unique<CowReader>(CowReader::ReaderFlags::USERSPACE_MERGE, true); in ReadMetadata()
215 std::unique_ptr<MergeGroupState> blk_state = std::make_unique<MergeGroupState>( in ReadMetadata()
/aosp14/frameworks/base/tools/aapt2/io/
H A DZipArchive.cpp38 return util::make_unique<EmptyData>(); in OpenAsData()
50 return util::make_unique<MmappedData>(std::move(file_map)); in OpenAsData()
61 return util::make_unique<MallocData>(std::move(data), in OpenAsData()
133 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
156 return util::make_unique<ZipFileCollectionIterator>(this); in Iterator()
H A DFileSystem.cpp42 return util::make_unique<MmappedData>(std::move(map.value())); in OpenAsData()
44 return util::make_unique<EmptyData>(); in OpenAsData()
50 return util::make_unique<FileInputStream>(source_.path); in OpenInputStream()
121 auto file = util::make_unique<RegularFile>(android::Source(path)); in InsertFile()
140 return util::make_unique<FileCollectionIterator>(this); in Iterator()
/aosp14/frameworks/base/tools/aapt2/test/
H A DBuilders.cpp38 return AddValue(name, id, util::make_unique<Id>()); in AddSimple()
44 return AddValue(name, config, id, util::make_unique<Id>()); in AddSimple()
53 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference()
62 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
68 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
78 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
86 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
153 std::unique_ptr<Reference> reference = util::make_unique<Reference>(ParseNameOrDie(ref)); in BuildReference()
163 return util::make_unique<BinaryPrimitive>(value); in BuildPrimitive()
167 : attr_(util::make_unique<Attribute>(android::ResTable_map::TYPE_ANY)) { in AttributeBuilder()
/aosp14/frameworks/base/libs/hwui/tests/unit/
H A DSkiaPipelineTests.cpp56 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
78 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
102 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
147 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
171 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
293 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
325 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
362 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
392 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
402 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/aosp14/frameworks/base/services/incremental/
H A DServiceWrappers.cpp396 return std::make_unique<RealVoldService>(vold); in getVoldService()
406 return std::make_unique<RealDataLoaderManager>(manager); in getDataLoaderManager()
412 return std::make_unique<RealIncFs>(); in getIncFs()
416 return std::make_unique<RealAppOpsManager>(); in getAppOpsManager()
420 return std::make_unique<RealJniWrapper>(mJvm); in getJni()
424 return std::make_unique<RealLooperWrapper>(); in getLooper()
428 return std::make_unique<RealTimedQueueWrapper>(mJvm); in getTimedQueue()
432 return std::make_unique<RealTimedQueueWrapper>(mJvm); in getProgressUpdateJobQueue()
436 return std::make_unique<RealFsWrapper>(); in getFs()
440 return std::make_unique<RealClockWrapper>(); in getClock()
/aosp14/frameworks/base/tools/aapt2/xml/
H A DXmlDom.cpp90 stack->pending_element = util::make_unique<Element>(); in StartNamespaceHandler()
115 el = util::make_unique<Element>(); in StartElementHandler()
169 stack->last_text_node = util::make_unique<Text>(); in CharacterDataHandler()
220 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()
275 std::unique_ptr<XmlResource> xml_resource = util::make_unique<XmlResource>(); in Inflate()
308 pending_element = util::make_unique<Element>(); in Inflate()
321 el = util::make_unique<Element>(); in Inflate()
349 std::unique_ptr<Text> text = util::make_unique<Text>(); in Inflate()
378 std::unique_ptr<XmlResource> cloned = util::make_unique<XmlResource>(file); in Clone()
496 auto el = util::make_unique<Element>(); in Clone()
[all …]

123456789