Home
last modified time | relevance | path

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

1234567891011

/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/base/media/jni/soundpool/
DSoundPool.cpp104 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in load()
111 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in unload()
129 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in play()
145 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoPause()
152 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in autoResume()
159 auto apiLock = std::make_unique<std::lock_guard<std::mutex>>(mApiLock); in mute()
166 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in pause()
175 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in resume()
184 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in stop()
195 auto apiLock = kUseApiLock ? std::make_unique<std::lock_guard<std::mutex>>(mApiLock) : nullptr; in setVolume()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerDefaultFactory.cpp51 return std::make_unique<android::impl::DispSync>(name, hasSyncFramework); in createDispSync()
56 return std::make_unique<android::impl::EventControlThread>(std::move(setVSyncEnabled)); in createEventControlThread()
60 return std::make_unique<android::impl::HWComposer>(serviceName); in createHWComposer()
64 return std::make_unique<android::impl::MessageQueue>(); in createMessageQueue()
70 return std::make_unique<scheduler::impl::PhaseDurations>(refreshRateConfigs); in createPhaseConfiguration()
72 return std::make_unique<scheduler::impl::PhaseOffsets>(refreshRateConfigs); in createPhaseConfiguration()
79 return std::make_unique<Scheduler>(std::move(setVSyncEnabled), configs, schedulerCallback, in createScheduler()
86 return std::make_unique<android::impl::SurfaceInterceptor>(flinger); in createSurfaceInterceptor()
/frameworks/base/tools/aapt2/cmd/
DDump.h258 AddOptionalSubcommand(util::make_unique<DumpAPCCommand>(printer, diag_)); in DumpCommand()
259 AddOptionalSubcommand(util::make_unique<DumpBadgingCommand>(printer, diag_)); in DumpCommand()
260 AddOptionalSubcommand(util::make_unique<DumpConfigsCommand>(printer, diag_)); in DumpCommand()
261 AddOptionalSubcommand(util::make_unique<DumpPackageNameCommand>(printer, diag_)); in DumpCommand()
262 AddOptionalSubcommand(util::make_unique<DumpPermissionsCommand>(printer, diag_)); in DumpCommand()
263 AddOptionalSubcommand(util::make_unique<DumpStringsCommand>(printer, diag_)); in DumpCommand()
264 AddOptionalSubcommand(util::make_unique<DumpStyleParentCommand>(printer, diag_)); in DumpCommand()
265 AddOptionalSubcommand(util::make_unique<DumpTableCommand>(printer, diag_)); in DumpCommand()
266 AddOptionalSubcommand(util::make_unique<DumpXmlStringsCommand>(printer, diag_)); in DumpCommand()
267 AddOptionalSubcommand(util::make_unique<DumpXmlTreeCommand>(printer, diag_)); in DumpCommand()
[all …]
/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/format/
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 …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DOneShotTimerTest.cpp59 mIdleTimer = std::make_unique<scheduler::OneShotTimer>( in TEST_F()
64 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(30ms, mResetTimerCallback.getInvocable(), in TEST_F()
84 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
109 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(20ms, mResetTimerCallback.getInvocable(), in TEST_F()
140 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
152 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
172 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
181 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
195 mIdleTimer = std::make_unique<scheduler::OneShotTimer>(3ms, mResetTimerCallback.getInvocable(), in TEST_F()
DTestableScheduler.h34 mLayerHistory = std::make_unique<scheduler::impl::LayerHistoryV2>(configs);
36 mLayerHistory = std::make_unique<scheduler::impl::LayerHistory>();
46 mLayerHistory = std::make_unique<scheduler::impl::LayerHistoryV2>(configs); in TestableScheduler()
48 mLayerHistory = std::make_unique<scheduler::impl::LayerHistory>(); in TestableScheduler()
DRefreshRateConfigsTest.cpp169 std::make_unique<RefreshRateConfigs>(m60OnlyConfigDevice, in TEST_F()
175 std::make_unique<RefreshRateConfigs>(m60OnlyConfigDevice, in TEST_F()
183 std::make_unique<RefreshRateConfigs>(m60_90Device, in TEST_F()
200 std::make_unique<RefreshRateConfigs>(m60_90DeviceWithDifferentGroups, in TEST_F()
225 std::make_unique<RefreshRateConfigs>(m60_90DeviceWithDifferentResolutions, in TEST_F()
250 std::make_unique<RefreshRateConfigs>(m60_90Device, in TEST_F()
269 std::make_unique<RefreshRateConfigs>(m60_90Device, in TEST_F()
291 std::make_unique<RefreshRateConfigs>(m60_90Device, in TEST_F()
348 std::make_unique<RefreshRateConfigs>(m60_72_90Device, /*currentConfigId=*/ in TEST_F()
364 std::make_unique<RefreshRateConfigs>(m60_90Device, in TEST_F()
[all …]
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp109 testUuid = std::make_unique<std::string>(); in SetUp()
325 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
347 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
368 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
410 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
413 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
442 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
444 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
479 ASSERT_BINDER_SUCCESS(service->snapshotAppData(std::make_unique<std::string>("TEST"), in TEST_F()
500 EXPECT_BINDER_FAIL(service->snapshotAppData(std::make_unique<std::string>("FOO"), in TEST_F()
[all …]
/frameworks/av/media/libmediatranscoding/tests/
DTranscodingClientManager_tests.cpp123 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
137 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
151 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
165 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
178 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
196 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
214 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
224 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
235 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
267 std::make_unique<TranscodingClientManager::ClientInfo>( in TEST_F()
DAdjustableMaxPriorityQueue_tests.cpp115 auto smaller = std::make_unique<int>(1); in TEST()
120 auto bigger = std::make_unique<int>(2); in TEST()
124 auto biggest = std::make_unique<int>(3); in TEST()
154 auto item = std::make_unique<int>(value); in TEST()
165 auto newValue = std::make_unique<int>(4); in TEST()
171 auto newValue2 = std::make_unique<int>(5); in TEST()
188 auto item = std::make_unique<int>(value); in TEST()
260 auto newJob = std::make_unique<TranscodingJob>(testJobs[jobId]); in TEST()
/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/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/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()
/frameworks/base/libs/hwui/tests/unit/
DSkiaPipelineTests.cpp55 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
77 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
101 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
146 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
170 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
292 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()
359 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
389 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
399 auto pipeline = std::make_unique<SkiaOpenGLPipeline>(renderThread); in RENDERTHREAD_SKIA_PIPELINE_TEST()
[all …]

1234567891011