/system/vold/ |
H A D | Fat.cpp | 56 int rc = 0; local 65 rc = logwrap(4, args, 1); 67 switch(rc) { 88 SLOGE("Filesystem check failed (unknown exit code %d)", rc); 100 int rc; local 128 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 130 if (rc && errno == EROFS) { 133 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 136 if (rc == 0 && createLost) { 151 return rc; 157 int rc; local [all...] |
H A D | vdc.c | 93 int rc = 0; local 101 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 105 } else if (!rc) { 111 if ((rc = read(sock, buffer, 4096)) <= 0) { 112 if (rc == 0) 117 if (rc == 0) 125 for (i = 0; i < rc; i++) {
|
H A D | CommandListener.cpp | 125 int rc = 0; local 140 rc = vm->mountVolume(argv[2]); 157 rc = vm->unmountVolume(argv[2], force, revert); 163 rc = vm->formatVolume(argv[2]); 170 rc = vm->shareVolume(argv[2], argv[3]); 177 rc = vm->unshareVolume(argv[2], argv[3]); 198 if (!rc) { 202 rc = ResponseCode::convertFromErrno(); 203 cli->sendMsg(rc, "volume operation failed", true); 272 int rc local 401 int rc = 0; local 512 int rc = 0; local [all...] |
H A D | Loop.cpp | 44 int rc; local 57 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 59 if (rc < 0 && errno == ENXIO) { 63 if (rc < 0) { 88 int rc; local 101 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 103 if (rc < 0 && errno == ENXIO) { 107 if (rc < 0) { 132 int rc; local 154 rc [all...] |
H A D | cryptfs.c | 133 int rc = -1; local 218 rc = 0; 222 return rc; 232 int rc = -1; local 332 rc = 0; 336 return rc; 582 int i, rc; local 603 rc = 0; 606 rc = -1; 609 return rc; 650 int rc = -1, i; local 774 int rc; local 912 int rc = -1; local 930 int rc; local 998 int rc = -1; local 1044 int rc = -1; local 1136 int rc=-1, fd, i, ret; local [all...] |
/system/core/libcutils/ |
H A D | iosched_policy.c | 52 int rc; local 54 if ((rc = ioprio_get(WHO_PROCESS, pid)) < 0) { 58 *clazz = (rc >> CLASS_SHIFT); 59 *ioprio = (rc & 0xff);
|
H A D | sched_policy.c | 207 int rc = sched_getscheduler(tid); local 208 if (rc < 0) 210 else if (rc == SCHED_NORMAL) 212 else if (rc == SCHED_BATCH) 237 int rc = read(fd, statline, 1023); local 239 statline[rc] = 0;
|
/system/netd/ |
H A D | CommandListener.cpp | 169 int rc = 0; local 173 rc = ThrottleController::getInterfaceRxThrottle(argv[2], &val); 175 rc = ThrottleController::getInterfaceTxThrottle(argv[2], &val); 178 if (rc) { 467 int rc = 0; local 482 rc = sTetherCtrl->setIpFwdEnabled(true); 484 rc = sTetherCtrl->setIpFwdEnabled(false); 490 if (!rc) { 505 int rc = 0; local 513 rc 603 int rc = 0; local 640 int rc = 0; local 692 int rc = 0; local 731 int rc = 0, flag = 0; local 783 int rc = 0; local 920 int rc = sBandwidthCtrl->enableBandwidthControl(); local 926 int rc = sBandwidthCtrl->disableBandwidthControl(); local 936 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local 947 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local 967 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local 984 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local 989 int rc; local 1011 int rc; local 1037 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local 1047 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local 1057 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local 1068 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local 1078 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local 1089 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local 1099 int rc = sBandwidthCtrl->removeGlobalAlert(); local 1110 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local 1120 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local 1130 int rc = sBandwidthCtrl->removeSharedAlert(); local 1140 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local 1150 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local 1164 int rc = sBandwidthCtrl->getTetherStats(tetherStats); local [all...] |
H A D | ndc.c | 89 int rc = 0; local 97 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 101 } else if (!rc) { 107 if ((rc = read(sock, buffer, 4096)) <= 0) { 108 if (rc == 0) 113 if (rc == 0) 121 for (i = 0; i < rc; i++) {
|
/system/core/libnl_2/ |
H A D | netlink.c | 60 int rc = -1; local 70 rc = -ENOMEM; 89 rc = recvmsg(sk->s_fd, &msg, 0); 93 if (rc < 0) { 94 rc = -errsv; 100 return rc; 110 int rc, cb_rc = NL_OK, done = 0; local 120 rc = nl_recv(sk, &nla, &buf, &creds); 121 if (rc < 0) 124 nlmsg_for_each_msg(nlh, (struct nlmsghdr *) buf, rc, re 220 int rc; local 252 int rc; local [all...] |
H A D | attr.c | 78 int rc; local 80 rc = nla_put(msg, attrtype, 0, NULL); 81 if (rc < 0) 173 int rc; local 175 rc = nla_put(msg, attrtype, nlmsg_attrlen(nlmsg_hdr(nested), 0), 177 return rc;
|
/system/core/nexus/ |
H A D | VpnController.cpp | 79 int rc; local 82 rc = mVc->disable(); 84 rc = mVc->enable(); 85 if (!rc) { 89 if (!rc) 91 return rc;
|
H A D | Controller.cpp | 71 int rc = init_module(module, size, args); local 73 return rc; 77 int rc = -1; local 81 rc = delete_module(modtag, O_NONBLOCK | O_EXCL); 82 if (rc < 0 && errno == EAGAIN) 88 if (rc != 0) { 92 return rc;
|
H A D | nexctl.c | 89 int rc = 0; local 97 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 101 } else if (!rc) { 107 if ((rc = read(sock, buffer, 4096)) <= 0) { 108 if (rc == 0) 113 if (rc == 0) 121 for (i = 0; i < rc; i++) {
|
H A D | NetworkManager.cpp | 64 int rc = 0; local 69 if (irc && !rc) 70 rc = irc; 72 return rc; 76 int rc = 0; local 81 if (irc && !rc) 82 rc = irc; 84 return rc;
|
H A D | WifiScanner.cpp | 82 int rc = 0; local 94 if ((rc = select(mCtrlPipe[0] + 1, &read_fds, NULL, NULL, &to)) < 0) { 98 } else if (!rc) {
|
H A D | WifiStatusPoller.cpp | 84 int rc = 0; local 94 if ((rc = select(max + 1, &read_fds, NULL, NULL, &to)) < 0) { 98 } else if (!rc) {
|
H A D | WifiController.cpp | 319 int rc = mSupplicant->triggerScan(); local 321 return rc; 332 int rc = mSupplicant->setScanMode(active); local 334 return rc; 352 int rc = mSupplicant->removeNetwork(wn); local 354 return rc; 374 int rc; local 378 rc = mSupplicant->enablePacketFilter(); 380 rc = mSupplicant->disablePacketFilter(); 382 if (!rc) 389 int rc; local 406 int rc = mSupplicant->setApScanMode((scanOnly ? 2 : 1)); local 421 int rc = mSupplicant->setBluetoothCoexistenceMode(mode); local 679 int rc = (value ? mWc->enable() : mWc->disable()); local [all...] |
H A D | SupplicantListener.cpp | 47 int rc; local 50 if ((rc = wpa_ctrl_recv(mMonitor, buf, &nread))) { 56 if (!rc && !nread) {
|
H A D | DhcpListener.cpp | 42 int rc; local 44 if ((rc = read(cli->getSocket(), buffer, sizeof(buffer))) < 0) {
|
/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 81 int rc = 0; local 91 rc = write(mSocket, p, brtw); 92 if (rc > 0) { 93 p += rc; 94 brtw -= rc; 98 if (rc < 0 && errno == EINTR) 102 if (rc == 0) {
|
/system/core/rootdir/ |
H A D | Android.mk | 38 # Only copy init.rc if the target doesn't have its own. 40 file := $(TARGET_ROOT_OUT)/init.rc 41 $(file) : $(LOCAL_PATH)/init.rc | $(ACP) 47 file := $(TARGET_ROOT_OUT)/ueventd.rc 48 $(file) : $(LOCAL_PATH)/ueventd.rc | $(ACP) 53 # Just like /system/etc/init.goldfish.sh, the /init.godlfish.rc is here 56 file := $(TARGET_ROOT_OUT)/init.goldfish.rc 57 $(file) : $(LOCAL_PATH)/etc/init.goldfish.rc | $(ACP) 62 file := $(TARGET_ROOT_OUT)/ueventd.goldfish.rc 63 $(file) : $(LOCAL_PATH)/etc/ueventd.goldfish.rc | [all...] |
/system/core/init/ |
H A D | builtins.c | 570 int rc = 0; local 594 rc = read(fd1, p, brtr); 595 if (rc < 0) 597 if (rc == 0) 599 p += rc; 600 brtr -= rc; 606 rc = write(fd2, p, brtw); 607 if (rc < 0) 609 if (rc == 0) 611 p += rc; [all...] |
/system/extras/procrank/ |
H A D | procrank.c | 315 int rc = 0; local 323 rc = 1; 329 rc = 2; 334 rc = 3; 343 if (rc != 0) { 350 rc = 4; 354 return rc;
|
/system/core/adb/ |
H A D | backup_service.c | 32 int rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); local 33 if (rc < 0)
|