Home
last modified time | relevance | path

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

123456789

/frameworks/base/tools/aapt2/
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()
79 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
99 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
100 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
126 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
127 configs.push_back(util::make_unique<ResourceConfigValue>(en_config, "")); in TEST()
128 configs.push_back(util::make_unique<ResourceConfigValue>(en_v21_config, "")); in TEST()
[all …]
DResourceValues_test.cpp43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
44 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST()
48 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre")); in TEST()
51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
52 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
62 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST()
63 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST()
73 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
[all …]
DMain.cpp68 AddOptionalSubcommand(util::make_unique<CompileCommand>(diagnostics)); in MainCommand()
69 AddOptionalSubcommand(util::make_unique<LinkCommand>(diagnostics)); in MainCommand()
70 AddOptionalSubcommand(util::make_unique<DumpCommand>(printer, diagnostics)); in MainCommand()
71 AddOptionalSubcommand(util::make_unique<DiffCommand>()); in MainCommand()
72 AddOptionalSubcommand(util::make_unique<OptimizeCommand>()); in MainCommand()
73 AddOptionalSubcommand(util::make_unique<ConvertCommand>()); in MainCommand()
74 AddOptionalSubcommand(util::make_unique<VersionCommand>()); in MainCommand()
176 aapt::util::make_unique<aapt::DaemonCommand>(&fout, &diagnostics)); in MainImpl()
DResourceUtils.cpp337 std::unique_ptr<Reference> value = util::make_unique<Reference>(ref); in TryParseReference()
346 return util::make_unique<Reference>(ref, Reference::Type::kAttribute); in TryParseReference()
364 return util::make_unique<Reference>(); in MakeNull()
368 return util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_NULL, in MakeEmpty()
383 return util::make_unique<BinaryPrimitive>(value); in TryParseEnumSymbol()
397 return util::make_unique<BinaryPrimitive>(flags); in TryParseFlagSymbol()
420 return util::make_unique<BinaryPrimitive>(flags); in TryParseFlagSymbol()
488 : util::make_unique<BinaryPrimitive>(value); in TryParseColor()
556 return util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_BOOLEAN, data); in TryParseBool()
562 return util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_BOOLEAN, in MakeBool()
[all …]
/frameworks/av/media/libaaudio/src/client/
DAAudioFlowGraph.cpp46 mSource = std::make_unique<SourceFloat>(sourceChannelCount); in configure()
49 mSource = std::make_unique<SourceI16>(sourceChannelCount); in configure()
52 mSource = std::make_unique<SourceI24>(sourceChannelCount); in configure()
61 mVolumeRamp = std::make_unique<RampLinear>(sourceChannelCount); in configure()
68 mClipper = std::make_unique<ClipToRange>(sourceChannelCount); in configure()
75 mChannelConverter = std::make_unique<MonoToMultiConverter>(sinkChannelCount); in configure()
85 mSink = std::make_unique<SinkFloat>(sinkChannelCount); in configure()
88 mSink = std::make_unique<SinkI16>(sinkChannelCount); in configure()
91 mSink = std::make_unique<SinkI24>(sinkChannelCount); in configure()
/frameworks/base/tools/aapt2/link/
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()
63 util::make_unique<Id>()) in TEST()
65 util::make_unique<Id>()) in TEST()
67 ResourceId(0x01010364), util::make_unique<Id>()) in TEST()
69 util::make_unique<Id>()) in TEST()
[all …]
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()
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerFactory.cpp53 auto primaryDispSync = std::make_unique<android::impl::DispSync>(name); in createSurfaceFlinger()
60 return std::make_unique<android::impl::EventControlThread>(setVSyncEnabled); in createSurfaceFlinger()
64 return std::make_unique<android::impl::HWComposer>( in createSurfaceFlinger()
65 std::make_unique<Hwc2::impl::Composer>(serviceName)); in createSurfaceFlinger()
69 return std::make_unique<android::impl::MessageQueue>(); in createSurfaceFlinger()
73 return std::make_unique<scheduler::impl::PhaseOffsets>(); in createSurfaceFlinger()
79 return std::make_unique<Scheduler>(callback, refreshRateConfig); in createSurfaceFlinger()
84 return std::make_unique<android::impl::SurfaceInterceptor>(flinger); in createSurfaceFlinger()
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp44 util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
69 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
94 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
131 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
169 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
197 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
292 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
317 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
350 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
357 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
[all …]
DManifestClassGenerator.cpp73 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()
/frameworks/base/tools/aapt2/cmd/
DDump.h248 AddOptionalSubcommand(util::make_unique<DumpAPCCommand>(printer, diag_)); in DumpCommand()
249 AddOptionalSubcommand(util::make_unique<DumpBadgingCommand>(printer, diag_)); in DumpCommand()
250 AddOptionalSubcommand(util::make_unique<DumpConfigsCommand>(printer, diag_)); in DumpCommand()
251 AddOptionalSubcommand(util::make_unique<DumpPackageNameCommand>(printer, diag_)); in DumpCommand()
252 AddOptionalSubcommand(util::make_unique<DumpPermissionsCommand>(printer, diag_)); in DumpCommand()
253 AddOptionalSubcommand(util::make_unique<DumpStringsCommand>(printer, diag_)); in DumpCommand()
254 AddOptionalSubcommand(util::make_unique<DumpStyleParentCommand>(printer, diag_)); in DumpCommand()
255 AddOptionalSubcommand(util::make_unique<DumpTableCommand>(printer, diag_)); in DumpCommand()
256 AddOptionalSubcommand(util::make_unique<DumpXmlStringsCommand>(printer, diag_)); in DumpCommand()
257 AddOptionalSubcommand(util::make_unique<DumpXmlTreeCommand>(printer, diag_)); in DumpCommand()
[all …]
DUtil.cpp93 std::unique_ptr<AxisConfigFilter> filter = util::make_unique<AxisConfigFilter>(); in ParseConfigFilterParameters()
182 std::unique_ptr<xml::Element> manifest_el = util::make_unique<xml::Element>(); in GenerateSplitManifest()
192 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, version_code)}); in GenerateSplitManifest()
200 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, version_code_major)}); in GenerateSplitManifest()
208 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_DEC, revision_code)}); in GenerateSplitManifest()
235 std::unique_ptr<xml::Element> application_el = util::make_unique<xml::Element>(); in GenerateSplitManifest()
239 util::make_unique<BinaryPrimitive>(android::Res_value::TYPE_INT_BOOLEAN, 0u)}); in GenerateSplitManifest()
243 std::unique_ptr<xml::XmlResource> doc = util::make_unique<xml::XmlResource>(); in GenerateSplitManifest()
/frameworks/native/services/surfaceflinger/tests/unittests/
DIdleTimerTest.cpp59 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, [] {}, [] {}); in TEST_F()
63 mIdleTimer = std::make_unique<scheduler::IdleTimer>(30ms, mResetTimerCallback.getInvocable(), in TEST_F()
83 mIdleTimer = std::make_unique<scheduler::IdleTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
108 mIdleTimer = std::make_unique<scheduler::IdleTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
139 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
151 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
171 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
180 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
194 mIdleTimer = std::make_unique<scheduler::IdleTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
/frameworks/base/tools/aapt2/compile/
DPseudolocaleGenerator_test.cpp33 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
54 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
80 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
102 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
125 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST()
162 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()
246 std::unique_ptr<Plural> expected = util::make_unique<Plural>(); in TEST()
[all …]
/frameworks/base/tools/aapt2/filter/
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()
/frameworks/base/tools/aapt2/io/
DFileSystem.cpp43 return util::make_unique<MmappedData>(std::move(map.value())); in OpenAsData()
45 return util::make_unique<EmptyData>(); in OpenAsData()
51 return util::make_unique<FileInputStream>(source_.path); in OpenInputStream()
122 return (files_[path.to_string()] = util::make_unique<RegularFile>(Source(path))).get(); in InsertFile()
134 return util::make_unique<FileCollectionIterator>(this); in Iterator()
DZipArchive.cpp39 return util::make_unique<EmptyData>(); in OpenAsData()
51 return util::make_unique<MmappedData>(std::move(file_map)); in OpenAsData()
62 return util::make_unique<MallocData>(std::move(data), in OpenAsData()
134 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
157 return util::make_unique<ZipFileCollectionIterator>(this); in Iterator()
/frameworks/base/tools/aapt2/test/
DBuilders.cpp46 return AddValue(name, id, util::make_unique<Id>()); in AddSimple()
52 return AddValue(name, config, id, util::make_unique<Id>()); in AddSimple()
63 return AddValue(name, id, util::make_unique<Reference>(ParseNameOrDie(ref))); in AddReference()
73 return AddValue(name, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
79 return AddValue(name, config, id, util::make_unique<String>(table_->string_pool.MakeRef(str))); in AddString()
92 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
101 auto file_ref = util::make_unique<FileReference>(table_->string_pool.MakeRef(path)); in AddFileReference()
155 std::unique_ptr<Reference> reference = util::make_unique<Reference>(ParseNameOrDie(ref)); in BuildReference()
165 return util::make_unique<BinaryPrimitive>(value); in BuildPrimitive()
169 : attr_(util::make_unique<Attribute>(android::ResTable_map::TYPE_ANY)) { in AttributeBuilder()
DContext.h141 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), true);
151 util::make_unique<SymbolTable::Symbol>(id, std::move(attr), false);
189 std::unique_ptr<SymbolTable::Symbol> clone = util::make_unique<SymbolTable::Symbol>(); in CloneSymbol()
201 std::unique_ptr<StaticSymbolSource> symbol_source_ = util::make_unique<StaticSymbolSource>();
/frameworks/base/libs/hwui/tests/unit/
DSkiaPipelineTests.cpp53 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
74 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
108 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
132 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
177 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
201 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
323 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
354 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
390 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
420 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp70 auto primaryDispSync = std::make_unique<impl::DispSync>("SchedulerDispSync"); in Scheduler()
73 mEventControlThread = std::make_unique<impl::EventControlThread>(function); in Scheduler()
91 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler()
98 mIdleTimer = std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler()
109 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds(mSetTouchTimerMs), in Scheduler()
117 std::make_unique<scheduler::IdleTimer>(std::chrono::milliseconds( in Scheduler()
147 std::make_unique<Connection>(new ConnectionHandle(id), in createConnection()
158 std::make_unique<DispSyncSource>(dispSync, phaseOffsetNs, offsetThresholdForNextVsync, in makeEventThread()
160 return std::make_unique<impl::EventThread>(std::move(eventThreadSource), in makeEventThread()
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp67 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in getPermissiveServiceManager()
116 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
139 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
171 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
189 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
213 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
239 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
307 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
321 std::unique_ptr<MockAccess> access = std::make_unique<NiceMock<MockAccess>>(); in TEST()
/frameworks/base/tools/aapt2/xml/
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()
219 return util::make_unique<XmlResource>(ResourceFile{{}, {}, ResourceFile::Type::kUnknown, source}, in Inflate()
273 std::unique_ptr<XmlResource> xml_resource = util::make_unique<XmlResource>(); in Inflate()
306 pending_element = util::make_unique<Element>(); in Inflate()
319 el = util::make_unique<Element>(); in Inflate()
347 std::unique_ptr<Text> text = util::make_unique<Text>(); in Inflate()
376 std::unique_ptr<XmlResource> cloned = util::make_unique<XmlResource>(file); in Clone()
495 auto el = util::make_unique<Element>(); in Clone()
[all …]
/frameworks/compile/slang/
Dlld_main.cpp30 argv_strings.push_back(std::make_unique<std::string>(argv[0])); in main()
38 argv_strings.push_back(std::make_unique<std::string>(argv[i])); in main()
/frameworks/base/tools/aapt2/format/proto/
DProtoDeserialize.cpp701 std::unique_ptr<Attribute> attr = util::make_unique<Attribute>(pb_attr.format_flags()); in DeserializeValueFromPb()
718 std::unique_ptr<Style> style = util::make_unique<Style>(); in DeserializeValueFromPb()
753 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); in DeserializeValueFromPb()
765 std::unique_ptr<Array> array = util::make_unique<Array>(); in DeserializeValueFromPb()
781 std::unique_ptr<Plural> plural = util::make_unique<Plural>(); in DeserializeValueFromPb()
818 std::unique_ptr<Reference> ref = util::make_unique<Reference>(); in DeserializeItemFromPb()
894 return util::make_unique<BinaryPrimitive>(val); in DeserializeItemFromPb()
898 return util::make_unique<Id>(); in DeserializeItemFromPb()
902 return util::make_unique<String>( in DeserializeItemFromPb()
907 return util::make_unique<RawString>( in DeserializeItemFromPb()
[all …]

123456789