Home
last modified time | relevance | path

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

123

/system/core/libstats/push_compat/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/logging/liblog/include/log/
Dlog_event_list.h120 int retval = android_log_destroy(&ctx); in close() local
121 if (retval < 0) ret = retval; in close()
122 return retval; in close()
136 int retval = android_log_write_list_begin(ctx); in begin() local
137 if (retval < 0) ret = retval; in begin()
141 int retval = android_log_write_list_end(ctx); in end() local
142 if (retval < 0) ret = retval; in end()
147 int retval = android_log_write_int32(ctx, value); variable
148 if (retval < 0) ret = retval;
153 int retval = android_log_write_int32(ctx, static_cast<int32_t>(value)); variable
[all …]
/system/keymaster/key_blob_utils/
Dauth_encrypted_key_blob.cpp136 EncryptedKey retval; in AesGcmEncryptKey() local
137 retval.format = format; in AesGcmEncryptKey()
138 retval.ciphertext = KeymasterKeyBlob(ciphertext_len); in AesGcmEncryptKey()
139 retval.nonce = move(nonce); in AesGcmEncryptKey()
140 retval.tag = Buffer(kAesGcmTagLength); in AesGcmEncryptKey()
143 retval.nonce.peek_read()) && in AesGcmEncryptKey()
144 EVP_EncryptUpdate(ctx.get(), retval.ciphertext.writable_data(), &ciphertext_len, in AesGcmEncryptKey()
146 EVP_EncryptFinal_ex(ctx.get(), retval.ciphertext.writable_data() /* not written to */, in AesGcmEncryptKey()
149 retval.tag.peek_write()))) { in AesGcmEncryptKey()
155 !retval.tag.advance_write(kAesGcmTagLength)) { in AesGcmEncryptKey()
[all …]
/system/media/audio_utils/include/audio_utils/
Dintrinsic_utils.h100 auto &[retval] = ret; // single-member struct in vdupn()
101 if constexpr (std::is_array_v<decltype(retval)>) { in vdupn()
103 for (auto& val : retval) { in vdupn()
108 auto &[r1, r2] = retval; in vdupn()
137 auto &[retval] = ret; // single-member struct in vld1()
138 if constexpr (std::is_array_v<decltype(retval)>) { in vld1()
139 using element_type = std::decay_t<decltype(retval[0])>; in vld1()
142 for (size_t i = 0; i < std::size(retval); ++i) { in vld1()
143 retval[i] = vld1<element_type>(f); in vld1()
148 auto &[r1, r2] = retval; in vld1()
[all …]
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h60 T retval = 0; in ntoh() local
62 retval <<= 8; in ntoh()
63 retval |= byte_ptr[i]; in ntoh()
65 return retval; in ntoh()
74 T retval; in hton() local
75 uint8_t* byte_ptr = reinterpret_cast<uint8_t*>(&retval); in hton()
80 return retval; in hton()
287 CertificateChain retval; in clone() local
288 retval.entry_count = other.entry_count; in clone()
289 retval.entries = new (std::nothrow) keymaster_blob_t[retval.entry_count]; in clone()
[all …]
/system/bt/stack/test/fuzzers/a2dp/codec/
Da2dpCodecHelperFunctions.h149 tBT_A2DP_OFFLOAD retval; in generateArbitrarytA2dpOffload() local
151 retval.codec_type = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
152 retval.max_latency = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
154 memcpy(&retval.scms_t_enable[0], scms_t_enable.data(), scms_t_enable.size()); in generateArbitrarytA2dpOffload()
155 retval.sample_rate = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
156 retval.bits_per_sample = fdp->ConsumeIntegral<uint8_t>(); in generateArbitrarytA2dpOffload()
157 retval.ch_mode = fdp->ConsumeIntegral<uint8_t>(); in generateArbitrarytA2dpOffload()
158 retval.encoded_audio_bitrate = fdp->ConsumeIntegral<uint32_t>(); in generateArbitrarytA2dpOffload()
159 retval.acl_hdl = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
160 retval.l2c_rcid = fdp->ConsumeIntegral<uint16_t>(); in generateArbitrarytA2dpOffload()
[all …]
/system/keymaster/contexts/
Dsoft_attestation_cert.cpp302 CertificateChain retval; in getAttestationChain() local
306 retval = CertificateChain::clone(kRsaAttestChain); in getAttestationChain()
307 if (!retval.entries && error) *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in getAttestationChain()
310 retval = CertificateChain::clone(kEcAttestChain); in getAttestationChain()
311 if (!retval.entries && error) *error = KM_ERROR_MEMORY_ALLOCATION_FAILED; in getAttestationChain()
318 return retval; in getAttestationChain()
/system/core/libcutils/
Dfs_config_test.cpp79 bool retval = false; in check_unique() local
90 retval = true; in check_unique()
104 retval = true; in check_unique()
121 retval = true; in check_unique()
125 return retval; in check_unique()
134 bool retval = false; in check_unique() local
139 retval = true; in check_unique()
145 return check_unique(paths_tmp, config, prefix) || retval; in check_unique()
149 bool match, retval = false; in check_fs_config_cmp() local
157 retval = true; in check_fs_config_cmp()
[all …]
/system/bt/stack/test/fuzzers/common/
DcommonFuzzHelpers.h52 RawAddress retval; in generateRawAddress() local
56 retval.address[i] = 0; in generateRawAddress()
60 std::vector<uint8_t> bytes = fdp->ConsumeBytes<uint8_t>(retval.kLength); in generateRawAddress()
61 memcpy(retval.address, bytes.data(), bytes.size()); in generateRawAddress()
63 return retval; in generateRawAddress()
/system/logging/logd/
DLogBufferElement.cpp139 char* retval = nullptr; in tidToName() local
153 retval = strdup(buffer); in tidToName()
160 if (!retval) { in tidToName()
161 retval = name; in tidToName()
168 size_t retval_len = strlen(retval); in tidToName()
172 !fastcmp<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
173 free(retval); in tidToName()
174 retval = name; in tidToName()
179 return retval; in tidToName()
248 size_t retval = hdrLen + len; in PopulateDroppedMessage() local
[all …]
/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp29 uint8_t* retval = new (std::nothrow) uint8_t[size]; in dup_buffer() local
30 if (retval) memcpy(retval, buf, size); in dup_buffer()
31 return retval; in dup_buffer()
/system/nfc/src/nfc/tags/
Drw_t3t.cc616 tNFC_STATUS retval; in rw_t3t_send_cmd() local
628 retval = rw_t3t_send_to_lower(p_cmd_buf); in rw_t3t_send_cmd()
629 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd()
640 timeout_ticks, retval); in rw_t3t_send_cmd()
641 return (retval); in rw_t3t_send_cmd()
655 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd() local
722 retval = rw_t3t_send_cmd(p_cb, RW_T3T_CMD_UPDATE_NDEF, p_cmd_buf, in rw_t3t_send_update_ndef_attribute_cmd()
725 retval = NFC_STATUS_NO_BUFFERS; in rw_t3t_send_update_ndef_attribute_cmd()
728 return (retval); in rw_t3t_send_update_ndef_attribute_cmd()
741 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd() local
[all …]
/system/bt/audio_bluetooth_hw/
Ddevice_port_proxy.cc365 bool retval; in CondwaitState() local
371 retval = internal_cv_.wait_for( in CondwaitState()
374 retval = retval && state_ == BluetoothStreamState::STARTED; in CondwaitState()
379 retval = internal_cv_.wait_for( in CondwaitState()
382 retval = retval && state_ == BluetoothStreamState::STANDBY; in CondwaitState()
390 return retval; // false if any failure like timeout in CondwaitState()
401 bool retval = false; in Start() local
405 retval = CondwaitState(BluetoothStreamState::STARTING); in Start()
412 if (retval) { in Start()
421 return retval; // false if any failure like timeout in Start()
[all …]
Dstream_apis.cc267 int retval = 0; in out_standby() local
275 retval = (out->bluetooth_output_.Suspend() ? 0 : -EIO); in out_standby()
282 retval = -EBUSY; in out_standby()
288 << " standby (suspend) retval=" << retval; in out_standby()
290 return retval; in out_standby()
303 int retval = 0; in out_set_parameters() local
310 if (params.empty()) return retval; in out_set_parameters()
386 << ", kvpairs=[" << kvpairs << "], retval=" << retval; in out_set_parameters()
387 return retval; in out_set_parameters()
599 int retval = 0; in out_pause() local
[all …]
/system/media/camera/docs/
Dmetadata-parser-validity-check37 local retval=$?
38 if [[ $retval -ne 0 ]]
45 return $retval
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp453 bool retval = false; in TEST_F() local
454 controlService->registerCallback(nullptr, &retval); in TEST_F()
455 ASSERT_FALSE(retval); in TEST_F()
463 bool retval = false; in TEST_F() local
464 controlService->registerCallback(cb, &retval); in TEST_F()
465 ASSERT_TRUE(retval); in TEST_F()
496 bool retval = false; in TEST_F() local
497 controlService->registerCallback(cb, &retval); in TEST_F()
498 ASSERT_TRUE(retval); in TEST_F()
551 bool retval = false; in TEST_F()
[all …]
/system/core/fs_mgr/libfiemap/
Dbinder.cpp142 bool retval; in BackingImageExists() local
143 auto status = manager_->backingImageExists(name, &retval); in BackingImageExists()
149 return retval; in BackingImageExists()
153 bool retval; in IsImageMapped() local
154 auto status = manager_->isImageMapped(name, &retval); in IsImageMapped()
160 return retval; in IsImageMapped()
173 std::vector<std::string> retval; in GetAllBackingImages() local
174 auto status = manager_->getAllBackingImages(&retval); in GetAllBackingImages()
179 return retval; in GetAllBackingImages()
/system/update_engine/cros/
Dboot_control_chromeos.cc232 int retval = CgptGetPartitionDetails(&params); in IsSlotBootable() local
233 if (retval != CGPT_OK) in IsSlotBootable()
263 int retval = CgptSetAttributes(&params); in MarkSlotUnbootable() local
264 if (retval != CGPT_OK) { in MarkSlotUnbootable()
287 int retval = CgptPrioritize(&prio_params); in SetActiveBootSlot() local
288 if (retval != CGPT_OK) { in SetActiveBootSlot()
303 retval = CgptSetAttributes(&add_params); in SetActiveBootSlot()
304 if (retval != CGPT_OK) { in SetActiveBootSlot()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp122 int retval = -1; in verify_table() local
141 retval = 0; in verify_table()
145 return retval; in verify_table()
381 int retval = FS_MGR_SETUP_VERITY_FAIL; in fs_mgr_setup_verity() local
396 return retval; in fs_mgr_setup_verity()
404 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
412 retval = FS_MGR_SETUP_VERITY_DISABLED; in fs_mgr_setup_verity()
446 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
452 retval = FS_MGR_SETUP_VERITY_SKIPPED; in fs_mgr_setup_verity()
537 retval = FS_MGR_SETUP_VERITY_SUCCESS; in fs_mgr_setup_verity()
[all …]
Dfs_mgr_remount.cpp148 RemountStatus retval = REMOUNT_SUCCESS; in do_remount() local
267 retval = UNKNOWN_PARTITION; in do_remount()
281 retval = INVALID_PARTITION; in do_remount()
289 if (partitions.empty() && !retval) { in do_remount()
302 retval = VERITY_PARTITION; in do_remount()
340 retval = BAD_OVERLAY; in do_remount()
388 return retval; in do_remount()
394 retval = BAD_OVERLAY; in do_remount()
402 retval = NO_MOUNTS; in do_remount()
466 retval = REMOUNT_FAILED; in do_remount()
[all …]
/system/update_engine/update_manager/
Dboxed_value.cc212 string retval = "Flags:"; in ValuePrinter() local
214 retval += " RestrictDownloading"; in ValuePrinter()
216 return retval; in ValuePrinter()
231 string retval = "Disallowed intervals:\n"; in ValuePrinter() local
233 retval += interval.ToString() + "\n"; in ValuePrinter()
235 return retval; in ValuePrinter()
/system/keymaster/km_openssl/
Dattestation_utils.cpp165 X509_NAME_Ptr retval(d2i_X509_NAME(nullptr /* Allocate X509_NAME */, &p, in get_issuer_subject() local
167 if (!retval) *error = KM_ERROR_INVALID_ISSUER_SUBJECT; in get_issuer_subject()
168 return retval; in get_issuer_subject()
190 X509_NAME_Ptr retval(X509_NAME_dup(issuer_subject)); in get_issuer_subject() local
191 if (!retval) *error = TranslateLastOpenSslError(); in get_issuer_subject()
193 return retval; in get_issuer_subject()
229 EVP_PKEY_Ptr retval( in get_attestation_key() local
231 if (!retval) *error = TranslateLastOpenSslError(); in get_attestation_key()
232 return retval; in get_attestation_key()
/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()
/system/core/trusty/keymaster/keymint/
DTrustyKeyMintDevice.cpp51 KeyCharacteristics retval{securityLevel, {}}; in convertAuthSet() local
53 std::back_inserter(retval.authorizations), kmParam2Aidl); in convertAuthSet()
54 return retval; in convertAuthSet()
63 vector<KeyCharacteristics> retval; in convertKeyCharacteristics() local
64 retval.reserve(2); in convertKeyCharacteristics()
66 if (!keyMintEnforced.authorizations.empty()) retval.push_back(std::move(keyMintEnforced)); in convertKeyCharacteristics()
68 retval.push_back(std::move(keystoreEnforced)); in convertKeyCharacteristics()
71 return retval; in convertKeyCharacteristics()
79 vector<Certificate> retval; in convertCertificateChain() local
80 std::transform(chain.begin(), chain.end(), std::back_inserter(retval), convertCertificate); in convertCertificateChain()
[all …]

123