/aosp14/frameworks/base/core/java/android/net/metrics/ |
H A D | ConnectStats.java | 65 if (isSuccess(errno)) { in addEvent() 66 countConnect(errno, ipAddr); in addEvent() 67 countLatency(errno, latencyMs); in addEvent() 70 countError(errno); in addEvent() 77 if (!isNonBlocking(errno)) { in countConnect() 86 if (isNonBlocking(errno)) { in countLatency() 101 private void countError(int errno) { in countError() argument 103 errnos.put(errno, newcount); in countError() 107 return (errno == 0) || isNonBlocking(errno); in isSuccess() 110 static boolean isNonBlocking(int errno) { in isNonBlocking() argument [all …]
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | FdBuffer.cpp | 86 return -errno; in read() 90 return errno != 0 ? -errno : UNKNOWN_ERROR; in read() 95 if (errno == EAGAIN || errno == EWOULDBLOCK) { in read() 132 return -errno; in readFully() 192 return -errno; in readProcessedDataInStream() 203 return errno != 0 ? -errno : UNKNOWN_ERROR; in readProcessedDataInStream() 216 if (!(errno == EAGAIN || errno == EWOULDBLOCK)) { in readProcessedDataInStream() 218 return -errno; in readProcessedDataInStream() 238 if (!(errno == EAGAIN || errno == EWOULDBLOCK)) { in readProcessedDataInStream() 267 if (!(errno == EAGAIN || errno == EWOULDBLOCK)) { in readProcessedDataInStream() [all …]
|
H A D | incidentd_util.cpp | 112 *status = -errno; in fork_execute_cmd() 128 _exit(errno); // always exits with failure if any in fork_execute_cmd() 133 *status = -errno; in fork_execute_cmd() 189 ALOGW("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout() 211 int saved_errno = errno; in waitpid_with_timeout() 215 ALOGW("*** sigprocmask failed: %s\n", strerror(errno)); in waitpid_with_timeout() 221 errno = saved_errno; in waitpid_with_timeout() 222 if (errno == EAGAIN) { in waitpid_with_timeout() 223 errno = ETIMEDOUT; in waitpid_with_timeout() 225 ALOGW("*** sigtimedwait failed: %s\n", strerror(errno)); in waitpid_with_timeout() [all …]
|
/aosp14/system/core/libcutils/ |
H A D | fs.cpp | 53 if (errno == ENOENT) { in fs_prepare_path_impl() 91 if (errno != EEXIST) { in fs_prepare_path_impl() 130 ALOGE("Failed to read %s: %s", path, strerror(errno)); in fs_read_atomic_int() 136 ALOGE("Failed to read %s: %s", path, strerror(errno)); in fs_read_atomic_int() 204 ALOGE("Failed to open(/): %s", strerror(errno)); in fs_mkdirs() 205 return -errno; in fs_mkdirs() 224 if (errno == ENOENT) { in fs_mkdirs() 227 if (errno == EEXIST) { in fs_mkdirs() 231 res = -errno; in fs_mkdirs() 237 res = -errno; in fs_mkdirs() [all …]
|
H A D | ashmem-dev.cpp | 168 ALOGE("memfd_create failed: %s, no memfd support.\n", strerror(errno)); in __has_memfd_support() 217 int saved_errno = errno; in __ashmem_open_locked() 230 int save_errno = errno; in __ashmem_open_locked() 232 errno = save_errno; in __ashmem_open_locked() 237 errno = ENOTTY; in __ashmem_open_locked() 303 errno = ENOTTY; in __ashmem_is_ashmem() 309 if (result == -1 && errno == ENOTTY) __ashmem_is_ashmem(fd, 1); in __ashmem_check_failure() 402 save_errno = errno; in ashmem_create_region() 404 errno = save_errno; in ashmem_create_region() 421 errno = EINVAL; // inline with ashmem error code, if already in in memfd_set_prot_region() [all …]
|
/aosp14/frameworks/base/libs/androidfw/ |
H A D | ObbFile.cpp | 68 } 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() 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() 292 ALOGW("couldn't write package name: %s\n", strerror(errno)); in writeTo() [all …]
|
H A D | BackupHelpers.cpp | 94 return errno; in read_snapshot_file() 166 return 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() 785 return errno; in WriteFile() 804 return errno; in WriteFile() 841 return errno; in write_text_file() 848 return errno; in write_text_file() [all …]
|
/aosp14/frameworks/base/native/android/ |
H A D | net.c | 55 errno = EINVAL; in android_setsocknetwork() 61 errno = -rval; in android_setsocknetwork() 70 errno = EINVAL; in android_setprocnetwork() 76 errno = -rval; in android_setprocnetwork() 84 errno = EINVAL; in android_getprocnetwork() 96 errno = EINVAL; in android_setprocdns() 102 errno = -rval; in android_setprocdns() 110 errno = EINVAL; in android_getprocdns() 117 errno = -rval; in android_getprocdns() 130 errno = EINVAL; in android_getaddrinfofornetwork()
|
/aosp14/frameworks/base/apex/jobscheduler/service/jni/ |
H A D | com_android_server_alarm_AlarmManagerService.cpp | 105 errno = EINVAL; in set() 125 errno = EINVAL; in getTime() 148 if (err < 0 && errno != EAGAIN) { in waitForAlarm() 182 if (errno == EINVAL) { in log_timerfd_create_error() 203 ALOGE("timerfd_create(%u) failed: %s", id, strerror(errno)); in log_timerfd_create_error() 238 ALOGE("epoll_ctl(EPOLL_CTL_ADD) failed: %s", strerror(errno)); in android_server_alarm_AlarmManagerService_init() 250 ALOGE("timerfd_settime() failed: %s", strerror(errno)); in android_server_alarm_AlarmManagerService_init() 292 static_cast<long long>(nanoseconds), strerror(errno)); in android_server_alarm_AlarmManagerService_set() 294 return result >= 0 ? 0 : errno; in android_server_alarm_AlarmManagerService_set() 305 } while (result < 0 && errno == EINTR); in android_server_alarm_AlarmManagerService_waitForAlarm() [all …]
|
/aosp14/system/core/trusty/storage/proxy/ |
H A D | storage.c | 214 rc = errno; in storage_file_delete() 215 if (errno == ENOENT) { in storage_file_delete() 341 rc = errno; in storage_file_open() 342 if (errno == EEXIST || errno == ENOENT) { in storage_file_open() 400 rc = errno; in storage_file_close() 409 rc = errno; in storage_file_close() 439 rc = errno; in storage_file_write() 486 rc = errno; in storage_file_read() 518 rc = errno; in storage_file_get_size() 549 rc = errno; in storage_file_set_size() [all …]
|
/aosp14/system/core/run-as/ |
H A D | run-as.cpp | 76 error(1, errno, "couldn't stat %s", path); in check_directory() 149 error(1, errno, "getgroups failed"); in get_supplementary_gids() 154 error(1, errno, "getgroups failed"); in get_supplementary_gids() 195 if (setegid(AID_PACKAGE_INFO) == -1) error(1, errno, "setegid(AID_PACKAGE_INFO) failed"); in main() 200 error(1, errno, "packagelist_parse failed"); in main() 207 error(1, errno, "asprintf failed"); in main() 214 if (setegid(old_egid) == -1) error(1, errno, "couldn't restore egid"); in main() 250 error(1, errno, "couldn't set SELinux security context '%s'", seinfo.c_str()); in main() 255 error(1, errno, "couldn't chdir to package's data directory '%s'", info.data_dir); in main() 272 error(1, errno, "exec failed for %s", argv[cmd_argv_offset]); in main() [all …]
|
/aosp14/system/core/debuggerd/client/ |
H A D | debuggerd_client.cpp | 100 log_error(fd, errno, "failed to read \"%s\"", path.c_str()); in get_wchan_data() 149 log_error(output_fd, errno, "failed to set receive timeout"); in debuggerd_trigger_dump() 153 log_error(output_fd, errno, "failed to set send timeout"); in debuggerd_trigger_dump() 161 log_error(output_fd, errno, "failed to create socket"); in debuggerd_trigger_dump() 169 log_error(output_fd, errno, "failed to connect to tombstoned"); in debuggerd_trigger_dump() 181 log_error(output_fd, errno, "failed to create pipe"); in debuggerd_trigger_dump() 196 log_error(output_fd, errno, "failed to set pipe buffer size"); in debuggerd_trigger_dump() 268 if (errno == EINTR) { in debuggerd_trigger_dump() 271 log_error(output_fd, errno, "error while polling"); in debuggerd_trigger_dump() 285 log_error(output_fd, errno, "error while reading"); in debuggerd_trigger_dump() [all …]
|
/aosp14/system/core/libdiskconfig/ |
H A D | diskutils.c | 46 ALOGE("Could not open %s for reading (errno=%d).", src, errno); in write_raw_image() 52 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); in write_raw_image() 65 if (errno == EINTR) in write_raw_image() 67 ALOGE("Error (%d) while reading from '%s'", errno, src); in write_raw_image() 86 if (errno == EINTR) in write_raw_image() 88 ALOGE("Error (%d) while writing to '%s'", errno, dst); in write_raw_image()
|
/aosp14/frameworks/base/core/jni/ |
H A D | com_android_internal_security_VerityUtils.cpp | 43 return errno; in enableFsverityForFd() 54 return errno; in enableFsverityForFd() 76 return -errno; in statxForFsverity() 88 return -errno; in statxForFsverity() 94 return -errno; in statxForFsverity() 111 return -errno; in measureFsverity() 114 return -errno; in measureFsverity()
|
H A D | com_android_internal_os_Zygote.cpp | 434 int saved_errno = errno; in SigChldHandler() 492 errno = saved_errno; in SigChldHandler() 616 if (errno != EINVAL) { in EnableDebugger() 671 if (errno == EINVAL) { in DropCapabilitiesBoundingSet() 727 if (errno != 0) { in SetSchedulerPolicy() 733 if (errno != 0) { in SetSchedulerPolicy() 751 return -errno; in UnmountTree() 910 if (errno != 0) { in SetThreadName() 1083 if (errno != ENOENT) { in getAppDataDirName() 1253 strerror(errno))); in isolateAppData() [all …]
|
/aosp14/system/core/fastboot/ |
H A D | usb_windows.cpp | 109 errno = GetLastError(); in do_usb_open() 149 errno = GetLastError(); in do_usb_open() 151 SetLastError(errno); in do_usb_open() 169 errno = GetLastError(); in Write() 170 DBG("AdbWriteEndpointSync returned %d, errno: %d\n", ret, errno); in Write() 173 if (errno == ERROR_INVALID_HANDLE) in Write() 190 DBG("usb_write failed: %d\n", errno); in Write() 207 errno = GetLastError(); in Read() 211 if (errno == ERROR_INVALID_HANDLE) in Read() 226 DBG("usb_read failed: %d\n", errno); in Read() [all …]
|
/aosp14/frameworks/base/services/core/jni/ |
H A D | com_android_server_connectivity_Vpn.cpp | 69 ALOGE("Cannot allocate TUN: %s", strerror(errno)); in create_interface() 76 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface() 83 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface() 98 ALOGE("Cannot get interface name: %s", strerror(errno)); in get_interface_name() 110 ALOGE("Cannot get index of %s: %s", name, strerror(errno)); in get_interface_index() 151 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses() 166 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses() 199 if (ioctl(inet4, SIOCSIFFLAGS, &ifr4) && errno != ENODEV) { in reset_interface() 200 ALOGE("Cannot reset %s: %s", name, strerror(errno)); in reset_interface() 212 if (ioctl(inet4, SIOCGIFFLAGS, &ifr4) && errno != ENODEV) { in check_interface() [all …]
|
/aosp14/system/core/libsysutils/src/ |
H A D | SocketListener.cpp | 80 errno = EINVAL; in startListener() 85 mSocketName, strerror(errno)); in startListener() 93 SLOGE("Unable to listen on socket (%s)", strerror(errno)); in startListener() 99 SLOGE("pipe failed (%s)", strerror(errno)); in startListener() 104 SLOGE("pthread_create (%s)", strerror(errno)); in startListener() 117 SLOGE("Error writing to control pipe (%s)", strerror(errno)); in stopListener() 123 SLOGE("Error joining to listener thread (%s)", strerror(errno)); in stopListener() 170 SLOGE("poll failed (%s) mListen=%d", strerror(errno), mListen); in runListener() 186 SLOGE("accept failed (%s)", strerror(errno)); in runListener() 264 SLOGW("Error sending broadcast (%s)", strerror(errno)); in sendBroadcast()
|
/aosp14/system/core/fs_mgr/libsnapshot/ |
H A D | snapshot_reader.cpp | 30 errno = EINVAL; in Open() 35 errno = EINVAL; in Open() 40 errno = EINVAL; in Write() 45 errno = EINVAL; in BlkIoctl() 119 errno = EINVAL; in GetSourceFd() 195 errno = 0; in Read() 250 errno = EINVAL; in ReadBlock() 277 errno = EIO; in ReadBlock() 297 errno = EIO; in ReadBlock() 305 errno = EINVAL; in ReadBlock() [all …]
|
/aosp14/frameworks/base/tools/aapt/tests/ |
H A D | CrunchCache_test.cpp | 22 errno += ((got == expected) ? 0 : 1); in expectEqual() 27 errno = 0; in main() 60 errno += ((result > 0) ? 0 : 1); in main() 78 if (errno == 0) in main() 81 cout << errno << " TESTS FAILED" << endl; in main()
|
H A D | FileFinder_test.cpp | 47 errno = 0; in main() 69 errno++; in main() 95 if(errno == 0) { in main() 98 cout << errno << " TESTS FAILED" << endl; in main() 100 return errno; in main()
|
/aosp14/system/core/libutils/ |
H A D | Tokenizer.cpp | 55 result = -errno; in open() 56 ALOGE("Error opening file '%s': %s", filename.string(), strerror(errno)); in open() 60 result = -errno; in open() 61 ALOGE("Error getting size of file '%s': %s", filename.string(), strerror(errno)); in open() 82 result = -errno; in open() 83 ALOGE("Error reading file '%s': %s", filename.string(), strerror(errno)); in open()
|
H A D | Looper.cpp | 162 strerror(errno)); in rebuildEpollLocked() 170 request.fd, strerror(errno)); in rebuildEpollLocked() 266 if (errno == EINTR) { in pollInner() 269 ALOGW("Poll failed with an unexpected error: %s", strerror(errno)); in pollInner() 416 if (errno != EAGAIN) { in wake() 418 mWakeEventFd.get(), nWrite, strerror(errno)); in wake() 486 if (errno == ENOENT) { in addFd() 503 this, strerror(errno)); in addFd() 508 fd, strerror(errno)); in addFd() 553 if (errno == EBADF || errno == ENOENT) { in removeSequenceNumberLocked() [all …]
|
/aosp14/system/core/libsparse/ |
H A D | append2simg.cpp | 78 fprintf(stderr, "Couldn't open output file (%s)\n", strerror(errno)); in main() 90 fprintf(stderr, "Couldn't open input file (%s)\n", strerror(errno)); in main() 96 fprintf(stderr, "Couldn't get input file length (%s)\n", strerror(errno)); in main() 113 fprintf(stderr, "Couldn't open temporary file (%s)\n", strerror(errno)); in main() 130 fprintf(stderr, "Failed to rename temporary file (%s)\n", strerror(errno)); in main()
|
/aosp14/system/core/trusty/libtrusty/ |
H A D | trusty.c | 38 rc = -errno; in tipc_connect() 39 ALOGE("%s: cannot open tipc device \"%s\": %s\n", __func__, dev_name, strerror(errno)); in tipc_connect() 45 rc = -errno; in tipc_connect() 46 ALOGE("%s: can't connect to tipc service \"%s\" (err=%d)\n", __func__, srv_name, errno); in tipc_connect()
|