/system/core/libnetutils/ |
H A D | dhcptool.c | 35 int rc = do_dhcp(interface); local 36 if (rc) { 42 return rc ? EXIT_FAILURE : EXIT_SUCCESS;
|
/system/core/libcutils/ |
H A D | iosched_policy.c | 45 int rc; local 47 if ((rc = syscall(SYS_ioprio_get, IOPRIO_WHO_PROCESS, pid)) < 0) { 51 *clazz = (rc >> IOPRIO_CLASS_SHIFT); 52 *ioprio = (rc & 0xff);
|
/system/core/gatekeeperd/ |
H A D | IUserManager.cpp | 37 status_t rc = remote()->transact(GET_CREDENTIAL_OWNER_PROFILE, data, &reply, 0); local 38 if (rc != NO_ERROR) { 39 ALOGE("%s: failed (%d)\n", __func__, rc);
|
/system/core/toolbox/ |
H A D | prlimit.c | 50 int rc; local 69 rc = prlimit64(pid, resource, &rl, NULL); 70 if (rc < 0) {
|
/system/bt/osi/test/ |
H A D | atomic_test.cpp | 146 int rc = pthread_join(atomic_test[i].pthread_id, NULL); local 147 EXPECT_EQ(0, rc); 172 int rc = pthread_join(atomic_test[i].pthread_id, NULL); local 173 EXPECT_EQ(0, rc);
|
/system/core/fs_mgr/ |
H A D | fs_mgr_format.c | 37 int fd, rc = 0; local 55 rc = make_ext4fs_internal(fd, NULL, NULL, fs_mnt_point, 0, 0, 0, 0, 0, 0, 0, 0, 0, NULL); 56 if (rc) { 57 ERROR("make_ext4fs returned %d.\n", rc); 61 return rc; 68 int rc = 0; local 84 pid_t p = waitpid(pid, &rc, 0); 87 rc = -1; 90 if (WIFEXITED(rc)) { 91 rc 106 int rc = -EINVAL; local [all...] |
/system/core/logwrapper/ |
H A D | logwrapper.c | 57 int rc; local 83 rc = android_fork_execvp_ext(argc, &argv[0], &status, true, 85 if (!rc) { 87 rc = WEXITSTATUS(status); 89 rc = -ECHILD; 97 return rc;
|
/system/extras/tests/pagingtest/ |
H A D | mmap_test.c | 13 int rc; local
|
H A D | pageinout_test.c | 19 int rc; local 62 rc = madvise((void *)buf, file_size, MADV_DONTNEED) || 65 if (rc) {
|
H A D | pagingtest.c | 19 ssize_t rc; local 51 rc = read(urandom, buf, size); 53 if (rc < 0) { 58 if (rc != size) { 73 rc = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED); 74 if (rc) { 138 int rc; local 160 rc = mmap_test(test_runs, alloc_size); 161 if (rc) { 162 return rc; [all...] |
/system/bt/btcore/test/ |
H A D | device_class_test.cpp | 86 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 87 EXPECT_EQ(3, rc); 104 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 105 EXPECT_EQ(3, rc); 121 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 122 EXPECT_EQ(3, rc);
|
/system/bt/stack/avdt/ |
H A D | avdt_l2c.c | 181 tBTM_STATUS rc; local 206 rc = btm_sec_mx_access_request (bd_addr, AVDT_PSM, 210 if(rc == BTM_CMD_STARTED)
|
/system/bt/utils/src/ |
H A D | bt_utils.c | 118 int rc = 0; local 128 rc = set_sched_policy(tid, SP_AUDIO_SYS); 133 if (rc) {
|
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 31 int rc = 0; local 39 rc = 1; 45 rc = 2; 50 rc = 3; 59 if (rc != 0) { 66 rc = 4; 70 return rc;
|
/system/core/logd/ |
H A D | libaudit.c | 41 int rc; local 49 rc = audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, MSG_PEEK); 50 if (rc < 0) { 51 return rc; 56 rc = ((struct nlmsgerr *)rep.data)->error; 57 if (rc) { 58 return -rc; 85 int rc; local 136 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, 140 if (rc < 167 int rc; local 213 int rc = 0; local 269 int rc = close(fd); local [all...] |
/system/extras/ext4_utils/ |
H A D | ext4_crypt_init_extensions.cpp | 63 int rc = TEMP_FAILURE_RETRY(poll(&poll_sock, 1, vold_command_timeout_ms)); local 64 if (rc < 0) { 75 rc = TEMP_FAILURE_RETRY(read(sock, buffer, sizeof(buffer))); 76 if (rc <= 0) { 77 if (rc == 0) { 90 return std::string(buffer, rc);
|
/system/netd/server/ |
H A D | ndc.c | 126 int rc = 0; local 134 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 139 } else if (!rc) { 145 if ((rc = read(sock, buffer, 4096)) <= 0) { 147 if (rc == 0) 152 if (rc == 0) 160 for (i = 0; i < rc; i++) {
|
/system/vold/ |
H A D | CryptCommandListener.cpp | 124 int rc = 0; local 132 rc = cryptfs_check_passwd(argv[2]); 139 rc = cryptfs_restart(); 146 rc = cryptfs_crypto_complete(); 165 rc = cryptfs_enable_default(argv[2], /*allow_reboot*/false); 167 rc = cryptfs_enable(argv[2], type, argv[4], 171 if (rc == 0) { 184 rc = cryptfs_enable_file(); 203 rc = cryptfs_changepw(type, password); 210 rc [all...] |
H A D | vdc.c | 117 int rc = 0; local 125 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 129 } else if (!rc) { 135 if ((rc = read(sock, buffer, 4096)) <= 0) { 136 if (rc == 0) 141 if (rc == 0) 149 for (i = 0; i < rc; i++) {
|
/system/bt/btif/src/ |
H A D | btif_debug_btsnoop.c | 76 bool rc = true; 90 rc = false; 100 return rc; 127 bool rc = btsnoop_compress(ringbuffer, buffer); local 128 if (rc == false) {
|
/system/bt/osi/src/ |
H A D | hash_map.c | 141 bool rc = list_remove(hash_bucket_list, hash_map_entry); local 142 assert(rc == true);
|
/system/bt/stack/mcap/ |
H A D | mca_l2c.c | 159 tBTM_STATUS rc; local 178 rc = btm_sec_mx_access_request (bd_addr, psm, FALSE, BTM_SEC_PROTO_MCA, 0, 180 if (rc == BTM_CMD_STARTED)
|
/system/bt/tools/bdtool/ |
H A D | bdtool.c | 122 int rc = bt_interface->set_adapter_property(property); local 123 fprintf(stdout, "Set rc:%d device as discoverable for %d seconds\n", rc, timeout_in_sec); 139 int rc = bt_interface->create_bond(&bt_remote_bdaddr, 0 /* UNKNOWN; Currently not documented :( */); local 140 fprintf(stdout, "Started bonding:%d for %d seconds\n", rc, timeout_in_sec);
|
/system/core/libsysutils/src/ |
H A D | SocketListener.cpp | 113 int rc; local 115 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1)); 116 if (rc != 1) { 159 int rc = 0; local 184 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { 190 } else if (!rc)
|
/system/core/tzdatacheck/ |
H A D | tzdatacheck.cpp | 146 int rc = rename(dirToDelete.c_str(), &tempDirName[0]); local 147 if (rc == -1) { 154 rc = nftw(&tempDirName[0], deleteFn, 10 /* openFiles */, 156 if (rc == -1) {
|