Home
last modified time | relevance | path

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

/system/libbase/include/android-base/
Dexpected.h57 class unexpected; variable
59 unexpected(E) -> unexpected<E>;
90 using unexpected_type = unexpected<E>;
117 else var_ = unexpected(rhs.error()); in expected()
136 else var_ = unexpected(rhs.error()); in expected()
156 else var_ = unexpected(std::move(rhs.error())); in expected()
175 else var_ = unexpected(std::move(rhs.error())); in expected()
182 !std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
192 !std::is_same_v<unexpected<E>, std::remove_cv_t<std::remove_reference_t<U>>> &&
203 constexpr expected(const unexpected<G>& e) in expected()
[all …]
Dresult.h95 return android::base::unexpected(ResultError(message_, code_));
128 return android::base::unexpected(ResultError(str(), errno_));
/system/libbase/
Dexpected_test.cpp26 using android::base::unexpected;
164 exp_int::unexpected_type unexp = unexpected(10); in TEST()
167 exp_double::unexpected_type unexp2 = unexpected(10.5f); in TEST()
170 exp_string::unexpected_type unexp3 = unexpected(std::string("error")); in TEST()
173 exp_void::unexpected_type unexp4 = unexpected(10); in TEST()
187 exp_int e = unexpected(10); in TEST()
188 exp_double e2 = unexpected(10.5f); in TEST()
189 exp_string e3 = unexpected(std::string("error")); in TEST()
190 exp_void e4 = unexpected(10); in TEST()
248 exp_void e5 = unexpected(10); in TEST()
[all …]
/system/iorap/src/serialize/
Dprotobuf_io.cc107 return unexpected{err}; in WriteFully()
122 return unexpected{EDOM}; in WriteFully()
130 return unexpected{err}; in WriteFully()
143 return unexpected{err}; in WriteFully()
153 return unexpected{EXFULL}; in WriteFully()
160 return unexpected{err}; in WriteFully()
/system/iorap/src/common/
Dexpected.h259 struct unexpected;
274 constexpr expected(unexpected<G> const& u) : expected{u.value()} {}
277 constexpr expected(unexpected<G>&& u) : expected{std::move(u.value())} {}
358 struct unexpected {
359 unexpected() = delete;
360 constexpr explicit unexpected(const E& error) : error_{error} {}
361 constexpr explicit unexpected(E&& error) : error_{std::move(error)} {}
371 constexpr bool operator==(const unexpected<E>& x, const unexpected<E>& y) {
376 constexpr bool operator!=(const unexpected<E>& x, const unexpected<E>& y) {
/system/tools/hidl/test/error_test/no_leading_comma_argument_list/1.0/
Drequired_error1 syntax error, unexpected ','
/system/tools/hidl/test/error_test/no_leading_comma_result_list/1.0/
Drequired_error1 syntax error, unexpected ','
/system/tools/hidl/test/error_test/bad_character/1.0/
Drequired_error1 syntax error, unexpected unknown character
/system/iorap/src/inode2filename/
Dinode_result.h51 return InodeResult{inode, iorap::unexpected{err_no}}; in makeFailure()
Dsearch_directories.cc719 return iorap::unexpected(StatError{errno, path_name}); in Stat()
/system/iorap/include/binder/
Dapp_launch_event.h210 return unexpected(res); in ReadProto()
221 return unexpected(::android::NO_MEMORY); in ReadProto()
225 return unexpected(::android::BAD_VALUE); in ReadProto()
242 return unexpected(res); in ReadNullableProto()
/system/netd/libnetdutils/
DThreadUtilTest.cpp30 return android::base::unexpected(ret); in getThreadName()
/system/extras/simpleperf/
DETMDecoder.cpp794 return android::base::unexpected(ss.str()); in Init()
816 return android::base::unexpected("no segments"); in Init()
/system/timezone/
DREADME.android92 isolate unexpected changes to behavior.
/system/sepolicy/prebuilts/api/30.0/public/
Dinit.te614 # unexpected side effects. (b/140789528)
/system/sepolicy/public/
Dinit.te639 # unexpected side effects. (b/140789528)
/system/sepolicy/prebuilts/api/31.0/public/
Dinit.te639 # unexpected side effects. (b/140789528)
/system/chre/doc/
Dnanoapp_developer_guide.md337 To help catch programming errors or other unexpected conditions, nanoapps can