Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/base/
Dstatus_macros.h29 class StatusAdapter {
31 explicit StatusAdapter(const Status& s) : s_(s) {} in StatusAdapter() function
32 explicit StatusAdapter(Status&& s) : s_(std::move(s)) {} in StatusAdapter() function
34 explicit StatusAdapter(const StatusOr<T>& s) : s_(s.status()) {} in StatusAdapter() function
36 explicit StatusAdapter(StatusOr<T>&& s) : s_(std::move(s).status()) {} in StatusAdapter() function
70 if (::libtextclassifier3::StatusAdapter adapter{expr}) { \
/external/icing/icing/text_classifier/lib3/utils/base/
Dstatus_macros.h27 class StatusAdapter {
29 explicit StatusAdapter(const Status& s) : s_(s) {} in StatusAdapter() function
30 explicit StatusAdapter(Status&& s) : s_(std::move(s)) {} in StatusAdapter() function
32 explicit StatusAdapter(const StatusOr<T>& s) : s_(s.status()) {} in StatusAdapter() function
34 explicit StatusAdapter(StatusOr<T>&& s) : s_(std::move(s).status()) {} in StatusAdapter() function
68 if (::libtextclassifier3::StatusAdapter adapter{expr}) { \
/external/icing/icing/testing/
Dcommon-matchers.h297 libtextclassifier3::StatusAdapter adapter(arg);
320 libtextclassifier3::StatusAdapter adapter(arg);
333 libtextclassifier3::StatusAdapter adapter(arg);