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

12345678

/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/native/cmds/ip-up-vpn/
H A Dip-up-vpn.c20 #include <errno.h>
43 errno = EINVAL;
70 ALOGE("Cannot create state: %s", strerror(errno));
99 if (errno != ESRCH) {
100 ALOGE("Cannot remove host route: %s", strerror(errno));
107 (ioctl(s, SIOCADDRT, &rt) && errno != EEXIST)) {
108 ALOGE("Cannot create host route: %s", strerror(errno));
116 ALOGE("Cannot bring up %s: %s", interface, strerror(errno));
123 ALOGE("Cannot set address: %s", strerror(errno));
130 ALOGE("Cannot set netmask: %s", strerror(errno));
[all...]
/frameworks/compile/libbcc/lib/Support/
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.cpp79 if (errno != EINTR) {
97 } else if (errno != EINTR) {
107 } else if (errno != EINTR) {
118 // Read error from errno.
119 mError.assign(errno, llvm::posix_category());
175 // flock() was not performed successfully. Check the errno to see whether
177 if (errno == EINTR) {
181 } else if (errno == EWOULDBLOCK) {
207 } while (errno == EINTR);
243 } else if (errno !
[all...]
H A DOutputFile.cpp50 llvm::error_code err(errno, llvm::posix_category());
99 } else if ((errno == EAGAIN) || (errno == EINTR)) {
100 // If the errno is EAGAIN or EINTR, then we try to write again.
121 } while (errno == EINTR);
133 if (errno != EINTR) {
/frameworks/av/libvideoeditor/osal/inc/
H A DLVOSA_FileReader_optim.h38 M4OSA_UInt16* errno );
42 M4OSA_UInt16* errno );
46 M4OSA_UInt16* errno );
48 M4OSA_UInt16* errno );
50 M4OSA_UInt16* errno );
/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));
H A Dcom_android_internal_os_ZygoteInit.cpp23 #include <errno.h>
43 return errno;
56 return errno;
69 return errno;
85 jniThrowIOException(env, errno);
105 } while (err < 0 && errno == EINTR);
115 } while (err < 0 && errno == EINTR);
125 } while (err < 0 && errno == EINTR);
144 jniThrowIOException(env, errno);
157 jniThrowIOException(env, errno);
[all...]
H A Dandroid_os_FileUtils.cpp26 #include <sys/errno.h>
52 return errno;
55 return chmod(file8.string(), mode) == 0 ? 0 : 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/native/services/surfaceflinger/tests/waitforvsync/
H A Dwaitforvsync.cpp23 #include <errno.h>
38 printf("FBIO_WAITFORVSYNC error: %s\n", strerror(errno));
/frameworks/base/libs/androidfw/
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", 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/base/tools/obbtool/
H A Dpbkdf2gen.cpp20 #include <errno.h>
45 fprintf(stderr, "Could not open /dev/urandom: %s\n", strerror(errno));
53 fprintf(stderr, "Could not read salt from /dev/urandom: %s\n", strerror(errno));
63 fprintf(stderr, "Could not generate PBKDF2 output: %s\n", strerror(errno));
/frameworks/base/services/jni/
H A Dcom_android_server_AlarmManagerService.cpp33 #include <errno.h>
49 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno));
77 ALOGE("Unable to set alarm to %lld.%09lld: %s\n", seconds, nanoseconds, strerror(errno));
88 } while (result < 0 && errno == EINTR);
92 ALOGE("Unable to wait on alarm: %s\n", strerror(errno));
H A Dcom_android_server_connectivity_Vpn.cpp30 #include <errno.h>
66 ALOGE("Cannot allocate TUN: %s", strerror(errno));
73 ALOGE("Cannot activate %s: %s", ifr4.ifr_name, strerror(errno));
80 ALOGE("Cannot set MTU on %s: %s", ifr4.ifr_name, strerror(errno));
95 ALOGE("Cannot get interface name: %s", strerror(errno));
107 ALOGE("Cannot get index of %s: %s", name, strerror(errno));
148 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR;
163 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR;
170 count = (errno == EINVAL) ? BAD_ARGUMENT : SYSTEM_ERROR;
181 ALOGE("Cannot add address: %s/%d: %s", address, prefix, strerror(errno));
[all...]
/frameworks/av/libvideoeditor/osal/src/
H A DLVOSA_FileReader_optim.c230 M4OSA_ERR errno = M4NO_ERROR; local
235 M4OSA_UInt16 errno; local
255 errno = apContext->FS->seek(apContext->aFileDesc, M4OSA_kFileSeekCurrent,
259 if(M4NO_ERROR != errno)
261 err = errno;
268 M4OSA_kFileSeekCurrent, &errno);
273 err = M4OSA_ERR_CREATE(M4_ERR, M4OSA_FILE_READER, errno);
285 errno = apContext->FS->readData(apContext->aFileDesc,
289 if ((M4NO_ERROR != errno)&&(M4WAR_NO_DATA_YET != errno))
437 M4OSA_ERR errno = M4NO_ERROR; local
440 M4OSA_UInt16 errno; local
508 M4OSA_ERR errno = M4NO_ERROR; local
510 M4OSA_UInt16 errno; local
911 M4OSA_ERR errno = M4NO_ERROR; local
913 M4OSA_UInt16 errno; local
[all...]
/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.h49 return nWritten == 1 ? 0 : -errno;
55 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
/frameworks/native/libs/utils/tests/
H A DTestHelpers.h49 return nWritten == 1 ? 0 : -errno;
55 return nRead == 1 ? 0 : nRead == 0 ? -EPIPE : -errno;
/frameworks/native/cmds/installd/
H A Dcommands.c59 ALOGE("cannot create dir '%s': %s\n", pkgdir, strerror(errno));
63 ALOGE("cannot chmod dir '%s': %s\n", pkgdir, strerror(errno));
69 if (errno != ENOENT) {
70 ALOGE("couldn't stat lib dir: %s\n", strerror(errno));
89 strerror(errno));
95 ALOGE("cannot setfilecon dir '%s': %s\n", pkgdir, strerror(errno));
98 return -errno;
102 ALOGE("cannot chown dir '%s': %s\n", pkgdir, strerror(errno));
133 ALOGE("cannot rename dir '%s' to '%s': %s\n", oldpkgdir, newpkgdir, strerror(errno));
134 return -errno;
[all...]
/frameworks/native/libs/utils/
H A Dmisc.cpp27 #include <errno.h>
49 if (errno == ENOENT || errno == ENOTDIR)
52 fprintf(stderr, "getFileType got errno=%d on '%s'\n",
53 errno, fileName);
/frameworks/native/opengl/libs/EGL/
H A Degl_cache.cpp230 if (errno == EEXIST) {
235 strerror(errno), errno);
243 strerror(errno), errno);
253 strerror(errno), errno);
276 ALOGE("error writing cache file: %s (%d)", strerror(errno),
277 errno);
296 if (errno !
[all...]
/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.c18 #include <errno.h>
57 printf("Failed to open /proc (%s)\n", strerror(errno));
104 printf("Failed to open %s (%s)\n", taskpath, strerror(errno));
157 printf("Failed to open '%s' (%s)\n", path, strerror(errno));
162 printf("Failed to read '%s' (%s)\n", path, strerror(errno));
215 int err = errno;
259 printf("*** fork: %s\n", strerror(errno));
283 printf("*** exec(%s): %s\n", command, strerror(errno));
348 fprintf(stderr, "android_get_control_socket(%s): %s\n", service, strerror(errno));
352 fprintf(stderr, "listen(control socket): %s\n", strerror(errno));
[all...]

Completed in 669 milliseconds

12345678