Home
last modified time | relevance | path

Searched refs:unique_ptr (Results 1 – 25 of 1241) sorted by relevance

12345678910>>...50

/frameworks/base/libs/androidfw/include/androidfw/
DApkAssets.h52 static ApkAssetsPtr Load(std::unique_ptr<AssetsProvider> assets, package_property_t flags = 0U);
55 static ApkAssetsPtr LoadTable(std::unique_ptr<Asset> resources_asset,
56 std::unique_ptr<AssetsProvider> assets,
98 static ApkAssetsPtr LoadImpl(std::unique_ptr<AssetsProvider> assets,
100 std::unique_ptr<Asset> idmap_asset,
101 std::unique_ptr<LoadedIdmap> loaded_idmap);
103 static ApkAssetsPtr LoadImpl(std::unique_ptr<Asset> resources_asset,
104 std::unique_ptr<AssetsProvider> assets,
106 std::unique_ptr<Asset> idmap_asset,
107 std::unique_ptr<LoadedIdmap> loaded_idmap);
[all …]
DAssetsProvider.h43 std::unique_ptr<Asset> Open(const std::string& path,
64 static std::unique_ptr<Asset> CreateAssetFromFile(const std::string& path);
71 static std::unique_ptr<Asset> CreateAssetFromFd(base::unique_fd fd,
78 virtual std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode,
84 static std::unique_ptr<ZipAssetsProvider> Create(std::string path, package_property_t flags,
87 static std::unique_ptr<ZipAssetsProvider> Create(base::unique_fd fd,
103 std::unique_ptr<Asset> OpenInternal(const std::string& path, Asset::AccessMode mode,
135 std::unique_ptr<ZipArchive, ZipCloser> zip_handle_;
143 static std::unique_ptr<DirectoryAssetsProvider> Create(std::string root_dir);
154 std::unique_ptr<Asset> OpenInternal(const std::string& path,
[all …]
/frameworks/base/tools/aapt2/process/
DSymbolTable.h79 void SetDelegate(std::unique_ptr<ISymbolTableDelegate> delegate);
83 void AppendSource(std::unique_ptr<ISymbolSource> source);
87 void PrependSource(std::unique_ptr<ISymbolSource> source);
105 std::unique_ptr<ISymbolTableDelegate> delegate_;
106 std::vector<std::unique_ptr<ISymbolSource>> sources_;
124 virtual std::unique_ptr<SymbolTable::Symbol> FindByName(
125 const ResourceName& name, const std::vector<std::unique_ptr<ISymbolSource>>& sources) = 0;
127 virtual std::unique_ptr<SymbolTable::Symbol> FindById(
128 ResourceId id, const std::vector<std::unique_ptr<ISymbolSource>>& sources) = 0;
139 virtual std::unique_ptr<SymbolTable::Symbol> FindByName(
[all …]
/frameworks/base/tools/aapt2/
DLoadedApk.h46 static std::unique_ptr<LoadedApk> LoadApkFromPath(android::StringPiece path,
50 static std::unique_ptr<LoadedApk> LoadProtoApkFromFileCollection(
51 const android::Source& source, std::unique_ptr<io::IFileCollection> collection,
55 static std::unique_ptr<LoadedApk> LoadBinaryApkFromFileCollection(
56 const android::Source& source, std::unique_ptr<io::IFileCollection> collection,
59 LoadedApk(const android::Source& source, std::unique_ptr<io::IFileCollection> apk, in LoadedApk()
60 std::unique_ptr<ResourceTable> table, std::unique_ptr<xml::XmlResource> manifest, in LoadedApk()
114 std::unique_ptr<xml::XmlResource> LoadXml(const std::string& file_path,
121 std::unique_ptr<io::IFileCollection> apk_;
122 std::unique_ptr<ResourceTable> table_;
[all …]
DResourceUtils.h135 std::unique_ptr<Reference> TryParseReference(android::StringPiece str, bool* out_create = nullptr);
141 std::unique_ptr<Item> TryParseNullOrEmpty(android::StringPiece str);
146 std::unique_ptr<Reference> MakeNull();
150 std::unique_ptr<BinaryPrimitive> MakeEmpty();
156 std::unique_ptr<BinaryPrimitive> TryParseColor(android::StringPiece str);
162 std::unique_ptr<BinaryPrimitive> TryParseBool(android::StringPiece str);
165 std::unique_ptr<BinaryPrimitive> MakeBool(bool val);
171 std::unique_ptr<BinaryPrimitive> TryParseInt(android::StringPiece str);
174 std::unique_ptr<BinaryPrimitive> MakeInt(uint32_t value);
180 std::unique_ptr<BinaryPrimitive> TryParseFloat(android::StringPiece str);
[all …]
DLoadedApk.cpp34 using ::std::unique_ptr;
51 std::unique_ptr<android::InputStream> manifest_in = manifest_file->OpenInputStream(); in DetermineApkFormat()
61 std::unique_ptr<io::IData> manifest_data = manifest_file->OpenAsData(); in DetermineApkFormat()
64 std::unique_ptr<xml::XmlResource> manifest = in DetermineApkFormat()
75 std::unique_ptr<LoadedApk> LoadedApk::LoadApkFromPath(StringPiece path, in LoadApkFromPath()
79 std::unique_ptr<io::ZipFileCollection> apk = io::ZipFileCollection::Create(path, &error); in LoadApkFromPath()
97 std::unique_ptr<LoadedApk> LoadedApk::LoadProtoApkFromFileCollection( in LoadProtoApkFromFileCollection()
98 const android::Source& source, unique_ptr<io::IFileCollection> collection, in LoadProtoApkFromFileCollection()
100 std::unique_ptr<ResourceTable> table; in LoadProtoApkFromFileCollection()
105 std::unique_ptr<android::InputStream> in = table_file->OpenInputStream(); in LoadProtoApkFromFileCollection()
[all …]
/frameworks/av/media/libaaudio/src/client/
DAAudioFlowGraph.h116 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::FlowGraphSourceBuffered> mSource;
117 std::unique_ptr<RESAMPLER_OUTER_NAMESPACE::resampler::MultiChannelResampler> mResampler;
118 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::SampleRateConverter> mRateConverter;
119 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::MonoBlend> mMonoBlend;
120 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::Limiter> mLimiter;
121 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::MonoToMultiConverter> mChannelConverter;
122 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::ManyToMultiConverter>
124 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::MultiToManyConverter>
126 std::vector<std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::RampLinear>> mVolumeRamps;
130 std::unique_ptr<FLOWGRAPH_OUTER_NAMESPACE::flowgraph::FlowGraphSink> mSink;
/frameworks/base/tools/aapt2/format/
DArchive_test.cpp29 TestData(std::unique_ptr<uint8_t[]>& data, size_t size) in TestData()
62 std::unique_ptr<uint8_t[]> MakeTestArray() { in MakeTestArray()
70 std::unique_ptr<IArchiveWriter> MakeDirectoryWriter(const std::string& output_path) { in MakeDirectoryWriter()
77 std::unique_ptr<IArchiveWriter> MakeZipFileWriter(const std::string& output_path) { in MakeZipFileWriter()
97 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(output_path, nullptr); in VerifyZipFile()
98 std::unique_ptr<android::InputStream> stream = zip->FindFile(file)->OpenInputStream(); in VerifyZipFile()
115 std::unique_ptr<io::ZipFileCollection> zip = io::ZipFileCollection::Create(output_path, nullptr); in VerifyZipFileTimestamps()
132 std::unique_ptr<IArchiveWriter> writer = MakeDirectoryWriter(output_path); in TEST_F()
133 std::unique_ptr<uint8_t[]> data1 = MakeTestArray(); in TEST_F()
134 std::unique_ptr<uint8_t[]> data2 = MakeTestArray(); in TEST_F()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp59 std::unique_ptr<SkStreamAsset> fontData(new SkMemoryStream(skData)); in buildFamily()
76 std::unique_ptr<Typeface> regular(Typeface::createFromFamilies( in TEST()
92 std::unique_ptr<Typeface> bold(Typeface::createWithDifferentBaseWeight(nullptr, 700)); in TEST()
97 std::unique_ptr<Typeface> light(Typeface::createWithDifferentBaseWeight(nullptr, 300)); in TEST()
105 std::unique_ptr<Typeface> normal(Typeface::createRelative(nullptr, Typeface::kNormal)); in TEST()
111 std::unique_ptr<Typeface> bold(Typeface::createRelative(nullptr, Typeface::kBold)); in TEST()
117 std::unique_ptr<Typeface> italic(Typeface::createRelative(nullptr, Typeface::kItalic)); in TEST()
123 std::unique_ptr<Typeface> boldItalic(Typeface::createRelative(nullptr, Typeface::kBoldItalic)); in TEST()
130 std::unique_ptr<Typeface> base(Typeface::createWithDifferentBaseWeight(nullptr, 700)); in TEST()
134 std::unique_ptr<Typeface> normal(Typeface::createRelative(base.get(), Typeface::kNormal)); in TEST()
[all …]
/frameworks/base/libs/androidfw/
DApkAssets.cpp30 ApkAssets::ApkAssets(PrivateConstructorUtil, std::unique_ptr<Asset> resources_asset, in ApkAssets()
31 std::unique_ptr<LoadedArsc> loaded_arsc, in ApkAssets()
32 std::unique_ptr<AssetsProvider> assets, package_property_t property_flags, in ApkAssets()
33 std::unique_ptr<Asset> idmap_asset, std::unique_ptr<LoadedIdmap> loaded_idmap) in ApkAssets()
51 ApkAssetsPtr ApkAssets::Load(std::unique_ptr<AssetsProvider> assets, package_property_t flags) { in Load()
55 ApkAssetsPtr ApkAssets::LoadTable(std::unique_ptr<Asset> resources_asset, in LoadTable()
56 std::unique_ptr<AssetsProvider> assets, in LoadTable()
83 std::unique_ptr<AssetsProvider> overlay_assets; in LoadOverlay()
100 ApkAssetsPtr ApkAssets::LoadImpl(std::unique_ptr<AssetsProvider> assets, in LoadImpl()
102 std::unique_ptr<Asset> idmap_asset, in LoadImpl()
[all …]
DAssetsProvider.cpp31 std::unique_ptr<Asset> AssetsProvider::Open(const std::string& path, Asset::AccessMode mode, in Open()
36 std::unique_ptr<Asset> AssetsProvider::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile()
46 std::unique_ptr<Asset> AssetsProvider::CreateAssetFromFd(base::unique_fd fd, in CreateAssetFromFd()
95 std::unique_ptr<ZipAssetsProvider> ZipAssetsProvider::Create(std::string path, in Create()
118 return std::unique_ptr<ZipAssetsProvider>( in Create()
122 std::unique_ptr<ZipAssetsProvider> ZipAssetsProvider::Create(base::unique_fd fd, in Create()
152 return std::unique_ptr<ZipAssetsProvider>(new ZipAssetsProvider( in Create()
156 std::unique_ptr<Asset> ZipAssetsProvider::OpenInternal(const std::string& path, in OpenInternal()
184 std::unique_ptr<Asset> asset = in OpenInternal()
301 std::unique_ptr<DirectoryAssetsProvider> DirectoryAssetsProvider::Create(std::string path) { in Create()
[all …]
/frameworks/native/libs/gui/tests/
DEndToEndNativeInputTest.cpp141 static std::unique_ptr<InputSurface> makeColorInputSurface(const sp<SurfaceComposerClient>& scc, in makeColorInputSurface()
150 static std::unique_ptr<InputSurface> makeBufferInputSurface( in makeBufferInputSurface()
158 static std::unique_ptr<InputSurface> makeContainerInputSurface( in makeContainerInputSurface()
167 static std::unique_ptr<InputSurface> makeContainerInputSurfaceNoInputChannel( in makeContainerInputSurfaceNoInputChannel()
177 static std::unique_ptr<InputSurface> makeCursorInputSurface( in makeCursorInputSurface()
346 static std::unique_ptr<BlastInputSurface> makeBlastInputSurface( in makeBlastInputSurface()
411 std::unique_ptr<InputSurface> makeSurface(int width, int height) { in makeSurface()
456 std::unique_ptr<InputSurface> surface = makeSurface(100, 100); in TEST_F()
471 std::unique_ptr<InputSurface> surface = makeSurface(100, 100); in TEST_F()
474 std::unique_ptr<InputSurface> surface2 = makeSurface(100, 100); in TEST_F()
[all …]
/frameworks/native/services/inputflinger/tests/
DFakeWindows.cpp25 FakeInputReceiver::FakeInputReceiver(std::unique_ptr<InputChannel> clientChannel, in FakeInputReceiver()
29 std::unique_ptr<InputEvent> FakeInputReceiver::consume(std::chrono::milliseconds timeout, in consume()
39 std::pair<std::optional<uint32_t>, std::unique_ptr<InputEvent>> FakeInputReceiver::receiveEvent( in receiveEvent()
42 std::unique_ptr<InputEvent> event; in receiveEvent()
50 event = std::unique_ptr<InputEvent>(rawEventPtr); in receiveEvent()
86 std::unique_ptr<InputEvent> event = consume(CONSUME_TIMEOUT_EVENT_EXPECTED); in consumeEvent()
129 std::unique_ptr<MotionEvent> FakeInputReceiver::consumeMotion() { in consumeMotion()
130 std::unique_ptr<InputEvent> event = consume(CONSUME_TIMEOUT_EVENT_EXPECTED); in consumeMotion()
141 return std::unique_ptr<MotionEvent>(static_cast<MotionEvent*>(event.release())); in consumeMotion()
145 std::unique_ptr<MotionEvent> motionEvent = consumeMotion(); in consumeMotionEvent()
[all …]
/frameworks/av/media/codec2/components/gav1/
DC2SoftGav1Dec.h46 void process(const std::unique_ptr<C2Work>& work,
54 std::unique_ptr<libgav1::Decoder> mCodecCtx;
66 std::unique_ptr<uint16_t[]> mTmpFrameBuffer;
70 std::unique_ptr<C2StreamHdr10PlusInfo::output> mHdr10PlusInfo = nullptr;
98 const std::unique_ptr<C2Work> &work);
100 const std::unique_ptr<C2Work> &work);
103 void finishWork(uint64_t index, const std::unique_ptr<C2Work>& work,
106 void setError(const std::unique_ptr<C2Work> &work, c2_status_t error);
110 const std::unique_ptr<C2Work>& work);
113 const std::unique_ptr<C2Work>& work);
/frameworks/base/tools/aapt2/link/
DTableMerger_test.cpp37 std::unique_ptr<IAaptContext> context_;
56 std::unique_ptr<ResourceTable> table_a = in TEST_F()
64 std::unique_ptr<ResourceTable> table_b = test::ResourceTableBuilder() in TEST_F()
127 std::unique_ptr<ResourceTable> table_a = in TEST_F()
131 std::unique_ptr<ResourceTable> table_b = in TEST_F()
154 std::unique_ptr<ResourceTable> base = in TEST_F()
158 std::unique_ptr<ResourceTable> overlay = in TEST_F()
177 std::unique_ptr<Value> foo_original = ResourceUtils::TryParseBool("true"); in TEST_F()
179 std::unique_ptr<Value> bar_original = ResourceUtils::TryParseBool("true"); in TEST_F()
181 std::unique_ptr<Value> foo_overlay = ResourceUtils::TryParseBool("false"); in TEST_F()
[all …]
DResourceExcluder_test.cpp45 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
49 std::unique_ptr<ResourceTable> table = in TEST()
63 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
67 std::unique_ptr<ResourceTable> table = in TEST()
81 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
85 std::unique_ptr<ResourceTable> table = in TEST()
99 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
106 std::unique_ptr<ResourceTable> table = in TEST()
126 std::unique_ptr<IAaptContext> context = test::ContextBuilder().Build(); in TEST()
133 std::unique_ptr<ResourceTable> table = in TEST()
[all …]
/frameworks/base/services/core/jni/gnss/
DGnss.h106 std::unique_ptr<AGnssInterface> getAGnssInterface();
107 std::unique_ptr<AGnssRilInterface> getAGnssRilInterface();
108 std::unique_ptr<GnssNavigationMessageInterface> getGnssNavigationMessageInterface();
109 std::unique_ptr<GnssMeasurementInterface> getGnssMeasurementInterface();
110 std::unique_ptr<GnssDebugInterface> getGnssDebugInterface();
111 std::unique_ptr<GnssConfigurationInterface> getGnssConfigurationInterface();
112 std::unique_ptr<GnssGeofenceInterface> getGnssGeofenceInterface();
113 std::unique_ptr<GnssBatchingInterface> getGnssBatchingInterface();
114 std::unique_ptr<MeasurementCorrectionsInterface> getMeasurementCorrectionsInterface();
115 std::unique_ptr<GnssVisibilityControlInterface> getGnssVisibilityControlInterface();
[all …]
/frameworks/base/tools/aapt2/test/
DContext.h129 ContextBuilder& AddSymbolSource(std::unique_ptr<ISymbolSource> src) { in AddSymbolSource()
144 std::unique_ptr<Context> Build() { return std::move(context_); } in Build()
147 std::unique_ptr<Context> context_ = std::unique_ptr<Context>(new Context());
153 std::unique_ptr<Attribute> attr = {}) {
154 std::unique_ptr<SymbolTable::Symbol> symbol =
163 std::unique_ptr<Attribute> attr = {}) {
164 std::unique_ptr<SymbolTable::Symbol> symbol =
172 std::unique_ptr<ISymbolSource> Build() { in Build()
181 std::unique_ptr<SymbolTable::Symbol> FindByName(const ResourceName& name) override { in FindByName()
189 std::unique_ptr<SymbolTable::Symbol> FindById(ResourceId id) override { in FindById()
[all …]
/frameworks/av/media/codec2/hal/common/include/codec2/common/
DMultiAccessUnitHelper.h74 std::list<std::unique_ptr<C2Work>> &c2workItems,
75 std::list<std::list<std::unique_ptr<C2Work>>> * const processedWork);
83 std::list<std::unique_ptr<C2Work>> &c2workItems,
84 std::list<std::unique_ptr<C2Work>> * const processedWork);
90 std::list<std::unique_ptr<C2Work>> * const c2flushedWorks);
95 c2_status_t error(std::list<std::unique_ptr<C2Work>> * const c2workItems);
146 std::vector<std::unique_ptr<C2Param>> mConfigUpdate;
161 std::unique_ptr<C2Work> mLargeWork;
181 bool tryReconfigure(const std::unique_ptr<C2Param> &p);
192 std::unique_ptr<C2Work> &work,
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DAutoConditionLock.cpp38 std::unique_ptr<AutoConditionLock> AutoConditionLock::waitAndAcquire( in waitAndAcquire()
43 return std::unique_ptr<AutoConditionLock>{nullptr}; in waitAndAcquire()
47 std::unique_ptr<AutoConditionLock> scopedLock(new AutoConditionLock(manager)); in waitAndAcquire()
57 return std::unique_ptr<AutoConditionLock>{nullptr}; in waitAndAcquire()
68 std::unique_ptr<AutoConditionLock> AutoConditionLock::waitAndAcquire( in waitAndAcquire()
73 return std::unique_ptr<AutoConditionLock>{nullptr}; in waitAndAcquire()
77 std::unique_ptr<AutoConditionLock> scopedLock(new AutoConditionLock(manager)); in waitAndAcquire()
84 return std::unique_ptr<AutoConditionLock>{nullptr}; in waitAndAcquire()
/frameworks/native/libs/binder/include_tls/binder/
DRpcTransportTls.h30 static std::unique_ptr<RpcTransportCtxFactory> make(std::shared_ptr<RpcCertificateVerifier>,
31 std::unique_ptr<RpcAuth>);
33 std::unique_ptr<RpcTransportCtx> newServerCtx() const override;
34 std::unique_ptr<RpcTransportCtx> newClientCtx() const override;
39 std::unique_ptr<RpcAuth> auth) in RpcTransportCtxFactoryTls()
43 std::unique_ptr<RpcAuth> mAuth;
/frameworks/base/services/incremental/
DServiceWrappers.h185 virtual std::unique_ptr<VoldServiceWrapper> getVoldService() = 0;
186 virtual std::unique_ptr<DataLoaderManagerWrapper> getDataLoaderManager() = 0;
187 virtual std::unique_ptr<IncFsWrapper> getIncFs() = 0;
188 virtual std::unique_ptr<AppOpsManagerWrapper> getAppOpsManager() = 0;
189 virtual std::unique_ptr<JniWrapper> getJni() = 0;
190 virtual std::unique_ptr<LooperWrapper> getLooper() = 0;
191 virtual std::unique_ptr<TimedQueueWrapper> getTimedQueue() = 0;
192 virtual std::unique_ptr<TimedQueueWrapper> getProgressUpdateJobQueue() = 0;
193 virtual std::unique_ptr<FsWrapper> getFs() = 0;
194 virtual std::unique_ptr<ClockWrapper> getClock() = 0;
[all …]
/frameworks/base/tools/aapt2/java/
DJavaClassGenerator_test.cpp35 std::unique_ptr<ResourceTable> table = in TEST()
40 std::unique_ptr<IAaptContext> context = in TEST()
54 std::unique_ptr<ResourceTable> table = in TEST()
65 std::unique_ptr<IAaptContext> context = in TEST()
83 std::unique_ptr<ResourceTable> table = in TEST()
89 std::unique_ptr<IAaptContext> context = in TEST()
108 std::unique_ptr<ResourceTable> table = in TEST()
124 std::unique_ptr<IAaptContext> context = in TEST()
155 std::unique_ptr<ResourceTable> table = in TEST()
161 std::unique_ptr<IAaptContext> context = in TEST()
[all …]
/frameworks/av/media/codec2/components/dav1d/
DC2SoftDav1dDec.h49 void process(const std::unique_ptr<C2Work>& work,
73 std::unique_ptr<uint16_t[]> mTmpFrameBuffer;
77 std::unique_ptr<C2StreamHdr10PlusInfo::output> mHdr10PlusInfo = nullptr;
104 void getHDRStaticParams(const Dav1dPicture* picture, const std::unique_ptr<C2Work>& work);
105 void getHDR10PlusInfoData(const Dav1dPicture* picture, const std::unique_ptr<C2Work>& work);
108 void finishWork(uint64_t index, const std::unique_ptr<C2Work>& work,
112 void setError(const std::unique_ptr<C2Work>& work, c2_status_t error);
115 const std::unique_ptr<C2Work>& work);
118 const std::unique_ptr<C2Work>& work);
/frameworks/base/cmds/idmap2/include/idmap2/
DIdmap.h100 static std::unique_ptr<const IdmapHeader> FromBinaryStream(std::istream& stream);
177 static std::unique_ptr<const Header> FromBinaryStream(std::istream& stream);
234 static std::unique_ptr<const IdmapData> FromBinaryStream(std::istream& stream);
236 static Result<std::unique_ptr<const IdmapData>> FromResourceMapping(
239 const std::unique_ptr<const Header>& GetHeader() const { in GetHeader()
264 std::unique_ptr<const Header> header_;
279 static Result<std::unique_ptr<const Idmap>> FromBinaryStream(std::istream& stream);
285 static Result<std::unique_ptr<const Idmap>> FromContainers(
290 const std::unique_ptr<const IdmapHeader>& GetHeader() const { in GetHeader()
294 const std::vector<std::unique_ptr<const IdmapData>>& GetData() const { in GetData()
[all …]

12345678910>>...50