/system/netd/ |
H A D | NatController.cpp | 354 int rc = 0; local 390 rc = -1; 396 rc = -1; 401 rc = -1; 413 return rc;
|
H A D | CommandListener.cpp | 243 int rc; local 251 rc = sInterfaceCtrl->interfaceCommand(argc, argv, &rbuf); 252 if (rc) { 667 int rc = 0; local 682 rc = sTetherCtrl->setIpFwdEnabled(true); 684 rc = sTetherCtrl->setIpFwdEnabled(false); 690 if (!rc) { 705 int rc = 0; local 713 rc = sTetherCtrl->stopTethering(); 763 rc 806 int rc = 0; local 843 int rc = 0; local 895 int rc = ResponseCode::SoftapStatusResult; local 941 int rc = 0; local 1080 int rc = sBandwidthCtrl->enableBandwidthControl(true); local 1086 int rc = sBandwidthCtrl->disableBandwidthControl(); local 1096 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local 1107 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local 1127 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local 1144 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local 1149 int rc; local 1171 int rc; local 1197 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local 1207 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local 1217 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local 1228 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local 1238 int rc = sBandwidthCtrl->enableHappyBox(); local 1244 int rc = sBandwidthCtrl->disableHappyBox(); local 1256 int rc = sBandwidthCtrl->addNiceApps(argc - 2, argv + 2); local 1265 int rc = sBandwidthCtrl->removeNiceApps(argc - 2, argv + 2); local 1274 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local 1284 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local 1294 int rc = sBandwidthCtrl->removeGlobalAlert(); local 1305 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local 1315 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local 1325 int rc = sBandwidthCtrl->removeSharedAlert(); local 1335 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local 1345 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local 1359 int rc = sBandwidthCtrl->getTetherStats(cli, tetherStats, extraProcessingInfo); local 1547 int rc = 0; local [all...] |
/system/vold/ |
H A D | CommandListener.cpp | 131 int rc = 0; local 146 rc = vm->mountVolume(argv[2]); 163 rc = vm->unmountVolume(argv[2], force, revert); 174 rc = vm->formatVolume(argv[2], wipe); 181 rc = vm->shareVolume(argv[2], argv[3]); 188 rc = vm->unshareVolume(argv[2], argv[3]); 210 rc = vm->mkdirs(argv[2]); 215 if (!rc) { 219 rc = ResponseCode::convertFromErrno(); 220 cli->sendMsg(rc, "volum 327 int rc = 0; local 457 int rc = 0; local 568 int rc = 0; local 660 int rc = 0; local [all...] |
H A D | Volume.cpp | 317 int n, i, rc = 0; local 534 int i, rc; local 631 int rc = apply_disk_config(&dinfo, 0); local 633 if (rc) { 634 SLOGE("Failed to apply disk configuration (%d)", rc); 643 return rc;
|
H A D | VolumeManager.cpp | 804 int i, rc; local 806 rc = umount(mountPoint); 807 if (!rc) { 810 if (rc && (errno == EINVAL || errno == ENOENT)) { 812 rc = 0; 831 if (rc) { 1550 int rc; local 1553 rc = vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT); 1555 rc = -1; 1557 return rc; 1565 int rc = 0; local 1650 int rc = 0; local [all...] |
H A D | cryptfs.c | 193 int rc = -1; local 230 rc = 0; 233 return rc; 247 int rc = -1; local 285 rc = 0; 289 return rc; 377 int rc = -1; local 436 rc = 0; 440 return rc; 1008 int i, rc; local 1077 int rc = -1, i; local 1204 int rc; local 1354 int rc = -1; local 1367 int rc; local 1442 int rc = -1; local 1504 int rc = -1; local 1593 int rc=-1, fd, i, ret; local 2019 int rc = -2; local 2050 int rc = -1; local [all...] |
/system/core/init/ |
H A D | util.c | 83 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the 475 int rc; local 484 rc = mkdir(path, mode); 493 return rc;
|
H A D | builtins.c | 704 int rc = 0; local 728 rc = read(fd1, p, brtr); 729 if (rc < 0) 731 if (rc == 0) 733 p += rc; 734 brtr -= rc; 740 rc = write(fd2, p, brtw); 741 if (rc < 0) 743 if (rc == 0) 745 p += rc; [all...] |
H A D | init.c | 161 int rc; local 210 rc = getcon(&mycon); 211 if (rc < 0) { 216 rc = getfilecon(svc->args[0], &fcon); 217 if (rc < 0) { 223 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon); 226 if (rc < 0) { 984 * let the rc file figure out the rest. 1038 init_parse_config_file("/init.rc");
|
/system/core/libutils/ |
H A D | Threads.cpp | 315 int rc = 0; local 321 rc = set_sched_policy(tid, SP_BACKGROUND); 323 rc = set_sched_policy(tid, SP_FOREGROUND); 326 if (rc) { 331 rc = INVALID_OPERATION; 337 return rc;
|
H A D | RefBase.cpp | 200 int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644); local 201 if (rc >= 0) { 202 write(rc, text.string(), text.length()); 203 close(rc);
|
/system/core/logwrapper/ |
H A D | logwrap.c | 307 int rc = 0; local 357 rc = -1; 408 rc = errno; 422 rc = WEXITSTATUS(status); 424 rc = -ECHILD; 464 return rc; 489 int rc = 0; local 491 rc = pthread_mutex_lock(&fd_mutex); 492 if (rc) { 501 rc [all...] |
/system/extras/ksmutils/ |
H A D | ksminfo.c | 78 int rc = EXIT_SUCCESS; local 138 rc = EXIT_FAILURE; 155 rc = EXIT_FAILURE; 163 rc = EXIT_FAILURE; 170 rc = EXIT_FAILURE; 186 return rc; 203 int rc = 0; local 226 rc = -1; 272 rc = -1; 279 rc 444 int rc = 0; local [all...] |
/system/media/audio_utils/ |
H A D | echo_reference.c | 221 int rc; local 226 rc = create_resampler(er->wr_sampling_rate, 232 if (rc != 0) { 234 ALOGV("echo_reference_write() failure to create resampler %d", rc);
|
/system/core/adb/ |
H A D | sysdeps.h | 92 int rc = unlink(path); local 94 if (rc == -1 && errno == EACCES) { 97 rc = chmod(path, _S_IREAD|_S_IWRITE ); 98 if (rc == 0) 99 rc = unlink(path); 101 return rc; 467 int rc; local 469 rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); 470 if (rc < 0)
|
H A D | sysdeps_win32.c | 570 int rc = WSAStartup( MAKEWORD(2,2), &wsaData); local 571 if (rc != 0) {
|
/system/core/fastboot/ |
H A D | fastboot.c | 716 int rc; local 754 rc = load_buf_fd(usb, fd, &buf); 755 if (rc) die("cannot load %s from flash", images[i].img_name);
|
/system/security/keystore/ |
H A D | keystore.cpp | 104 int rc; local 107 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); 108 if (rc) { 113 rc = keymaster_open(mod, dev); 114 if (rc) { 116 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); 124 return rc; 997 ResponseCode rc = keyBlob->readBlob(filename, userState->getDecryptionKey(), local 999 if (rc != NO_ERROR) { 1000 return rc; 1080 int rc; local 1311 ResponseCode rc = importKey(pkcs8key.get(), len, filename, uid, local 1614 ResponseCode rc = mKeyStore->reset(callingUid) ? ::NO_ERROR : ::SYSTEM_ERROR; local 1734 int rc; local 1901 int rc; local 1955 int rc; local 2029 int rc; local 2067 ResponseCode rc = ::NO_ERROR; local 2259 ResponseCode rc = ::NO_ERROR; local [all...] |