Home
last modified time | relevance | path

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

12345678910>>...25

/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 = 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 …]
Dresource_manager.cc77 TPM_RC result = factory_.GetTpm()->GetCapabilitySync( in Initialize() local
80 if (result != TPM_RC_SUCCESS) { in Initialize()
82 << GetErrorString(result); in Initialize()
107 TPM_RC result = ParseCommand(command, &command_info); in SendCommandAndWait() local
108 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
109 return CreateErrorResponse(result); in SendCommandAndWait()
120 result = ProcessInputHandle(command_info, handle, &tpm_handle); in SendCommandAndWait()
121 if (result != TPM_RC_SUCCESS) { in SendCommandAndWait()
122 return CreateErrorResponse(result); in SendCommandAndWait()
129 result = EnsureSessionIsLoaded(command_info, handle); in SendCommandAndWait()
[all …]
Dpolicy_session_impl.cc78 TPM_RC result = factory_.GetTpm()->PolicyGetDigestSync( in GetDigest() local
82 if (result != TPM_RC_SUCCESS) { in GetDigest()
83 LOG(ERROR) << "Error getting policy digest: " << GetErrorString(result); in GetDigest()
84 return result; in GetDigest()
100 TPM_RC result = factory_.GetTpm()->PolicyORSync( in PolicyOR() local
104 if (result != TPM_RC_SUCCESS) { in PolicyOR()
105 LOG(ERROR) << "Error performing PolicyOR: " << GetErrorString(result); in PolicyOR()
106 return result; in PolicyOR()
135 TPM_RC result = factory_.GetTpm()->PolicyPCRSync( in PolicyPCR() local
139 if (result != TPM_RC_SUCCESS) { in PolicyPCR()
[all …]
/system/update_engine/update_manager/
Dchromeos_policy_unittest.cc190 R* result, Args... args) { in ExpectPolicyStatus() argument
195 result, args...)) in ExpectPolicyStatus()
326 UpdateCheckParams result; in TEST_F() local
335 &Policy::UpdateCheckAllowed, &result); in TEST_F()
343 &Policy::UpdateCheckAllowed, &result); in TEST_F()
344 EXPECT_TRUE(result.updates_enabled); in TEST_F()
345 EXPECT_FALSE(result.is_interactive); in TEST_F()
369 UpdateCheckParams result; in TEST_F() local
371 &Policy::UpdateCheckAllowed, &result); in TEST_F()
380 &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/tpm_manager/server/
Dtpm_initializer_impl.cc93 TSS_RESULT result = Tspi_TPM_GetPubEndorsementKey( in InitializeEndorsementKey() local
95 if (TPM_ERROR(result) == TPM_SUCCESS) { in InitializeEndorsementKey()
102 if (TPM_ERROR(result = Tspi_Context_CreateObject( in InitializeEndorsementKey()
105 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; in InitializeEndorsementKey()
108 if (TPM_ERROR(result = Tspi_TPM_CreateEndorsementKey( in InitializeEndorsementKey()
110 TPM_LOG(ERROR, result) << "Error calling Tspi_TPM_CreateEndorsementKey"; in InitializeEndorsementKey()
121 TSS_RESULT result; in TakeOwnership() local
124 if (TPM_ERROR(result = Tspi_Context_CreateObject( in TakeOwnership()
127 TPM_LOG(ERROR, result) << "Error calling Tspi_Context_CreateObject"; in TakeOwnership()
131 if (TPM_ERROR(result = Tspi_GetPolicyObject(srk_handle, TSS_POLICY_USAGE, in TakeOwnership()
[all …]
Dtpm_nvram_impl.cc154 TSS_RESULT result; in DefineSpace() local
155 result = Tspi_SetAttribUint32(nv_handle, TSS_TSPATTRIB_NV_DATASIZE, 0, size); in DefineSpace()
156 if (TPM_ERROR(result)) { in DefineSpace()
157 TPM_LOG(ERROR, result) << "Could not set size on NVRAM object: " << size; in DefineSpace()
161 result = Tspi_SetAttribUint32(nv_handle, TSS_TSPATTRIB_NV_PERMISSIONS, 0, in DefineSpace()
163 if (TPM_ERROR(result)) { in DefineSpace()
164 TPM_LOG(ERROR, result) << "Could not set permissions on NVRAM object"; in DefineSpace()
181 result = Tspi_NV_DefineSpace(nv_handle, pcr_handle, /*Read*/ in DefineSpace()
183 if (TPM_ERROR(result)) { in DefineSpace()
184 TPM_LOG(ERROR, result) << "Could not define NVRAM space: " << index; in DefineSpace()
[all …]
Dtpm_connection.cc51 TSS_RESULT result; in GetTpm() local
53 if (TPM_ERROR(result = in GetTpm()
55 TPM_LOG(ERROR, result) << "Error getting a handle to the TPM."; in GetTpm()
65 TSS_RESULT result; in ConnectContextIfNeeded() local
66 if (TPM_ERROR(result = Tspi_Context_Create(context_.ptr()))) { in ConnectContextIfNeeded()
67 TPM_LOG(ERROR, result) << "Error connecting to TPM."; in ConnectContextIfNeeded()
72 if (TPM_ERROR(result = Tspi_Context_Connect(context_, nullptr))) { in ConnectContextIfNeeded()
73 if (ERROR_CODE(result) == TSS_E_COMM_FAILURE) { in ConnectContextIfNeeded()
77 TPM_LOG(ERROR, result) << "Error connecting to TPM."; in ConnectContextIfNeeded()
94 if (TPM_ERROR(result = in ConnectContextIfNeeded()
[all …]
/system/extras/simpleperf/
Dcmd_kmem_test.cpp43 ReportResult* result) { in KmemReportRawFile() argument
44 result->success = false; in KmemReportRawFile()
50 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); in KmemReportRawFile()
51 ASSERT_TRUE(!result->content.empty()); in KmemReportRawFile()
53 android::base::Split(result->content, "\n"); in KmemReportRawFile()
54 result->lines.clear(); in KmemReportRawFile()
58 result->lines.push_back(s); in KmemReportRawFile()
61 ASSERT_GE(result->lines.size(), 2u); in KmemReportRawFile()
62 result->success = true; in KmemReportRawFile()
67 ReportResult* result) { in KmemReportFile() argument
[all …]
/system/update_engine/
Dimage_properties_android.cc59 string result; in GetStringWithDefault() local
60 if (osrelease.GetString(key, &result)) in GetStringWithDefault()
61 return result; in GetStringWithDefault()
76 ImageProperties result; in LoadImageProperties() local
83 result.product_id = in LoadImageProperties()
85 result.system_id = GetStringWithDefault( in LoadImageProperties()
90 result.product_id, ":", &prefix, &not_used, false) && in LoadImageProperties()
92 result.system_id, ":", &not_used, &system_id, false)) { in LoadImageProperties()
93 result.system_id = prefix + ":" + system_id; in LoadImageProperties()
95 result.canary_product_id = result.product_id; in LoadImageProperties()
[all …]
Dimage_properties_chromeos.cc52 std::string result; in GetStringWithDefault() local
53 if (store.GetString(key, &result)) in GetStringWithDefault()
54 return result; in GetStringWithDefault()
89 ImageProperties result; in LoadImageProperties() local
93 result.current_channel = GetStringWithDefault( in LoadImageProperties()
109 result.product_id = GetStringWithDefault( in LoadImageProperties()
111 result.canary_product_id = GetStringWithDefault( in LoadImageProperties()
113 result.board = GetStringWithDefault(lsb_release, kLsbReleaseBoardKey, ""); in LoadImageProperties()
114 result.version = GetStringWithDefault(lsb_release, kLsbReleaseVersionKey, ""); in LoadImageProperties()
115 result.omaha_url = in LoadImageProperties()
[all …]
/system/chre/apps/wifi_world/
Dwifi_world.cc56 void logChreWifiResult(const chreWifiScanResult& result) { in logChreWifiResult() argument
59 if (result.ssidLen == 0) { in logChreWifiResult()
62 result.ssid, result.ssidLen)) { in logChreWifiResult()
68 if (parseBssidToStr(result.bssid, bssidBuffer, kBssidStrLen)) { in logChreWifiResult()
74 LOGI(" age (ms): %" PRIu32, result.ageMs); in logChreWifiResult()
75 LOGI(" capability info: %" PRIx16, result.capabilityInfo); in logChreWifiResult()
77 LOGI(" flags: %" PRIx8, result.flags); in logChreWifiResult()
78 LOGI(" rssi: %" PRId8 "dBm", result.rssi); in logChreWifiResult()
79 LOGI(" band: %s (%" PRIu8 ")", parseChreWifiBand(result.band), result.band); in logChreWifiResult()
80 LOGI(" primary channel: %" PRIu32, result.primaryChannel); in logChreWifiResult()
[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) << "): "
125 TSS_RESULT result; in ActivateIdentity() local
136 result = Tspi_Context_LoadKeyByBlob( in ActivateIdentity()
139 if (TPM_ERROR(result)) { in ActivateIdentity()
140 TPM_LOG(ERROR, result) << __func__ << ": Failed to load AIK."; in ActivateIdentity()
150 result = Tspi_TPM_ActivateIdentity( in ActivateIdentity()
154 if (TPM_ERROR(result)) { in ActivateIdentity()
155 TPM_LOG(ERROR, result) << __func__ << ": Failed to activate identity."; in ActivateIdentity()
[all …]
/system/bt/stack/avdt/
Davdt_api.cc170 uint16_t result = AVDT_SUCCESS; in AVDT_CreateStream() local
178 result = AVDT_BAD_PARAMS; in AVDT_CreateStream()
184 result = AVDT_NO_RESOURCES; in AVDT_CreateStream()
190 AVDT_TRACE_DEBUG("%s: result=%d", __func__, result); in AVDT_CreateStream()
192 return result; in AVDT_CreateStream()
210 uint16_t result = AVDT_SUCCESS; in AVDT_RemoveStream() local
218 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream()
224 AVDT_TRACE_DEBUG("%s: result=%d", __func__, result); in AVDT_RemoveStream()
226 return result; in AVDT_RemoveStream()
258 uint16_t result = AVDT_SUCCESS; in AVDT_DiscoverReq() local
[all …]
/system/bt/stack/avrc/
Davrc_utils.cc37 bool result = false; in AVRC_IsValidAvcType() local
50 if (avc_type == AVRC_CMD_STATUS) result = true; in AVRC_IsValidAvcType()
58 if (avc_type == AVRC_CMD_CTRL) result = true; in AVRC_IsValidAvcType()
62 result = true; in AVRC_IsValidAvcType()
69 if (avc_type == AVRC_CMD_CTRL) result = true; in AVRC_IsValidAvcType()
73 if (avc_type == AVRC_CMD_NOTIF) result = true; in AVRC_IsValidAvcType()
79 result = true; in AVRC_IsValidAvcType()
82 return result; in AVRC_IsValidAvcType()
95 bool result = false; in avrc_is_valid_player_attrib_value() local
99 if ((value > 0) && (value <= AVRC_PLAYER_VAL_ON)) result = true; in avrc_is_valid_player_attrib_value()
[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/service/test/
Dparcelable_unittest.cc61 bool result = in TEST() local
63 EXPECT_TRUE(result); in TEST()
68 bool result = in TEST() local
71 EXPECT_TRUE(result); in TEST()
79 bool result = in TEST() local
82 EXPECT_TRUE(result); in TEST()
101 bool result = in TEST() local
103 EXPECT_TRUE(result); in TEST()
105 result = TestData<ScanSettings, android::bluetooth::ScanSettings>(settings0); in TEST()
106 EXPECT_TRUE(result); in TEST()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Ddequant.c134 float result = (1 << (scale_factor + 1)) * in dequant_float() local
137 result /= SBC_DEQUANT_SCALING_FACTOR; in dequant_float()
144 OI_ASSERT(fabs(result) < 32768 * 1.6); in dequant_float()
146 return result; in dequant_float()
154 int32_t result; in OI_SBC_Dequant() local
165 result = d - SBC_DEQUANT_LONG_SCALED_OFFSET; in OI_SBC_Dequant()
176 OI_ASSERT(((result >= 0) && (integerized_float_result >= 0)) || in OI_SBC_Dequant()
177 ((result <= 0) && (integerized_float_result <= 0))); in OI_SBC_Dequant()
180 return result >> (15 - scale_factor); in OI_SBC_Dequant()
193 int32_t result; in OI_SBC_Dequant_Unscaled() local
[all …]
Dbitstream-decode.c49 uint32_t result; in OI_BITSTREAM_ReadUINT() local
51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
53 return result; in OI_BITSTREAM_ReadUINT()
57 uint32_t result; in OI_BITSTREAM_ReadUINT4Aligned() local
63 result = bs->value << 8; in OI_BITSTREAM_ReadUINT4Aligned()
66 result = bs->value << 12; in OI_BITSTREAM_ReadUINT4Aligned()
70 result >>= 28; in OI_BITSTREAM_ReadUINT4Aligned()
71 OI_ASSERT(result < (1u << 4)); in OI_BITSTREAM_ReadUINT4Aligned()
72 return (uint8_t)result; in OI_BITSTREAM_ReadUINT4Aligned()
76 uint32_t result; in OI_BITSTREAM_ReadUINT8Aligned() 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/media/camera/tests/
Dcamera_metadata_tests.cpp221 int result; in TEST() local
228 result = add_camera_metadata_entry(m, in TEST()
231 EXPECT_EQ(OK, result); in TEST()
241 result = add_camera_metadata_entry(m, in TEST()
244 EXPECT_EQ(OK, result); in TEST()
254 result = add_camera_metadata_entry(m, in TEST()
257 EXPECT_EQ(OK, result); in TEST()
267 result = add_camera_metadata_entry(m, in TEST()
270 EXPECT_EQ(OK, result); in TEST()
286 result = add_camera_metadata_entry(m, in TEST()
[all …]
/system/nvram/core/
Dnvram_manager.cpp77 volatile uint8_t result = 0; in ConstantTimeEquals() local
79 result |= data_a[i] ^ data_b[i]; in ConstantTimeEquals()
82 return result == 0; in ConstantTimeEquals()
112 nvram_result_t result = NV_RESULT_INVALID_PARAMETER; in Dispatch() local
118 result = GetInfo(*input.get<COMMAND_GET_INFO>(), in Dispatch()
122 result = CreateSpace(*input.get<COMMAND_CREATE_SPACE>(), in Dispatch()
126 result = GetSpaceInfo(*input.get<COMMAND_GET_SPACE_INFO>(), in Dispatch()
130 result = DeleteSpace(*input.get<COMMAND_DELETE_SPACE>(), in Dispatch()
134 result = DisableCreate(*input.get<COMMAND_DISABLE_CREATE>(), in Dispatch()
138 result = WriteSpace(*input.get<COMMAND_WRITE_SPACE>(), in Dispatch()
[all …]
/system/security/keystore/
Dkeystore_cli_v2.cpp81 auto result = keystore->generateKey("tmp", parameters, &hardware_enforced_characteristics, in TestKey() local
84 if (!result.isOk()) { in TestKey()
85 LOG(ERROR) << "Failed to generate key: " << result; in TestKey()
89 result = keystore->deleteKey("tmp"); in TestKey()
90 if (!result.isOk()) { in TestKey()
91 LOG(ERROR) << "Failed to delete key: " << result; in TestKey()
264 int32_t result = keystore->addRandomNumberGeneratorEntropy(input); in AddEntropy() local
265 printf("AddEntropy: %d\n", result); in AddEntropy()
266 return result; in AddEntropy()
282 auto result = keystore->generateKey(name, params, &hardware_enforced_characteristics, in GenerateKey() local
[all …]

12345678910>>...25