Home
last modified time | relevance | path

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

12345678

/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.cpp128 ALOGV("ANDROID_ALARM_SET_RTC ioctl failed: %s\n", strerror(errno)); in setTime()
148 errno = EINVAL; in set()
174 ALOGV("settimeofday() failed: %s\n", strerror(errno)); in setTime()
180 errno = ENODEV; in setTime()
187 ALOGV("Unable to open %s: %s\n", rtc_dev.string(), strerror(errno)); in setTime()
193 ALOGV("gmtime_r() failed: %s\n", strerror(errno)); in setTime()
210 ALOGV("RTC_SET_TIME ioctl failed: %s\n", strerror(errno)); in setTime()
231 if (alarm_idx == ANDROID_ALARM_TYPE_COUNT && errno == ECANCELED) { in waitForAlarm()
262 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno)); in android_server_AlarmManagerService_setKernelTime()
277 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/native/cmds/atrace/
Datrace.cpp255 strerror(errno), errno); in truncateFile()
269 strerror(errno), errno); in _writeStr()
277 strerror(errno), errno); in _writeStr()
305 strerror(errno), errno); in writeClockSyncMarker()
312 fprintf(stderr, "error writing clock sync marker %s (%d)\n", strerror(errno), errno); in writeClockSyncMarker()
318 fprintf(stderr, "error writing clock sync marker %s (%d)\n", strerror(errno), errno); in writeClockSyncMarker()
426 strerror(errno), errno); in isTraceClock()
435 strerror(errno), errno); in isTraceClock()
592 strerror(errno), errno); in verifyKernelTraceFuncs()
601 strerror(errno), errno); in verifyKernelTraceFuncs()
[all …]
/frameworks/native/cmds/dumpstate/
Dutils.cpp107 printf("Failed to open /data/system/users (%s)\n", strerror(errno)); in for_each_userid()
127 printf("Failed to open /proc (%s)\n", strerror(errno)); in __for_each_pid()
194 printf("Failed to open %s (%s)\n", taskpath, strerror(errno)); in for_each_tid_helper()
249 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_wchan()
254 save_errno = errno; in show_wchan()
314 printf("Failed to open '%s' (%s)\n", path, strerror(errno)); in show_showtime()
319 save_errno = errno; in show_showtime()
437 printf("*** %s: select failed: %s\n", path, strerror(errno)); in _dump_file_from_fd()
454 printf("*** %s: Failed to read from fd: %s", path, strerror(errno)); in _dump_file_from_fd()
474 int err = errno; in dump_file()
[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/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/base/core/jni/
Dcom_android_internal_os_Zygote.cpp95 int saved_errno = errno; in SigChldHandler()
129 if (pid < 0 && errno != ECHILD) { in SigChldHandler()
130 ALOGW("Zygote SIGCHLD error in waitpid: %s", strerror(errno)); in SigChldHandler()
133 errno = saved_errno; in SigChldHandler()
150 ALOGW("Error setting SIGCHLD handler: %s", strerror(errno)); in SetSigChldHandler()
162 ALOGW("Error unsetting SIGCHLD handler: %s", strerror(errno)); in UnsetSigChldHandler()
228 if (errno == EINVAL) { in DropCapabilitiesBoundingSet()
258 errno = -set_sched_policy(0, SP_DEFAULT); in SetSchedulerPolicy()
259 if (errno != 0) { in SetSchedulerPolicy()
270 ALOGE("Error opening /proc/mounts: %s", strerror(errno)); in UnmountTree()
[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.cpp228 if (errno == EEXIST) { in saveBlobCacheLocked()
233 strerror(errno), errno); in saveBlobCacheLocked()
241 strerror(errno), errno); in saveBlobCacheLocked()
251 strerror(errno), errno); in saveBlobCacheLocked()
273 ALOGE("error writing cache file: %s (%d)", strerror(errno), in saveBlobCacheLocked()
274 errno); in saveBlobCacheLocked()
293 if (errno != ENOENT) { in loadBlobCacheLocked()
295 strerror(errno), errno); in loadBlobCacheLocked()
302 ALOGE("error stat'ing cache file: %s (%d)", strerror(errno), errno); in loadBlobCacheLocked()
319 ALOGE("error mmaping cache file: %s (%d)", strerror(errno), in loadBlobCacheLocked()
[all …]
/frameworks/native/cmds/bugreportz/
Dbugreportz.cpp83 printf("FAIL:Failed to connect to dumpstatez service: %s\n", strerror(errno)); in main()
94 fprintf(stderr, "WARNING: Cannot set socket timeout: %s\n", strerror(errno)); in main()
105 if (errno == EAGAIN) { in main()
106 errno = ETIMEDOUT; in main()
108 printf("FAIL:Bugreport read terminated abnormally (%s)\n", strerror(errno)); in main()
121 bytes_read, bytes_to_send, strerror(errno)); in main()
129 fprintf(stderr, "WARNING: error closing socket: %s\n", strerror(errno)); in main()
/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.cpp51 printf("Failed to connect to dumpstate service: %s\n", strerror(errno)); in main()
62 printf("WARNING: Cannot set socket timeout: %s\n", strerror(errno)); in main()
72 if (errno == EAGAIN) { in main()
73 errno = ETIMEDOUT; in main()
75 printf("\nBugreport read terminated abnormally (%s).\n", strerror(errno)); in main()
87 bytes_read, bytes_to_send, strerror(errno)); in main()
/frameworks/base/cmds/idmap/
Didmap.cpp137 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_fd()
142 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_fd()
158 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_create_path()
163 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno)); in maybe_create_path()
179 ALOGD("error: failed to read apk %s: %s\n", target_apk_path, strerror(errno)); in maybe_scan()
184 ALOGD("error: no write access to %s: %s\n", idmap_dir, strerror(errno)); in maybe_scan()
192 ALOGD("error: no read access to %s: %s\n", dir, strerror(errno)); in maybe_scan()
204 ALOGD("error: failed to read idmap %s: %s\n", idmap_path, strerror(errno)); in maybe_inspect()
/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/native/cmds/installd/
Dutils.cpp340 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
346 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
356 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
361 ALOGE("Couldn't unlinkat %s: %s\n", name, strerror(errno)); in _delete_dir_contents()
388 if (ignore_if_missing && (errno == ENOENT)) { in delete_dir_contents()
391 ALOGE("Couldn't opendir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
392 return -errno; in delete_dir_contents()
398 ALOGE("Couldn't rmdir %s: %s\n", pathname, strerror(errno)); in delete_dir_contents()
412 ALOGE("Couldn't openat %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
417 ALOGE("Couldn't fdopendir %s: %s\n", name, strerror(errno)); in delete_dir_contents_fd()
[all …]
/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/libstagefright/foundation/
DANetworkSession.cpp284 } while (n < 0 && errno == EINTR); in readMore()
288 err = -errno; in readMore()
343 } while (n < 0 && errno == EINTR); in readMore()
355 err = -errno; in readMore()
563 } while (n < 0 && errno == EINTR); in writeMore()
574 err = -errno; in writeMore()
632 } while (n < 0 && errno == EINTR); in writeMore()
655 err = -errno; in writeMore()
817 return -errno; in start()
956 return -errno; in MakeSocketNonBlocking()
[all …]
/frameworks/base/tools/aapt2/util/
DFiles.cpp39 if (errno == ENOENT || errno == ENOTDIR) { in getFileType()
73 errorStr << "unable to open file: " << strerror(errno); in listFiles()
104 if (result < 0 && errno != EEXIST) { in mkdirs()
109 return mkdirImpl(path) == 0 || errno == EEXIST; in mkdirs()
169 if (outError) *outError = strerror(errno); in mmapPath()
177 if (outError) *outError = strerror(errno); in mmapPath()
188 if (outError) *outError = strerror(errno); in mmapPath()

12345678