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

1234567891011>>

/frameworks/base/core/java/android/net/metrics/
H A DConnectStats.java39 /** How many events resulted in a given errno. */
63 boolean addEvent(int errno, int latencyMs, String ipAddr) { argument
65 if (isSuccess(errno)) {
66 countConnect(errno, ipAddr);
67 countLatency(errno, latencyMs);
70 countError(errno);
75 private void countConnect(int errno, String ipAddr) { argument
77 if (!isNonBlocking(errno)) {
85 private void countLatency(int errno, int ms) { argument
86 if (isNonBlocking(errno)) {
101 countError(int errno) argument
106 isSuccess(int errno) argument
110 isNonBlocking(int errno) argument
[all...]
/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp67 VLOG("poll failed: %s", strerror(errno));
68 return -errno;
71 VLOG("return event has error %s", strerror(errno));
72 return errno != 0 ? -errno : UNKNOWN_ERROR;
76 if (errno == EAGAIN || errno == EWOULDBLOCK) {
79 VLOG("Fail to read %d: %s", fd, strerror(errno));
80 return -errno;
109 VLOG("Fail to read %d: %s", fd, strerror(errno));
[all...]
/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/native/opengl/libs/EGL/
H A DFileBlobCache.cpp19 #include <errno.h>
57 if (errno != ENOENT) {
59 strerror(errno), errno);
66 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno);
83 ALOGE("error mmaping cache file: %s (%d)", strerror(errno),
84 errno);
127 if (errno == EEXIST) {
132 strerror(errno), errn
[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/base/libs/hwui/
H A DProfileDataContainer.cpp19 #include <errno.h>
24 #include <errno.h>
55 int err = errno;
68 int err = errno;
/frameworks/av/services/oboeservice/
H A DSharedMemoryProxy.cpp21 #include <errno.h>
48 ALOGE("open() ashmem_create_region() failed %d", errno);
53 ALOGE("open() ashmem_set_prot_region() failed %d", errno);
56 return AAUDIO_ERROR_INTERNAL; // TODO convert errno to a better AAUDIO_ERROR;
66 mOriginalFileDescriptor, errno, strerror(errno));
67 return AAUDIO_ERROR_INTERNAL; // TODO convert errno to a better AAUDIO_ERROR;
76 ALOGE("open() proxy mmap(%d) failed %d", mProxyFileDescriptor, errno);
81 return AAUDIO_ERROR_INTERNAL; // TODO convert errno to a better AAUDIO_ERROR;
/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/native/libs/vr/libpdx/
H A Dservice_dispatcher.cpp3 #include <errno.h>
28 ALOGE("Failed to create event fd because: %s\n", strerror(errno));
34 ALOGE("Failed to create epoll fd because: %s\n", strerror(errno));
45 ALOGE("Failed to add event fd to epoll fd because: %s\n", strerror(errno));
80 ALOGE("Failed to add service to dispatcher because: %s\n", strerror(errno));
81 return -errno;
99 strerror(errno));
100 return -errno;
120 strerror(errno));
122 return count < 0 ? -errno
[all...]
/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;
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp17 #include <errno.h>
53 // EAGAIN really means time out, so change the errno.
54 if (errno == EAGAIN) {
55 errno = ETIMEDOUT;
57 printf("FAIL:Bugreport read terminated abnormally (%s)\n", strerror(errno));
75 fprintf(stderr, "WARNING: error closing socket: %s\n", strerror(errno));
/frameworks/base/services/core/jni/
H A Dcom_android_server_AlarmManagerService.cpp37 #include <errno.h>
104 errno = EINVAL;
130 ALOGV("settimeofday() failed: %s\n", strerror(errno));
136 errno = ENODEV;
143 ALOGV("Unable to open %s: %s\n", rtc_dev.string(), strerror(errno));
149 ALOGV("gmtime_r() failed: %s\n", strerror(errno));
166 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno));
187 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) {
218 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno));
233 ALOGE("Unable to set kernel timezone to %d: %s\n", minswest, strerror(errno));
[all...]
/frameworks/base/core/java/com/android/server/
H A DNetworkManagementSocketTagger.java92 final int errno = native_tagSocketFd(fd, tag, uid);
93 if (errno < 0) {
96 + uid + ") failed with errno" + errno);
114 final int errno = native_untagSocketFd(fd);
115 if (errno < 0) {
116 Log.w(TAG, "untagSocket(" + fd.getInt$() + ") failed with errno " + errno);
128 final int errno = native_setCounterSet(counterSet, uid);
129 if (errno <
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Depoll_file_descriptor.h34 return -errno;
41 return -errno;
50 return -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;
/frameworks/base/cmds/idmap/
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/ml/nn/driver/cache/nnCache/
H A DnnCache.cpp174 if (errno == EEXIST) {
179 strerror(errno), errno);
187 strerror(errno), errno);
197 strerror(errno), errno);
219 ALOGE("error writing cache file: %s (%d)", strerror(errno),
220 errno);
239 if (errno !
[all...]
/frameworks/rs/cpp/
H A DrsCppUtils.cpp20 #include <errno.h>
65 ALOGE("Fork of \"%s\" failed with error %s", exe, strerror(errno));
80 ALOGE("execv() failed: %s", strerror(errno));
90 strerror(errno));
/frameworks/rs/
H A DrsCppUtils.cpp20 #include <errno.h>
65 ALOGE("Fork of \"%s\" failed with error %s", exe, strerror(errno));
80 ALOGE("execv() failed: %s", strerror(errno));
90 strerror(errno));
/frameworks/compile/libbcc/lib/
H A DFileBase.cpp88 if (errno != EINTR) {
106 } else if (errno != EINTR) {
116 } else if (errno != EINTR) {
127 // Read error from errno.
128 mError.assign(errno, std::generic_category());
184 // flock() was not performed successfully. Check the errno to see whether
186 if (errno == EINTR) {
190 } else if (errno == EWOULDBLOCK) {
216 } while (errno == EINTR);
/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));

Completed in 4913 milliseconds

1234567891011>>