Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/system/update_engine/update_manager/
Dchromeos_policy_unittest.cc188 R* result, Args... args) { in ExpectPolicyStatus() argument
193 result, args...)) in ExpectPolicyStatus()
324 UpdateCheckParams result; in TEST_F() local
333 &Policy::UpdateCheckAllowed, &result); in TEST_F()
341 &Policy::UpdateCheckAllowed, &result); in TEST_F()
342 EXPECT_TRUE(result.updates_enabled); in TEST_F()
343 EXPECT_FALSE(result.is_interactive); in TEST_F()
367 UpdateCheckParams result; in TEST_F() local
369 &Policy::UpdateCheckAllowed, &result); in TEST_F()
378 &Policy::UpdateCheckAllowed, &result); in TEST_F()
[all …]
Ddefault_policy.cc36 UpdateCheckParams* result) const { in UpdateCheckAllowed()
37 result->updates_enabled = true; in UpdateCheckAllowed()
38 result->target_channel.clear(); in UpdateCheckAllowed()
39 result->target_version_prefix.clear(); in UpdateCheckAllowed()
40 result->is_interactive = false; in UpdateCheckAllowed()
60 UpdateDownloadParams* result, in UpdateCanStart() argument
62 result->update_can_start = true; in UpdateCanStart()
63 result->cannot_start_reason = UpdateCannotStartReason::kUndefined; in UpdateCanStart()
64 result->download_url_idx = 0; in UpdateCanStart()
65 result->download_url_allowed = true; in UpdateCanStart()
[all …]
/system/tpm/trunks/
Dtrunks_client_test.cc80 TPM_RC result = utility->StirRandom(entropy_data, session->GetDelegate()); in RNGTest() local
81 if (result != TPM_RC_SUCCESS) { in RNGTest()
82 LOG(ERROR) << "Error stirring TPM RNG: " << GetErrorString(result); in RNGTest()
85 result = utility->GenerateRandom(num_bytes, session->GetDelegate(), in RNGTest()
87 if (result != TPM_RC_SUCCESS) { in RNGTest()
89 << GetErrorString(result); in RNGTest()
108 TPM_RC result = utility->CreateRSAKeyPair( in SignTest() local
112 if (result != TPM_RC_SUCCESS) { in SignTest()
113 LOG(ERROR) << "Error creating signing key: " << GetErrorString(result); in SignTest()
117 result = utility->LoadKey(key_blob, session->GetDelegate(), &signing_key); in SignTest()
[all …]
Dtpm_utility_impl.cc83 TPM_RC result = TPM_RC_SUCCESS; in Startup() local
85 result = tpm->StartupSync(TPM_SU_CLEAR, nullptr); in Startup()
87 if (result && result != TPM_RC_INITIALIZE) { in Startup()
88 LOG(ERROR) << __func__ << ": " << GetErrorString(result); in Startup()
89 return result; in Startup()
91 result = tpm->SelfTestSync(YES /* Full test. */, nullptr); in Startup()
92 if (result) { in Startup()
93 LOG(ERROR) << __func__ << ": " << GetErrorString(result); in Startup()
94 return result; in Startup()
100 TPM_RC result = TPM_RC_SUCCESS; in Clear() local
[all …]
Dblob_parser.cc34 TPM_RC result = Serialize_TPM2B_PUBLIC(public_info, key_blob); in SerializeKeyBlob() local
35 if (result != TPM_RC_SUCCESS) { in SerializeKeyBlob()
36 LOG(ERROR) << "Error serializing public info: " << GetErrorString(result); in SerializeKeyBlob()
39 result = Serialize_TPM2B_PRIVATE(private_info, key_blob); in SerializeKeyBlob()
40 if (result != TPM_RC_SUCCESS) { in SerializeKeyBlob()
41 LOG(ERROR) << "Error serializing private info: " << GetErrorString(result); in SerializeKeyBlob()
58 TPM_RC result = Parse_TPM2B_PUBLIC(&mutable_key_blob, public_info, nullptr); in ParseKeyBlob() local
59 if (result != TPM_RC_SUCCESS) { in ParseKeyBlob()
60 LOG(ERROR) << "Error parsing public info: " << GetErrorString(result); in ParseKeyBlob()
63 result = Parse_TPM2B_PRIVATE(&mutable_key_blob, private_info, nullptr); in ParseKeyBlob()
[all …]
Dtpm_state_impl.cc58 TPM_RC result = GetTpmProperty(TPM_PT_PERMANENT, &permanent_flags_); in Initialize() local
59 if (result != TPM_RC_SUCCESS) { in Initialize()
60 LOG(ERROR) << "Error getting permanent flags: " << GetErrorString(result); in Initialize()
61 return result; in Initialize()
63 result = GetTpmProperty(TPM_PT_STARTUP_CLEAR, &startup_clear_flags_); in Initialize()
64 if (result != TPM_RC_SUCCESS) { in Initialize()
65 LOG(ERROR) << "Error getting startup flags: " << GetErrorString(result); in Initialize()
66 return result; in Initialize()
68 result = GetTpmProperty(TPM_PT_LOCKOUT_COUNTER, &lockout_counter_); in Initialize()
69 if (result != TPM_RC_SUCCESS) { in Initialize()
[all …]
Dresource_manager.cc65 TPM_RC result = factory_.GetTpm()->StartupSync(TPM_SU_CLEAR, nullptr); in Initialize() local
67 CHECK(result == TPM_RC_SUCCESS || result == TPM_RC_INITIALIZE) in Initialize()
68 << "TPM startup failure: " << GetErrorString(result); in Initialize()
69 result = factory_.GetTpm()->SelfTestSync(YES /* Full test. */, nullptr); in Initialize()
70 CHECK_EQ(result, TPM_RC_SUCCESS) << "TPM self-test failure: " in Initialize()
71 << GetErrorString(result); in Initialize()
81 result = factory_.GetTpm()->GetCapabilitySync(TPM_CAP_HANDLES, in Initialize()
87 if (result != TPM_RC_SUCCESS) { in Initialize()
89 << GetErrorString(result); in Initialize()
115 TPM_RC result = ParseCommand(command, &command_info); in SendCommandAndWait() local
[all …]
/system/tpm/tpm_manager/server/
Dtpm_nvram_impl.cc56 TSS_RESULT result; in DefineNvram() local
57 result = Tspi_SetAttribUint32(nv_handle, TSS_TSPATTRIB_NV_DATASIZE, in DefineNvram()
59 if (TPM_ERROR(result)) { in DefineNvram()
60 TPM_LOG(ERROR, result) << "Could not set size on NVRAM object: " << length; in DefineNvram()
64 result = Tspi_SetAttribUint32(nv_handle, TSS_TSPATTRIB_NV_PERMISSIONS, in DefineNvram()
66 if (TPM_ERROR(result)) { in DefineNvram()
67 TPM_LOG(ERROR, result) << "Could not set PER_WRITEDEFINE on NVRAM object"; in DefineNvram()
71 result = Tspi_SetAttribUint32(nv_handle, TSS_TSPATTRIB_NV_PERMISSIONS, in DefineNvram()
73 if (TPM_ERROR(result)) { in DefineNvram()
74 TPM_LOG(ERROR, result) << "Could not set PER_OWNERWRITE on NVRAM object"; in DefineNvram()
[all …]
Dtpm_initializer_impl.cc84 TSS_RESULT result = Tspi_TPM_GetPubEndorsementKey(tpm_handle, in InitializeEndorsementKey() local
88 if (TPM_ERROR(result) == TPM_SUCCESS) { in InitializeEndorsementKey()
94 if (TPM_ERROR(result = Tspi_Context_CreateObject(tpm_connection_.GetContext(), in InitializeEndorsementKey()
98 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; in InitializeEndorsementKey()
101 if (TPM_ERROR(result = Tspi_TPM_CreateEndorsementKey(tpm_handle, in InitializeEndorsementKey()
104 TPM_LOG(ERROR, result) << "Error calling Tspi_TPM_CreateEndorsementKey"; in InitializeEndorsementKey()
115 TSS_RESULT result; in TakeOwnership() local
118 if (TPM_ERROR(result = Tspi_Context_CreateObject(tpm_connection_.GetContext(), in TakeOwnership()
122 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; in TakeOwnership()
126 if (TPM_ERROR(result = Tspi_GetPolicyObject(srk_handle, in TakeOwnership()
[all …]
Dtpm2_nvram_impl.cc53 TPM_RC result = trunks_utility_->StartSession(trunks_session_.get()); in Initialize() local
54 if (result != TPM_RC_SUCCESS) { in Initialize()
56 << GetErrorString(result); in Initialize()
87 TPM_RC result = trunks_utility_->DefineNVSpace( in DefineNvram() local
89 if (result != TPM_RC_SUCCESS) { in DefineNvram()
90 LOG(ERROR) << "Error defining nvram space: " << GetErrorString(result); in DefineNvram()
100 TPM_RC result = trunks_utility_->DestroyNVSpace( in DestroyNvram() local
102 if (result != TPM_RC_SUCCESS) { in DestroyNvram()
103 LOG(ERROR) << "Error destroying nvram space:" << GetErrorString(result); in DestroyNvram()
113 TPM_RC result = trunks_utility_->WriteNVSpace(index, in WriteNvram() local
[all …]
Dtpm_manager_service.cc70 const std::shared_ptr<GetTpmStatusReply>& result) { in GetTpmStatusTask() argument
72 result->set_enabled(tpm_status_->IsTpmEnabled()); in GetTpmStatusTask()
73 result->set_owned(tpm_status_->IsTpmOwned()); in GetTpmStatusTask()
76 *result->mutable_local_data() = local_data; in GetTpmStatusTask()
84 result->set_dictionary_attack_counter(counter); in GetTpmStatusTask()
85 result->set_dictionary_attack_threshold(threshold); in GetTpmStatusTask()
86 result->set_dictionary_attack_lockout_in_effect(lockout); in GetTpmStatusTask()
87 result->set_dictionary_attack_lockout_seconds_remaining( in GetTpmStatusTask()
90 result->set_status(STATUS_SUCCESS); in GetTpmStatusTask()
101 const std::shared_ptr<TakeOwnershipReply>& result) { in TakeOwnershipTask() argument
[all …]
Dtpm_connection.cc48 TSS_RESULT result; in GetTpm() local
50 if (TPM_ERROR(result = Tspi_Context_GetTpmObject(context_.value(), in GetTpm()
52 TPM_LOG(ERROR, result) << "Error getting a handle to the TPM."; in GetTpm()
63 TSS_RESULT result; in GetTpmWithAuth() local
65 if (TPM_ERROR(result = Tspi_GetPolicyObject(tpm_handle, in GetTpmWithAuth()
68 TPM_LOG(ERROR, result) << "Error calling Tspi_GetPolicyObject"; in GetTpmWithAuth()
71 if (TPM_ERROR(result = Tspi_Policy_SetSecret( in GetTpmWithAuth()
76 TPM_LOG(ERROR, result) << "Error calling Tspi_Policy_SetSecret"; in GetTpmWithAuth()
86 TSS_RESULT result; in ConnectContextIfNeeded() local
87 if (TPM_ERROR(result = Tspi_Context_Create(context_.ptr()))) { in ConnectContextIfNeeded()
[all …]
/system/connectivity/shill/cellular/
Dmobile_operator_info.cc66 auto result = impl_->Init(); in Init() local
67 SLOG(this, 3) << GetLogPrefix(__func__) << ": Result[" << result << "]"; in Init()
68 return result; in Init()
83 auto result = impl_->IsMobileNetworkOperatorKnown(); in IsMobileNetworkOperatorKnown() local
84 SLOG(this, 3) << GetLogPrefix(__func__) << ": Result[" << result << "]"; in IsMobileNetworkOperatorKnown()
85 return result; in IsMobileNetworkOperatorKnown()
89 auto result = impl_->IsMobileVirtualNetworkOperatorKnown(); in IsMobileVirtualNetworkOperatorKnown() local
90 SLOG(this, 3) << GetLogPrefix(__func__) << ": Result[" << result << "]"; in IsMobileVirtualNetworkOperatorKnown()
91 return result; in IsMobileVirtualNetworkOperatorKnown()
95 const auto& result = impl_->uuid(); in uuid() local
[all …]
/system/tpm/attestation/common/
Dtpm_utility_v1.cc32 #define TPM_LOG(severity, result) \ argument
33 LOG(severity) << "TPM error 0x" << std::hex << result \
34 << " (" << Trspi_Error_String(result) << "): "
126 TSS_RESULT result; in ActivateIdentity() local
137 result = Tspi_Context_LoadKeyByBlob( in ActivateIdentity()
143 if (TPM_ERROR(result)) { in ActivateIdentity()
144 TPM_LOG(ERROR, result) << __func__ << ": Failed to load AIK."; in ActivateIdentity()
154 result = Tspi_TPM_ActivateIdentity(tpm_handle, identity_key, in ActivateIdentity()
161 if (TPM_ERROR(result)) { in ActivateIdentity()
162 TPM_LOG(ERROR, result) << __func__ << ": Failed to activate identity."; in ActivateIdentity()
[all …]
/system/update_engine/
Dimage_properties_android.cc45 std::string result; in GetStringWithDefault() local
46 if (osrelease.GetString(key, &result)) in GetStringWithDefault()
47 return result; in GetStringWithDefault()
60 ImageProperties result; in LoadImageProperties() local
64 result.product_id = GetStringWithDefault( in LoadImageProperties()
66 result.canary_product_id = result.product_id; in LoadImageProperties()
67 result.version = GetStringWithDefault(osrelease, kProductVersion, "0.0.0.0"); in LoadImageProperties()
69 result.board = "brillo"; in LoadImageProperties()
82 result.current_channel = current_channel; in LoadImageProperties()
85 result.omaha_url = constants::kOmahaDefaultProductionURL; in LoadImageProperties()
[all …]
/system/connectivity/shill/wifi/
Dscan_session_unittest.cc140 vector<uint16_t> result; in TEST_F() local
146 result = GetScanFrequencies(.83, 1, std::numeric_limits<size_t>::max()); in TEST_F()
147 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F()
155 result = GetScanFrequencies(ScanSession::kAllFrequencies, 1, 4); in TEST_F()
156 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F()
164 result = GetScanFrequencies(ScanSession::kAllFrequencies, 20, in TEST_F()
166 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F()
174 vector<uint16_t> result; in TEST_F() local
179 result = GetScanFrequencies(.60, 0, std::numeric_limits<size_t>::max()); in TEST_F()
180 EXPECT_THAT(result, ContainerEq(expected)); in TEST_F()
[all …]
/system/core/libmincrypt/tools/
DDumpPublicKey.java111 StringBuilder result = new StringBuilder(); in printRSA() local
116 result.append("v"); in printRSA()
117 result.append(Integer.toString(version)); in printRSA()
118 result.append(" "); in printRSA()
121 result.append("{"); in printRSA()
122 result.append(nwords); in printRSA()
127 result.append(",0x"); in printRSA()
128 result.append(N0inv.toString(16)); in printRSA()
134 result.append(",{"); in printRSA()
137 result.append(n); in printRSA()
[all …]
/system/core/base/
Dstringprintf.cpp35 int result = vsnprintf(space, sizeof(space), format, backup_ap); in StringAppendV() local
38 if (result < static_cast<int>(sizeof(space))) { in StringAppendV()
39 if (result >= 0) { in StringAppendV()
41 dst->append(space, result); in StringAppendV()
45 if (result < 0) { in StringAppendV()
53 int length = result + 1; in StringAppendV()
58 result = vsnprintf(buf, length, format, backup_ap); in StringAppendV()
61 if (result >= 0 && result < length) { in StringAppendV()
63 dst->append(buf, result); in StringAppendV()
71 std::string result; in StringPrintf() local
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Ddequant.c127 float result = (1 << (scale_factor+1)) * ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float() local
129 result /= SBC_DEQUANT_SCALING_FACTOR; in dequant_float()
136 OI_ASSERT(fabs(result) < 32768 * 1.6); in dequant_float()
138 return result; in dequant_float()
147 OI_INT32 result; in OI_SBC_Dequant() local
158 result = d - SBC_DEQUANT_LONG_SCALED_OFFSET; in OI_SBC_Dequant()
169 OI_ASSERT(((result >= 0) && (integerized_float_result >= 0)) || in OI_SBC_Dequant()
170 ((result <= 0) && (integerized_float_result <= 0))); in OI_SBC_Dequant()
173 return result >> (15 - scale_factor); in OI_SBC_Dequant()
186 OI_INT32 result; in OI_SBC_Dequant_Unscaled() local
[all …]
/system/core/libutils/tests/
DLooper_test.cpp117 int result = mLooper->pollOnce(100); in TEST_F() local
122 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
130 int result = mLooper->pollOnce(1000); in TEST_F() local
135 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
144 int result = mLooper->pollOnce(1000); in TEST_F() local
149 EXPECT_EQ(Looper::POLL_WAKE, result) in TEST_F()
155 int result = mLooper->pollOnce(0); in TEST_F() local
160 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
171 int result = mLooper->pollOnce(0); in TEST_F() local
176 EXPECT_EQ(Looper::POLL_TIMEOUT, result) in TEST_F()
[all …]
/system/bt/stack/avdt/
Davdt_api.c234 UINT16 result = AVDT_SUCCESS; in AVDT_CreateStream() local
240 result = AVDT_BAD_PARAMS; in AVDT_CreateStream()
245 result = AVDT_NO_RESOURCES; in AVDT_CreateStream()
251 return result; in AVDT_CreateStream()
270 UINT16 result = AVDT_SUCCESS; in AVDT_RemoveStream() local
276 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream()
283 return result; in AVDT_RemoveStream()
316 UINT16 result = AVDT_SUCCESS; in AVDT_DiscoverReq() local
325 result = AVDT_NO_RESOURCES; in AVDT_DiscoverReq()
329 if (result == AVDT_SUCCESS) in AVDT_DiscoverReq()
[all …]
/system/media/camera/tests/
Dcamera_metadata_tests.cpp219 int result; in TEST() local
226 result = add_camera_metadata_entry(m, in TEST()
229 EXPECT_EQ(OK, result); in TEST()
239 result = add_camera_metadata_entry(m, in TEST()
242 EXPECT_EQ(OK, result); in TEST()
252 result = add_camera_metadata_entry(m, in TEST()
255 EXPECT_EQ(OK, result); in TEST()
265 result = add_camera_metadata_entry(m, in TEST()
268 EXPECT_EQ(OK, result); in TEST()
284 result = add_camera_metadata_entry(m, in TEST()
[all …]
/system/core/libmincrypt/test/
Decdsa_test.c171 unsigned char* result = malloc(strlen(str)); in parsehex() local
173 unsigned char* p = result; in parsehex()
190 return result; in parsehex()
215 return result; in parsehex()
235 int result = dsa_sig_unpack(message, mlen, &r, &s); \ in main()
236 printf(#sig ": %s\n", result ? "good" : "bad"); \ in main()
237 success = success && !(good ^ result); \ in main()
242 int result = !memcmp(P256_DIGITS(&good_dsa_signature_##n##_r), P256_DIGITS(&r), \ in main()
244 success = success && result; \ in main()
245 printf(" R value %s\n", result ? "good" : "bad"); \ in main()
[all …]
/system/security/keystore/
Dkeystore_cli_v2.cpp83 int32_t result = keystore->generateKey("tmp", parameters, &hardware_enforced_characteristics, in TestKey() local
85 if (result != KM_ERROR_OK) { in TestKey()
86 LOG(ERROR) << "Failed to generate key: " << result; in TestKey()
90 result = keystore->deleteKey("tmp"); in TestKey()
91 if (result != KM_ERROR_OK) { in TestKey()
92 LOG(ERROR) << "Failed to delete key: " << result; in TestKey()
257 int32_t result = keystore->addRandomNumberGeneratorEntropy(input); in AddEntropy() local
258 printf("AddEntropy: %d\n", result); in AddEntropy()
259 return result; in AddEntropy()
275 int32_t result = keystore->generateKey(name, params.build(), &hardware_enforced_characteristics, in GenerateKey() local
[all …]
/system/bt/stack/avrc/
Davrc_utils.c39 BOOLEAN result=FALSE; in AVRC_IsValidAvcType() local
54 result=TRUE; in AVRC_IsValidAvcType()
66 result=TRUE; in AVRC_IsValidAvcType()
71 result=TRUE; in AVRC_IsValidAvcType()
79 result=TRUE; in AVRC_IsValidAvcType()
82 return result; in AVRC_IsValidAvcType()
96 BOOLEAN result=FALSE; in avrc_is_valid_player_attrib_value() local
103 result=TRUE; in avrc_is_valid_player_attrib_value()
109 result=TRUE; in avrc_is_valid_player_attrib_value()
116 result=TRUE; in avrc_is_valid_player_attrib_value()
[all …]

12345678910>>...21