Home
last modified time | relevance | path

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

12345678910>>...37

/system/chre/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h196 template <class T> using unique_ptr = std::unique_ptr<T>;
203 template <class T> class unique_ptr : public std::unique_ptr<T> {
205 unique_ptr() {}
206 explicit unique_ptr(T* p) : std::unique_ptr<T>(p) {}
207 unique_ptr(std::unique_ptr<T>&& u) { *this = std::move(u); }
208 unique_ptr(unique_ptr&& u) { *this = std::move(u); }
209 unique_ptr& operator=(std::unique_ptr<T>&& u) {
210 std::unique_ptr<T>::reset(u.release());
213 unique_ptr& operator=(unique_ptr&& u) {
214 std::unique_ptr<T>::reset(u.release());
[all …]
/system/connectivity/wificond/net/
Dmlme_event.cpp27 using std::unique_ptr;
51 unique_ptr<MlmeAssociateEvent> MlmeAssociateEvent::InitFromPacket( in InitFromPacket()
56 unique_ptr<MlmeAssociateEvent> associate_event(new MlmeAssociateEvent()); in InitFromPacket()
73 unique_ptr<MlmeConnectEvent> MlmeConnectEvent::InitFromPacket( in InitFromPacket()
78 unique_ptr<MlmeConnectEvent> connect_event(new MlmeConnectEvent()); in InitFromPacket()
95 unique_ptr<MlmeRoamEvent> MlmeRoamEvent::InitFromPacket( in InitFromPacket()
100 unique_ptr<MlmeRoamEvent> roam_event(new MlmeRoamEvent()); in InitFromPacket()
110 unique_ptr<MlmeDisconnectEvent> MlmeDisconnectEvent::InitFromPacket( in InitFromPacket()
115 unique_ptr<MlmeDisconnectEvent> disconnect_event(new MlmeDisconnectEvent()); in InitFromPacket()
124 unique_ptr<MlmeDisassociateEvent> MlmeDisassociateEvent::InitFromPacket( in InitFromPacket()
[all …]
Dmlme_event_handler.h33 virtual void OnConnect(std::unique_ptr<MlmeConnectEvent> event) = 0;
34 virtual void OnRoam(const std::unique_ptr<MlmeRoamEvent> event) = 0;
35 virtual void OnAssociate(std::unique_ptr<MlmeAssociateEvent> event) = 0;
36 virtual void OnDisconnect(std::unique_ptr<MlmeDisconnectEvent> event) = 0;
37 virtual void OnDisassociate(std::unique_ptr<MlmeDisassociateEvent> event) = 0;
Dnetlink_manager.h151 std::function<void(std::unique_ptr<const NL80211Packet>)> handler);
157 std::vector<std::unique_ptr<const NL80211Packet>>* response);
165 std::unique_ptr<const NL80211Packet>* response);
175 std::unique_ptr<const NL80211Packet>* response);
285 void BroadcastHandler(std::unique_ptr<const NL80211Packet> packet);
286 void OnRegChangeEvent(std::unique_ptr<const NL80211Packet> packet);
287 void OnMlmeEvent(std::unique_ptr<const NL80211Packet> packet);
288 void OnScanResultsReady(std::unique_ptr<const NL80211Packet> packet);
289 void OnSchedScanResultsReady(std::unique_ptr<const NL80211Packet> packet);
290 void OnChannelSwitchEvent(std::unique_ptr<const NL80211Packet> packet);
[all …]
/system/tools/aidl/
Daidl_language_y.yy74 std::vector<std::unique_ptr<AidlToken>> *token_list;
78 std::vector<std::unique_ptr<AidlAnnotation>>* annotation_list;
84 std::vector<std::unique_ptr<AidlEnumerator>>* enumerators;
85 std::vector<std::unique_ptr<AidlConstantValue>>* constant_value_list;
86 std::vector<std::unique_ptr<AidlArgument>>* arg_list;
90 std::vector<std::unique_ptr<AidlMember>>* members;
92 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args;
94 std::vector<std::unique_ptr<AidlDefinedType>>* declarations;
232 : { $$ = new std::vector<std::unique_ptr<AidlToken>>(); }
260 { $$ = new std::vector<std::unique_ptr<AidlDefinedType>>();
[all …]
Daidl_language.h46 using std::unique_ptr;
203 unique_ptr<std::vector<T>> type_params_;
204 static_assert(std::is_same<T, unique_ptr<AidlTypeSpecifier>>::value ||
273 static std::unique_ptr<AidlAnnotation> Parse(
298 Result<unique_ptr<android::aidl::perm::Expression>> EnforceExpression() const;
347 void Annotate(vector<std::unique_ptr<AidlAnnotation>>&& annotations) {
376 std::unique_ptr<android::aidl::perm::Expression> EnforceExpression() const;
387 const vector<std::unique_ptr<AidlAnnotation>>& GetAnnotations() const { return annotations_; }
396 vector<std::unique_ptr<AidlAnnotation>> annotations_;
403 FixedSizeArray(std::unique_ptr<AidlConstantValue> dim) { dimensions.push_back(std::move(dim)); }
[all …]
/system/update_engine/payload_consumer/
Dinstall_operation_executor.h35 std::unique_ptr<ExtentWriter> writer,
38 std::unique_ptr<ExtentWriter> writer);
40 std::unique_ptr<ExtentWriter> writer,
44 std::unique_ptr<ExtentWriter> writer,
51 std::unique_ptr<ExtentWriter> writer,
56 std::unique_ptr<ExtentWriter> writer,
61 std::unique_ptr<ExtentWriter> writer,
66 std::unique_ptr<ExtentWriter> writer,
Dcertificate_parser_android.cc39 std::unique_ptr<void, decltype(&EndIteration)> guard(cookie, EndIteration); in IterateZipEntriesAndSearchForKeys()
71 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>>* in ReadPublicKeysFromCertificates()
77 std::unique_ptr<ZipArchive, decltype(&CloseArchive)> handle(raw_handle, CloseArchive); in ReadPublicKeysFromCertificates()
92 std::vector<std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)>> result; in ReadPublicKeysFromCertificates()
94 std::unique_ptr<BIO, decltype(&BIO_free)> input( in ReadPublicKeysFromCertificates()
97 std::unique_ptr<X509, decltype(&X509_free)> x509( in ReadPublicKeysFromCertificates()
104 std::unique_ptr<EVP_PKEY, decltype(&EVP_PKEY_free)> public_key( in ReadPublicKeysFromCertificates()
117 std::unique_ptr<CertificateParserInterface> CreateCertificateParser() { in CreateCertificateParser()
Dinstall_operation_executor.cc51 BsdiffExtentFile(std::unique_ptr<ExtentReader> reader, size_t size) in BsdiffExtentFile()
53 BsdiffExtentFile(std::unique_ptr<ExtentWriter> writer, size_t size) in BsdiffExtentFile()
92 BsdiffExtentFile(std::unique_ptr<ExtentReader> reader, in BsdiffExtentFile()
93 std::unique_ptr<ExtentWriter> writer, in BsdiffExtentFile()
100 std::unique_ptr<ExtentReader> reader_;
101 std::unique_ptr<ExtentWriter> writer_;
112 PuffinExtentStream(std::unique_ptr<ExtentReader> reader, uint64_t size) in PuffinExtentStream()
116 PuffinExtentStream(std::unique_ptr<ExtentWriter> writer, uint64_t size) in PuffinExtentStream()
160 PuffinExtentStream(std::unique_ptr<ExtentReader> reader, in PuffinExtentStream()
161 std::unique_ptr<ExtentWriter> writer, in PuffinExtentStream()
[all …]
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/
Dcow_decompress.h46 static std::unique_ptr<IDecompressor> Uncompressed();
47 static std::unique_ptr<IDecompressor> Gz();
48 static std::unique_ptr<IDecompressor> Brotli();
49 static std::unique_ptr<IDecompressor> Lz4();
50 static std::unique_ptr<IDecompressor> Zstd();
52 static std::unique_ptr<IDecompressor> FromString(std::string_view compressor);
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp33 using std::unique_ptr;
183 std::unique_ptr<opfactory_t> rsa_encrypt_op_factory_;
184 std::unique_ptr<opfactory_t> rsa_decrypt_op_factory_;
185 std::unique_ptr<opfactory_t> rsa_sign_op_factory_;
186 std::unique_ptr<opfactory_t> rsa_verify_op_factory_;
187 std::unique_ptr<opfactory_t> ec_encrypt_op_factory_;
188 std::unique_ptr<opfactory_t> ec_decrypt_op_factory_;
189 std::unique_ptr<opfactory_t> ec_sign_op_factory_;
190 std::unique_ptr<opfactory_t> ec_verify_op_factory_;
191 std::unique_ptr<opfactory_t> ec_derive_op_factory_;
[all …]
/system/update_engine/aosp/
Ddaemon_state_android.h57 std::unique_ptr<BootControlInterface> boot_control_;
60 std::unique_ptr<HardwareInterface> hardware_;
63 std::unique_ptr<PrefsInterface> prefs_;
66 std::unique_ptr<UpdateAttempterAndroid> update_attempter_;
71 std::unique_ptr<CertificateChecker> certificate_checker_;
/system/extras/simpleperf/
Dcallchain.h37 std::vector<std::unique_ptr<CallChainNode>> children;
47 std::vector<std::unique_ptr<NodeT>> children;
56 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, 0, period, 0); in AddCallChain()
82 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, callchain_pos, period, 0); in AddCallChain()
89 std::queue<std::vector<std::unique_ptr<NodeT>>*> queue; in SortByPeriod()
92 std::vector<std::unique_ptr<NodeT>>* v = queue.front(); in SortByPeriod()
104 NodeT* FindMatchingNode(const std::vector<std::unique_ptr<NodeT>>& nodes, const EntryT* sample, in FindMatchingNode()
126 std::unique_ptr<NodeT> child = in SplitNode()
136 std::unique_ptr<NodeT> AllocateNode(const std::vector<EntryT*>& chain, size_t chain_start, in AllocateNode()
138 std::unique_ptr<NodeT> node(new NodeT); in AllocateNode()
[all …]
/system/logging/logd/
DLogReaderList.h31 void AddAndRunThread(std::unique_ptr<LogReaderThread> thread) REQUIRES(logd_lock);
33 void AddPendingThread(std::unique_ptr<LogReaderThread> thread) REQUIRES(logd_lock);
37 const std::list<std::unique_ptr<LogReaderThread>>& running_reader_threads() const in running_reader_threads()
43 std::list<std::unique_ptr<LogReaderThread>> running_reader_threads_ GUARDED_BY(logd_lock);
44 std::vector<std::unique_ptr<LogReaderThread>> pending_reader_threads_ GUARDED_BY(logd_lock);
/system/core/fastboot/
Dtcp.cpp59 static std::unique_ptr<TcpTransport> NewTransport(std::unique_ptr<Socket> socket,
70 explicit TcpTransport(std::unique_ptr<Socket> sock) : socket_(std::move(sock)) {} in TcpTransport()
76 std::unique_ptr<Socket> socket_;
82 std::unique_ptr<TcpTransport> TcpTransport::NewTransport(std::unique_ptr<Socket> socket, in NewTransport()
84 std::unique_ptr<TcpTransport> transport(new TcpTransport(std::move(socket))); in NewTransport()
186 std::unique_ptr<Transport> Connect(const std::string& hostname, int port, std::string* error) { in Connect()
193 std::unique_ptr<Transport> Connect(std::unique_ptr<Socket> sock, std::string* error) { in Connect()
Dfastboot.h94 std::unique_ptr<ImageSource> source;
117 std::vector<std::unique_ptr<Task>> CollectTasks();
124 std::vector<std::unique_ptr<Task>>& tasks);
126 std::vector<std::unique_ptr<Task>> CollectTasksFromFastbootInfo();
127 std::vector<std::unique_ptr<Task>> CollectTasksFromImageList();
131 std::vector<std::unique_ptr<Task>> tasks_;
167 std::unique_ptr<FlashTask> ParseFlashCommand(const FlashingPlan* fp,
169 std::unique_ptr<RebootTask> ParseRebootCommand(const FlashingPlan* fp,
171 std::unique_ptr<WipeTask> ParseWipeCommand(const FlashingPlan* fp,
173 std::unique_ptr<Task> ParseFastbootInfoLine(const FlashingPlan* fp,
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dcow_compress.h34 static std::unique_ptr<ICompressor> Gz(const int32_t compression_level,
36 static std::unique_ptr<ICompressor> Brotli(const int32_t compression_level,
38 static std::unique_ptr<ICompressor> Lz4(const int32_t compression_level,
40 static std::unique_ptr<ICompressor> Zstd(const int32_t compression_level,
43 static std::unique_ptr<ICompressor> Create(CowCompression compression,
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb_util.h29 std::unique_ptr<VBMetaData> LoadAndVerifyVbmeta(const FstabEntry& fstab_entry,
36 std::unique_ptr<VBMetaData> LoadAndVerifyVbmetaByPath(
43 std::unique_ptr<FsAvbHashtreeDescriptor> GetHashtreeDescriptor(
46 std::unique_ptr<FsAvbHashDescriptor> GetHashDescriptor(
50 std::unique_ptr<FsAvbHashDescriptor> GetHashDescriptor(const std::string& avb_partition_name,
/system/libcppbor/src/
Dcppbor_parse.cpp69 std::unique_ptr<Item> item = std::make_unique<Uint>(value); in handleUint()
81 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<int64_t>(value)); in handleNint()
89 std::unique_ptr<Item> item = std::make_unique<Bool>(value == TRUE); in handleBool()
96 std::unique_ptr<Item> item = std::make_unique<Null>(); in handleNull()
112 std::unique_ptr<Item> item = std::make_unique<T>(valueBegin, valueBegin + length); in handleString()
122 virtual void add(std::unique_ptr<Item> item) = 0;
123 virtual std::unique_ptr<Item> finalize() && = 0;
133 void add(std::unique_ptr<Item> item) override { in add()
137 virtual std::unique_ptr<Item> finalize() && override { in finalize()
154 void add(std::unique_ptr<Item> item) override { in add()
[all …]
/system/update_engine/payload_generator/
Dsquashfs_filesystem_unittest.cc43 using std::unique_ptr;
75 void CheckSquashfs(const unique_ptr<SquashfsFilesystem>& fs) { in CheckSquashfs()
114 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFile( in TEST_F()
135 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFile( in TEST_F()
153 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFile( in TEST_F()
168 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFileMap( in TEST_F()
182 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFileMap( in TEST_F()
195 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFileMap( in TEST_F()
209 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFileMap( in TEST_F()
224 unique_ptr<SquashfsFilesystem> fs = SquashfsFilesystem::CreateFromFileMap( in TEST_F()
[all …]
/system/core/fs_mgr/liblp/
Dreader.h34 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, int fd);
35 std::unique_ptr<LpMetadata> ParseMetadata(const LpMetadataGeometry& geometry, const void* buffer,
44 std::unique_ptr<LpMetadata> ReadPrimaryMetadata(int fd, const LpMetadataGeometry& geometry,
46 std::unique_ptr<LpMetadata> ReadBackupMetadata(int fd, const LpMetadataGeometry& geometry,
Dio_test.cpp72 unique_ptr<uint8_t[]> buffer = make_unique<uint8_t[]>(size); in CreateFakeDisk()
86 static unique_ptr<MetadataBuilder> CreateDefaultBuilder() { in CreateDefaultBuilder()
87 unique_ptr<MetadataBuilder> builder = in CreateDefaultBuilder()
108 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in CreateFlashedDisk()
117 unique_ptr<LpMetadata> exported = builder->Export(); in CreateFlashedDisk()
147 unique_ptr<MetadataBuilder> builder = MetadataBuilder::New(kDiskSize + 4096, 512, 2); in TEST_F()
149 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F()
164 unique_ptr<MetadataBuilder> builder = CreateDefaultBuilder(); in TEST_F()
174 unique_ptr<LpMetadata> exported = builder->Export(); in TEST_F()
182 unique_ptr<LpMetadata> imported = ReadMetadata(opener, "super", 0); in TEST_F()
[all …]
/system/keymaster/tests/fuzzers/
Dbuffer_fuzz.cpp47 std::unique_ptr<uint8_t[]> in_buf = std::unique_ptr<uint8_t[]>(new uint8_t[buf_size]); in __anon94d6626e0602()
52 std::unique_ptr<uint8_t[]> in_buf = std::unique_ptr<uint8_t[]>(new uint8_t[buf_size]); in __anon94d6626e0702()
59 std::unique_ptr<uint8_t[]> out_buf = std::unique_ptr<uint8_t[]>(new uint8_t[buf_size]); in __anon94d6626e0802()
70 std::unique_ptr<uint8_t[]> out = std::unique_ptr<uint8_t[]>(new uint8_t[buf_size]); in __anon94d6626e0a02()
/system/core/fs_mgr/libsnapshot/snapuserd/testing/
Ddm_user_harness.h31 explicit DmUserDevice(std::unique_ptr<Tempdevice>&& dev);
36 std::unique_ptr<Tempdevice> dev_;
43 std::unique_ptr<IUserDevice> CreateUserDevice(const std::string& dev_name,
50 std::unique_ptr<DmUserBlockServerFactory> block_server_factory_;
/system/tools/aidl/analyzer/
DAnalyzer.cpp19 using std::unique_ptr;
43 unordered_map<std::string, unique_ptr<Analyzer>>& Analyzer::getAnalyzers() { in getAnalyzers()
44 static unordered_map<std::string, unique_ptr<Analyzer>> gAnalyzers; in getAnalyzers()
48 void Analyzer::installAnalyzer(std::unique_ptr<Analyzer> install) { in installAnalyzer()

12345678910>>...37