Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/java/android/net/metrics/
DConnectStats.java60 public void addEvent(int errno, int latencyMs, String ipAddr) { in addEvent() argument
61 if (isSuccess(errno)) { in addEvent()
62 countConnect(errno, ipAddr); in addEvent()
63 countLatency(errno, latencyMs); in addEvent()
65 countError(errno); in addEvent()
69 private void countConnect(int errno, String ipAddr) { in countConnect() argument
71 if (!isNonBlocking(errno)) { in countConnect()
79 private void countLatency(int errno, int ms) { in countLatency() argument
80 if (isNonBlocking(errno)) { in countLatency()
95 private void countError(int errno) { in countError() argument
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp104 errno = EINVAL; in set()
130 ALOGV("settimeofday() failed: %s\n", strerror(errno)); in setTime()
136 errno = ENODEV; in setTime()
143 ALOGV("Unable to open %s: %s\n", rtc_dev.string(), strerror(errno)); in setTime()
149 ALOGV("gmtime_r() failed: %s\n", strerror(errno)); in setTime()
166 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno)); in setTime()
187 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) { in waitForAlarm()
218 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno)); in android_server_AlarmManagerService_setKernelTime()
233 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno)); in android_server_AlarmManagerService_setKernelTimezone()
250 ALOGE("failed to open %s: %s", hctosys_path.string(), strerror(errno)); in rtc_is_hctosys()
[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/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java88 final int errno = native_tagSocketFd(fd, tag, uid); in tagSocketFd() local
89 if (errno < 0) { in tagSocketFd()
92 + uid + ") failed with errno" + errno); in tagSocketFd()
110 final int errno = native_untagSocketFd(fd); in unTagSocketFd() local
111 if (errno < 0) { in unTagSocketFd()
112 Log.w(TAG, "untagSocket(" + fd.getInt$() + ") failed with errno " + errno); in unTagSocketFd()
124 final int errno = native_setCounterSet(counterSet, uid); in setKernelCounterSet() local
125 if (errno < 0) { in setKernelCounterSet()
127 + errno); in setKernelCounterSet()
134 int errno = native_deleteTagData(0, uid); in resetKernelUidStats() local
[all …]
/frameworks/ml/nn/driver/cache/nnCache/
DnnCache.cpp174 if (errno == EEXIST) { in saveBlobCacheLocked()
179 strerror(errno), errno); in saveBlobCacheLocked()
187 strerror(errno), errno); in saveBlobCacheLocked()
197 strerror(errno), errno); in saveBlobCacheLocked()
219 ALOGE("error writing cache file: %s (%d)", strerror(errno), in saveBlobCacheLocked()
220 errno); in saveBlobCacheLocked()
239 if (errno != ENOENT) { in loadBlobCacheLocked()
241 strerror(errno), errno); in loadBlobCacheLocked()
248 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
265 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), in loadBlobCacheLocked()
[all …]
/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()
146 newpath, strerror(errno)); in wipe()
164 nameBuffer, strerror(errno)); in wipe()
178 fprintf(stderr, "unable to write int32 (%d bytes): %s\n", res, strerror(errno)); in write_int32()
189 fprintf(stderr, "unable to write int64 (%d bytes): %s\n", res, strerror(errno)); in write_int64()
199 errno = 0; in copy_file()
209 amt, origSize, srcName, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
212 amt, origSize, errno != 0 ? strerror(errno) : "unexpected EOF"); in copy_file()
220 writeLen, readLen, destName, strerror(errno)); in copy_file()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp104 int saved_errno = errno; in SigChldHandler()
138 if (pid < 0 && errno != ECHILD) { in SigChldHandler()
139 ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno)); in SigChldHandler()
142 errno = saved_errno; in SigChldHandler()
159 ALOGW("Error setting SIGCHLD handler: %s", strerror(errno)); in SetSigChldHandler()
171 ALOGW("Error unsetting SIGCHLD handler: %s", strerror(errno)); in UnsetSigChldHandler()
189 oss << "setgroups failed: " << strerror(errno) << ", gids.size=" << gids.size(); in SetGids()
247 if (errno == EINVAL) { in DropCapabilitiesBoundingSet()
251 ALOGE("prctl(PR_CAPBSET_DROP, %d) failed: %s", i, strerror(errno)); in DropCapabilitiesBoundingSet()
266 ALOGE("capget failed: %s", strerror(errno)); in SetInheritable()
[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/native/opengl/libs/EGL/
Degl_cache.cpp214 if (errno == EEXIST) { in saveBlobCacheLocked()
219 strerror(errno), errno); in saveBlobCacheLocked()
227 strerror(errno), errno); in saveBlobCacheLocked()
237 strerror(errno), errno); in saveBlobCacheLocked()
259 ALOGE("error writing cache file: %s (%d)", strerror(errno), in saveBlobCacheLocked()
260 errno); in saveBlobCacheLocked()
279 if (errno != ENOENT) { in loadBlobCacheLocked()
281 strerror(errno), errno); in loadBlobCacheLocked()
288 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
305 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), in loadBlobCacheLocked()
[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/bugreport/
Dbugreport.cpp51 printf("Failed to connect to dumpstate service: %s\n", strerror(errno)); in main()
62 printf("WARNING: Cannot set socket timeout: %s\n", strerror(errno)); in main()
72 if (errno == EAGAIN) { in main()
73 errno = ETIMEDOUT; in main()
75 printf("\nBugreport read terminated abnormally (%s).\n", strerror(errno)); in main()
87 bytes_read, bytes_to_send, strerror(errno)); in main()
/frameworks/opt/net/wifi/libwifi_system/
Dsupplicant_manager.cpp57 if ((ret == 0) || (errno == EACCES)) { in ensure_config_file_exists()
60 << strerror(errno); in ensure_config_file_exists()
64 } else if (errno != ENOENT) { in ensure_config_file_exists()
66 << strerror(errno); in ensure_config_file_exists()
77 int errnoSystem = errno; in ensure_config_file_exists()
81 int errnoVendor = errno; in ensure_config_file_exists()
96 << strerror(errno); in ensure_config_file_exists()
103 << "\": " << strerror(errno); in ensure_config_file_exists()
118 << " to 0660: " << strerror(errno); in ensure_config_file_exists()
233 if ((ret == 0) || (errno == EACCES)) { in EnsureEntropyFileExists()
/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/native/cmds/dumpstate/
DDumpstateUtil.cpp51 printf("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout()
59 int saved_errno = errno; in waitpid_with_timeout()
62 printf("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout()
68 errno = saved_errno; in waitpid_with_timeout()
69 if (errno == EAGAIN) { in waitpid_with_timeout()
70 errno = ETIMEDOUT; in waitpid_with_timeout()
72 printf("*** sigtimedwait failed: %s\n", strerror(errno)); in waitpid_with_timeout()
82 printf("*** waitpid failed: %s\n", strerror(errno)); in waitpid_with_timeout()
181 int err = errno; in DumpFileToFd()
265 if (!silent) dprintf(fd, "*** fork: %s\n", strerror(errno)); in RunCommandToFd()
[all …]
DDumpstateInternal.cpp53 MYLOGE("Unable to get AID_SHELL: %s\n", strerror(errno)); in DropRootUser()
63 MYLOGE("prctl(PR_SET_KEEPCAPS) failed: %s\n", strerror(errno)); in DropRootUser()
75 strerror(errno)); in DropRootUser()
81 MYLOGE("Unable to setgroups, aborting: %s\n", strerror(errno)); in DropRootUser()
85 MYLOGE("Unable to setgid, aborting: %s\n", strerror(errno)); in DropRootUser()
89 MYLOGE("Unable to setuid, aborting: %s\n", strerror(errno)); in DropRootUser()
106 MYLOGE("capset failed: %s\n", strerror(errno)); in DropRootUser()
155 dprintf(out_fd, "*** %s: select failed: %s\n", path, strerror(errno)); in DumpFileFromFdToFd()
171 dprintf(out_fd, "*** %s: Failed to read from fd: %s", path, strerror(errno)); in DumpFileFromFdToFd()
/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/native/android/
Dnet.c48 errno = EINVAL; in android_setsocknetwork()
54 errno = -rval; in android_setsocknetwork()
63 errno = EINVAL; in android_setprocnetwork()
69 errno = -rval; in android_setprocnetwork()
80 errno = EINVAL; in android_getaddrinfofornetwork()
/frameworks/native/cmds/atrace/
Datrace.cpp290 strerror(errno), errno); in truncateFile()
305 strerror(errno), errno); in _writeStr()
313 strerror(errno), errno); in _writeStr()
341 strerror(errno), errno); in writeClockSyncMarker()
348 fprintf(stderr, "error writing clock sync marker %s (%d)\n", strerror(errno), errno); in writeClockSyncMarker()
354 fprintf(stderr, "error writing clock sync marker %s (%d)\n", strerror(errno), errno); in writeClockSyncMarker()
659 strerror(errno), errno); in verifyKernelTraceFuncs()
893 strerror(errno), errno); in streamTrace()
904 bytes_read, errno, strerror(errno)); in streamTrace()
918 strerror(errno), errno); in dumpTrace()
[all …]
/frameworks/base/cmds/incidentd/src/
DFdBuffer.cpp88 return -errno; in read()
91 return errno != 0 ? -errno : UNKNOWN_ERROR; in read()
95 if (errno == EAGAIN || errno == EWOULDBLOCK) { in read()
98 return -errno; in read()
/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()
104 ALOGE("Cannot set address: %s", strerror(errno)); in main()
111 ALOGE("Cannot set netmask: %s", strerror(errno)); in main()
131 ALOGE("Cannot write state: %s", strerror(errno)); in main()
/frameworks/av/services/oboeservice/
DSharedMemoryProxy.cpp45 ALOGE("SharedMemoryProxy::open() ashmem_create_region() failed %d", errno); in open()
50 ALOGE("SharedMemoryProxy::open() ashmem_set_prot_region() failed %d", errno); in open()
63 mOriginalFileDescriptor, errno, strerror(errno)); in open()
73 ALOGE("SharedMemoryProxy::open() proxy mmap(%d) failed %d", mProxyFileDescriptor, errno); in open()
/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 …]

1234567891011