Searched refs:err (Results 1 - 25 of 224) sorted by relevance

123456789

/system/netd/libnetdutils/
H A DStatus.cpp28 Status statusFromErrno(int err, const std::string& msg) { argument
29 return Status(err, base::StringPrintf("[%s] : %s", strerror(err), msg.c_str()));
32 bool equalToErrno(const Status& status, int err) { argument
33 return status.code() == err;
H A DStatusTest.cpp48 StatusOr<int> err(status::undefined);
50 ss << err; local
/system/core/init/
H A Dutil_test.cpp34 std::string err; local
36 EXPECT_FALSE(ReadFile("/proc/does-not-exist", &s, &err));
37 EXPECT_EQ("Unable to open '/proc/does-not-exist': No such file or directory", err);
45 std::string err; local
47 EXPECT_TRUE(WriteFile(tf.path, s, &err)) << strerror(errno);
48 EXPECT_EQ("", err);
50 EXPECT_FALSE(ReadFile(tf.path, &s, &err)) << strerror(errno);
51 EXPECT_EQ("Skipping insecure file '"s + tf.path + "'", err);
58 std::string err; local
60 EXPECT_TRUE(WriteFile(tf.path, s, &err)) << strerro
72 std::string err; local
81 std::string err; local
98 std::string err; local
115 std::string err; local
133 std::string err; local
148 std::string err; local
[all...]
H A Dueventd_parser.cpp27 bool ParsePermissionsLine(std::vector<std::string>&& args, std::string* err, argument
32 *err = "/sys/ lines must have 5 entries";
37 *err = "/dev/ lines must have 4 entries";
52 *err = "invalid mode '" + perm_string + "'";
59 *err = "invalid uid '" + uid_string + "'";
67 *err = "invalid gid '" + gid_string + "'";
81 int line, std::string* err) {
83 *err = "subsystems must have exactly one name";
88 *err = "ignoring duplicate subsystem entry";
97 bool SubsystemParser::ParseDevName(std::vector<std::string>&& args, std::string* err) { argument
80 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line, std::string* err) argument
111 ParseDirName(std::vector<std::string>&& args, std::string* err) argument
121 ParseLineSection(std::vector<std::string>&& args, int line, std::string* err) argument
[all...]
H A Dkeyword_map.h37 const Function FindFunction(const std::vector<std::string>& args, std::string* err) const {
41 *err = "keyword needed, but not provided";
49 *err = StringPrintf("invalid keyword '%s'", keyword.c_str());
58 *err = StringPrintf("%s requires %zu argument%s",
66 *err = StringPrintf("%s requires at least %zu argument%s",
70 *err = StringPrintf("%s requires between %zu and %zu arguments",
H A Dservice.h77 bool ParseLine(const std::vector<std::string>& args, std::string* err);
115 std::string* err);
125 bool ParseCapabilities(const std::vector<std::string>& args, std::string *err);
126 bool ParseClass(const std::vector<std::string>& args, std::string* err);
127 bool ParseConsole(const std::vector<std::string>& args, std::string* err);
128 bool ParseCritical(const std::vector<std::string>& args, std::string* err);
129 bool ParseDisabled(const std::vector<std::string>& args, std::string* err);
130 bool ParseGroup(const std::vector<std::string>& args, std::string* err);
131 bool ParsePriority(const std::vector<std::string>& args, std::string* err);
132 bool ParseIoprio(const std::vector<std::string>& args, std::string* err);
[all...]
H A Dueventd_parser.h33 std::string* err) override;
34 bool ParseLineSection(std::vector<std::string>&& args, int line, std::string* err) override;
38 bool ParseDevName(std::vector<std::string>&& args, std::string* err);
39 bool ParseDirName(std::vector<std::string>&& args, std::string* err);
45 bool ParsePermissionsLine(std::vector<std::string>&& args, std::string* err,
H A Dimport_parser.cpp27 int line, std::string* err) {
29 *err = "single argument needed for import\n";
36 *err = "error while expanding import";
26 ParseSection(std::vector<std::string>&& args, const std::string& filename, int line, std::string* err) argument
/system/core/adf/libadf/tests/
H A Dadf_test.cpp30 int err = adf_device_open(dev_id, O_RDWR, &dev); local
31 ASSERT_GE(err, 0) << "opening ADF device " << dev_id <<
32 " failed: " << strerror(-err);
34 err = adf_find_simple_post_configuration(&dev, fmt8888, n_fmt8888,
36 ASSERT_GE(err, 0) << "finding ADF configuration failed: " <<
37 strerror(-err);
58 int err = adf_get_overlay_engine_data(eng, &data); local
59 ASSERT_GE(err, 0) << "getting ADF overlay engine data failed: " <<
60 strerror(-err);
80 int err local
94 int err = adf_interface_blank(intf, mode); local
[all...]
/system/connectivity/wifilogd/
H A Dmain_loop.cpp44 Os::Errno err; local
45 std::tie(sock_fd_, err) = os_->GetControlSocket(socket_name);
46 if (err) {
54 Os::Errno err; local
55 std::tie(datagram_len, err) =
57 if (err) {
58 ProcessError(err);
73 void MainLoop::ProcessError(Os::Errno err) { argument
74 if (err == EINTR || err
[all...]
/system/core/libnetutils/
H A Ddhcptool.c17 #include <err.h>
34 err(errno, "dhcptool %s: ifc_init failed", interface);
41 err(errno, "dhcptool %s: do_dhcp failed", interface);
/system/core/adb/sysdeps/
H A Derrno.h23 char* adb_strerror(int err);
/system/netd/server/binder/android/net/
H A DUidRange.cpp46 if (status_t err = parcel->writeInt32(mStart)) {
47 return err;
49 if (status_t err = parcel->writeInt32(mStop)) {
50 return err;
60 if (status_t err = parcel->readInt32(&mStart)) {
61 return err;
63 if (status_t err = parcel->readInt32(&mStop)) {
64 return err;
/system/core/libpackagelistparser/
H A Dpackagelistparser.c118 goto err;
126 goto err;
131 goto err;
137 goto err;
143 goto err;
152 goto err;
160 goto err;
166 goto err;
172 goto err;
180 goto err;
[all...]
/system/libvintf/
H A DRuntimeInfo-target.cpp73 status_t err = OK; local
78 err = (errnum == Z_ERRNO ? -errno : errnum);
83 return err;
124 status_t err = parseKernelVersion(); local
125 if (err != OK) {
129 return err;
163 status_t err; local
164 if ((err = fetchVersion()) != OK) {
165 LOG(WARNING) << "Cannot fetch or parse /proc/version: " << strerror(-err);
167 if ((err
[all...]
/system/core/adb/sysdeps/win32/
H A Derrno.cpp25 char* adb_strerror(int err) { argument
37 errmsg = strerror(err);
44 switch (err) {
83 errmsg = strerror(err);
86 // We don't have a custom message, so use whatever strerror(err)
H A Derrno_test.cpp23 void TestAdbStrError(int err, const char* expected) { argument
25 const char* result = adb_strerror(err);
/system/bt/osi/src/socket_utils/
H A Dsocket_local_server.cc46 int err; local
48 err = osi_socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
50 if (err < 0) {
81 int err; local
87 err = osi_socket_local_server_bind(s, name, namespaceId);
89 if (err < 0) {
/system/core/libcutils/
H A Dsocket_local_server_unix.c60 int err; local
62 err = socket_make_sockaddr_un(name, namespaceId, &addr, &alen);
64 if (err < 0) {
99 int err; local
105 err = socket_local_server_bind(s, name, namespace);
107 if (err < 0) {
/system/core/libutils/
H A DSystemClock.cpp61 int err = clock_gettime(CLOCK_BOOTTIME, &ts); local
62 if (CC_UNLIKELY(err)) {
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dposition.c51 #include <err.h>
75 err(EXIT_FAILURE, "%s", in.name);
122 err(EXIT_FAILURE, "%s", in.name);
142 err(EXIT_FAILURE, "%s", out.name);
153 err(EXIT_FAILURE, "%s", out.name);
164 err(EXIT_FAILURE, "%s", out.name);
175 err(EXIT_FAILURE, "%s", out.name);
181 err(EXIT_FAILURE, "%s", out.name);
/system/sepolicy/tools/sepolicy-analyze/
H A Dneverallow.c39 goto err;
49 goto err;
64 goto err;
97 goto err;
109 goto err;
136 goto err;
141 goto err;
151 goto err;
159 goto err;
171 goto err;
[all...]
/system/core/adf/libadf/
H A Dadf.cpp105 int err; local
110 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data);
111 if (err < 0)
124 err = ioctl(dev->fd, ADF_GET_DEVICE_DATA, data);
125 if (err < 0) {
144 int err; local
155 err = ioctl(dev->fd, ADF_POST_CONFIG, &data);
156 if (err < 0)
169 int err; local
181 err
196 int err; local
234 auto err = adf_get_device_data(dev, &data); local
313 int err; local
344 int err = ioctl(fd, ADF_BLANK, mode); local
352 int err = ioctl(fd, ADF_SET_MODE, mode); local
361 int err; local
448 auto err = adf_get_device_data(dev, &data); local
528 int err; local
563 int err = adf_get_overlay_engine_data(fd, &data); local
585 int err = ioctl(fd, ADF_SET_EVENT, &data); local
601 int err = read(fd, &header, sizeof(header)); local
[all...]
/system/netd/server/
H A DNetdNativeService.cpp68 auto err = StringPrintf("UID %d / PID %d lacks permission %s", uid, pid, permission); local
69 return binder::Status::fromExceptionCode(binder::Status::EX_SECURITY, String8(err.c_str()));
151 int err = gCtls->firewallCtrl.replaceUidChain(name.string(), isWhitelist, uids); local
152 *ret = (err == 0);
159 int err = gCtls->bandwidthCtrl.enableDataSaver(enable); local
160 *ret = (err == 0);
175 int err; local
177 err = RouteController::addUsersToRejectNonSecureNetworkRule(uidRanges);
179 err = RouteController::removeUsersFromRejectNonSecureNetworkRule(uidRanges);
182 if (err !
201 int err = sd.destroySockets(uidRanges, std::set<uid_t>(skipUids.begin(), skipUids.end()), local
217 int err = gCtls->resolverCtrl.setResolverConfiguration(netId, servers, domains, params); local
231 int err = gCtls->resolverCtrl.getResolverInfo(netId, servers, domains, params, stats); local
261 const int err = gCtls->resolverCtrl.addPrivateDnsServer(server, port, local
272 const int err = gCtls->resolverCtrl.removePrivateDnsServer(server); local
291 const int err = InterfaceController::addAddress( local
304 const int err = InterfaceController::delAddress( local
342 const int err = InterfaceController::setParameter( local
[all...]
/system/security/keystore/
H A DIKeystoreService.cpp128 int32_t err = reply.readExceptionCode(); variable
130 if (err < 0) {
131 ALOGD("getState() caught exception %d\n", err);
148 int32_t err = reply.readExceptionCode(); variable
149 if (err < 0) {
150 ALOGD("get() caught exception %d\n", err);
171 int32_t err = reply.readExceptionCode(); variable
172 if (err < 0) {
173 ALOGD("import() caught exception %d\n", err);
189 int32_t err variable
207 int32_t err = reply.readExceptionCode(); variable
226 int32_t err = reply.readExceptionCode(); variable
246 int32_t err = reply.readExceptionCode(); variable
266 int32_t err = reply.readExceptionCode(); variable
283 int32_t err = reply.readExceptionCode(); variable
301 int32_t err = reply.readExceptionCode(); variable
318 int32_t err = reply.readExceptionCode(); variable
350 int32_t err = reply.readExceptionCode(); variable
371 int32_t err = reply.readExceptionCode(); variable
390 int32_t err = reply.readExceptionCode(); variable
418 int32_t err = reply.readExceptionCode(); variable
435 int32_t err = reply.readExceptionCode(); variable
455 int32_t err = reply.readExceptionCode(); variable
473 int32_t err = reply.readExceptionCode(); variable
491 int32_t err = reply.readExceptionCode(); variable
512 int32_t err = reply.readExceptionCode(); variable
529 int32_t err = reply.readExceptionCode(); variable
546 int32_t err = reply.readExceptionCode(); variable
563 int32_t err = reply.readExceptionCode(); variable
587 int32_t err = reply.readExceptionCode(); variable
614 int32_t err = reply.readExceptionCode(); variable
642 int32_t err = reply.readExceptionCode(); variable
673 int32_t err = reply.readExceptionCode(); variable
704 int32_t err = reply.readExceptionCode(); variable
730 int32_t err = reply.readExceptionCode(); variable
758 int32_t err = reply.readExceptionCode(); variable
777 int32_t err = reply.readExceptionCode(); variable
795 int32_t err = reply.readExceptionCode(); variable
812 int32_t err = reply.readExceptionCode(); variable
830 int32_t err = reply.readExceptionCode(); variable
847 int32_t err = reply.readExceptionCode(); variable
869 int32_t err = reply.readExceptionCode(); variable
894 int32_t err = reply.readExceptionCode(); variable
914 int32_t err = reply.readExceptionCode(); variable
[all...]

Completed in 1459 milliseconds

123456789