Searched refs:ResultError (Results 1 – 7 of 7) sorted by relevance
/system/libbase/include/android-base/ |
D | result.h | 88 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/ |
D | result.h | 27 using android::base::ResultError;
|
D | subcontext.cpp | 299 return ResultError(failure.error_string(), failure.error_errno()); in Execute() 323 return ResultError(failure.error_string(), failure.error_errno()); in ExpandArgs()
|
D | builtins.cpp | 118 operator android::base::expected<T, ResultError>() { in operator android::base::expected<T,ResultError>()
|
/system/netd/tests/ |
D | netlink_listener_test.cpp | 52 using android::base::ResultError; 95 return ResultError("Closed socket is not untagged", EUCLEAN); in checkNoGarbageTagsExist()
|
/system/netd/libnetdbpf/ |
D | BpfNetworkStats.cpp | 161 return base::ResultError(statsEntry.error().message(), statsEntry.error().code()); in parseBpfNetworkStatsDetailInternal()
|
/system/libbase/ |
D | result_test.cpp | 299 return Result<void>(ResultError("failure string", 6)); in TEST()
|