/system/bluetooth/tools/ |
H A D | bttest.c | 28 int ret; local 29 ret = bt_enable(); 30 printf("= %d\n", ret); 31 return ret; 35 int ret; local 36 ret = bt_disable(); 37 printf("= %d\n", ret); 38 return ret; 42 int ret; local 43 ret [all...] |
/system/core/adb/ |
H A D | log_service.c | 49 int ret; local 51 ret = unix_read(logfd, entry, LOGGER_ENTRY_MAX_LEN); 52 if (ret < 0) { 58 else if (!ret) {
|
H A D | test_track_devices.c | 55 int ret, s; local 67 ret = connect( s, (struct sockaddr*) &server, sizeof(server) ); 68 if (ret < 0) panic( "could not connect to server" );
|
H A D | test_track_jdwp.c | 55 int ret, s; local 67 ret = connect( s, (struct sockaddr*) &server, sizeof(server) ); 68 if (ret < 0) panic( "could not connect to server" );
|
/system/core/libcutils/ |
H A D | ashmem-dev.c | 44 int fd, ret; local 54 ret = ioctl(fd, ASHMEM_SET_NAME, buf); 55 if (ret < 0) 59 ret = ioctl(fd, ASHMEM_SET_SIZE, size); 60 if (ret < 0) 67 return ret;
|
H A D | socket_local_server.c | 111 int ret; local 113 ret = listen(s, LISTEN_BACKLOG); 115 if (ret < 0) {
|
H A D | strdup16to8.c | 145 char* ret; local 161 ret = malloc(len + 1); 162 if (ret == NULL) 165 strncpy16to8 (ret, s, n); 167 return ret;
|
H A D | abort_socket.c | 62 int ret; local 65 ret = connect(s->fd, addr, addrlen); 66 } while (ret && errno == EINTR); 68 if (ret && errno == EINPROGRESS) { 81 ret = poll(pfd, 2, timeout); 82 } while (ret < 0 && errno == EINTR); 84 if (ret < 0) 86 else if (ret == 0) { 101 retlen = sizeof(ret); 102 if (getsockopt(s->fd, SOL_SOCKET, SO_ERROR, &ret, 122 int ret; local 167 int ret; local 213 int ret; local 258 int ret; local [all...] |
H A D | android_reboot.c | 106 int ret; local 116 ret = reboot(RB_AUTOBOOT); 120 ret = reboot(RB_POWER_OFF); 124 ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, 129 ret = -1; 132 return ret;
|
/system/core/libsparse/ |
H A D | img2simg.c | 51 int ret; local 100 ret = sparse_file_read(s, in, false, false); 101 if (ret) { 106 ret = sparse_file_write(s, out, false, true, false); 107 if (ret) {
|
H A D | simg2simg.c | 47 int ret; local 92 ret = snprintf(filename, sizeof(filename), "%s.%d", argv[2], i); 93 if (ret >= (int)sizeof(filename)) { 104 ret = sparse_file_write(out_s[i], out, false, true, false); 105 if (ret) {
|
/system/core/libsuspend/ |
H A D | autosuspend_autosleep.c | 39 int ret; local 43 ret = write(autosleep_fd, sleep_state, strlen(sleep_state)); 44 if (ret < 0) { 55 return ret; 61 int ret; local 65 ret = write(autosleep_fd, on_state, strlen(on_state)); 66 if (ret < 0) { 77 return ret; 87 int ret; local
|
H A D | autosuspend_wakeup_count.c | 46 int ret; local 65 ret = sem_wait(&suspend_lockout); 66 if (ret < 0) { 73 ret = write(wakeup_count_fd, wakeup_count, wakeup_count_len); 74 if (ret < 0) { 79 ret = write(state_fd, sleep_state, strlen(sleep_state)); 80 if (ret < 0) { 87 ret = sem_post(&suspend_lockout); 88 if (ret < 0) { 99 int ret; local 118 int ret; local 141 int ret; local [all...] |
/system/core/libsysutils/src/ |
H A D | ServiceManager.cpp | 103 int ret; local 105 ret = snprintf(propName, sizeof(propName), "init.svc.%s", name); 106 if (ret > (int)sizeof(propName)-1) {
|
/system/core/run-as/ |
H A D | run-as.c | 145 int ret; local 147 ret = chdir(info.dataDir); 148 } while (ret < 0 && errno == EINTR); 150 if (ret < 0) {
|
/system/core/toolbox/ |
H A D | log.c | 100 int ret; local 102 ret = getopt(argc, argv, "t:p:h"); 104 if (ret < 0) { 108 switch(ret) {
|
H A D | md5.c | 65 int i, ret = 0; local 73 ret = 1; 76 return ret;
|
H A D | renice.c | 123 int ret; local 125 ret = sched_setscheduler(pid, SCHED_RR, &sp); 126 if (ret) { 131 int ret; local 133 ret = setpriority(PRIO_PROCESS, pid, prio); 134 if (ret) {
|
H A D | insmod.c | 15 int ret, fd; local 36 ret = read(fd, buffer, size); 37 if (ret != size) 54 int ret; local 85 ret = init_module(file, size, opts); 86 if (ret != 0) { 95 return ret;
|
H A D | rm.c | 71 int ret; local 103 ret = unlink_recursive(argv[i], flags); 105 ret = unlink(argv[i]); 111 if (ret < 0) {
|
H A D | wipe.c | 61 int ret; local 66 ret = android_reboot(ANDROID_RB_RESTART, 0, 0); 67 if (ret < 0) { 85 int ret; local 118 ret = lstat (nameBuffer, &statBuffer); 120 if (ret != 0) { 143 ret = rmdir(newpath); 144 if (ret != 0) { 165 ret = unlink(nameBuffer); 167 if (ret ! [all...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_libgen.c | 13 char* ret; local 22 ret = basename(input); 24 if (ret != NULL) { 27 _input, ret); 39 if (ret == NULL) { 44 else if (strcmp(ret, _expected)) { 46 _input, ret, _expected); 50 _input, ret ); 60 int ret; local 62 ret 93 int ret; local 129 char* ret; local [all...] |
H A D | test_cpu_set.c | 210 int ret; local 211 TEST_INT_EQ((ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &set0)), 0); 216 TEST_INT_EQ((ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &set0)), 0);
|
/system/netd/ |
H A D | InterfaceController.cpp | 96 int ret = -ENOSYS; local 98 ret = sendCommand_(argc, argv, rbuf); 100 return ret;
|
/system/core/init/ |
H A D | keychords.c | 67 int fd, ret; local 82 ret = write(fd, keychords, keychords_length); 83 if (ret != keychords_length) { 84 ERROR("could not configure /dev/keychord %d (%d)\n", ret, errno); 100 int ret; local 108 ret = read(keychord_fd, &id, sizeof(id)); 109 if (ret != sizeof(id)) {
|