Home
last modified time | relevance | path

Searched refs:unique_cptr (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DUtil.h43 class unique_cptr {
47 constexpr unique_cptr() : ptr_(nullptr) {} in unique_cptr() function
48 constexpr unique_cptr(std::nullptr_t) : ptr_(nullptr) {} in unique_cptr() function
49 explicit unique_cptr(pointer ptr) : ptr_(ptr) {} in unique_cptr() function
50 unique_cptr(unique_cptr&& o) : ptr_(o.ptr_) { o.ptr_ = nullptr; } in unique_cptr() function
52 ~unique_cptr() { std::free(reinterpret_cast<void*>(ptr_)); } in ~unique_cptr()
54 inline unique_cptr& operator=(unique_cptr&& o) {
65 inline unique_cptr& operator=(std::nullptr_t) {
89 inline void swap(unique_cptr& o) { std::swap(ptr_, o.ptr_); } in swap()
97 inline bool operator==(const unique_cptr& o) const { return ptr_ == o.ptr_; }
[all …]
DLoadedArsc.h77 using TypeSpecPtr = util::unique_cptr<TypeSpec>;
DAssetManager2.h335 std::unordered_map<uint32_t, util::unique_cptr<ResolvedBag>> cached_bags_;
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp231 entry_header = util::unique_cptr<IdmapEntry_header>( in MockLoadedIdmap()
243 util::unique_cptr<IdmapEntry_header> entry_header;
DApkAssets_test.cpp96 util::unique_cptr<void> idmap_data; in TEST()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp614 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
664 util::unique_cptr<ResolvedBag> new_bag{reinterpret_cast<ResolvedBag*>( in GetBag()
901 std::array<util::unique_cptr<ThemeType>, kTypeCount> types;
952 util::unique_cptr<ThemeType>& type = last_package->types[type_idx]; in ApplyStyle()