/system/vold/ |
H A D | CommandListener.cpp | 131 int rc = 0; local 147 rc = vm->mountVolume(argv[2]); 164 rc = vm->unmountVolume(argv[2], force, revert); 175 rc = vm->formatVolume(argv[2], wipe); 182 rc = vm->shareVolume(argv[2], argv[3]); 189 rc = vm->unshareVolume(argv[2], argv[3]); 211 rc = vm->mkdirs(argv[2]); 216 if (!rc) { 220 rc = ResponseCode::convertFromErrno(); 221 cli->sendMsg(rc, "volum 344 int rc = 0; local 486 int rc = 0; local 569 int rc = 0; local 758 int rc = 0; local [all...] |
H A D | Ext4.cpp | 51 int rc; local 60 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); 62 if (rc && errno == EROFS) { 65 rc = mount(fsPath, mountPoint, "ext4", flags, NULL); 68 return rc; 74 int rc; local 86 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, false, 89 if (rc != 0) { 117 int rc; local 131 rc [all...] |
H A D | Fat.cpp | 60 int rc = 0; local 69 rc = android_fork_execvp(ARRAY_SIZE(args), (char **)args, &status, 71 if (rc != 0) { 118 int rc; local 146 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 148 if (rc && errno == EROFS) { 151 rc = mount(fsPath, mountPoint, "vfat", flags, mountData); 154 if (rc == 0 && createLost) { 169 return rc; 175 int rc; local [all...] |
H A D | Loop.cpp | 46 int rc; local 59 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 61 if (rc < 0 && errno == ENXIO) { 65 if (rc < 0) { 90 int rc; local 103 rc = ioctl(fd, LOOP_GET_STATUS64, &li); 105 if (rc < 0 && errno == ENXIO) { 109 if (rc < 0) { 134 int rc; local 156 rc [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 | 1045 int i, rc; local 1047 rc = umount(mountPoint); 1048 if (!rc) { 1051 if (rc && (errno == EINVAL || errno == ENOENT)) { 1053 rc = 0; 1072 if (rc) { 1735 int rc; local 1738 rc = vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT); 1740 rc = -1; 1742 return rc; 1750 int rc = 0; local 1835 int rc = 0; local [all...] |
H A D | cryptfs.c | 102 int rc; local 105 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); 106 if (rc) { 111 rc = keymaster_open(mod, keymaster_dev); 112 if (rc) { 114 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); 122 return rc; 129 int rc = 0; local 133 rc = -1; 141 rc 166 int rc = 0; local 203 int rc = 0; local 433 int rc = -1; local 487 int rc = -1; local 623 int rc = -1; local 1220 int rc; local 1272 int rc = 0; local 1451 int i, err, rc; local 1569 int rc = -1, i; local 1749 int rc; local 2025 int rc; local 2074 int rc; local 2171 int rc = -1; local 2360 int rc = -1; local 2449 int rc; // Can't initialize without causing warning -Wclobbered local 2582 int rc = ENABLE_INPLACE_ERR_OTHER; local 2659 int rc = ENABLE_INPLACE_ERR_OTHER; local 2873 int i, rc = -1; local 2928 int rc=-1, fd, i, ret; local 3301 int rc = cryptfs_enable_internal(howarg, type, passwd, allow_reboot); local 3357 int rc = update_hw_device_encryption_key(DEFAULT_PASSWORD, (char*) crypt_ftr.crypto_type_name); local 3362 int rc = update_hw_device_encryption_key(newpw, (char*) crypt_ftr.crypto_type_name); local 3548 int rc = CRYPTO_GETFIELD_ERROR_OTHER; local 3608 int rc = CRYPTO_SETFIELD_ERROR_OTHER; local [all...] |
H A D | vdc.c | 111 int rc = 0; local 119 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 123 } else if (!rc) { 129 if ((rc = read(sock, buffer, 4096)) <= 0) { 130 if (rc == 0) 135 if (rc == 0) 143 for (i = 0; i < rc; i++) {
|
/system/media/audio_utils/ |
H A D | echo_reference.c | 223 int rc; local 228 rc = create_resampler(er->wr_sampling_rate, 234 if (rc != 0) { 236 ALOGV("echo_reference_write() failure to create resampler %d", rc);
|
/system/netd/server/ |
H A D | CommandListener.cpp | 507 int rc = 0; local 522 rc = sTetherCtrl->setIpFwdEnabled(true); 524 rc = sTetherCtrl->setIpFwdEnabled(false); 530 if (!rc) { 545 int rc = 0; local 553 rc = sTetherCtrl->stopTethering(); 607 rc = sTetherCtrl->startTethering(num_addrs, addrs); 611 rc = sTetherCtrl->tetherInterface(argv[3]); 613 rc = sTetherCtrl->untetherInterface(argv[3]); 627 rc 655 int rc = 0; local 695 int rc = 0; local 747 int rc = ResponseCode::SoftapStatusResult; local 792 int rc = 0; local 871 int rc = sBandwidthCtrl->enableBandwidthControl(true); local 877 int rc = sBandwidthCtrl->disableBandwidthControl(); local 887 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local 898 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local 918 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local 935 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local 940 int rc; local 962 int rc; local 988 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local 998 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local 1008 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local 1019 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local 1029 int rc = sBandwidthCtrl->enableHappyBox(); local 1035 int rc = sBandwidthCtrl->disableHappyBox(); local 1047 int rc = sBandwidthCtrl->addNiceApps(argc - 2, argv + 2); local 1056 int rc = sBandwidthCtrl->removeNiceApps(argc - 2, argv + 2); local 1065 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local 1075 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local 1085 int rc = sBandwidthCtrl->removeGlobalAlert(); local 1096 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local 1106 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local 1116 int rc = sBandwidthCtrl->removeSharedAlert(); local 1126 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local 1136 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local 1155 int rc = sBandwidthCtrl->getTetherStats(cli, tetherStats, extraProcessingInfo); local 1343 int rc = 0; local [all...] |
H A D | NatController.cpp | 303 int rc = 0; local 339 rc = -1; 345 rc = -1; 350 rc = -1; 362 return rc;
|
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/security/keystore/ |
H A D | keystore.cpp | 106 int rc; local 109 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod); 110 if (rc) { 115 rc = keymaster_open(mod, dev); 116 if (rc) { 118 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc)); 126 return rc; 1084 ResponseCode rc = keyBlob->readBlob(filename, userState->getDecryptionKey(), local 1086 if (rc != NO_ERROR) { 1087 return rc; 1138 ResponseCode rc = get(filename, &keyBlob, type, uid); local 1232 int rc; local 1466 ResponseCode rc = importKey(pkcs8key.get(), len, filename, uid, local 1842 int rc; local 2011 int rc; local 2066 int rc; local 2141 int rc; local [all...] |
/system/core/adb/ |
H A D | sysdeps.h | 93 int rc = unlink(path); local 95 if (rc == -1 && errno == EACCES) { 98 rc = chmod(path, _S_IREAD|_S_IWRITE ); 99 if (rc == 0) 100 rc = unlink(path); 102 return rc; 470 int rc; local 472 rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); 473 if (rc < 0)
|
H A D | sysdeps_win32.c | 571 int rc = WSAStartup( MAKEWORD(2,2), &wsaData); local 572 if (rc != 0) {
|
/system/core/fastboot/ |
H A D | fastboot.c | 731 int rc; local 769 rc = load_buf_fd(usb, fd, &buf); 770 if (rc) die("cannot load %s from flash", images[i].img_name);
|
/system/core/fs_mgr/ |
H A D | fs_mgr.c | 374 int rc = fs_mgr_setup_verity(&fstab->recs[i]); local 375 if (device_is_debuggable() && rc == FS_MGR_SETUP_VERITY_DISABLED) { 377 } else if (rc != FS_MGR_SETUP_VERITY_SUCCESS) { 495 int rc = fs_mgr_setup_verity(&fstab->recs[i]); local 496 if (device_is_debuggable() && rc == FS_MGR_SETUP_VERITY_DISABLED) { 498 } else if (rc != FS_MGR_SETUP_VERITY_SUCCESS) {
|
/system/core/init/ |
H A D | builtins.c | 522 NOTICE("waitpid failed rc=%d, errno=%d\n", wp_ret, errno); 754 int rc = 0; local 778 rc = read(fd1, p, brtr); 779 if (rc < 0) 781 if (rc == 0) 783 p += rc; 784 brtr -= rc; 790 rc = write(fd2, p, brtw); 791 if (rc < 0) 793 if (rc [all...] |
H A D | init.c | 174 int rc; local 223 rc = getcon(&mycon); 224 if (rc < 0) { 229 rc = getfilecon(svc->args[0], &fcon); 230 if (rc < 0) { 236 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon); 237 if (rc == 0 && !strcmp(scon, mycon)) { 242 if (rc < 0) { 1024 * let the rc file figure out the rest. 1077 init_parse_config_file("/init.rc"); [all...] |
H A D | util.c | 84 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the 507 int rc; local 516 rc = mkdir(path, mode); 525 return rc;
|
/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);
|
H A D | sched_policy.c | 226 int rc = sched_getscheduler(tid); local 227 if (rc < 0) 229 else if (rc == SCHED_NORMAL) 231 else if (rc == SCHED_BATCH) 262 int rc = read(fd, statline, 1023); local 264 statline[rc] = 0;
|
/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/libsysutils/src/ |
H A D | SocketClient.cpp | 158 int rc = sendDataLockedv(vec, 1); local 161 return rc; 166 int rc = sendDataLockedv(iov, iovcnt); local 169 return rc; 193 ssize_t rc = TEMP_FAILURE_RETRY( local 196 if (rc > 0) { 197 size_t written = rc; 210 if (rc == 0) {
|
H A D | SocketListener.cpp | 112 int rc; local 114 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1)); 115 if (rc != 1) { 158 int rc = 0; local 183 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { 189 } else if (!rc)
|