Searched refs:ScopedAResource (Results 1 – 1 of 1) sorted by relevance
118 class ScopedAResource {123 explicit ScopedAResource(T t = DEFAULT) : mT(t) {} in mT()128 ~ScopedAResource() { set(DEFAULT); } in ~ScopedAResource()163 ScopedAResource(const ScopedAResource&) = delete;164 ScopedAResource& operator=(const ScopedAResource&) = delete;165 ScopedAResource& operator=(ScopedAResource&&) = delete;168 ScopedAResource(ScopedAResource&& other) : mT(std::move(other.mT)) { other.mT = DEFAULT; } in ScopedAResource() function179 class ScopedAParcel : public impl::ScopedAResource<AParcel*, void, AParcel_delete, nullptr> {184 explicit ScopedAParcel(AParcel* a = nullptr) : ScopedAResource(a) {} in ScopedAResource() function192 class ScopedAStatus : public impl::ScopedAResource<AStatus*, void, AStatus_delete, nullptr> {[all …]