Home
last modified time | relevance | path

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

/system/core/init/
Dresult.h85 ResultError(T&& error_string, int error_errno) in ResultError()
86 : error_string(std::forward<T>(error_string)), error_errno(error_errno) {} in ResultError()
88 std::string error_string; member
93 os << t.error_string;
98 os << std::move(t.error_string);
114 ss_ << result_error.error_string;
120 ss_ << std::move(result_error.error_string);
167 : contents_(std::in_place_index_t<1>(), result_error.error_string, in Result()
170 : contents_(std::in_place_index_t<1>(), std::move(result_error.error_string), in Result()
186 const std::string& error_string() const & { return std::get<1>(contents_).error_string; } in error_string() function
[all …]
Dresult_test.cpp78 EXPECT_EQ("failure1", result.error_string()); in TEST()
87 EXPECT_EQ("", result.error_string()); in TEST()
102 EXPECT_EQ("failure1", MakeRvalueErrorResult().error_string()); in TEST()
114 EXPECT_EQ("failure1: "s + strerror(test_errno), result.error_string()); in TEST()
126 EXPECT_EQ(strerror(test_errno), result.error_string()); in TEST()
142 EXPECT_EQ(error_text, result.error_string()); in TEST()
158 EXPECT_EQ(error_text, result.error_string()); in TEST()
178 EXPECT_EQ(error_text + ": " + strerror(test_errno), result.error_string()); in TEST()
301 EXPECT_EQ("failure string", result->error_string()); in TEST()
329 ASSERT_DEATH(result.error_string(), ""); in TEST()
Dsubcontext_test.cpp72 auto pids = Split(result.error_string(), " "); in TEST()
119 EXPECT_EQ(Join(expected_words, " "), result.error_string()); in TEST()
133 EXPECT_EQ("Sane error!", result2.error_string()); in TEST()
142 ASSERT_EQ(context_string, result.error_string()); in TEST()
170 EXPECT_EQ("Failed to expand '" + args[1] + "'", result.error_string()); in TEST()
Dutil_test.cpp37 EXPECT_EQ("open() failed: No such file or directory", file_contents.error_string()); in TEST()
48 EXPECT_EQ("Skipping insecure file", file_contents.error_string()); in TEST()
59 EXPECT_EQ("Skipping insecure file", file_contents.error_string()); in TEST()
68 EXPECT_EQ("open() failed: Too many symbolic links encountered", file_contents.error_string()); in TEST()
133 EXPECT_EQ("getpwnam failed: No such file or directory", decoded_uid.error_string()); in TEST()
Dfirst_stage_init.cpp176 for (const auto& [error_string, error_errno] : errors) { in FirstStageMain()
177 LOG(ERROR) << error_string << " " << strerror(error_errno); in FirstStageMain()
Drlimit_parser_test.cpp46 EXPECT_EQ(expected_result, result.error_string()); in TestRlimitFailure()
Dsubcontext.cpp144 failure->set_error_string(result.error_string()); in RunCommand()
323 return ResultError(failure.error_string(), failure.error_errno()); in Execute()
347 return ResultError(failure.error_string(), failure.error_errno()); in ExpandArgs()
Dsubcontext.proto31 optional string error_string = 1; field
Daction.cpp142 << (result ? "succeeded" : "failed: " + result.error_string()); in ExecuteCommand()
Dservice.cpp1386 LOG(ERROR) << result.error_string(); in MarkServicesUpdate()
/system/chre/host/common/include/chre_host/
Dlog.h61 char error_string[64]; \
62 strerror_r(error_code, error_string, sizeof(error_string)); \
63 LOGE("%s: %s (%d)\n", message, error_string, error_code); \