Home
last modified time | relevance | path

Searched refs:errno (Results 1 – 25 of 299) sorted by relevance

12345678910>>...12

/frameworks/base/core/java/android/net/metrics/
DConnectStats.java63 boolean addEvent(int errno, int latencyMs, String ipAddr) { in addEvent() argument
65 if (isSuccess(errno)) { in addEvent()
66 countConnect(errno, ipAddr); in addEvent()
67 countLatency(errno, latencyMs); in addEvent()
70 countError(errno); in addEvent()
75 private void countConnect(int errno, String ipAddr) { in countConnect() argument
77 if (!isNonBlocking(errno)) { in countConnect()
85 private void countLatency(int errno, int ms) { in countLatency() argument
86 if (isNonBlocking(errno)) { in countLatency()
101 private void countError(int errno) { in countError() argument
[all …]
/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp77 VLOG("poll failed: %s", strerror(errno)); in read()
78 return -errno; in read()
81 VLOG("return event has error %s", strerror(errno)); in read()
82 return errno != 0 ? -errno : UNKNOWN_ERROR; in read()
87 if (errno == EAGAIN || errno == EWOULDBLOCK) { in read()
90 VLOG("Fail to read %d: %s", fd, strerror(errno)); in read()
91 return -errno; in read()
123 VLOG("Fail to read %d: %s", fd, strerror(errno)); in readFully()
124 return -errno; in readFully()
183 VLOG("Fail to poll: %s", strerror(errno)); in readProcessedDataInStream()
[all …]
/frameworks/native/opengl/libs/EGL/
DFileBlobCache.cpp59 if (errno != ENOENT) { in FileBlobCache()
61 strerror(errno), errno); in FileBlobCache()
68 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in FileBlobCache()
85 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), in FileBlobCache()
86 errno); in FileBlobCache()
129 if (errno == EEXIST) { in writeToFile()
134 strerror(errno), errno); in writeToFile()
142 strerror(errno), errno); in writeToFile()
152 strerror(errno), errno); in writeToFile()
174 ALOGE("error writing cache file: %s (%d)", strerror(errno), in writeToFile()
[all …]
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java92 final int errno = native_tagSocketFd(fd, tag, uid); in tagSocketFd() local
93 if (errno < 0) { in tagSocketFd()
96 + uid + ") failed with errno" + errno); in tagSocketFd()
114 final int errno = native_untagSocketFd(fd); in unTagSocketFd() local
115 if (errno < 0) { in unTagSocketFd()
116 Log.w(TAG, "untagSocket(" + fd.getInt$() + ") failed with errno " + errno); in unTagSocketFd()
128 final int errno = native_setCounterSet(counterSet, uid); in setKernelCounterSet() local
129 if (errno < 0) { in setKernelCounterSet()
131 + errno); in setKernelCounterSet()
138 int errno = native_deleteTagData(0, uid); in resetKernelUidStats() local
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp107 errno = EINVAL; in set()
127 errno = EINVAL; in getTime()
137 ALOGV("settimeofday() failed: %s", strerror(errno)); in setTime()
143 ALOGE("Unable to open %s: %s", rtc_dev.c_str(), strerror(errno)); in setTime()
149 ALOGV("gmtime_r() failed: %s", strerror(errno)); in setTime()
164 ALOGV("RTC_SET_TIME ioctl failed: %s", strerror(errno)); in setTime()
187 if (err < 0 && errno != EAGAIN) { in waitForAlarm()
188 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) { in waitForAlarm()
217 ALOGW("Unable to set rtc to %ld: %s", tv.tv_sec, strerror(errno)); in android_server_AlarmManagerService_setKernelTime()
232 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno)); in android_server_AlarmManagerService_setKernelTimezone()
[all …]
Dcom_android_server_connectivity_Vpn.cpp68 ALOGE("Cannot allocate TUN: %s", strerror(errno)); in create_interface()
75 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface()
82 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface()
97 ALOGE("Cannot get interface name: %s", strerror(errno)); in get_interface_name()
109 ALOGE("Cannot get index of %s: %s", name, strerror(errno)); in get_interface_index()
150 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
165 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
172 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
183 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses()
198 if (ioctl(inet4, SIOCSIFFLAGS, &ifr4) && errno != ENODEV) { in reset_interface()
[all …]
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp173 if (errno == EEXIST) { in saveBlobCacheLocked()
177 ALOGE("error unlinking cache file %s: %s (%d)", fname, strerror(errno), errno); in saveBlobCacheLocked()
184 ALOGE("error creating cache file %s: %s (%d)", fname, strerror(errno), errno); in saveBlobCacheLocked()
193 ALOGE("error allocating buffer for cache contents: %s (%d)", strerror(errno), errno); in saveBlobCacheLocked()
214 ALOGE("error writing cache file: %s (%d)", strerror(errno), errno); in saveBlobCacheLocked()
233 if (errno != ENOENT) { in loadBlobCacheLocked()
234 ALOGE("error opening cache file %s: %s (%d)", mFilename.c_str(), strerror(errno), in loadBlobCacheLocked()
235 errno); in loadBlobCacheLocked()
242 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
258 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
/frameworks/base/libs/androidfw/
DObbFile.cpp68 } while (_rc == -1 && errno == EINTR); \
93 ALOGW("couldn't open file %s: %s", filename, strerror(errno)); in readFrom()
123 ALOGW("error seeking in ObbFile: %s\n", strerror(errno)); in parseObbFile()
139 ALOGW("couldn't read footer signature: %s\n", strerror(errno)); in parseObbFile()
167 ALOGW("seek %lld failed: %s\n", (long long int)fileOffset, strerror(errno)); in parseObbFile()
175 ALOGW("couldn't allocate scanBuf: %s\n", strerror(errno)); in parseObbFile()
182 ALOGI("couldn't read ObbFile footer: %s\n", strerror(errno)); in parseObbFile()
240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno)); in writeTo()
263 ALOGW("couldn't write signature version: %s\n", strerror(errno)); in writeTo()
280 ALOGW("couldn't write salt: %s\n", strerror(errno)); in writeTo()
[all …]
DBackupHelpers.cpp94 return errno; in read_snapshot_file()
165 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
166 return errno; in write_snapshot_file()
177 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
184 ALOGW("write_snapshot_file error writing filename %s", strerror(errno)); in write_snapshot_file()
193 paddingLen, strerror(errno)); in write_snapshot_file()
293 return errno; in write_update_file()
298 return errno; in write_update_file()
518 err = errno; in write_tarfile()
546 err = errno; in write_tarfile()
[all …]
/frameworks/native/cmds/rawbu/
Dbackup.cpp76 path, strerror(errno)); in wipe()
127 nameBuffer, strerror(errno)); in wipe()
145 newpath, strerror(errno)); in wipe()
163 nameBuffer, strerror(errno)); in wipe()
177 fprintf(stderr, "unable to write int32 (%d bytes): %s\n", res, strerror(errno)); in write_int32()
188 fprintf(stderr, "unable to write int64 (%d bytes): %s\n", res, strerror(errno)); in write_int64()
198 errno = 0; in copy_file()
208 amt, origSize, srcName, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
211 amt, origSize, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
219 writeLen, readLen, destName, strerror(errno)); in copy_file()
[all …]
/frameworks/native/libs/vr/libpdx/
Dservice_dispatcher.cpp28 ALOGE("Failed to create event fd because: %s\n", strerror(errno)); in ServiceDispatcher()
34 ALOGE("Failed to create epoll fd because: %s\n", strerror(errno)); in ServiceDispatcher()
45 ALOGE("Failed to add event fd to epoll fd because: %s\n", strerror(errno)); in ServiceDispatcher()
80 ALOGE("Failed to add service to dispatcher because: %s\n", strerror(errno)); in AddService()
81 return -errno; in AddService()
99 strerror(errno)); in RemoveService()
100 return -errno; in RemoveService()
120 strerror(errno)); in ReceiveAndDispatch()
122 return count < 0 ? -errno : -ETIMEDOUT; in ReceiveAndDispatch()
151 if (count < 0 && errno != EINTR) { in EnterDispatchLoop()
[all …]
/frameworks/base/cmds/idmap/
Didmap.cpp141 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_fd()
146 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_fd()
162 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_path()
167 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_path()
185 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_verify_fd()
190 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_verify_fd()
206 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_scan()
211 ALOGD("error: no write access to %s: %s\n", idmap_dir, strerror(errno)); in maybe_scan()
219 ALOGD("error: no read access to %s: %s\n", dir, strerror(errno)); in maybe_scan()
231 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect()
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel_factory.cpp70 ALOGE("ClientChannelFactory::Connect: socket error: %s", strerror(errno)); in Connect()
71 return ErrorStatus(errno); in Connect()
100 ALOGD("ClientChannelFactory: Connect error %d: %s", errno, in Connect()
101 strerror(errno)); in Connect()
105 if (errno == ECONNREFUSED || (errno == EACCES && max_eaccess-- > 0)) { in Connect()
109 ALOGD("ClientChannelFactory: %s, waiting...", strerror(errno)); in Connect()
112 } else if (errno != ENOENT && errno != ENOTDIR) { in Connect()
119 strerror(errno)); in Connect()
120 return ErrorStatus(errno); in Connect()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp56 MYLOGE("Unable to get AID_SHELL: %s\n", strerror(errno)); in DropRootUser()
66 MYLOGE("prctl(PR_SET_KEEPCAPS) failed: %s\n", strerror(errno)); in DropRootUser()
79 strerror(errno)); in DropRootUser()
85 MYLOGE("Unable to setgroups, aborting: %s\n", strerror(errno)); in DropRootUser()
89 MYLOGE("Unable to setgid, aborting: %s\n", strerror(errno)); in DropRootUser()
93 MYLOGE("Unable to setuid, aborting: %s\n", strerror(errno)); in DropRootUser()
105 MYLOGE("capget failed: %s\n", strerror(errno)); in DropRootUser()
127 capdata[1].effective, strerror(errno)); in DropRootUser()
170 dprintf(out_fd, "*** %s: poll failed: %s\n", path, strerror(errno)); in DumpFileFromFdToFd()
186 dprintf(out_fd, "*** %s: Failed to read from fd: %s", path, strerror(errno)); in DumpFileFromFdToFd()
DDumpstateUtil.cpp52 printf("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout()
60 int saved_errno = errno; in waitpid_with_timeout()
64 printf("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout()
70 errno = saved_errno; in waitpid_with_timeout()
71 if (errno == EAGAIN) { in waitpid_with_timeout()
72 errno = ETIMEDOUT; in waitpid_with_timeout()
74 printf("*** sigtimedwait failed: %s\n", strerror(errno)); in waitpid_with_timeout()
84 printf("*** waitpid failed: %s\n", strerror(errno)); in waitpid_with_timeout()
208 int err = errno; in DumpFileToFd()
292 if (!silent) dprintf(fd, "*** fork: %s\n", strerror(errno)); in RunCommandToFd()
[all …]
/frameworks/native/cmds/bugreport/
Dbugreport.cpp59 printf("Failed to connect to dumpstate service: %s\n", strerror(errno)); in main()
70 printf("WARNING: Cannot set socket timeout: %s\n", strerror(errno)); in main()
80 if (errno == EAGAIN) { in main()
81 errno = ETIMEDOUT; in main()
83 printf("\nBugreport read terminated abnormally (%s).\n", strerror(errno)); in main()
95 bytes_read, bytes_to_send, strerror(errno)); in main()
/frameworks/native/services/vr/performanced/
Dperformance_service_tests.cpp40 const int error = file ? 0 : errno; in OpenTaskFile()
280 << "Failed to set gid: " << strerror(errno); in TEST()
282 << "Failed to set uid: " << strerror(errno); in TEST()
318 << "Failed to restore uid: " << strerror(errno); in TEST()
320 << "Failed to set uid: " << strerror(errno); in TEST()
356 << "Failed to restore uid: " << strerror(errno); in TEST()
358 << "Failed to restore gid: " << strerror(errno); in TEST()
360 << "Failed to set gid: " << strerror(errno); in TEST()
362 << "Failed to set uid: " << strerror(errno); in TEST()
398 << "Failed to restore uid: " << strerror(errno); in TEST()
[all …]
/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp47 << " (" << strerror(errno) << ")"; in GetIfState()
60 << strerror(errno) << ")"; in GetUpState()
76 << strerror(errno) << ")"; in SetUpState()
98 << " (" << strerror(errno) << ")"; in SetUpState()
118 << strerror(errno) << ")"; in SetMacAddress()
131 << " (" << strerror(errno) << ")"; in SetMacAddress()
146 << strerror(errno) << ")"; in GetFactoryMacAddress()
157 << strerror(errno) << ")"; in GetFactoryMacAddress()
167 << " (" << strerror(errno) << ")"; in GetFactoryMacAddress()
/frameworks/native/services/inputflinger/reader/
DTouchVideoDevice.cpp54 ALOGE("Could not open video device %s: %s", devicePath.c_str(), strerror(errno)); in create()
61 ALOGE("VIDIOC_QUERYCAP failed: %s", strerror(errno)); in create()
77 ALOGE("VIDIOC_ENUMINPUT failed: %s", strerror(errno)); in create()
91 ALOGE("VIDIOC_G_FMT failed: %s", strerror(errno)); in create()
105 ALOGE("VIDIOC_REQBUFS failed: %s", strerror(errno)); in create()
122 ALOGE("VIDIOC_QUERYBUF failed: %s", strerror(errno)); in create()
135 ALOGE("%s: map failed: %s", __func__, strerror(errno)); in create()
143 ALOGE("VIDIOC_STREAMON failed: %s", strerror(errno)); in create()
151 ALOGE("VIDIOC_QBUF failed for buffer %zu: %s", i, strerror(errno)); in create()
192 if (errno != EAGAIN) { in readFrame()
[all …]
/frameworks/base/packages/Tethering/jni/
Dandroid_net_util_TetheringUtils.cpp46 "setsockopt(ICMP6_FILTER): %s", strerror(errno)); in android_net_util_setupRaSocket()
59 "setsockopt(IPV6_MULTICAST_HOPS): %s", strerror(errno)); in android_net_util_setupRaSocket()
68 "setsockopt(IPV6_UNICAST_HOPS): %s", strerror(errno)); in android_net_util_setupRaSocket()
77 "setsockopt(IPV6_MULTICAST_LOOP): %s", strerror(errno)); in android_net_util_setupRaSocket()
85 "setsockopt(IPV6_MULTICAST_IF): %s", strerror(errno)); in android_net_util_setupRaSocket()
106 "bind(IN6ADDR_ANY): %s", strerror(errno)); in android_net_util_setupRaSocket()
118 "setsockopt(IPV6_JOIN_GROUP): %s", strerror(errno)); in android_net_util_setupRaSocket()
/frameworks/compile/libbcc/lib/
DFileBase.cpp88 if (errno != EINTR) { in open()
106 } else if (errno != EINTR) { in checkFileIntegrity()
116 } else if (errno != EINTR) { in checkFileIntegrity()
128 mError.assign(errno, std::generic_category()); in detectError()
186 if (errno == EINTR) { in lock()
190 } else if (errno == EWOULDBLOCK) { in lock()
216 } while (errno == EINTR); in unlock()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp390 strerror(errno)); in sendSigChildStatus()
406 int saved_errno = errno; in SigChldHandler()
447 if (pid < 0 && errno != ECHILD) { in SigChldHandler()
449 "Zygote SIGCHLD error in waitpid: %s", strerror(errno)); in SigChldHandler()
458 strerror(errno)); in SigChldHandler()
463 errno = saved_errno; in SigChldHandler()
487 ALOGW("Error setting SIGCHLD handler: %s", strerror(errno)); in SetSignalHandlers()
493 ALOGW("Error setting SIGHUP handler: %s", strerror(errno)); in SetSignalHandlers()
504 ALOGW("Error unsetting SIGCHLD handler: %s", strerror(errno)); in UnsetChldSignalHandler()
521 fail_fn(CREATE_ERROR("setgroups failed: %s, gids.size=%zu", strerror(errno), gids.size())); in SetGids()
[all …]
/frameworks/av/media/mtp/
DMtpFfsHandle.cpp189 errno = 0; in handleEvent()
193 errno = ESHUTDOWN; in handleEvent()
229 errno = ECANCELED; in handleControlRequest()
235 errno = EINVAL; in handleControlRequest()
318 error = errno; in waitEvents()
327 error = errno; in waitEvents()
338 error = errno; in waitEvents()
343 errno = -events[j].res; in waitEvents()
345 error = errno; in waitEvents()
354 errno = error; in waitEvents()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp15 errno = 0; in Open()
18 ALOGE("couldn't open uinput (r=%d errno=%d)", fd_.get(), errno); in Open()
20 return errno; in Open()
24 errno = 0; in Close()
26 return errno; in Close()
31 errno = 0; in Write()
34 ALOGE("write(%zu) failed (r=%zd errno=%d)", count, r, errno); in Write()
36 return errno; in Write()
41 errno = 0; in IoctlSetInt()
44 value, status, errno); in IoctlSetInt()
[all …]
/frameworks/native/cmds/ip-up-vpn/
Dip-up-vpn.c43 errno = EINVAL; in set_address()
71 ALOGE("Cannot create state: %s", strerror(errno)); in main()
97 ALOGE("Cannot bring up %s: %s", interface, strerror(errno)); in main()
105 ALOGE("Cannot set address: %s", strerror(errno)); in main()
113 ALOGE("Cannot set netmask: %s", strerror(errno)); in main()
135 ALOGE("Cannot write state: %s", strerror(errno)); in main()

12345678910>>...12