Home
last modified time | relevance | path

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

123

/system/core/libstats/include/
Dstats_event_list.h60 int retval = android_log_destroy(&ctx); in close() local
61 if (retval < 0) { in close()
62 ret = retval; in close()
64 return retval; in close()
74 int retval = android_log_write_list_begin(ctx); in begin() local
75 if (retval < 0) { in begin()
76 ret = retval; in begin()
81 int retval = android_log_write_list_end(ctx); in end() local
82 if (retval < 0) { in end()
83 ret = retval; in end()
[all …]
/system/core/liblog/include/log/
Dlog_event_list.h128 int retval = android_log_destroy(&ctx); in close() local
129 if (retval < 0) ret = retval; in close()
130 return retval; in close()
144 int retval = android_log_write_list_begin(ctx); in begin() local
145 if (retval < 0) ret = retval; in begin()
149 int retval = android_log_write_list_end(ctx); in end() local
150 if (retval < 0) ret = retval; in end()
155 int retval = android_log_write_int32(ctx, value); variable
156 if (retval < 0) ret = retval;
161 int retval = android_log_write_int32(ctx, static_cast<int32_t>(value)); variable
[all …]
/system/core/libcutils/
Dfs_config_test.cpp77 bool retval = false; in check_unique() local
88 retval = true; in check_unique()
102 retval = true; in check_unique()
119 retval = true; in check_unique()
123 return retval; in check_unique()
132 bool retval = false; in check_unique() local
137 retval = true; in check_unique()
143 return check_unique(paths_tmp, config, prefix) || retval; in check_unique()
147 bool match, retval = false; in check_fs_config_cmp() local
155 retval = true; in check_fs_config_cmp()
[all …]
/system/core/logd/
DLogBufferElement.cpp105 char* retval = nullptr; in tidToName() local
119 retval = strdup(buffer); in tidToName()
126 if (!retval) { in tidToName()
127 retval = name; in tidToName()
134 size_t retval_len = strlen(retval); in tidToName()
138 !fastcmp<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
139 free(retval); in tidToName()
140 retval = name; in tidToName()
145 return retval; in tidToName()
219 size_t retval = hdrLen + len; in populateDroppedMessage() local
[all …]
/system/bt/audio_bluetooth_hw/
Ddevice_port_proxy.cc289 bool retval; in CondwaitState() local
295 retval = internal_cv_.wait_for( in CondwaitState()
298 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
303 retval = internal_cv_.wait_for( in CondwaitState()
306 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
314 return retval; // false if any failure like timeout in CondwaitState()
325 bool retval = false; in Start() local
329 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
336 if (retval) { in Start()
345 return retval; // false if any failure like timeout in Start()
[all …]
Dstream_apis.cc138 int retval = 0; in out_standby() local
146 retval = (out->bluetooth_output_.Suspend() ? 0 : -EIO); in out_standby()
153 retval = -EBUSY; in out_standby()
159 << " standby (suspend) retval=" << retval; in out_standby()
161 return retval; in out_standby()
174 int retval = 0; in out_set_parameters() local
181 if (params.empty()) return retval; in out_set_parameters()
252 << ", kvpairs=[" << kvpairs << "], retval=" << retval; in out_set_parameters()
253 return retval; in out_set_parameters()
469 int retval = 0; in out_pause() local
[all …]
/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/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.cpp84 volatile std::atomic_int retval; // valid if thread_stopped set member
599 context->retval = EXIT_FAILURE; in logcat_panic()
635 log_time retval(log_time::EPOCH); in lastLogTime() local
636 if (!outputFileName) return retval; in lastLogTime()
650 if (!dir.get()) return retval; in lastLogTime()
687 if ((t < now) && (t > retval)) { in lastLogTime()
688 retval = t; in lastLogTime()
695 if (retval == log_time::EPOCH) return retval; in lastLogTime()
698 retval += modulo; in lastLogTime()
699 return retval; in lastLogTime()
[all …]
/system/nfc/src/nfc/tags/
Drw_t3t.cc605 tNFC_STATUS retval; in rw_t3t_send_cmd() local
617 retval = rw_t3t_send_to_lower(p_cmd_buf); in rw_t3t_send_cmd()
618 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd()
629 timeout_ticks, retval); in rw_t3t_send_cmd()
630 return (retval); in rw_t3t_send_cmd()
644 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd() local
711 retval = rw_t3t_send_cmd(p_cb, RW_T3T_CMD_UPDATE_NDEF, p_cmd_buf, in rw_t3t_send_update_ndef_attribute_cmd()
714 retval = NFC_STATUS_NO_BUFFERS; in rw_t3t_send_update_ndef_attribute_cmd()
717 return (retval); in rw_t3t_send_update_ndef_attribute_cmd()
730 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd() local
[all …]
/system/core/fs_mgr/
Dfs_mgr_remount.cpp125 } retval = SUCCESS; in main() local
224 retval = UNKNOWN_PARTITION; in main()
238 retval = INVALID_PARTITION; in main()
246 if (partitions.empty() && !retval) { in main()
258 retval = VERITY_PARTITION; in main()
304 retval = BAD_OVERLAY; in main()
314 return retval; in main()
320 retval = BAD_OVERLAY; in main()
328 retval = NO_MOUNTS; in main()
385 retval = REMOUNT_FAILED; in main()
[all …]
/system/media/camera/docs/
Dmetadata-parser-sanity-check37 local retval=$?
38 if [[ $retval -ne 0 ]]
45 return $retval
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp381 bool retval = false; in TEST_F() local
382 controlService->registerCallback(nullptr, &retval); in TEST_F()
383 ASSERT_FALSE(retval); in TEST_F()
395 bool retval = false; in TEST_F() local
396 controlService->registerCallback(cb, &retval); in TEST_F()
397 ASSERT_TRUE(retval); in TEST_F()
407 bool retval = false; in TEST_F()
408 controlService->registerCallback(cb, &retval); in TEST_F()
409 ASSERT_TRUE(retval); in TEST_F()
426 bool retval = false; in notifyWakeup() local
[all …]
/system/update_engine/
Dboot_control_chromeos.cc193 int retval = CgptGetPartitionDetails(&params); in IsSlotBootable() local
194 if (retval != CGPT_OK) in IsSlotBootable()
224 int retval = CgptSetAttributes(&params); in MarkSlotUnbootable() local
225 if (retval != CGPT_OK) { in MarkSlotUnbootable()
248 int retval = CgptPrioritize(&prio_params); in SetActiveBootSlot() local
249 if (retval != CGPT_OK) { in SetActiveBootSlot()
264 retval = CgptSetAttributes(&add_params); in SetActiveBootSlot()
265 if (retval != CGPT_OK) { in SetActiveBootSlot()
/system/update_engine/update_manager/
Dboxed_value.cc231 string retval = "Flags:"; in ValuePrinter() local
233 retval += " RestrictDownloading"; in ValuePrinter()
235 return retval; in ValuePrinter()
250 string retval = "Disallowed intervals:\n"; in ValuePrinter() local
252 retval += interval.ToString() + "\n"; in ValuePrinter()
254 return retval; in ValuePrinter()
/system/core/liblog/
Dlogger_read.cpp134 ssize_t retval = (transp->transport->func)(logger_internal, transp, ##args); \
136 ret = retval; \
183 ssize_t retval = (transp->transport->func)(logger_list_internal, transp, ##args); \
185 ret = retval; \
369 int retval = transp->ret; in android_logger_list_read() local
370 if ((retval > 0) && !transp->logMsg.entry.len) { in android_logger_list_read()
372 retval = transp->ret = 0; in android_logger_list_read()
375 retval = android_transport_read(logger_list_internal, transp, &transp->logMsg); in android_logger_list_read()
387 retval = transp->ret = pollval; in android_logger_list_read()
389 retval = android_transport_read(logger_list_internal, transp, &transp->logMsg); in android_logger_list_read()
[all …]
/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/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/core/bootstat/
Dboot_reason_test.sh581 retval=0
596 EXPECT_PROPERTY ${prop} ${reason} || retval=${?}
598 check_boilerplate_properties || retval=${?}
600 return ${retval}
1211 local retval=-1
1213 if [ ${retval} = -1 -a ${enum_expected} = ${id} ]; then
1214 retval=0
1218 retval=1
1221 exit ${retval}
1232 local retval=${?}
[all …]
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc151 int retval = -1; in BtifAvrcpAudioTrackWriteData() local
157 retval = trackHolder->track->write(audioBuffer, (size_t)bufferlen); in BtifAvrcpAudioTrackWriteData()
159 bufferlen, retval); in BtifAvrcpAudioTrackWriteData()
160 return retval; in BtifAvrcpAudioTrackWriteData()
/system/core/libkeyutils/
Dmini_keyctl_utils.cpp173 long retval = keyctl_get_security(key, context.data(), kMaxSupportedSize); in RetrieveSecurityContext() local
174 if (retval < 0) { in RetrieveSecurityContext()
178 if (retval > kMaxSupportedSize) { in RetrieveSecurityContext()
182 context.resize(retval); in RetrieveSecurityContext()
/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()

123