Home
last modified time | relevance | path

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

/system/update_engine/update_manager/
Dreal_updater_provider.cc62 GetStatusHelper(SystemState* system_state, string* errmsg) { in GetStatusHelper() argument
66 if (!is_success_ && errmsg) in GetStatusHelper()
67 *errmsg = "Failed to get a status update from the update engine"; in GetStatusHelper()
93 const Time* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument
94 GetStatusHelper raw(system_state(), errmsg); in GetValue()
112 const double* GetValue(TimeDelta /* timeout */, string* errmsg) override { in GetValue() argument
113 GetStatusHelper raw(system_state(), errmsg); in GetValue()
118 if (errmsg) { in GetValue()
119 *errmsg = StringPrintf("Invalid progress value received: %f", in GetValue()
145 const Stage* GetValue(TimeDelta /* timeout */, string* errmsg) override;
[all …]
Dgeneric_variables.h59 const std::string& errmsg) in PollCopyVariable() argument
61 errmsg_(errmsg) {} in PollCopyVariable()
69 const std::string& errmsg) in PollCopyVariable() argument
71 errmsg_(errmsg) {} in PollCopyVariable()
85 std::string* errmsg) override { in GetValue() argument
87 if (errmsg) { in GetValue()
89 *errmsg = "No value set for " + this->GetName(); in GetValue()
91 *errmsg = errmsg_; in GetValue()
199 std::string* errmsg) override { in GetValue() argument
201 if (errmsg) in GetValue()
[all …]
Devaluation_context-inl.h39 std::string errmsg; in GetValue() local
41 &errmsg); in GetValue()
44 << errmsg << "\""; in GetValue()
Dfake_variable.h58 std::string* errmsg) override { in GetValue() argument
59 if (ptr_ == nullptr && errmsg != nullptr) in GetValue()
60 *errmsg = this->GetName() + " is an empty FakeVariable"; in GetValue()
Dreal_random_provider.cc53 string* errmsg) override { in GetValue() argument
63 if (errmsg) { in GetValue()
64 *errmsg = base::StringPrintf( in GetValue()
Dvariable.h209 virtual const T* GetValue(base::TimeDelta timeout, std::string* errmsg) = 0;
/system/core/libpackagelistparser/
Dpackagelistparser.c105 const char *errmsg = NULL; in packagelist_parse() local
126 errmsg = "Could not get next token for \"package name\""; in packagelist_parse()
137 errmsg = "Could not get next token for field \"uid\""; in packagelist_parse()
143 errmsg = "Could not convert field \"uid\" to integer value"; in packagelist_parse()
152 errmsg = "Field \"uid\" greater than UID_MAX"; in packagelist_parse()
160 errmsg = "Could not get next token for field \"debuggable\""; in packagelist_parse()
166 errmsg = "Could not convert field \"debuggable\" to integer value"; in packagelist_parse()
172 errmsg = "Field \"debuggable\" is not 0 or 1 boolean value"; in packagelist_parse()
180 errmsg = "Could not get next token for field \"data dir\""; in packagelist_parse()
191 errmsg = "Could not get next token for field \"seinfo\""; in packagelist_parse()
[all …]
/system/connectivity/shill/net/
Drtnl_handler_unittest.cc185 } errmsg; in ReturnError() local
187 memset(&errmsg, 0, sizeof(errmsg)); in ReturnError()
188 errmsg.hdr.nlmsg_type = NLMSG_ERROR; in ReturnError()
189 errmsg.hdr.nlmsg_len = NLMSG_LENGTH(sizeof(errmsg.err)); in ReturnError()
190 errmsg.hdr.nlmsg_seq = sequence; in ReturnError()
191 errmsg.err.error = -error_number; in ReturnError()
193 InputData data(reinterpret_cast<unsigned char*>(&errmsg), sizeof(errmsg)); in ReturnError()
/system/sepolicy/tools/
Dcheck_seapp.c107 bool (*fn_validate)(char *value, char **errmsg);
193 static bool validate_bool(char *value, char **errmsg);
194 static bool validate_levelFrom(char *value, char **errmsg);
195 static bool validate_selinux_type(char *value, char **errmsg);
196 static bool validate_selinux_level(char *value, char **errmsg);
354 static bool validate_bool(char *value, char **errmsg) { in validate_bool() argument
360 *errmsg = "Expecting \"true\" or \"false\""; in validate_bool()
364 static bool validate_levelFrom(char *value, char **errmsg) { in validate_levelFrom() argument
368 *errmsg = "Expecting one of: \"none\", \"all\", \"app\" or \"user\""; in validate_levelFrom()
374 static bool validate_selinux_type(char *value, char **errmsg) { in validate_selinux_type() argument
[all …]
/system/core/libnetutils/
Ddhcpclient.c46 static char errmsg[2048]; variable
70 vsnprintf(errmsg, sizeof(errmsg), fmt, ap); in printerr()
73 ALOGD("%s", errmsg); in printerr()
78 return errmsg; in dhcp_lasterror()
/system/core/adb/
Dsysdeps_win32.cpp549 char* errmsg = strerror(-1); in adb_strerror() local
550 const std::string unknown_error = (errmsg == nullptr) ? "" : errmsg; in adb_strerror()
553 errmsg = strerror(err); in adb_strerror()
554 if (errmsg != nullptr && unknown_error != errmsg) { in adb_strerror()
585 errmsg = _strerror(custom_msg); in adb_strerror()
590 if ((errmsg != nullptr) && in adb_strerror()
591 !strncmp(custom_msg, errmsg, custom_msg_len)) { in adb_strerror()
594 errmsg[custom_msg_len] = '\0'; in adb_strerror()
600 errmsg = strerror(err); in adb_strerror()
610 return errmsg; in adb_strerror()