Home
last modified time | relevance | path

Searched refs:ScopedAResource (Results 1 – 2 of 2) sorted by relevance

/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_auto_utils.h148 class ScopedAResource {
153 explicit ScopedAResource(T t = DEFAULT) : mT(t) {} in mT()
158 ~ScopedAResource() { set(DEFAULT); } in ~ScopedAResource()
202 ScopedAResource(const ScopedAResource&) = delete;
203 ScopedAResource& operator=(const ScopedAResource&) = delete;
206 ScopedAResource(ScopedAResource&& other) noexcept : mT(std::move(other.mT)) { in ScopedAResource() function
209 ScopedAResource& operator=(ScopedAResource&& other) noexcept {
224 class ScopedAParcel : public impl::ScopedAResource<AParcel*, AParcel_delete, nullptr> {
229 explicit ScopedAParcel(AParcel* a = nullptr) : ScopedAResource(a) {} in ScopedAResource() function
245 class ScopedAStatus : public impl::ScopedAResource<AStatus*, AStatus_delete, nullptr> {
[all …]
/frameworks/native/libs/binder/ndk/tests/
Dlibbinder_ndk_unit_test.cpp1101 struct FakeResource : public ndk::impl::ScopedAResource<int*, addOne, nullptr> {
1102 explicit FakeResource(int* a) : ScopedAResource(a) {} in FakeResource()