Searched refs:errno (Results 1 - 25 of 220) sorted by relevance

123456789

/frameworks/native/cmds/bugreport/
H A Dbugreport.cpp17 #include <errno.h>
51 printf("Failed to connect to dumpstate service: %s\n", strerror(errno));
62 printf("WARNING: Cannot set socket timeout: %s\n", strerror(errno));
71 // EAGAIN really means time out, so change the errno.
72 if (errno == EAGAIN) {
73 errno = ETIMEDOUT;
75 printf("\nBugreport read terminated abnormally (%s).\n", strerror(errno));
87 bytes_read, bytes_to_send, strerror(errno));
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java80 final int errno = native_tagSocketFd(fd, tag, uid);
81 if (errno < 0) {
84 + uid + ") failed with errno" + errno);
102 final int errno = native_untagSocketFd(fd);
103 if (errno < 0) {
104 Log.w(TAG, "untagSocket(" + fd.getInt$() + ") failed with errno " + errno);
116 final int errno = native_setCounterSet(counterSet, uid);
117 if (errno <
[all...]
/frameworks/base/libs/androidfw/
H A Dmisc.cpp26 #include <errno.h>
41 if (errno == ENOENT || errno == ENOTDIR)
44 fprintf(stderr, "getFileType got errno=%d on '%s'\n",
45 errno, fileName);
H A DObbFile.cpp17 #include <errno.h>
68 } while (_rc == -1 && errno == EINTR); \
93 ALOGW("couldn't open file %s: %s", filename, strerror(errno));
123 ALOGW("error seeking in ObbFile: %s\n", strerror(errno));
139 ALOGW("couldn't read footer signature: %s\n", strerror(errno));
167 ALOGW("seek %lld failed: %s\n", (long long int)fileOffset, strerror(errno));
175 ALOGW("couldn't allocate scanBuf: %s\n", strerror(errno));
182 ALOGI("couldn't read ObbFile footer: %s\n", strerror(errno));
240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno));
263 ALOGW("couldn't write signature version: %s\n", strerror(errno));
[all...]
/frameworks/compile/libbcc/lib/Support/
H A DOutputFile.cpp46 } else if ((errno == EAGAIN) || (errno == EINTR)) {
47 // If the errno is EAGAIN or EINTR, then we try to write again.
68 } while (errno == EINTR);
80 if (errno != EINTR) {
H A DInputFile.cpp42 } else if ((errno == EAGAIN) || (errno == EINTR)) {
43 // If the errno is EAGAIN or EINTR, then we try to read again.
H A DFileBase.cpp91 if (errno != EINTR) {
109 } else if (errno != EINTR) {
119 } else if (errno != EINTR) {
130 // Read error from errno.
131 mError.assign(errno, std::generic_category());
187 // flock() was not performed successfully. Check the errno to see whether
189 if (errno == EINTR) {
193 } else if (errno == EWOULDBLOCK) {
219 } while (errno == EINTR);
255 } else if (errno !
[all...]
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp17 #include <errno.h>
83 printf("FAIL:Failed to connect to dumpstatez service: %s\n", strerror(errno));
94 fprintf(stderr, "WARNING: Cannot set socket timeout: %s\n", strerror(errno));
104 // EAGAIN really means time out, so change the errno.
105 if (errno == EAGAIN) {
106 errno = ETIMEDOUT;
108 printf("FAIL:Bugreport read terminated abnormally (%s)\n", strerror(errno));
121 bytes_read, bytes_to_send, strerror(errno));
129 fprintf(stderr, "WARNING: error closing socket: %s\n", strerror(errno));
/frameworks/base/native/android/
H A Dnet.c19 #include <errno.h>
48 errno = EINVAL;
54 errno = -rval;
63 errno = EINVAL;
69 errno = -rval;
80 errno = EINVAL;
/frameworks/base/core/jni/
H A Dandroid_server_NetworkManagementSocketTagger.cpp26 #include <errno.h>
45 return (jint)-errno;
61 return (jint)-errno;
71 return (jint)-errno;
81 return (jint)-errno;
H A Dandroid_server_Watchdog.cpp25 #include <errno.h>
51 ALOGE("Unable to open stack of tid %d : %d (%s)", tid, errno, strerror(errno));
70 ALOGE("Unable to open stack dump file: %d (%s)", errno, strerror(errno));
/frameworks/base/tools/aapt/tests/
H A DCrunchCache_test.cpp6 #include <errno.h>
22 errno += ((got == expected) ? 0 : 1);
27 errno = 0;
60 errno += ((result > 0) ? 0 : 1);
78 if (errno == 0)
81 cout << errno << " TESTS FAILED" << endl;
H A DFileFinder_test.cpp47 errno = 0;
69 errno++;
95 if(errno == 0) {
98 cout << errno << " TESTS FAILED" << endl;
100 return errno;
/frameworks/base/cmds/idmap/
H A Didmap.cpp137 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno));
142 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno));
158 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno));
163 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno));
179 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno));
184 ALOGD("error: no write access to %s: %s\n", idmap_dir, strerror(errno));
192 ALOGD("error: no read access to %s: %s\n", dir, strerror(errno));
204 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno));
H A Didmap.h10 #include <errno.h>
19 } while (_rc == -1 && errno == EINTR); \
/frameworks/compile/mclinker/unittests/
H A DDirIteratorTest.cpp11 #include <errno.h>
19 // FIXME:Some bugs modifies the global value "errno" to non-zero.
22 errno = 0;
/frameworks/native/services/surfaceflinger/tests/waitforvsync/
H A Dwaitforvsync.cpp23 #include <errno.h>
39 printf("FBIO_WAITFORVSYNC error: %s\n", strerror(errno));
/frameworks/base/tools/obbtool/
H A Dpbkdf2gen.cpp20 #include <errno.h>
46 fprintf(stderr, "Could not open /dev/urandom: %s\n", strerror(errno));
54 fprintf(stderr, "Could not read salt from /dev/urandom: %s\n", strerror(errno));
64 fprintf(stderr, "Could not generate PBKDF2 output: %s\n", strerror(errno));
/frameworks/native/cmds/ip-up-vpn/
H A Dip-up-vpn.c20 #include <errno.h>
43 errno = EINVAL;
71 ALOGE("Cannot create state: %s", strerror(errno));
97 ALOGE("Cannot bring up %s: %s", interface, strerror(errno));
104 ALOGE("Cannot set address: %s", strerror(errno));
111 ALOGE("Cannot set netmask: %s", strerror(errno));
131 ALOGE("Cannot write state: %s", strerror(errno));
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp37 #include <errno.h>
128 ALOGV("ANDROID_ALARM_SET_RTC ioctl failed: %s\n", strerror(errno));
148 errno = EINVAL;
174 ALOGV("settimeofday() failed: %s\n", strerror(errno));
180 errno = ENODEV;
187 ALOGV("Unable to open %s: %s\n", rtc_dev.string(), strerror(errno));
193 ALOGV("gmtime_r() failed: %s\n", strerror(errno));
210 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno));
231 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) {
262 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));
[all...]
/frameworks/native/libs/input/tests/
H A DTestHelpers.h51 return nWritten == 1 ? 0 : -errno;
57 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
/frameworks/native/opengl/libs/EGL/
H A Degl_cache.cpp228 if (errno == EEXIST) {
233 strerror(errno), errno);
241 strerror(errno), errno);
251 strerror(errno), errno);
273 ALOGE("error writing cache file: %s (%d)", strerror(errno),
274 errno);
293 if (errno !
[all...]
/frameworks/rs/
H A DrsCppUtils.cpp62 ALOGE("Fork of \"%s\" failed with error %s", exe, strerror(errno));
77 ALOGE("execv() failed: %s", strerror(errno));
87 strerror(errno));
/frameworks/native/cmds/rawbu/
H A Dbackup.cpp11 #include <errno.h>
76 path, strerror(errno));
127 nameBuffer, strerror(errno));
146 newpath, strerror(errno));
164 nameBuffer, strerror(errno));
178 fprintf(stderr, "unable to write int32 (%d bytes): %s\n", res, strerror(errno));
189 fprintf(stderr, "unable to write int64 (%d bytes): %s\n", res, strerror(errno));
199 errno = 0;
209 amt, origSize, srcName, errno != 0 ? strerror(errno)
[all...]
/frameworks/native/cmds/dumpstate/
H A Dutils.cpp18 #include <errno.h>
107 printf("Failed to open /data/system/users (%s)\n", strerror(errno));
127 printf("Failed to open /proc (%s)\n", strerror(errno));
194 printf("Failed to open %s (%s)\n", taskpath, strerror(errno));
249 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
254 save_errno = errno;
314 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
319 save_errno = errno;
437 printf("*** %s: select failed: %s\n", path, strerror(errno));
454 printf("*** %s: Failed to read from fd: %s", path, strerror(errno));
[all...]

Completed in 271 milliseconds

123456789