Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 54) sorted by relevance

123

/system/core/libstats/include/
Dstats_event_list.h59 int retval = android_log_destroy(&ctx); in close() local
60 if (retval < 0) { in close()
61 ret = retval; in close()
63 return retval; in close()
73 int retval = android_log_write_list_begin(ctx); in begin() local
74 if (retval < 0) { in begin()
75 ret = retval; in begin()
80 int retval = android_log_write_list_end(ctx); in end() local
81 if (retval < 0) { in end()
82 ret = retval; in end()
[all …]
/system/core/liblog/include/log/
Dlog_event_list.h142 int retval = android_log_destroy(&ctx); in close() local
143 if (retval < 0) ret = retval; in close()
144 return retval; in close()
158 int retval = android_log_write_list_begin(ctx); in begin() local
159 if (retval < 0) ret = retval; in begin()
163 int retval = android_log_write_list_end(ctx); in end() local
164 if (retval < 0) ret = retval; in end()
169 int retval = android_log_write_int32(ctx, value); variable
170 if (retval < 0) ret = retval;
175 int retval = android_log_write_int32(ctx, static_cast<int32_t>(value)); variable
[all …]
/system/tpm/trunks/ftdi/
Dmpsse.c259 int retval = MPSSE_OK, i = 0, setup_commands_size = 0; in SetMode() local
367 retval = MPSSE_FAIL; in SetMode()
371 if (retval == MPSSE_OK && setup_commands_size > 0) { in SetMode()
372 retval = raw_write(mpsse, setup_commands, setup_commands_size); in SetMode()
375 if (retval == MPSSE_OK) { in SetMode()
387 retval = raw_write(mpsse, buf, i); in SetMode()
390 retval = MPSSE_FAIL; in SetMode()
393 return retval; in SetMode()
406 int retval = MPSSE_FAIL; in SetClock() local
435 retval = MPSSE_OK; in SetClock()
[all …]
Dsupport.c32 int retval = MPSSE_FAIL; variable
36 retval = MPSSE_OK;
40 return retval;
228 int retval = MPSSE_FAIL; in gpio_write() local
238 retval = raw_write(mpsse, (uint8_t*)&mpsse->bitbang, 1); in gpio_write()
257 retval = set_bits_low(mpsse, mpsse->pstop); in gpio_write()
268 retval = set_bits_high(mpsse, mpsse->gpioh); in gpio_write()
272 return retval; in gpio_write()
/system/core/libcutils/tests/
Dfs_config.cpp67 bool retval = false; in check_unique() local
78 retval = true; in check_unique()
92 retval = true; in check_unique()
109 retval = true; in check_unique()
113 return retval; in check_unique()
122 bool retval = false; in check_unique() local
127 retval = true; in check_unique()
133 return check_unique(paths_tmp, config, prefix) || retval; in check_unique()
137 bool match, retval = false; in check_fs_config_cmp() local
145 retval = true; in check_fs_config_cmp()
[all …]
/system/core/logd/
DLogBufferElement.cpp94 char* retval = NULL; in tidToName() local
108 retval = strdup(buffer); in tidToName()
115 if (!retval) { in tidToName()
116 retval = name; in tidToName()
123 size_t retval_len = strlen(retval); in tidToName()
127 !fastcmp<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
128 free(retval); in tidToName()
129 retval = name; in tidToName()
134 return retval; in tidToName()
208 size_t retval = hdrLen + len; in populateDroppedMessage() local
[all …]
/system/core/toolbox/upstream-netbsd/lib/libutil/
Draise_default_signal.c68 int retval, oerrno; in raise_default_signal() local
70 retval = -1; in raise_default_signal()
99 retval = 0; in raise_default_signal()
114 return retval; in raise_default_signal()
/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp30 uint8_t* retval = new (std::nothrow) uint8_t[size]; in dup_buffer() local
31 if (retval) in dup_buffer()
32 memcpy(retval, buf, size); in dup_buffer()
33 return retval; in dup_buffer()
Dandroid_keymaster_messages.cpp184 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize() local
185 if (retval && message_version > 0) in NonErrorDeserialize()
186 retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
187 return retval; in NonErrorDeserialize()
206 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize() local
207 if (retval && message_version > 0) in Deserialize()
208 retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
209 return retval; in Deserialize()
243 bool retval = output.Deserialize(buf_ptr, end); in NonErrorDeserialize() local
244 if (retval && message_version > 0) in NonErrorDeserialize()
[all …]
/system/nfc/src/nfc/tags/
Drw_t3t.cc606 tNFC_STATUS retval; in rw_t3t_send_cmd() local
618 retval = rw_t3t_send_to_lower(p_cmd_buf); in rw_t3t_send_cmd()
619 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd()
630 timeout_ticks, retval); in rw_t3t_send_cmd()
631 return (retval); in rw_t3t_send_cmd()
645 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd() local
712 retval = rw_t3t_send_cmd(p_cb, RW_T3T_CMD_UPDATE_NDEF, p_cmd_buf, in rw_t3t_send_update_ndef_attribute_cmd()
715 retval = NFC_STATUS_NO_BUFFERS; in rw_t3t_send_update_ndef_attribute_cmd()
718 return (retval); in rw_t3t_send_update_ndef_attribute_cmd()
731 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd() local
[all …]
/system/core/logcat/
Dlogcatd_main.cpp65 int retval = android_logcat_run_command(ctx, -1, -1, argv_hold.size() - 1, in main() local
67 if (!ret) ret = retval; in main()
68 retval = android_logcat_destroy(&ctx); in main()
69 if (!ret) ret = retval; in main()
Dlogcat_main.cpp26 int retval = android_logcat_run_command(ctx, -1, -1, argc, argv, envp); in main() local
28 if (!ret) ret = retval; in main()
Dlogcat_system.cpp103 FILE* retval = fdopen(duped, "reb"); in android_logcat_popen() local
104 if (!retval) { in android_logcat_popen()
108 return retval; in android_logcat_popen()
145 int retval = android_logcat_run_command(ctx, -1, -1, argv.size() - 1, in android_logcat_system() local
151 if (!ret) ret = retval; in android_logcat_system()
Dlogcat.cpp81 volatile std::atomic_int retval; // valid if thread_stopped set member
605 context->retval = EXIT_FAILURE; in logcat_panic()
641 log_time retval(log_time::EPOCH); in lastLogTime() local
642 if (!outputFileName) return retval; in lastLogTime()
656 if (!dir.get()) return retval; in lastLogTime()
693 if ((t < now) && (t > retval)) { in lastLogTime()
694 retval = t; in lastLogTime()
701 if (retval == log_time::EPOCH) return retval; in lastLogTime()
704 retval += modulo; in lastLogTime()
705 return retval; in lastLogTime()
[all …]
/system/update_engine/
Dboot_control_chromeos.cc166 int retval = CgptGetPartitionDetails(&params); in IsSlotBootable() local
167 if (retval != CGPT_OK) in IsSlotBootable()
197 int retval = CgptSetAttributes(&params); in MarkSlotUnbootable() local
198 if (retval != CGPT_OK) { in MarkSlotUnbootable()
221 int retval = CgptPrioritize(&prio_params); in SetActiveBootSlot() local
222 if (retval != CGPT_OK) { in SetActiveBootSlot()
237 retval = CgptSetAttributes(&add_params); in SetActiveBootSlot()
238 if (retval != CGPT_OK) { in SetActiveBootSlot()
/system/media/camera/docs/
Dmetadata-parser-sanity-check37 local retval=$?
38 if [[ $retval -ne 0 ]]
45 return $retval
/system/core/storaged/tests/
Dstoraged_test.cpp185 struct disk_perf retval; in disk_perf_multiply() local
186 retval.read_perf = (double)perf.read_perf * mul; in disk_perf_multiply()
187 retval.read_ios = (double)perf.read_ios * mul; in disk_perf_multiply()
188 retval.write_perf = (double)perf.write_perf * mul; in disk_perf_multiply()
189 retval.write_ios = (double)perf.write_ios * mul; in disk_perf_multiply()
190 retval.queue = (double)perf.queue * mul; in disk_perf_multiply()
192 return retval; in disk_perf_multiply()
196 struct disk_stats retval; in disk_stats_add() local
197 retval.read_ios = stats1.read_ios + stats2.read_ios; in disk_stats_add()
198 retval.read_merges = stats1.read_merges + stats2.read_merges; in disk_stats_add()
[all …]
/system/core/liblog/
Dlogger_read.c137 ssize_t retval = \
140 ret = retval; \
189 ssize_t retval = \
192 ret = retval; \
398 int retval = transp->ret; in android_logger_list_read() local
399 if ((retval > 0) && !transp->logMsg.entry.len) { in android_logger_list_read()
401 retval = transp->ret = 0; in android_logger_list_read()
404 retval = android_transport_read(logger_list_internal, transp, in android_logger_list_read()
418 retval = transp->ret = pollval; in android_logger_list_read()
420 retval = android_transport_read(logger_list_internal, transp, in android_logger_list_read()
[all …]
/system/libhwbinder/vts/performance/
DBenchmark_binder.cpp105 int stat, retval; in main() local
106 retval = wait(&stat); in main()
107 if (retval == -1 && errno == ECHILD) { in main()
DBenchmark.cpp141 int stat, retval; in main() local
142 retval = wait(&stat); in main()
143 if (retval == -1 && errno == ECHILD) { in main()
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc136 int retval = -1; in BtifAvrcpAudioTrackWriteData() local
142 retval = trackHolder->track->write(audioBuffer, (size_t)bufferlen); in BtifAvrcpAudioTrackWriteData()
144 bufferlen, retval); in BtifAvrcpAudioTrackWriteData()
145 return retval; in BtifAvrcpAudioTrackWriteData()
/system/iot/attestation/atap/test/
Datap_unittest_util.h70 uint8_t* retval = (uint8_t*)&buf[*index]; in next() local
72 return retval; in next()
/system/keymaster/tests/
Dckdf_test.cpp75 Blob retval(reinterpret_cast<const uint8_t*>(bytes.data()), bytes.size()); in hex2span()
76 return std::move(retval); in hex2span()
/system/bt/vendor_libs/linux/interface/
Dasync_fd_watcher.cc146 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr); in ThreadRoutine() local
149 if (retval < 0) continue; in ThreadRoutine()
152 if (retval == 0) { in ThreadRoutine()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp120 int retval = -1; in verify_table() local
139 retval = 0; in verify_table()
143 return retval; in verify_table()
756 int retval = FS_MGR_SETUP_VERITY_FAIL; in fs_mgr_setup_verity() local
771 return retval; in fs_mgr_setup_verity()
779 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
787 retval = FS_MGR_SETUP_VERITY_DISABLED; in fs_mgr_setup_verity()
839 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
845 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
935 retval = FS_MGR_SETUP_VERITY_SUCCESS; in fs_mgr_setup_verity()
[all …]

123