Searched defs:rc (Results 26 - 37 of 37) sorted by relevance

12

/system/vold/
H A DCommandListener.cpp125 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);
310 int rc local
440 int rc = 0; local
551 int rc = 0; local
[all...]
H A DVolume.cpp294 int n, i, rc = 0; local
599 int i, rc; local
705 int rc = apply_disk_config(&dinfo, 0); local
707 if (rc) {
708 SLOGE("Failed to apply disk configuration (%d)", rc);
717 return rc;
H A DVolumeManager.cpp700 int i, rc; local
702 rc = umount(mountPoint);
703 if (!rc) {
706 if (rc && (errno == EINVAL || errno == ENOENT)) {
708 rc = 0;
727 if (rc) {
1378 int rc; local
1381 rc = vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT);
1383 rc = -1;
1385 return rc;
1393 int rc = 0; local
1478 int rc = unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT); local
[all...]
H A Dcryptfs.c151 int rc = -1; local
236 rc = 0;
240 return rc;
250 int rc = -1; local
350 rc = 0;
354 return rc;
589 int i, rc; local
610 rc = 0;
613 rc = -1;
616 return rc;
657 int rc = -1, i; local
790 int rc; local
925 int rc = -1; local
940 int rc; local
1005 int rc = -1; local
1051 int rc = -1; local
1141 int rc=-1, fd, i, ret; local
[all...]
/system/core/init/
H A Dutil.c84 * ("/dev/socket") as dictated in init.rc. This socket is inherited by the
469 int rc; local
480 rc = mkdir(path, mode);
490 return rc;
H A Dbuiltins.c658 int rc = 0; local
682 rc = read(fd1, p, brtr);
683 if (rc < 0)
685 if (rc == 0)
687 p += rc;
688 brtr -= rc;
694 rc = write(fd2, p, brtw);
695 if (rc < 0)
697 if (rc == 0)
699 p += rc;
[all...]
H A Dinit.c169 int rc; local
212 rc = getcon(&mycon);
213 if (rc < 0) {
218 rc = getfilecon(svc->args[0], &fcon);
219 if (rc < 0) {
225 rc = security_compute_create(mycon, fcon, string_to_security_class("process"), &scon);
228 if (rc < 0) {
859 * let the rc file figure out the rest.
923 init_parse_config_file("/init.rc");
/system/media/audio_utils/
H A Decho_reference.c219 int rc; local
224 rc = create_resampler(er->wr_sampling_rate,
230 if (rc != 0) {
232 ALOGV("echo_reference_write() failure to create resampler %d", rc);
/system/core/adb/
H A Dsysdeps.h92 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;
452 int rc; local
454 rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv );
455 if (rc < 0)
H A Dsysdeps_win32.c570 int rc = WSAStartup( MAKEWORD(2,2), &wsaData); local
571 if (rc != 0) {
/system/netd/
H A DCommandListener.cpp288 int rc = 0; local
292 rc = ThrottleController::getInterfaceRxThrottle(argv[2], &val);
294 rc = ThrottleController::getInterfaceTxThrottle(argv[2], &val);
297 if (rc) {
320 int rc; local
328 rc = sInterfaceCtrl->interfaceCommand(argc, argv, &rbuf);
329 if (rc) {
595 int rc = 0; local
610 rc = sTetherCtrl->setIpFwdEnabled(true);
612 rc
633 int rc = 0; local
737 int rc = 0; local
774 int rc = 0; local
826 int rc = 0, flag = 0; local
874 int rc = 0; local
1011 int rc = sBandwidthCtrl->enableBandwidthControl(true); local
1017 int rc = sBandwidthCtrl->disableBandwidthControl(); local
1027 int rc = sBandwidthCtrl->removeInterfaceSharedQuota(argv[2]); local
1038 int rc = sBandwidthCtrl->getInterfaceSharedQuota(&bytes); local
1058 int rc = sBandwidthCtrl->getInterfaceQuota(argv[2], &bytes); local
1075 int rc = sBandwidthCtrl->setInterfaceSharedQuota(argv[2], atoll(argv[3])); local
1080 int rc; local
1102 int rc; local
1128 int rc = sBandwidthCtrl->removeInterfaceQuota(argv[2]); local
1138 int rc = sBandwidthCtrl->setInterfaceQuota(argv[2], atoll(argv[3])); local
1148 int rc = sBandwidthCtrl->addNaughtyApps(argc - 2, argv + 2); local
1159 int rc = sBandwidthCtrl->removeNaughtyApps(argc - 2, argv + 2); local
1169 int rc = sBandwidthCtrl->setGlobalAlert(atoll(argv[2])); local
1180 int rc = sBandwidthCtrl->setGlobalAlertInForwardChain(); local
1190 int rc = sBandwidthCtrl->removeGlobalAlert(); local
1201 int rc = sBandwidthCtrl->removeGlobalAlertInForwardChain(); local
1211 int rc = sBandwidthCtrl->setSharedAlert(atoll(argv[2])); local
1221 int rc = sBandwidthCtrl->removeSharedAlert(); local
1231 int rc = sBandwidthCtrl->setInterfaceAlert(argv[2], atoll(argv[3])); local
1241 int rc = sBandwidthCtrl->removeInterfaceAlert(argv[2]); local
1256 int rc = sBandwidthCtrl->getTetherStats(tetherStats, extraProcessingInfo); local
[all...]
/system/security/keystore/
H A Dkeystore.cpp130 int rc; local
133 rc = hw_get_module_by_class(KEYSTORE_HARDWARE_MODULE_ID, NULL, &mod);
134 if (rc) {
139 rc = keymaster_open(mod, dev);
140 if (rc) {
142 KEYSTORE_HARDWARE_MODULE_ID, strerror(-rc));
150 return rc;
593 ResponseCode rc = keyBlob->decryptBlob(filename, &mMasterKeyDecryption); local
594 if (rc != NO_ERROR) {
595 return rc;
653 int rc; local
837 ResponseCode rc = importKey(&pkcs8key, filename); local
1002 ResponseCode rc = keyStore->reset() ? NO_ERROR : SYSTEM_ERROR; local
1066 int rc; local
1136 int rc = device->get_keypair_public(device, keyBlob.getValue(), keyBlob.getLength(), &data, local
1159 ResponseCode rc = NO_ERROR; local
1184 int rc; local
1224 int rc; local
[all...]

Completed in 72 milliseconds

12