Home
last modified time | relevance | path

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

12

/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.cpp141 EncryptedKey retval; in AesGcmEncryptKey() local
142 retval.format = format; in AesGcmEncryptKey()
143 retval.ciphertext = KeymasterKeyBlob(ciphertext_len); in AesGcmEncryptKey()
144 retval.nonce = std::move(nonce); in AesGcmEncryptKey()
145 retval.tag = Buffer(kAesGcmTagLength); in AesGcmEncryptKey()
148 retval.nonce.peek_read()) && in AesGcmEncryptKey()
149 EVP_EncryptUpdate(ctx.get(), retval.ciphertext.writable_data(), &ciphertext_len, in AesGcmEncryptKey()
151 EVP_EncryptFinal_ex(ctx.get(), retval.ciphertext.writable_data() /* not written to */, in AesGcmEncryptKey()
154 retval.tag.peek_write()))) { in AesGcmEncryptKey()
159 !retval.tag.advance_write(kAesGcmTagLength)) { in AesGcmEncryptKey()
[all …]
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h62 T retval = 0; in ntoh() local
64 retval <<= 8; in ntoh()
65 retval |= byte_ptr[i]; in ntoh()
67 return retval; in ntoh()
76 T retval; in hton() local
77 uint8_t* byte_ptr = reinterpret_cast<uint8_t*>(&retval); in hton()
82 return retval; in hton()
301 CertificateChain retval; in clone() local
302 retval.entry_count = other.entry_count; in clone()
303 retval.entries = new (std::nothrow) keymaster_blob_t[retval.entry_count]; in clone()
[all …]
/system/media/audio_utils/include/audio_utils/
Dintrinsic_utils.h146 auto &[retval] = ret; // single-member struct in vadd()
149 if constexpr (std::is_array_v<decltype(retval)>) { in vadd()
152 retval[i] = vadd(aval[i], bval[i]); in vadd()
156 auto &[r1, r2] = retval; in vadd()
225 auto &[retval] = ret; // single-member struct in vdupn()
226 if constexpr (std::is_array_v<decltype(retval)>) { in vdupn()
228 for (auto& val : retval) { in vdupn()
233 auto &[r1, r2] = retval; in vdupn()
262 auto &[retval] = ret; // single-member struct in vld1()
263 if constexpr (std::is_array_v<decltype(retval)>) { in vld1()
[all …]
/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/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/logging/logd/
DLogBufferElement.cpp102 char* retval = nullptr; in tidToName() local
116 retval = strdup(buffer); in tidToName()
123 if (!retval) { in tidToName()
124 retval = name; in tidToName()
131 size_t retval_len = strlen(retval); in tidToName()
135 !fastcmp<strcmp>(retval, name + name_len - retval_len)) { in tidToName()
136 free(retval); in tidToName()
137 retval = name; in tidToName()
142 return retval; in tidToName()
DTrustyLog.cpp78 ssize_t retval = 0; in onDataAvailable() local
80 retval = TEMP_FAILURE_RETRY( in onDataAvailable()
83 if (retval > 0) { in onDataAvailable()
84 len += retval; in onDataAvailable()
86 if ((retval <= 0) && (len <= 0)) { in onDataAvailable()
/system/nfc/src/nfc/tags/
Drw_t3t.cc631 tNFC_STATUS retval; in rw_t3t_send_cmd() local
643 retval = rw_t3t_send_to_lower(p_cmd_buf); in rw_t3t_send_cmd()
644 if (retval == NFC_STATUS_OK) { in rw_t3t_send_cmd()
654 p_cb->cur_tout, timeout_ticks, retval); in rw_t3t_send_cmd()
655 return (retval); in rw_t3t_send_cmd()
669 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_update_ndef_attribute_cmd() local
736 retval = rw_t3t_send_cmd(p_cb, RW_T3T_CMD_UPDATE_NDEF, p_cmd_buf, in rw_t3t_send_update_ndef_attribute_cmd()
739 retval = NFC_STATUS_NO_BUFFERS; in rw_t3t_send_update_ndef_attribute_cmd()
742 return (retval); in rw_t3t_send_update_ndef_attribute_cmd()
755 tNFC_STATUS retval = NFC_STATUS_OK; in rw_t3t_send_next_ndef_update_cmd() local
[all …]
/system/core/fs_mgr/libfiemap/
Dbinder.cpp143 bool retval; in BackingImageExists() local
144 auto status = manager_->backingImageExists(name, &retval); in BackingImageExists()
150 return retval; in BackingImageExists()
154 bool retval; in IsImageMapped() local
155 auto status = manager_->isImageMapped(name, &retval); in IsImageMapped()
161 return retval; in IsImageMapped()
174 std::vector<std::string> retval; in GetAllBackingImages() local
175 auto status = manager_->getAllBackingImages(&retval); in GetAllBackingImages()
180 return retval; in GetAllBackingImages()
229 bool retval; in IsImageDisabled() 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()
Dandroid_keymaster_messages.cpp447 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle); in NonErrorDeserialize() local
448 if (retval && message_version > 0) retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
449 return retval; in NonErrorDeserialize()
467 bool retval = copy_uint64_from_buf(buf_ptr, end, &op_handle) && input.Deserialize(buf_ptr, end); in Deserialize() local
468 if (retval && message_version > 0) retval = additional_params.Deserialize(buf_ptr, end); in Deserialize()
469 return retval; in Deserialize()
502 bool retval = output.Deserialize(buf_ptr, end); in NonErrorDeserialize() local
503 if (retval && message_version > 0) retval = copy_uint32_from_buf(buf_ptr, end, &input_consumed); in NonErrorDeserialize()
504 if (retval && message_version > 1) retval = output_params.Deserialize(buf_ptr, end); in NonErrorDeserialize()
505 return retval; in NonErrorDeserialize()
[all …]
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspendUnitTest.cpp574 bool retval = false; in TEST_F() local
575 controlService->registerCallback(nullptr, &retval); in TEST_F()
576 ASSERT_FALSE(retval); in TEST_F()
584 bool retval = false; in TEST_F() local
585 controlService->registerCallback(cb, &retval); in TEST_F()
586 ASSERT_TRUE(retval); in TEST_F()
617 bool retval = false; in TEST_F() local
618 controlService->registerCallback(cb, &retval); in TEST_F()
619 ASSERT_TRUE(retval); in TEST_F()
672 bool retval = false; in TEST_F()
[all …]
/system/media/camera/docs/
Dmetadata-parser-validity-check37 local retval=$?
38 if [[ $retval -ne 0 ]]
45 return $retval
/system/extras/memory_replay/
Dmain.cpp85 ssize_t retval = android_logger_list_read(list, &entry); in PrintLogStats() local
86 if (retval == 0) { in PrintLogStats()
89 if (retval < 0) { in PrintLogStats()
90 if (retval == -EINTR) { in PrintLogStats()
94 if (retval != -EAGAIN) { in PrintLogStats()
95 printf("Failed to read log entry: %s\n", strerrordesc_np(retval)); in PrintLogStats()
/system/keymaster/km_openssl/
Dattestation_utils.cpp162 X509_NAME_Ptr retval(d2i_X509_NAME(nullptr /* Allocate X509_NAME */, &p, in get_issuer_subject() local
164 if (!retval) *error = KM_ERROR_INVALID_ISSUER_SUBJECT; in get_issuer_subject()
165 return retval; in get_issuer_subject()
187 X509_NAME_Ptr retval(X509_NAME_dup(issuer_subject)); in get_issuer_subject() local
188 if (!retval) *error = TranslateLastOpenSslError(); in get_issuer_subject()
190 return retval; in get_issuer_subject()
226 EVP_PKEY_Ptr retval( in get_attestation_key() local
228 if (!retval) *error = TranslateLastOpenSslError(); in get_attestation_key()
229 return retval; in get_attestation_key()
/system/core/storaged/tests/
Dstoraged_test.cpp191 struct disk_perf retval; in disk_perf_multiply() local
192 retval.read_perf = (double)perf.read_perf * mul; in disk_perf_multiply()
193 retval.read_ios = (double)perf.read_ios * mul; in disk_perf_multiply()
194 retval.write_perf = (double)perf.write_perf * mul; in disk_perf_multiply()
195 retval.write_ios = (double)perf.write_ios * mul; in disk_perf_multiply()
196 retval.queue = (double)perf.queue * mul; in disk_perf_multiply()
198 return retval; in disk_perf_multiply()
202 struct disk_stats retval; in disk_stats_add() local
203 retval.read_ios = stats1.read_ios + stats2.read_ios; in disk_stats_add()
204 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.cpp140 int stat, retval; in main() local
141 retval = wait(&stat); in main()
142 if (retval == -1 && errno == ECHILD) { in main()
/system/core/bootstat/
Dboot_reason_test.sh578 retval=0
593 EXPECT_PROPERTY ${prop} ${reason} || retval=${?}
595 check_boilerplate_properties || retval=${?}
597 return ${retval}
1208 local retval=-1
1210 if [ ${retval} = -1 -a ${enum_expected} = ${id} ]; then
1211 retval=0
1215 retval=1
1218 exit ${retval}
1229 local retval=${?}
[all …]
/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 …]
/system/core/mini_keyctl/
Dmini_keyctl.cpp122 long retval = keyctl_get_security(key, context.data(), kMaxSupportedSize); in RetrieveSecurityContext() local
123 if (retval < 0) { in RetrieveSecurityContext()
127 if (retval > kMaxSupportedSize) { in RetrieveSecurityContext()
131 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()
/system/keymaster/ng/
DAndroidKeyMintDevice.cpp180 vector<KeyCharacteristics> retval; in convertKeyCharacteristics() local
181 retval.reserve(2); in convertKeyCharacteristics()
182 if (!keyMintEnforced.authorizations.empty()) retval.push_back(std::move(keyMintEnforced)); in convertKeyCharacteristics()
184 retval.push_back(std::move(keystoreEnforced)); in convertKeyCharacteristics()
187 return retval; in convertKeyCharacteristics()
195 vector<Certificate> retval; in convertCertificateChain() local
196 retval.reserve(chain.entry_count); in convertCertificateChain()
197 std::transform(chain.begin(), chain.end(), std::back_inserter(retval), convertCertificate); in convertCertificateChain()
198 return retval; in convertCertificateChain()

12