Home
last modified time | relevance | path

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

/system/libbase/include/android-base/
Dresult.h88 struct ResultError { struct
90 ResultError(T&& message, int code) : message_(std::forward<T>(message)), code_(code) {} in ResultError() argument
94 operator android::base::expected<T, ResultError>() {
95 return android::base::unexpected(ResultError(message_, code_));
106 inline bool operator==(const ResultError& lhs, const ResultError& rhs) { argument
110 inline bool operator!=(const ResultError& lhs, const ResultError& rhs) {
114 inline std::ostream& operator<<(std::ostream& os, const ResultError& t) {
127 operator android::base::expected<T, ResultError>() {
128 return android::base::unexpected(ResultError(str(), errno_));
134 if constexpr (std::is_same_v<std::remove_cv_t<std::remove_reference_t<T>>, ResultError>) {
[all …]
/system/core/init/
Dresult.h27 using android::base::ResultError;
Dsubcontext.cpp299 return ResultError(failure.error_string(), failure.error_errno()); in Execute()
323 return ResultError(failure.error_string(), failure.error_errno()); in ExpandArgs()
Dbuiltins.cpp118 operator android::base::expected<T, ResultError>() { in operator android::base::expected<T,ResultError>()
/system/netd/tests/
Dnetlink_listener_test.cpp52 using android::base::ResultError;
95 return ResultError("Closed socket is not untagged", EUCLEAN); in checkNoGarbageTagsExist()
/system/netd/libnetdbpf/
DBpfNetworkStats.cpp161 return base::ResultError(statsEntry.error().message(), statsEntry.error().code()); in parseBpfNetworkStatsDetailInternal()
/system/libbase/
Dresult_test.cpp299 return Result<void>(ResultError("failure string", 6)); in TEST()