/system/core/libunwindstack/tests/ |
H A D | RegsIterateTest.cpp | 61 std::vector<Register> result; local 62 result.push_back({"r0", ARM_REG_R0}); 63 result.push_back({"r1", ARM_REG_R1}); 64 result.push_back({"r2", ARM_REG_R2}); 65 result.push_back({"r3", ARM_REG_R3}); 66 result.push_back({"r4", ARM_REG_R4}); 67 result.push_back({"r5", ARM_REG_R5}); 68 result.push_back({"r6", ARM_REG_R6}); 69 result.push_back({"r7", ARM_REG_R7}); 70 result 83 std::vector<Register> result; local 122 std::vector<Register> result; local 137 std::vector<Register> result; local 160 std::vector<Register> result; local 200 std::vector<Register> result; local [all...] |
/system/tpm/tpm_manager/server/ |
H A D | tpm_util.h | 22 #define TPM_LOG(severity, result) \ 23 LOG(severity) << "TPM error 0x" << std::hex << result << " (" \ 24 << Trspi_Error_String(result) << "): "
|
H A D | tpm_connection.cc | 51 TSS_RESULT result; local 53 if (TPM_ERROR(result = 55 TPM_LOG(ERROR, result) << "Error getting a handle to the TPM."; 65 TSS_RESULT result; local 66 if (TPM_ERROR(result = Tspi_Context_Create(context_.ptr()))) { 67 TPM_LOG(ERROR, result) << "Error connecting to TPM."; 72 if (TPM_ERROR(result = Tspi_Context_Connect(context_, nullptr))) { 73 if (ERROR_CODE(result) == TSS_E_COMM_FAILURE) { 77 TPM_LOG(ERROR, result) << "Error connecting to TPM."; 94 if (TPM_ERROR(result [all...] |
H A D | tpm_initializer_impl.cc | 93 TSS_RESULT result = Tspi_TPM_GetPubEndorsementKey( local 95 if (TPM_ERROR(result) == TPM_SUCCESS) { 102 if (TPM_ERROR(result = Tspi_Context_CreateObject( 105 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; 108 if (TPM_ERROR(result = Tspi_TPM_CreateEndorsementKey( 110 TPM_LOG(ERROR, result) << "Error calling Tspi_TPM_CreateEndorsementKey"; 121 TSS_RESULT result; local 124 if (TPM_ERROR(result = Tspi_Context_CreateObject( 127 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; 131 if (TPM_ERROR(result 166 TSS_RESULT result; local 217 TSS_RESULT result; local 250 TSS_RESULT result; local [all...] |
/system/update_engine/update_manager/ |
H A D | default_policy.cc | 39 UpdateCheckParams* result) const { 40 result->updates_enabled = true; 41 result->target_channel.clear(); 42 result->target_version_prefix.clear(); 43 result->is_interactive = false; 62 ErrorCode* result, 64 *result = ErrorCode::kSuccess; 72 UpdateDownloadParams* result, 74 result->update_can_start = true; 75 result 59 UpdateCanBeApplied(EvaluationContext* ec, State* state, std::string* error, ErrorCode* result, InstallPlan* install_plan) const argument 68 UpdateCanStart( EvaluationContext* ec, State* state, std::string* error, UpdateDownloadParams* result, const UpdateState update_state) const argument 106 P2PEnabledChanged( EvaluationContext* ec, State* state, std::string* error, bool* result, bool prev_result) const argument [all...] |
H A D | chromeos_policy_unittest.cc | 124 UpdateCheckParams result; local 133 &Policy::UpdateCheckAllowed, &result); 141 &Policy::UpdateCheckAllowed, &result); 142 EXPECT_TRUE(result.updates_enabled); 143 EXPECT_FALSE(result.is_interactive); 168 UpdateCheckParams result; local 170 &Policy::UpdateCheckAllowed, &result); 179 &Policy::UpdateCheckAllowed, &result); 180 EXPECT_TRUE(result.updates_enabled); 181 EXPECT_FALSE(result 197 UpdateCheckParams result; local 214 UpdateCheckParams result; local 227 UpdateCheckParams result; local 241 UpdateCheckParams result; local 255 UpdateCheckParams result; local 270 UpdateCheckParams result; local 291 UpdateCheckParams result; local 311 UpdateCheckParams result; local 331 UpdateCheckParams result; local 351 UpdateCheckParams result; local 365 UpdateDownloadParams result; local 378 UpdateDownloadParams result; local 396 UpdateDownloadParams result; local 416 UpdateDownloadParams result; local 447 UpdateDownloadParams result; local 477 UpdateDownloadParams result; local 506 UpdateDownloadParams result; local 537 UpdateDownloadParams result; local 568 UpdateDownloadParams result; local 599 UpdateDownloadParams result; local 632 UpdateDownloadParams result; local 659 UpdateDownloadParams result; local 679 UpdateDownloadParams result; local 703 UpdateDownloadParams result; local 729 UpdateDownloadParams result; local 753 UpdateDownloadParams result; local 778 UpdateDownloadParams result; local 807 UpdateDownloadParams result; local 837 UpdateDownloadParams result; local 863 UpdateDownloadParams result; local 887 UpdateDownloadParams result; local 916 UpdateDownloadParams result; local 941 UpdateDownloadParams result; local 966 UpdateDownloadParams result; local 995 UpdateDownloadParams result; local 1019 UpdateDownloadParams result; local 1044 UpdateDownloadParams result; local 1074 UpdateDownloadParams result; local 1103 UpdateDownloadParams result; local 1129 UpdateDownloadParams result; local 1157 UpdateDownloadParams result; local 1184 UpdateDownloadParams result; local 1211 UpdateDownloadParams result; local 1243 UpdateDownloadParams result; local 1261 bool result; local 1273 bool result; local 1288 bool result; local 1307 bool result; local 1319 bool result; local 1332 bool result; local 1349 bool result; local 1360 bool result; local 1377 bool result; local 1395 bool result; local 1415 UpdateDownloadParams result; local 1448 UpdateDownloadParams result; local 1462 bool result; local 1471 bool result; local 1479 bool result; local 1488 bool result; local 1494 bool result; local [all...] |
H A D | android_things_policy.cc | 51 UpdateCheckParams* result) const { 53 result->updates_enabled = true; 54 result->target_channel.clear(); 55 result->target_version_prefix.clear(); 56 result->is_interactive = false; 59 // result structure, even if it signals kContinue. 90 result); 106 ErrorCode* result, 109 // result structure, even if it signals kContinue. 126 result, 102 UpdateCanBeApplied( EvaluationContext* ec, State* state, string* error, ErrorCode* result, chromeos_update_engine::InstallPlan* install_plan) const argument 139 UpdateCanStart(EvaluationContext* ec, State* state, string* error, UpdateDownloadParams* result, UpdateState update_state) const argument 171 P2PEnabledChanged(EvaluationContext* ec, State* state, string* error, bool* result, bool prev_result) const argument [all...] |
/system/core/init/ |
H A D | result_test.cpp | 17 #include "result.h" 30 TEST(result, result_accessors) { 31 Result<std::string> result = "success"; local 32 ASSERT_TRUE(result); 33 ASSERT_TRUE(result.has_value()); 35 EXPECT_EQ("success", *result); 36 EXPECT_EQ("success", result.value()); 38 EXPECT_EQ('s', result->data()[0]); 41 TEST(result, result_accessors_rvalue) { 51 TEST(result, result_succes 52 Result<Success> result = Success(); local 56 EXPECT_EQ(Success(), *result); local 73 Result<Success> result = Error() << "failure" << 1; local 82 Result<Success> result = Error(); local 108 Result<Success> result = ErrnoError() << "failure" << 1; local 120 Result<Success> result = ErrnoError(); local 131 Result<Success> result = Error() << error_text; local 147 Result<Success> result = Error() << error_text; local 165 Result<Success> result = ErrnoError() << error_text; local 182 auto result = Result<std::string>(5, 'a'); local 286 auto result = return_result_result_with_success(); local 298 auto result = return_result_result_with_error(); local 311 TestStruct(Result<TestStruct> result, int value) argument 317 auto result = return_test_struct(); local 323 Result<std::string> result = Error(); local 328 Result<std::string> result = "success"; local [all...] |
/system/tpm/trunks/ |
H A D | blob_parser.cc | 34 TPM_RC result = Serialize_TPM2B_PUBLIC(public_info, key_blob); local 35 if (result != TPM_RC_SUCCESS) { 36 LOG(ERROR) << "Error serializing public info: " << GetErrorString(result); 39 result = Serialize_TPM2B_PRIVATE(private_info, key_blob); 40 if (result != TPM_RC_SUCCESS) { 41 LOG(ERROR) << "Error serializing private info: " << GetErrorString(result); 58 TPM_RC result = Parse_TPM2B_PUBLIC(&mutable_key_blob, public_info, nullptr); local 59 if (result != TPM_RC_SUCCESS) { 60 LOG(ERROR) << "Error parsing public info: " << GetErrorString(result); 63 result 77 TPM_RC result = Serialize_TPM2B_CREATION_DATA(creation_data, creation_blob); local 107 TPM_RC result = local [all...] |
H A D | trunks_client_test.cc | 82 TPM_RC result = utility->StirRandom(entropy_data, session->GetDelegate()); local 83 if (result != TPM_RC_SUCCESS) { 84 LOG(ERROR) << "Error stirring TPM RNG: " << GetErrorString(result); 87 result = 89 if (result != TPM_RC_SUCCESS) { 91 << GetErrorString(result); 110 TPM_RC result = utility->CreateRSAKeyPair( local 114 if (result != TPM_RC_SUCCESS) { 115 LOG(ERROR) << "Error creating signing key: " << GetErrorString(result); 119 result 151 TPM_RC result = utility->CreateRSAKeyPair( local 181 TPM_RC result = utility->ImportRSAKey( local 208 TPM_RC result = utility->CreateRSAKeyPair( local 250 TPM_RC result = utility->CreateRSAKeyPair( local 304 TPM_RC result = local 372 TPM_RC result = utility->ReadPCR(pcr_index, &old_data); local 401 TPM_RC result; local 510 TPM_RC result; local 674 TPM_RC result; local 820 TPM_RC result = session->StartUnboundSession(true /* enable encryption */); local 960 TPM_RC result = session->StartUnboundSession(true /* enable encryption */); local 995 TPM_RC result = utility->AsymmetricEncrypt( local 1069 TPM_RC result = utility->ImportRSAKey( local 1094 TPM_RC result = local [all...] |
H A D | tpm_utility_impl.cc | 83 TPM_RC result = TPM_RC_SUCCESS; local 85 result = tpm->StartupSync(TPM_SU_CLEAR, nullptr); 87 if (result && result != TPM_RC_INITIALIZE) { 88 LOG(ERROR) << __func__ << ": " << GetErrorString(result); 89 return result; 91 result = tpm->SelfTestSync(YES /* Full test. */, nullptr); 92 if (result) { 93 LOG(ERROR) << __func__ << ": " << GetErrorString(result); 94 return result; 100 TPM_RC result = TPM_RC_SUCCESS; local 137 TPM_RC result = TPM_RC_SUCCESS; local 185 TPM_RC result; local 253 TPM_RC result = TPM_RC_SUCCESS; local 428 TPM_RC result = GetKeyPublicArea(key_handle, &public_area); local 486 TPM_RC result; local 554 TPM_RC result; local 685 TPM_RC result = factory_.GetTpm()->CertifyCreationSync( local 701 TPM_RC result; local 755 TPM_RC result; local 839 TPM_RC result; local 929 TPM_RC result; local 964 TPM_RC result; local 1004 TPM_RC result; local 1059 TPM_RC result; local 1097 TPM_RC result = session->StartUnboundSession(true /* enable_encryption */); local 1112 TPM_RC result = session->StartUnboundSession(false); local 1150 TPM_RC result; local 1195 TPM_RC result; local 1232 TPM_RC result; local 1286 TPM_RC result; local 1339 TPM_RC result; local 1380 TPM_RC result; local 1402 TPM_RC result; local 1433 TPM_RC result; local 1478 TPM_RC result = tpm_state->Initialize(); local 1502 TPM_RC result = TPM_RC_SUCCESS; local 1612 TPM_RC result = DoesPersistentKeyExist(kSaltingKey, &exists); local 1748 TPM_RC result = Serialize_TPMT_PUBLIC(public_area, &serialized_public_area); local 1775 TPM_RC result = local 1800 TPM_RC result = local 1846 TPM_RC result; local [all...] |
/system/bt/stack/avrc/ |
H A D | avrc_utils.cc | 35 bool result = false; local 48 if (avc_type == AVRC_CMD_STATUS) result = true; 56 if (avc_type == AVRC_CMD_CTRL) result = true; 60 result = true; 67 if (avc_type == AVRC_CMD_CTRL) result = true; 71 if (avc_type == AVRC_CMD_NOTIF) result = true; 77 result = true; 80 return result; 93 bool result = false; local 97 if ((value > 0) && (value <= AVRC_PLAYER_VAL_ON)) result 130 bool result = false; local [all...] |
/system/chre/apps/chqts/src/general_test/ |
H A D | running_info.cc | 32 bool result; local 36 result = false; 40 result = false; 44 result = false; 46 result = mPlatformInfo.validate(mRunningInfo.appId, 50 return result;
|
H A D | nanoapp_info.cc | 50 bool result = true; local 54 result = false; 58 result = false; 61 return result; 65 bool result = chreGetNanoappInfoByAppId(mAppId, info); local 67 if (!result) { 72 return result; 76 bool result = chreGetNanoappInfoByInstanceId(mInstanceId, info); local 78 if (!result) { 83 return result; [all...] |
/system/core/base/ |
H A D | stringprintf.cpp | 35 int result = vsnprintf(space, sizeof(space), format, backup_ap); local 38 if (result < static_cast<int>(sizeof(space))) { 39 if (result >= 0) { 41 dst->append(space, result); 45 if (result < 0) { 53 int length = result + 1; 58 result = vsnprintf(buf, length, format, backup_ap); 61 if (result >= 0 && result < length) { 63 dst->append(buf, result); 71 std::string result; local [all...] |
/system/extras/simpleperf/ |
H A D | cmd_kmem_test.cpp | 43 ReportResult* result) { 44 result->success = false; 50 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); 51 ASSERT_TRUE(!result->content.empty()); 53 android::base::Split(result->content, "\n"); 54 result->lines.clear(); 58 result->lines.push_back(s); 61 ASSERT_GE(result->lines.size(), 2u); 62 result->success = true; 67 ReportResult* result) { 41 KmemReportRawFile(const std::string& perf_data, const std::vector<std::string>& additional_args, ReportResult* result) argument 65 KmemReportFile(const std::string& perf_data, const std::vector<std::string>& additional_args, ReportResult* result) argument 68 KmemReportRawFile(GetTestData(perf_data), additional_args, result); local 121 ReportResult result; local 129 ReportResult result; local 141 ReportResult result; local [all...] |
/system/security/keystore/binder/android/security/ |
H A D | IConfirmationPromptCallback.aidl | 26 oneway void onConfirmationPromptCompleted(in int result, in byte[] dataThatWasConfirmed);
|
/system/core/base/include/android-base/ |
H A D | parsedouble.h | 36 double result = strtod(s, &end); local 40 if (result < min || max < result) { 43 *out = result;
|
H A D | memory.h | 28 T result; local 29 memcpy(&result, address, sizeof(T)); 30 return result;
|
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | bitstream-decode.c | 49 uint32_t result; local 51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); 53 return result; 57 uint32_t result; local 63 result = bs->value << 8; 66 result = bs->value << 12; 70 result >>= 28; 71 OI_ASSERT(result < (1u << 4)); 72 return (uint8_t)result; 76 uint32_t result; local [all...] |
H A D | dequant.c | 93 result = d' - 2^31/1.38... =~ 2^31 * ((raw * 2.0 + 1.0) / (2^bits - 1) - 1) / 96 result is therefore a scaled approximation to dequant. It remains only to 134 float result = (1 << (scale_factor + 1)) * local 137 result /= SBC_DEQUANT_SCALING_FACTOR; 144 OI_ASSERT(fabs(result) < 32768 * 1.6); 146 return result; 154 int32_t result; local 165 result = d - SBC_DEQUANT_LONG_SCALED_OFFSET; 176 OI_ASSERT(((result >= 0) && (integerized_float_result >= 0)) || 177 ((result < 193 int32_t result; local [all...] |
/system/keymaster/android_keymaster/ |
H A D | logger.cpp | 34 int result = Log(level, fmt, args); local 36 return result; 43 int result = Log(DEBUG_LVL, fmt, args); local 45 return result; 52 int result = Log(INFO_LVL, fmt, args); local 54 return result; 60 int result = Log(WARNING_LVL, fmt, args); local 62 return result; 68 int result = Log(ERROR_LVL, fmt, args); local 70 return result; 76 int result = Log(SEVERE_LVL, fmt, args); local [all...] |
/system/update_engine/payload_generator/ |
H A D | raw_filesystem.cc | 29 unique_ptr<RawFilesystem> result(new RawFilesystem()); 30 result->filename_ = filename; 31 result->block_size_ = block_size; 32 result->block_count_ = block_count; 33 return result;
|
/system/chre/apps/wifi_world/ |
H A D | wifi_world.cc | 79 * Logs a CHRE wifi scan result. 81 * @param result the scan result to log. 83 void logChreWifiResult(const chreWifiScanResult& result) { argument 86 if (result.ssidLen == 0) { 89 result.ssid, result.ssidLen)) { 97 if (chre::parseBssidToStr(result.bssid, bssidBuffer, sizeof(bssidBuffer))) { 101 LOGI(" age (ms): %" PRIu32, result.ageMs); 102 LOGI(" capability info: %" PRIx16, result 140 handleWifiAsyncResult(const chreAsyncResult *result) argument 201 const chreWifiScanResult& result = event->results[i]; local [all...] |
/system/tpm/attestation/common/ |
H A D | tpm_utility_v1.cc | 32 #define TPM_LOG(severity, result) \ 33 LOG(severity) << "TPM error 0x" << std::hex << result << " (" \ 34 << Trspi_Error_String(result) << "): " 125 TSS_RESULT result; local 136 result = Tspi_Context_LoadKeyByBlob( 139 if (TPM_ERROR(result)) { 140 TPM_LOG(ERROR, result) << __func__ << ": Failed to load AIK."; 150 result = Tspi_TPM_ActivateIdentity( 154 if (TPM_ERROR(result)) { 155 TPM_LOG(ERROR, result) << __func_ 196 TSS_RESULT result = Tspi_Context_CreateObject( local 278 TSS_RESULT result; local 335 TSS_RESULT result; local 371 TSS_RESULT result = Tspi_TPM_GetPubEndorsementKey(tpm_handle_, false, nullptr, local 404 TSS_RESULT result; local 450 TSS_RESULT result = Tspi_Context_CreateObject( local 475 TSS_RESULT result; local 501 TSS_RESULT result; local 547 TSS_RESULT result; local 558 TSS_RESULT result; local 604 TSS_RESULT result = Tspi_Context_LoadKeyByBlob( local 621 TSS_RESULT result = local 638 TSS_RESULT result = Trspi_UnloadBlob_PUBKEY(&offset, buffer, &parsed); local [all...] |