/system/core/libsuspend/ |
H A D | autosuspend.c | 68 int ret; local 70 ret = autosuspend_init(); 71 if (ret) { 72 return ret; 81 ret = autosuspend_ops->enable(); 82 if (ret) { 83 return ret; 92 int ret; local 94 ret = autosuspend_init(); 95 if (ret) { [all...] |
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 | 48 int ret; local 67 ret = sem_wait(&suspend_lockout); 68 if (ret < 0) { 75 ret = write(wakeup_count_fd, wakeup_count, wakeup_count_len); 76 if (ret < 0) { 81 ret = write(state_fd, sleep_state, strlen(sleep_state)); 82 if (ret < 0) { 94 ret = sem_post(&suspend_lockout); 95 if (ret < 0) { 106 int ret; local 125 int ret; local 157 int ret; local [all...] |
/system/core/liblog/ |
H A D | uio.c | 31 int ret = read( fd, buf, len ); local 32 if (ret < 0) { 37 if (ret == 0) 40 total += ret; 41 buf += ret; 42 len -= ret; 58 int ret = write( fd, buf, len ); local 59 if (ret < 0) { 64 if (ret == 0) 67 total += ret; [all...] |
H A D | log_time.cpp | 52 char *ret = const_cast<char *> (s); local 57 ret = ::strptime(ret, f, ptm); 70 ret = ::strptime(ret, f, ptm); 71 if (!ret) { 76 while (isdigit(*ret)) { 77 tv_sec = tv_sec * 10 + *ret - '0'; 78 ++ret; 99 ret [all...] |
/system/extras/tests/bionic/libc/bionic/ |
H A D | test_getgrouplist.c | 39 int ret; local 45 ret = getgrouplist( TEST_USER, TEST_GROUP, groups, &count ); 46 if (ret != 1) { 48 ret, count);
|
/system/netd/server/ |
H A D | PhysicalNetwork.cpp | 28 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) { 30 return ret; 32 if (int ret = delegate->addFallthrough(interface, permission)) { 33 return ret; 41 if (int ret = RouteController::removeInterfaceFromDefaultNetwork(interface.c_str(), 44 return ret; 46 if (int ret = delegate->removeFallthrough(interface, permission)) { 47 return ret; 73 if (int ret = RouteController::modifyPhysicalNetworkPermission(mNetId, interface.c_str(), 77 return ret; [all...] |
H A D | LocalNetwork.cpp | 38 if (int ret = RouteController::addInterfaceToLocalNetwork(mNetId, interface.c_str())) { 40 return ret; 50 if (int ret = RouteController::removeInterfaceFromLocalNetwork(mNetId, interface.c_str())) { 52 return ret;
|
H A D | VirtualNetwork.cpp | 45 if (int ret = RouteController::addUsersToVirtualNetwork(mNetId, interface.c_str(), mSecure, 48 return ret; 57 if (int ret = RouteController::removeUsersFromVirtualNetwork(mNetId, interface.c_str(), 60 return ret; 75 if (int ret = RouteController::addInterfaceToVirtualNetwork(mNetId, interface.c_str(), mSecure, 78 return ret; 88 if (int ret = RouteController::removeInterfaceFromVirtualNetwork(mNetId, interface.c_str(), 91 return ret;
|
/system/media/camera/src/ |
H A D | camera_metadata_tag_info.c | 645 int ret = -1; local 652 ret = 0; 656 ret = 0; 660 ret = 0; 677 ret = 0; 681 ret = 0; 685 ret = 0; 700 ret = 0; 704 ret = 0; 708 ret [all...] |
/system/core/libion/ |
H A D | ion.c | 43 int ret = close(fd); local 44 if (ret < 0) 46 return ret; 51 int ret = ioctl(fd, req, arg); local 52 if (ret < 0) { 54 ret, strerror(errno)); 57 return ret; 63 int ret; local 74 ret = ion_ioctl(fd, ION_IOC_ALLOC, &data); 75 if (ret < 92 int ret; local 121 int ret; local 143 int ret; local 155 int ret; local [all...] |
/system/security/keystore/ |
H A D | keystore_cli.cpp | 50 int32_t ret = service->cmd(); \ 51 if (ret < 0) { \ 52 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \ 55 printf(#cmd ": %s (%d)\n", responses[ret], ret); \ 68 int32_t ret = service->cmd(String16(argv[2])); \ 69 if (ret < 0) { \ 70 fprintf(stderr, "%s: could not connect: %d\n", argv[0], ret); \ 73 printf(#cmd ": %s (%d)\n", responses[ret], ret); \ 150 int32_t ret = service->saw(name, uid, &matches); local [all...] |
/system/core/libcutils/ |
H A D | strdup8to16.c | 45 char16_t *ret; local 57 ret = (char16_t *) malloc (sizeof(char16_t) * len); 59 return strcpy8to16 (ret, s, out_len); 114 uint32_t ret; local 130 ret = (**pUtf8Ptr) & leaderMask [seq_len - 1]; 132 if (**pUtf8Ptr == '\0') return ret; 139 UTF8_SHIFT_AND_MASK(ret, **pUtf8Ptr); 142 return ret; 157 uint32_t ret; local 159 ret 194 uint32_t ret; local [all...] |
H A D | partition_utils.c | 28 int i, ret; local 30 ret = 1; 33 ret = 0; 37 return ret; 43 int fd, ret; local 49 ret = read(fd, buf, sizeof(buf)); 52 if (ret != sizeof(buf)) {
|
H A D | record_stream.c | 47 RecordStream *ret; local 51 ret = (RecordStream *)calloc(1, sizeof(RecordStream)); 53 ret->fd = fd; 54 ret->maxRecordLen = maxRecordLen; 55 ret->buffer = (unsigned char *)malloc (maxRecordLen + HEADER_SIZE); 57 ret->unconsumed = ret->buffer; 58 ret->read_end = ret->buffer; 59 ret 130 void *ret; local [all...] |
/system/extras/tests/bionic/libc/common/ |
H A D | test_gethostname.c | 37 int ret; local 39 ret = gethostname(hostname, sizeof(hostname)); 40 if (ret < 0) {
|
H A D | test_getaddrinfo.c | 20 int ret; local 23 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, NULL, &res); 24 if (ret != 0) { 25 printf("first getaddrinfo returned error: %s\n", gai_strerror(ret)); 37 ret = getaddrinfo( SERVER_NAME, PORT_NUMBER, &hints, &res ); 38 if (ret != 0) { 39 printf("second getaddrinfo returned error: %s\n", gai_strerror(ret));
|
/system/extras/ext4_utils/ |
H A D | wipe.c | 38 int ret; local 47 ret = ioctl(fd, BLKSECDISCARD, &range); 48 if (ret < 0) { 51 ret = ioctl(fd, BLKDISCARD, &range); 52 if (ret < 0) {
|
/system/core/libprocessgroup/ |
H A D | processgroup.cpp | 66 int ret; local 73 ret = -errno; 75 return ret; 93 ssize_t ret = read(ctx->fd, ctx->buf_ptr + ctx->buf_len, local 95 if (ret < 0) { 97 } else if (ret == 0) { 101 ctx->buf_len += ret; 103 SLOGV("Read %d to buffer: %s", ret, ctx->buf); 107 return ret; 113 int ret local 121 int ret = refillBuffer(ctx); local 149 int ret; local 237 int ret = kill(pid, signal); local 280 int ret; local 300 int ret; local [all...] |
/system/core/adb/ |
H A D | adb_auth_client.c | 58 int ret; local 78 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4); 79 if (ret != sizeof(key->key)) { 80 D("%s: Invalid base64 data ret=%d\n", file, ret); 127 int ret; local 133 ret = fread(token, token_size, 1, f); 136 return ret * token_size; 144 int ret = 0; local 153 ret 174 int ret; local 194 int ret; local 253 int fd, ret; local [all...] |
/system/core/fastbootd/ |
H A D | utils.c | 64 int ret; local 66 ret = ioctl(fd, BLKGETSIZE64, &size); 68 if (ret) 77 int ret; local 80 ret = fstat(fd, &buf); 81 if (ret) 97 int ret; local 100 ret = fstat64(fd, &buf); 101 if (ret) 130 int ret; local 167 ssize_t ret; local 186 ssize_t ret; local [all...] |
/system/core/libsparse/ |
H A D | sparse_read.c | 104 int ret; local 116 ret = sparse_file_add_fd(s, fd, offset, len, block); 117 if (ret < 0) { 118 return ret; 124 ret = read_all(fd, copybuf, chunk); 125 if (ret < 0) { 126 return ret; 141 int ret; local 152 ret = read_all(fd, &fill_val, sizeof(fill_val)); 153 if (ret < 204 int ret; local 226 int ret; local 276 int ret; local 358 int ret; local 421 int ret; local 479 int ret; local [all...] |
H A D | output_file.c | 128 off64_t ret; local 131 ret = lseek64(outn->fd, cnt, SEEK_CUR); 132 if (ret < 0) { 141 int ret; local 144 ret = ftruncate64(outn->fd, len); 145 if (ret < 0) { 154 int ret; local 157 ret = write(outn->fd, data, len); 158 if (ret < 0) { 161 } else if (ret < le 200 off64_t ret; local 213 off64_t ret; local 237 int ret; local 277 int ret; local 321 int ret; local 343 int ret; local 371 int ret; local 406 int ret; local 445 int ret; local 478 int ret; local 496 int ret; local 544 int ret; local 634 int ret; local 659 int ret; local 698 int ret; local 749 int ret; local [all...] |
/system/vold/ |
H A D | fstrim.c | 62 int ret = 0; local 89 ret = -1; 94 ret = -1; 101 ret = -1; 109 ret = ioctl(fd, deep_trim ? FIDTRIM : FITRIM, &range); 110 if (ret) { 112 ret = -1; 127 return (void *)(uintptr_t)ret; 133 int ret; local 151 ret [all...] |
/system/core/logd/ |
H A D | LogCommand.cpp | 45 bool ret = false; local 54 ret = true; 57 return ret; 72 bool ret = false; local 79 return ret; 92 ret = groupIsLog(line + strlen(groups_string)); 93 if (!ret) { 104 ret = false; 116 ret = false; 126 ret [all...] |