/system/core/trusty/storage/proxy/ |
H A D | ipc.c | 37 int rc; local 43 rc = tipc_connect(device, port); 44 if (rc >= 0) 47 ALOGE("failed (%d) to connect to storage server\n", rc); 55 tipc_fd = rc; 69 ssize_t rc; local 74 rc = readv(tipc_fd, iovs, 2); 75 if (rc < 0) { 77 return rc; 81 if ((size_t)rc < sizeo 98 ssize_t rc; local [all...] |
H A D | proxy.c | 100 int rc; local 114 rc = storage_sync_checkpoint(); 115 if (rc < 0) { 123 rc = storage_file_delete(msg, req, req_len); 127 rc = storage_file_open(msg, req, req_len); 131 rc = storage_file_close(msg, req, req_len); 135 rc = storage_file_write(msg, req, req_len); 139 rc = storage_file_read(msg, req, req_len); 143 rc = storage_file_get_size(msg, req, req_len); 147 rc 169 ssize_t rc; local 231 int rc; local [all...] |
/system/extras/tests/pagingtest/ |
H A D | pageinout_test.c | 20 int rc; local 49 rc = madvise((void *)buf, file_size, MADV_RANDOM) || 51 if (rc) { 72 rc = madvise((void *)buf, file_size, MADV_DONTNEED) || 75 if (rc) {
|
H A D | pagingtest.c | 23 ssize_t rc; local 58 rc = read(urandom, tmp_buf, tmp_size); 60 if (rc < 0) { 65 tmp_buf += rc; 66 tmp_size -= rc; 79 rc = posix_fadvise(fd, 0, size, POSIX_FADV_DONTNEED); 80 if (rc) { 144 int rc; local 166 rc = mmap_test(test_runs, alloc_size); 167 if (rc) { [all...] |
/system/keymaster/legacy_support/ |
H A D | keymaster_passthrough_operation.h | 49 keymaster_error_t rc; variable 50 rc = km_device_->begin(km_device_, purpose(), &key_blob_, &input_params, &out_params, 52 if (rc == KM_ERROR_OK && output_params) output_params->Reinitialize(out_params); 54 return rc; 62 keymaster_error_t rc; variable 63 rc = km_device_->update(km_device_, operation_handle_, &input_params, &in, input_consumed, 65 if (rc == KM_ERROR_OK) { 71 return rc;
|
/system/nvram/hal/ |
H A D | testing_nvram_implementation.cpp | 82 int rc = local 85 if (rc < 0) { 90 nvram_socket_fd_ = rc; 106 ssize_t rc = TEMP_FAILURE_RETRY( local 108 if (rc < 0) { 113 rc = TEMP_FAILURE_RETRY( 115 if (rc < 0 || static_cast<size_t>(rc) > sizeof(command_buffer_)) { 120 if (!nvram::Decode(command_buffer_, static_cast<size_t>(rc), response)) {
|
/system/security/keystore/ |
H A D | confirmationui_rate_limiting.h | 99 void processResult(ConfirmationResponseCode rc) { argument 100 switch (rc) {
|
/system/vold/fs/ |
H A D | Exfat.cpp | 46 int rc = ForkExecvp(cmd, sFsckUntrustedContext); local 47 if (rc == 0) { 51 LOG(ERROR) << "Check failed (code " << rc << ")"; 83 int rc = ForkExecvp(cmd); local 84 if (rc == 0) { 88 LOG(ERROR) << "Format failed (code " << rc << ")";
|
H A D | Vfat.cpp | 65 int rc = 0; local 74 rc = ForkExecvp(cmd, sFsckUntrustedContext); 76 if (rc < 0) { 82 switch(rc) { 107 LOG(ERROR) << "Filesystem check failed (unknown exit code " << rc << ")"; 119 int rc; local 135 rc = mount(c_source, c_target, "vfat", flags, mountData.c_str()); 137 if (rc && errno == EROFS) { 140 rc = mount(c_source, c_target, "vfat", flags, mountData.c_str()); 143 if (rc 177 int rc = ForkExecvp(cmd); local [all...] |
/system/bt/btcore/test/ |
H A D | device_class_test.cc | 84 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 85 EXPECT_EQ(3, rc); 102 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 103 EXPECT_EQ(3, rc); 119 int rc = device_class_to_stream(&dc, dc_stream1, sizeof(dc_stream1)); local 120 EXPECT_EQ(3, rc);
|
/system/bt/utils/src/ |
H A D | bt_utils.cc | 114 int rc = 0; local 124 rc = -1; 130 rc = set_sched_policy(tid, SP_AUDIO_SYS); 137 if (rc) { 148 const int rc = sched_setscheduler(tid, SCHED_FIFO, &rt_params); local 149 if (rc != 0) {
|
/system/core/init/ |
H A D | firmware_handler.cpp | 45 int rc = sendfile(data_fd, fw_fd, nullptr, fw_size); local 46 if (rc == -1) { 52 const char* response = (rc != -1) ? "0" : "-1";
|
/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/libpackagelistparser/ |
H A D | packagelistparser.c | 100 bool rc = false; local 219 rc = parse_gids(cur, pkg_info->gids.gids, &pkg_info->gids.cnt); 220 if (!rc) { 226 rc = callback(pkg_info, userdata); 227 if (rc == false) { 233 rc = true; 239 rc = true; 244 return rc; 251 rc = false;
|
/system/core/logd/ |
H A D | libaudit.c | 35 int rc; local 43 rc = audit_get_reply(fd, &rep, GET_REPLY_BLOCKING, MSG_PEEK); 44 if (rc < 0) { 45 return rc; 50 rc = ((struct nlmsgerr*)rep.data)->error; 51 if (rc) { 52 return -rc; 73 int rc; local 123 rc = TEMP_FAILURE_RETRY(sendto(fd, &req, req.nlh.nlmsg_len, 0, 127 if (rc < 151 int rc; local 194 int rc = 0; local [all...] |
/system/extras/libfec/ |
H A D | fec_process.cpp | 26 ssize_t rc; member in struct:process_info 38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); 81 ssize_t rc = 0; local 93 info[i].rc = -1; 104 rc = -1; 124 rc = -1; 125 } else if (!p || p->rc == -1) { 126 rc = -1; 128 nread += p->rc; 133 if (rc [all...] |
/system/netd/server/ |
H A D | ndc.cpp | 126 int rc = 0; local 134 rc = TEMP_FAILURE_RETRY(select(sock +1, &read_fds, NULL, NULL, &to)); 135 if (rc < 0) { 141 if (rc == 0) { 149 if ((rc = read(sock, buffer, 4096)) <= 0) { 151 if (rc == 0) 156 if (rc == 0) 164 for (i = 0; i < rc; i++) {
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | attribute.c | 75 int rc = -1; local 105 rc = list_all_attributes(policydb); 107 rc = list_attribute(policydb, argv[optind], reverse); 109 return rc;
|
/system/sepolicy/tools/ |
H A D | version_policy.c | 31 int rc = SEPOL_ERR; local 43 rc = stat(path, &filedata); 44 if (rc == -1) { 52 rc = SEPOL_ERR; 55 rc = fread(buff, file_size, 1, file); 56 if (rc != 1) { 58 rc = SEPOL_ERR; 65 rc = cil_add_file(*db, path, buff, file_size); 66 if (rc != SEPOL_OK) { 78 return rc; 85 int rc = SEPOL_ERR; local [all...] |
/system/tools/hidl/test/hidl_test/ |
H A D | FooCallback.cpp | 91 ::android::status_t rc = mCond.waitRelative(mLock, leftToWaitNs); local 92 if (rc != ::android::OK) { 93 ALOGW("SERVER(FooCallback)::reportResults(%" PRId64 " ns) Condition::waitRelative(%" PRId64 ") returned error (%d)", ns, leftToWaitNs, rc); 94 if (rc == -ETIMEDOUT) {
|
/system/tpm/trunks/ |
H A D | trunks_client.cc | 93 trunks::TPM_RC rc; local 94 rc = factory.GetTpmUtility()->TakeOwnership(owner_password, owner_password, 96 if (rc) { 97 LOG(ERROR) << "Error taking ownership: " << trunks::GetErrorString(rc); 98 return rc;
|
/system/update_engine/common/ |
H A D | hash_calculator.cc | 60 ssize_t rc = HANDLE_EINTR(read(fd, buffer.data(), bytes_to_read)); local 61 if (rc == 0) { // EOF 64 if (rc < 0 || !Update(buffer.data(), rc)) { 68 bytes_processed += rc;
|
/system/bt/btif/src/ |
H A D | btif_debug_btsnoop.cc | 145 bool rc = true; 162 rc = false; 172 return rc; 202 bool rc; local 207 rc = btsnoop_compress(ringbuffer, buffer); 210 if (!rc) {
|
/system/bt/osi/src/ |
H A D | thread.cc | 151 const int rc = setpriority(PRIO_PROCESS, thread->tid, priority); local 152 if (rc < 0) { 155 __func__, priority, thread->tid, rc); 168 const int rc = sched_setscheduler(thread->tid, SCHED_FIFO, &rt_params); local 169 if (rc != 0) {
|
/system/bt/stack/avdt/ |
H A D | avdt_l2c.cc | 171 tBTM_STATUS rc; local 208 rc = btm_sec_mx_access_request(bd_addr, AVDT_PSM, false, 211 if (rc == BTM_CMD_STARTED) {
|