Home
last modified time | relevance | path

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

123456

/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/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", 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.cpp98 return errno; in read_snapshot_file()
169 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
170 return errno; in write_snapshot_file()
181 ALOGW("write_snapshot_file error writing header %s", strerror(errno)); in write_snapshot_file()
188 ALOGW("write_snapshot_file error writing filename %s", strerror(errno)); in write_snapshot_file()
197 paddingLen, strerror(errno)); in write_snapshot_file()
299 return errno; in write_update_file()
304 return errno; in write_update_file()
527 err = errno; in write_tarfile()
542 err = errno; in write_tarfile()
[all …]
Dmisc.cpp41 if (errno == ENOENT || errno == ENOTDIR) in getFileType()
45 errno, fileName); in getFileType()
/frameworks/native/cmds/dumpstate/
Dutils.c64 printf("Failed to open /data/system/users (%s)\n", strerror(errno)); in for_each_userid()
84 printf("Failed to open /proc (%s)\n", strerror(errno)); in __for_each_pid()
131 printf("Failed to open %s (%s)\n", taskpath, strerror(errno)); in for_each_tid_helper()
184 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_wchan()
189 printf("Failed to read '%s' (%s)\n", path, strerror(errno)); in show_wchan()
257 int err = errno; in dump_file()
312 printf("*** fork: %s\n", strerror(errno)); in run_command()
342 printf("*** exec(%s): %s\n", command, strerror(errno)); in run_command()
407 fprintf(stderr, "android_get_control_socket(%s): %s\n", service, strerror(errno)); in redirect_to_socket()
411 fprintf(stderr, "listen(control socket): %s\n", strerror(errno)); in redirect_to_socket()
[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/native/cmds/installd/
Dcommands.c61 ALOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno)); in install()
65 ALOGE("cannot chmod dir '%s': %s\n", pkgdir, strerror(errno)); in install()
71 if (errno != ENOENT) { in install()
72 ALOGE("couldn't stat lib dir: %s\n", strerror(errno)); in install()
90 ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno)); in install()
93 return -errno; in install()
98 strerror(errno)); in install()
104 ALOGE("cannot chown dir '%s': %s\n", pkgdir, strerror(errno)); in install()
137 ALOGE("cannot rename dir '%s' to '%s': %s\n", oldpkgdir, newpkgdir, strerror(errno)); in renamepkg()
138 return -errno; in renamepkg()
[all …]
Dutils.c253 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
259 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
269 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
274 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
292 ALOGE("Couldn't opendir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
293 return -errno; in delete_dir_contents()
299 ALOGE("Couldn't rmdir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
313 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
318 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
351 ALOGE("Couldn't fdopendir: %s\n", strerror(errno)); in _copy_dir_files()
[all …]
/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/base/core/jni/
Dcom_android_internal_os_ZygoteInit.cpp43 return errno; in com_android_internal_os_ZygoteInit_setreuid()
56 return errno; in com_android_internal_os_ZygoteInit_setregid()
69 return errno; in com_android_internal_os_ZygoteInit_setpgid()
85 jniThrowIOException(env, errno); in com_android_internal_os_ZygoteInit_getpgid()
105 } while (err < 0 && errno == EINTR); in com_android_internal_os_ZygoteInit_reopenStdio()
115 } while (err < 0 && errno == EINTR); in com_android_internal_os_ZygoteInit_reopenStdio()
125 } while (err < 0 && errno == EINTR); in com_android_internal_os_ZygoteInit_reopenStdio()
144 jniThrowIOException(env, errno); in com_android_internal_os_ZygoteInit_setCloseOnExec()
157 jniThrowIOException(env, errno); in com_android_internal_os_ZygoteInit_setCloseOnExec()
203 } while (err < 0 && errno == EINTR); in com_android_internal_os_ZygoteInit_selectReadable()
[all …]
Dcom_android_internal_os_Zygote.cpp115 if (pid < 0 && errno != ECHILD) { in SigChldHandler()
116 ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno)); in SigChldHandler()
134 ALOGW("Error setting SIGCHLD handler: %d", errno); in SetSigChldHandler()
146 ALOGW("Error unsetting SIGCHLD handler: %d", errno); in UnsetSigChldHandler()
214 if (errno == EINVAL) { in DropCapabilitiesBoundingSet()
245 errno = -set_sched_policy(0, SP_DEFAULT); in SetSchedulerPolicy()
246 if (errno != 0) { in SetSchedulerPolicy()
261 ALOGW("Failed to unshare(): %d", errno); in MountEmulatedStorage()
298 ALOGW("Failed to mount %s to %s :%d", source, target, errno); in MountEmulatedStorage()
305 ALOGW("Failed to mount %s to %s: %d", source_user.string(), target_user.string(), errno); in MountEmulatedStorage()
[all …]
Dandroid_net_LocalSocketImpl.cpp73 jniThrowIOException(env, errno); in socket_connect_local()
107 jniThrowIOException(env, errno); in socket_bind_local()
128 jniThrowIOException(env, errno); in socket_listen()
164 } while (ret < 0 && errno == EINTR); in socket_accept()
167 jniThrowIOException(env, errno); in socket_accept()
194 jniThrowIOException(env, errno); in socket_shutdown()
274 jniThrowIOException(env, errno); in socket_getOption()
345 jniThrowIOException(env, errno); in socket_setOption()
368 jniThrowIOException(env, errno); in socket_pending()
393 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/base/services/core/jni/
Dcom_android_server_AlarmManagerService.cpp123 ALOGV("ANDROID_ALARM_SET_RTC ioctl failed: %s\n", strerror(errno)); in setTime()
143 errno = EINVAL; in set()
169 ALOGV("settimeofday() failed: %s\n", strerror(errno)); in setTime()
175 ALOGV("Unable to open RTC driver: %s\n", strerror(errno)); in setTime()
181 ALOGV("gmtime_r() failed: %s\n", strerror(errno)); in setTime()
198 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno)); in setTime()
219 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) { in waitForAlarm()
250 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno)); in android_server_AlarmManagerService_setKernelTime()
265 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno)); in android_server_AlarmManagerService_setKernelTimezone()
278 ALOGV("opening alarm driver failed: %s", strerror(errno)); in init_alarm_driver()
[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/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/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.cpp213 strerror(errno), errno); in truncateFile()
227 strerror(errno), errno); in _writeStr()
235 strerror(errno), errno); in _writeStr()
352 strerror(errno), errno); in isTraceClock()
361 strerror(errno), errno); in isTraceClock()
477 strerror(errno), errno); in verifyKernelTraceFuncs()
486 strerror(errno), errno); in verifyKernelTraceFuncs()
642 strerror(errno), errno); in dumpTrace()
674 strerror(errno), errno); in dumpTrace()
690 strerror(errno), errno); in dumpTrace()
[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()
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/
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()
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()
/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.cpp41 ALOGE("clock_gettime(CLOCK_THREAD_CPUTIME_ID) errno=%d", errno); in setEnabled()
49 ALOGE("clock_gettime(CLOCK_MONOTONIC) errno=%d", errno); in setEnabled()
60 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()

123456