Home
last modified time | relevance | path

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

1234567

/frameworks/native/cmds/dumpstate/
Dutils.c70 printf("Failed to open /data/system/users (%s)\n", strerror(errno)); in for_each_userid()
90 printf("Failed to open /proc (%s)\n", strerror(errno)); in __for_each_pid()
137 printf("Failed to open %s (%s)\n", taskpath, strerror(errno)); in for_each_tid_helper()
190 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_wchan()
195 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); in show_wchan()
269 printf("*** %s: select failed: %s\n", path, strerror(errno)); in _dump_file_from_fd()
286 printf("*** %s: Failed to read from fd: %s", path, strerror(errno)); in _dump_file_from_fd()
304 int err = errno; in dump_file()
337 retval = -errno; in dump_files()
338 fprintf(stderr, "%s: %s\n", dir, strerror(errno)); in dump_files()
[all …]
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java80 final int errno = native_tagSocketFd(fd, tag, uid); in tagSocketFd() local
81 if (errno < 0) { in tagSocketFd()
84 + uid + ") failed with errno" + errno); in tagSocketFd()
102 final int errno = native_untagSocketFd(fd); in unTagSocketFd() local
103 if (errno < 0) { in unTagSocketFd()
104 Log.w(TAG, "untagSocket(" + fd.getInt$() + ") failed with errno " + errno); in unTagSocketFd()
116 final int errno = native_setCounterSet(counterSet, uid); in setKernelCounterSet() local
117 if (errno < 0) { in setKernelCounterSet()
119 + errno); in setKernelCounterSet()
126 int errno = native_deleteTagData(0, uid); in resetKernelUidStats() local
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp126 ALOGV("ANDROID_ALARM_SET_RTC ioctl failed: %s\n", strerror(errno)); in setTime()
146 errno = EINVAL; in set()
172 ALOGV("settimeofday() failed: %s\n", strerror(errno)); in setTime()
178 errno = ENODEV; in setTime()
185 ALOGV("Unable to open %s: %s\n", rtc_dev.string(), strerror(errno)); in setTime()
191 ALOGV("gmtime_r() failed: %s\n", strerror(errno)); in setTime()
208 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno)); in setTime()
229 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) { in waitForAlarm()
260 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno)); in android_server_AlarmManagerService_setKernelTime()
275 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno)); in android_server_AlarmManagerService_setKernelTimezone()
[all …]
Dcom_android_server_connectivity_Vpn.cpp67 ALOGE("Cannot allocate TUN: %s", strerror(errno)); in create_interface()
74 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface()
81 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno)); in create_interface()
96 ALOGE("Cannot get interface name: %s", strerror(errno)); in get_interface_name()
108 ALOGE("Cannot get index of %s: %s", name, strerror(errno)); in get_interface_index()
149 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
164 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
171 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR; in set_addresses()
182 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno)); in set_addresses()
197 if (ioctl(inet4, SIOCSIFFLAGS, &ifr4) && errno != ENODEV) { in reset_interface()
[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.cpp95 return errno; in read_snapshot_file()
166 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
167 return errno; in write_snapshot_file()
178 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
185 ALOGW("write_snapshot_file error writing filename %s", strerror(errno)); in write_snapshot_file()
194 paddingLen, strerror(errno)); in write_snapshot_file()
294 return errno; in write_update_file()
299 return errno; in write_update_file()
517 err = errno; in write_tarfile()
545 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.cpp118 if (pid < 0 && errno != ECHILD) { in SigChldHandler()
119 ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno)); in SigChldHandler()
137 ALOGW("Error setting SIGCHLD handler: %s", strerror(errno)); in SetSigChldHandler()
149 ALOGW("Error unsetting SIGCHLD handler: %s", strerror(errno)); in UnsetSigChldHandler()
218 if (errno == EINVAL) { in DropCapabilitiesBoundingSet()
249 errno = -set_sched_policy(0, SP_DEFAULT); in SetSchedulerPolicy()
250 if (errno != 0) { in SetSchedulerPolicy()
261 ALOGE("Error opening /proc/mounts: %s", strerror(errno)); in UnmountTree()
262 return -errno; in UnmountTree()
278 ALOGW("Failed to unmount %s: %s", path.c_str(), strerror(errno)); in UnmountTree()
[all …]
Dandroid_net_LocalSocketImpl.cpp76 jniThrowIOException(env, errno); in socket_connect_local()
110 jniThrowIOException(env, errno); in socket_bind_local()
131 jniThrowIOException(env, errno); in socket_listen()
167 } while (ret < 0 && errno == EINTR); in socket_accept()
170 jniThrowIOException(env, errno); in socket_accept()
197 jniThrowIOException(env, errno); in socket_shutdown()
277 jniThrowIOException(env, errno); in socket_getOption()
348 jniThrowIOException(env, errno); in socket_setOption()
371 jniThrowIOException(env, errno); in socket_pending()
396 jniThrowIOException(env, errno); in socket_available()
[all …]
Dandroid_server_NetworkManagementSocketTagger.cpp45 return (jint)-errno; in QTagUid_tagSocketFd()
61 return (jint)-errno; in QTagUid_untagSocketFd()
71 return (jint)-errno; in QTagUid_setCounterSet()
81 return (jint)-errno; in QTagUid_deleteTagData()
/frameworks/native/opengl/libs/EGL/
Degl_cache.cpp227 if (errno == EEXIST) { in saveBlobCacheLocked()
232 strerror(errno), errno); in saveBlobCacheLocked()
240 strerror(errno), errno); in saveBlobCacheLocked()
250 strerror(errno), errno); in saveBlobCacheLocked()
272 ALOGE("error writing cache file: %s (%d)", strerror(errno), in saveBlobCacheLocked()
273 errno); in saveBlobCacheLocked()
292 if (errno != ENOENT) { in loadBlobCacheLocked()
294 strerror(errno), errno); in loadBlobCacheLocked()
301 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
317 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), in loadBlobCacheLocked()
[all …]
/frameworks/compile/libbcc/lib/Support/
DFileBase.cpp91 if (errno != EINTR) { in open()
109 } else if (errno != EINTR) { in checkFileIntegrity()
119 } else if (errno != EINTR) { in checkFileIntegrity()
131 mError.assign(errno, std::generic_category()); in detectError()
189 if (errno == EINTR) { in lock()
193 } else if (errno == EWOULDBLOCK) { in lock()
219 } while (errno == EINTR); in unlock()
255 } else if (errno != EINTR) { in getSize()
274 } while (errno == EINTR); in seek()
290 } while (errno == EINTR); in tell()
DOutputFile.cpp46 } else if ((errno == EAGAIN) || (errno == EINTR)) { in write()
68 } while (errno == EINTR); in truncate()
80 if (errno != EINTR) { in dup()
/frameworks/native/cmds/bugreport/
Dbugreport.cpp46 printf("Failed to connect to dumpstate service: %s\n", strerror(errno)); in main()
57 printf("WARNING: Cannot set socket timeout: %s\n", strerror(errno)); in main()
67 if (errno == EAGAIN) { in main()
68 errno = ETIMEDOUT; in main()
70 printf("\nBugreport read terminated abnormally (%s).\n", strerror(errno)); in main()
82 bytes_read, bytes_to_send, strerror(errno)); in main()
/frameworks/base/cmds/idmap/
Didmap.cpp136 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_fd()
141 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_fd()
157 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_path()
162 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_path()
178 ALOGD("error: no read access to %s: %s\n", overlay_dir, strerror(errno)); in maybe_scan()
183 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_scan()
188 ALOGD("error: no write access to %s: %s\n", idmap_dir, strerror(errno)); in maybe_scan()
199 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect()
/frameworks/native/cmds/atrace/
Datrace.cpp221 strerror(errno), errno); in truncateFile()
235 strerror(errno), errno); in _writeStr()
243 strerror(errno), errno); in _writeStr()
368 strerror(errno), errno); in isTraceClock()
377 strerror(errno), errno); in isTraceClock()
493 strerror(errno), errno); in verifyKernelTraceFuncs()
502 strerror(errno), errno); in verifyKernelTraceFuncs()
659 strerror(errno), errno); in dumpTrace()
691 strerror(errno), errno); in dumpTrace()
707 strerror(errno), errno); in dumpTrace()
[all …]
/frameworks/native/cmds/installd/
Dcommands.cpp57 ALOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno)); in install()
61 ALOGE("cannot chmod dir '%s': %s\n", pkgdir, strerror(errno)); in install()
67 ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); in install()
69 return -errno; in install()
73 ALOGE("cannot chown dir '%s': %s\n", pkgdir, strerror(errno)); in install()
103 ALOGE("cannot rename dir '%s' to '%s': %s\n", oldpkgdir, newpkgdir, strerror(errno)); in renamepkg()
104 return -errno; in renamepkg()
129 ALOGE("cannot chmod dir '%s': %s\n", pkgdir, strerror(errno)); in fix_uid()
131 return -errno; in fix_uid()
134 ALOGE("cannot chown dir '%s': %s\n", pkgdir, strerror(errno)); in fix_uid()
[all …]
Dutils.cpp261 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
267 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
277 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
282 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
300 ALOGE("Couldn't opendir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
301 return -errno; in delete_dir_contents()
307 ALOGE("Couldn't rmdir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
321 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
326 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
359 ALOGE("Couldn't fdopendir: %s\n", strerror(errno)); in _copy_dir_files()
[all …]
/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/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/base/tools/aapt/tests/
DCrunchCache_test.cpp22 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()
DFileFinder_test.cpp47 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()
/frameworks/base/cmds/app_process/
Dapp_main.cpp161 "Error constructing dalvik cache : %s", strerror(errno)); in maybeCreateDalvikCache()
164 LOG_ALWAYS_FATAL_IF((result < 0 && errno != EEXIST), in maybeCreateDalvikCache()
165 "Error creating cache dir %s : %s", dalvikCacheDir, strerror(errno)); in maybeCreateDalvikCache()
171 … LOG_ALWAYS_FATAL_IF((result < 0), "Error changing dalvik-cache ownership : %s", strerror(errno)); in maybeCreateDalvikCache()
175 "Error changing dalvik-cache permissions : %s", strerror(errno)); in maybeCreateDalvikCache()
191 if (errno != EINVAL) { in main()
192 LOG_ALWAYS_FATAL("PR_SET_NO_NEW_PRIVS failed: %s", strerror(errno)); in main()
/frameworks/base/libs/usb/tests/accessorytest/
Dhid.c102 fprintf(stderr, "ACCESSORY_SET_HID_REPORT_DESC returned %d errno %d\n", ret, errno); in hid_thread()
111 fprintf(stderr, "read failed, errno: %d, fd: %d\n", errno, fd); in hid_thread()
117 if (ret < 0 && errno != EPIPE) { in hid_thread()
118 fprintf(stderr, "ACCESSORY_SEND_HID_EVENT returned %d errno: %d\n", ret, errno); in hid_thread()
169 if(errno == EINTR) in inotify_thread()
171 fprintf(stderr, "could not get event, %s\n", strerror(errno)); in inotify_thread()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp42 ALOGE("clock_gettime(CLOCK_THREAD_CPUTIME_ID) errno=%d", errno); in setEnabled()
50 ALOGE("clock_gettime(CLOCK_MONOTONIC) errno=%d", errno); in setEnabled()
61 ALOGE("clock_gettime(CLOCK_THREAD_CPUTIME_ID) errno=%d", errno); in setEnabled()
104 ALOGE("clock_gettime(CLOCK_THREAD_CPUTIME_ID) errno=%d", errno); in sample()
135 ALOGE("clock_gettime(CLOCK_MONOTONIC) errno=%d", errno); in elapsed()
157 ALOGE("clock_gettime(CLOCK_MONOTONIC) errno=%d", errno); in resetElapsed()

1234567