Home
last modified time | relevance | path

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

/frameworks/native/include/powermanager/
DHalResult.h28 static bool checkUnsupported(const ndk::ScopedAStatus& ndkStatus) { in checkUnsupported() argument
29 return ndkStatus.getExceptionCode() == EX_UNSUPPORTED_OPERATION || in checkUnsupported()
30 ndkStatus.getStatus() == STATUS_UNKNOWN_TRANSACTION; in checkUnsupported()
61 static HalResult<T> fromStatus(const ndk::ScopedAStatus& ndkStatus, T&& data) { in fromStatus() argument
62 if (checkUnsupported(ndkStatus)) { in fromStatus()
65 if (ndkStatus.isOk()) { in fromStatus()
68 return HalResult<T>::failed(std::string(ndkStatus.getDescription())); in fromStatus()
71 static HalResult<T> fromStatus(const ndk::ScopedAStatus& ndkStatus, T& data) { in fromStatus() argument
72 return HalResult<T>::fromStatus(ndkStatus, T{data}); in fromStatus()
135 static HalResult<void> fromStatus(const ndk::ScopedAStatus& ndkStatus) { in fromStatus() argument
[all …]