Searched defs:rc (Results 1 - 25 of 37) sorted by last modified time

12

/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...]
/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 DExt4.cpp50 int rc; local
59 rc = mount(fsPath, mountPoint, "ext4", flags, NULL);
61 if (rc && errno == EROFS) {
64 rc = mount(fsPath, mountPoint, "ext4", flags, NULL);
67 return rc;
73 int rc; local
79 rc = logwrap(3, args, 1);
81 if (rc == 0) {
85 SLOGE("Format (ext4) failed (unknown exit code %d)", rc);
H A DFat.cpp56 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 DLoop.cpp46 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 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...]
H A Dlogwrapper.c164 int rc = parent(argv[0], parent_ptty); local
166 return rc;
H A Dvdc.c93 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++) {
/system/core/adb/
H A Dbackup_service.c32 int rc = unix_socketpair( AF_UNIX, SOCK_STREAM, 0, sv ); local
33 if (rc < 0)
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/core/init/
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");
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;
/system/core/libcorkscrew/
H A Dbacktrace.c102 _Unwind_Reason_Code rc =_Unwind_Backtrace(unwind_backtrace_callback, &state); local
109 return rc == _URC_END_OF_STACK ? 0 : -1;
/system/core/libcutils/
H A Diosched_policy.c52 int rc; local
54 if ((rc = ioprio_get(WHO_PROCESS, pid)) < 0) {
58 *clazz = (rc >> CLASS_SHIFT);
59 *ioprio = (rc & 0xff);
H A Dsched_policy.c246 int rc = sched_getscheduler(tid); local
247 if (rc < 0)
249 else if (rc == SCHED_NORMAL)
251 else if (rc == SCHED_BATCH)
282 int rc = read(fd, statline, 1023); local
284 statline[rc] = 0;
/system/core/libnl_2/
H A Dattr.c78 int rc; local
80 rc = nla_put(msg, attrtype, 0, NULL);
81 if (rc < 0)
195 int rc; local
197 rc = nla_put(msg, attrtype, nlmsg_attrlen(nlmsg_hdr(nested), 0),
199 return rc;
H A Dnetlink.c60 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...]
/system/core/libnl_2/genl/
H A Dgenl.c95 int rc = -1; local
171 rc = -errno;
243 rc = 0;
247 return rc;
/system/core/libsysutils/src/
H A DSocketClient.cpp145 int rc = sendDataLocked(data, len); local
148 return rc;
152 int rc = 0; local
166 rc = send(mSocket, p, brtw, MSG_NOSIGNAL);
167 if (rc > 0) {
168 p += rc;
169 brtw -= rc;
173 if (rc < 0 && errno == EINTR)
176 if (rc == 0) {
H A DSocketListener.cpp107 int rc; local
109 rc = TEMP_FAILURE_RETRY(write(mCtrlPipe[1], &c, 1));
110 if (rc != 1) {
153 int rc = 0; local
176 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) {
182 } else if (!rc)
/system/core/toolbox/
H A Dchcon.c9 int rc, i; local
17 rc = setfilecon(argv[i], argv[1]);
18 if (rc < 0) {

Completed in 119 milliseconds

12