Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/tools/aapt2/
DDominatorTree_test.cpp76 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
77 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
78 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "")); in TEST()
96 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
97 configs.push_back(util::make_unique<ResourceConfigValue>(land_config, "")); in TEST()
98 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "phablet")); in TEST()
99 configs.push_back(util::make_unique<ResourceConfigValue>(sw600dp_land_config, "phablet")); in TEST()
125 configs.push_back(util::make_unique<ResourceConfigValue>(default_config, "")); in TEST()
126 configs.push_back(util::make_unique<ResourceConfigValue>(en_config, "")); in TEST()
127 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()
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()
[all …]
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()
/frameworks/av/media/libaaudio/src/client/
DAAudioFlowGraph.cpp62 mSource = std::make_unique<SourceFloat>(sourceChannelCount); in configure()
65 mSource = std::make_unique<SourceI16>(sourceChannelCount); in configure()
68 mSource = std::make_unique<SourceI24>(sourceChannelCount); in configure()
71 mSource = std::make_unique<SourceI32>(sourceChannelCount); in configure()
74 mSource = std::make_unique<SourceI8_24>(sourceChannelCount); in configure()
83 mMonoBlend = std::make_unique<MonoBlend>(sourceChannelCount); in configure()
91 mLimiter = std::make_unique<Limiter>(sourceChannelCount); in configure()
99 mRateConverter = std::make_unique<SampleRateConverter>(sourceChannelCount, in configure()
107 mChannelConverter = std::make_unique<MonoToMultiConverter>(sinkChannelCount); in configure()
119 mMultiToManyConverter = std::make_unique<MultiToManyConverter>(sinkChannelCount); in configure()
[all …]
/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()
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 …]
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/CompositionEngine/tests/planner/
DLayerStateTest.cpp127 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
136 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
152 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
161 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
177 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
182 auto otherLayerState = std::make_unique<LayerState>(&newOutputLayer); in TEST_F()
197 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
206 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
222 mLayerState = std::make_unique<LayerState>(&mOutputLayer); in TEST_F()
227 auto otherLayerState = std::make_unique<LayerState>(&newOutputLayer); in TEST_F()
[all …]
/frameworks/base/media/jni/soundpool/
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 …]
/frameworks/base/tools/aapt2/format/binary/
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 …]
/frameworks/base/services/core/jni/gnss/
DGnss.cpp468 return std::make_unique<gnss::AGnss>(agnssAidl); in getAGnssInterface()
473 return std::make_unique<gnss::AGnss_V2_0>(agnss_V2_0); in getAGnssInterface()
478 return std::make_unique<gnss::AGnss_V1_0>(agnss_V1_0); in getAGnssInterface()
489 return std::make_unique<gnss::AGnssRil>(agnssRilAidl); in getAGnssRilInterface()
494 return std::make_unique<gnss::AGnssRil_V2_0>(agnssRil_V2_0); in getAGnssRilInterface()
499 return std::make_unique<gnss::AGnssRil_V1_0>(agnssRil_V1_0); in getAGnssRilInterface()
511 return std::make_unique<gnss::GnssNavigationMessageAidl>(gnssNavigationMessage); in getGnssNavigationMessageInterface()
517 return std::make_unique<gnss::GnssNavigationMessageHidl>(gnssNavigationMessage); in getGnssNavigationMessageInterface()
533 return std::make_unique<android::gnss::GnssMeasurement>(gnssMeasurement); in getGnssMeasurementInterface()
539 return std::make_unique<android::gnss::GnssMeasurement_V2_1>(gnssMeasurement); in getGnssMeasurementInterface()
[all …]
/frameworks/native/services/inputflinger/
DInputManager.cpp135 std::make_unique<TracedInputListener>("InputDispatcher", *mDispatcher)); in InputManager()
138 mInputFilter = std::make_unique<InputFilter>(*mTracingStages.back(), *mInputFlingerRust, in InputManager()
141 std::make_unique<TracedInputListener>("InputFilter", *mInputFilter)); in InputManager()
145 mCollector = std::make_unique<InputDeviceMetricsCollector>(*mTracingStages.back()); in InputManager()
147 std::make_unique<TracedInputListener>("MetricsCollector", *mCollector)); in InputManager()
150 mProcessor = std::make_unique<InputProcessor>(*mTracingStages.back()); in InputManager()
152 std::make_unique<TracedInputListener>("InputProcessor", *mProcessor)); in InputManager()
155 std::make_unique<PointerChoreographer>(*mTracingStages.back(), choreographerPolicy); in InputManager()
157 std::make_unique<TracedInputListener>("PointerChoreographer", *mChoreographer)); in InputManager()
159 mBlocker = std::make_unique<UnwantedInteractionBlocker>(*mTracingStages.back()); in InputManager()
[all …]
/frameworks/base/tools/aapt2/cmd/
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 …]
/frameworks/av/media/libaudiohal/impl/
DEffectHalAidl.cpp102 mConversion = std::make_unique<android::effect::AidlConversionAec>(effect, sessionId, ioId, in createAidlConversion()
106 mConversion = std::make_unique<android::effect::AidlConversionAgc1>(effect, sessionId, ioId, in createAidlConversion()
110 mConversion = std::make_unique<android::effect::AidlConversionAgc2>(effect, sessionId, ioId, in createAidlConversion()
113 mConversion = std::make_unique<android::effect::AidlConversionBassBoost>( in createAidlConversion()
116 mConversion = std::make_unique<android::effect::AidlConversionDownmix>( in createAidlConversion()
120 mConversion = std::make_unique<android::effect::AidlConversionDp>(effect, sessionId, ioId, in createAidlConversion()
123 mConversion = std::make_unique<android::effect::AidlConversionEnvReverb>( in createAidlConversion()
126 mConversion = std::make_unique<android::effect::AidlConversionEq>(effect, sessionId, ioId, in createAidlConversion()
130 mConversion = std::make_unique<android::effect::AidlConversionHapticGenerator>( in createAidlConversion()
135 mConversion = std::make_unique<android::effect::AidlConversionLoudnessEnhancer>( in createAidlConversion()
[all …]
/frameworks/base/tools/aapt2/java/
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()
283 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
307 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
350 .AddSymbolSource(util::make_unique<ResourceTableSymbolSource>(table.get())) in TEST()
391 .AddValue("android:attr/one", util::make_unique<Attribute>(attr)) in TEST()
[all …]
/frameworks/native/services/surfaceflinger/
DSurfaceFlingerDefaultFactory.cpp43 return std::make_unique<android::impl::HWComposer>(serviceName); in createHWComposer()
49 return std::make_unique<scheduler::impl::WorkDuration>(currentRefreshRate); in createVsyncConfiguration()
51 return std::make_unique<scheduler::impl::PhaseOffsets>(currentRefreshRate); in createVsyncConfiguration()
93 return std::make_unique<FrameTracer>(); in createFrameTracer()
98 return std::make_unique<frametimeline::impl::FrameTimeline>(timeStats, surfaceFlingerPid); in createFrameTimeline()
/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/native/services/surfaceflinger/tests/unittests/
DOneShotTimerTest.cpp52 mIdleTimer = std::make_unique<scheduler::OneShotTimer>( in TEST_F()
58 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
78 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
101 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
136 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
169 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
186 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
212 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
230 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
248 mIdleTimer = std::make_unique<scheduler::OneShotTimer>("TestTimer", 1ms, in TEST_F()
DCommitTest.cpp43 mFlinger.setupComposer(std::make_unique<Hwc2::mock::Composer>()); in flinger_setup()
84 impl::HWComposer hwc = impl::HWComposer(std::make_unique<Hwc2::mock::Composer>()); in TEST_F()
98 auto parent = std::make_unique<frontend::RequestedLayerState>(parentArgs); in TEST_F()
103 auto child = std::make_unique<frontend::RequestedLayerState>(childArgs); in TEST_F()
128 impl::HWComposer hwc = impl::HWComposer(std::make_unique<Hwc2::mock::Composer>()); in TEST_F()
142 auto parent = std::make_unique<frontend::RequestedLayerState>(parentArgs); in TEST_F()
147 auto child = std::make_unique<frontend::RequestedLayerState>(childArgs); in TEST_F()
/frameworks/av/media/module/libmediatranscoding/tests/
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()
261 auto newSession = std::make_unique<TranscodingSession>(testSessions[sessionId]); in TEST()
/frameworks/base/libs/hwui/tests/microbench/
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()
/frameworks/base/tools/aapt2/format/
DArchive_test.cpp63 auto array = std::make_unique<uint8_t[]>(kTestDataLength); in MakeTestArray()
87 auto buffer = std::make_unique<char[]>(kTestDataLength); in VerifyDirectory()
157 auto data1_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
161 auto data2_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
164 auto input1 = std::make_unique<TestData>(data1_copy, kTestDataLength); in TEST_F()
165 auto input2 = std::make_unique<TestData>(data2_copy, kTestDataLength); in TEST_F()
182 auto input = std::make_unique<TestData>(data, kTestDataLength); in TEST_F()
217 auto data1_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
221 auto data2_copy = std::make_unique<uint8_t[]>(kTestDataLength); in TEST_F()
224 auto input1 = std::make_unique<TestData>(data1_copy, kTestDataLength); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DVsyncSchedule.cpp67 ? std::make_unique<PredictedVsyncTracer>(mDispatch) in VsyncSchedule()
123 return std::make_unique<VSyncPredictor>(std::make_unique<SystemClock>(), modePtr, kHistorySize, in createTracker()
134 return std::make_unique<VSyncDispatchTimerQueue>(std::make_unique<Timer>(), std::move(tracker), in createDispatch()
146 auto reactor = std::make_unique<VSyncReactor>(id, std::make_unique<SystemClock>(), tracker, in createController()
/frameworks/base/tools/aapt2/io/
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()
141 std::unique_ptr<IFile> file = util::make_unique<ZipFile>(collection->handle_, zip_data, in Create()
164 return util::make_unique<ZipFileCollectionIterator>(this); in Iterator()
DFileSystem.cpp45 return util::make_unique<MmappedData>(std::move(map.value())); in OpenAsData()
47 return util::make_unique<EmptyData>(); in OpenAsData()
53 return util::make_unique<android::FileInputStream>(source_.path); in OpenInputStream()
141 auto file = util::make_unique<RegularFile>(android::Source(path)); in InsertFile()
160 return util::make_unique<FileCollectionIterator>(this); in Iterator()
/frameworks/native/services/powermanager/
DPowerHalController.cpp38 return std::make_unique<AidlHalWrapper>(halAidl); in connect()
43 return std::make_unique<HidlHalWrapperV1_3>(halHidlV1_3); in connect()
46 return std::make_unique<HidlHalWrapperV1_2>(halHidlV1_2); in connect()
49 return std::make_unique<HidlHalWrapperV1_1>(halHidlV1_1); in connect()
51 return std::make_unique<HidlHalWrapperV1_0>(halHidlV1_0); in connect()

12345678910>>...19