Home
last modified time | relevance | path

Searched refs:Deserialize (Results 1 – 25 of 53) sorted by relevance

123

/system/chre/apps/wifi_offload/
Dflatbuffers_serialization.cc28 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize() function
30 return Deserialize<wifi_offload::ScanStats>(buffer, buffer_len, stats, in Deserialize()
39 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize() function
41 return Deserialize<wifi_offload::ScanConfig>(buffer, buffer_len, config, in Deserialize()
52 bool Deserialize(const uint8_t *buffer, size_t buffer_len, in Deserialize() function
55 if (Deserialize<wifi_offload::ScanResultMessage>(buffer, buffer_len, &msg, in Deserialize()
Dscan_config.cc36 bool ScanConfig::Deserialize(const ScanConfig::FbsType &fbs_config) { in Deserialize() function in wifi_offload::ScanConfig
43 return scan_params_.Deserialize(*fbs_config.scan_params()) && in Deserialize()
44 scan_filter_.Deserialize(*fbs_config.scan_filter()); in Deserialize()
Dpreferred_network.cc36 bool PreferredNetwork::Deserialize( in Deserialize() function in wifi_offload::PreferredNetwork
39 if (fbs_ssid == nullptr || !ssid_.Deserialize(*fbs_ssid)) { in Deserialize()
Dscan_stats.cc60 bool ScanStats::Deserialize(const ScanStats::FbsType &fbs_stats) { in Deserialize() function in wifi_offload::ScanStats
62 if (histo == nullptr || !channel_histogram_.Deserialize(*histo)) { in Deserialize()
Dscan_record.cc41 bool ScanRecord::Deserialize(const ScanRecord::FbsType &fbs_record) { in Deserialize() function in wifi_offload::ScanRecord
Dscan_result.cc84 bool ScanResult::Deserialize(const ScanResult::FbsType &fbs_result) { in Deserialize() function in wifi_offload::ScanResult
85 if (fbs_result.ssid() == nullptr || !ssid_.Deserialize(*fbs_result.ssid())) { in Deserialize()
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp178 bool KeymasterResponse::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() function in keymaster::KeymasterResponse
201 bool GenerateKeyRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() function in keymaster::GenerateKeyRequest
202 if (!key_description.Deserialize(buf_ptr, end)) return false; in Deserialize()
205 && attest_key_params.Deserialize(buf_ptr, end) // in Deserialize()
226 !enforced.Deserialize(buf_ptr, end) || // in NonErrorDeserialize()
227 !unenforced.Deserialize(buf_ptr, end)) { in NonErrorDeserialize()
270 bool GenerateCsrRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() function in keymaster::GenerateCsrRequest
333 bool GenerateCsrV2Request::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() function in keymaster::GenerateCsrV2Request
393 bool GetKeyCharacteristicsRequest::Deserialize(const uint8_t** buf_ptr, const uint8_t* end) { in Deserialize() function in keymaster::GetKeyCharacteristicsRequest
395 additional_params.Deserialize(buf_ptr, end); in Deserialize()
[all …]
/system/chre/apps/wifi_offload/test/
Dflatbuffersserialization_test.cc24 using wifi_offload::fbs::Deserialize;
66 ASSERT_TRUE(Deserialize(this->buffer, serialized_size, &deserialized_obj)); in TYPED_TEST()
89 EXPECT_FALSE(Deserialize(nullptr, serialized_size, &new_obj)); in TYPED_TEST()
90 EXPECT_FALSE(Deserialize(this->buffer, 0, &new_obj)); in TYPED_TEST()
94 EXPECT_FALSE(Deserialize(this->buffer, serialized_size, &new_obj)); in TYPED_TEST()
/system/chre/apps/wifi_offload/include/chre/apps/wifi_offload/
Dflatbuffers_serialization.h71 bool Deserialize(const uint8_t *buffer, size_t buffer_len,
73 bool Deserialize(const uint8_t *buffer, size_t buffer_len,
75 bool Deserialize(const uint8_t *buffer, size_t buffer_len,
106 bool Deserialize(const uint8_t *in_buffer, size_t in_buffer_len,
131 return obj->Deserialize(*fbs_obj);
Dscan_config.h42 bool Deserialize(const ScanConfig::FbsType &fbs_config);
Dscan_record.h40 bool Deserialize(const ScanRecord::FbsType &fbs_record);
Dscan_filter.h46 bool Deserialize(const ScanFilter::FbsType &fbs_filter);
Dscan_params.h45 bool Deserialize(const ScanParams::FbsType &fbs_params);
Dscan_result_message.h44 bool Deserialize(const ScanResultMessage::FbsType &fbs_result_message);
Dpreferred_network.h53 bool Deserialize(const FbsType &fbs_network);
Dscan_stats.h46 bool Deserialize(const ScanStats::FbsType &fbs_stats);
Dssid.h50 bool Deserialize(const Ssid::FbsType &fbs_ssid);
Dchannel_histogram.h57 bool Deserialize(const flatbuffers::Vector<uint8_t> &fbs_scan_count);
Drpc_log_record.h69 bool Deserialize(const RpcLogRecord::FbsType &fbs_record);
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h182 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
197 bool Deserialize(const uint8_t**, const uint8_t*) override { return true; }; in Deserialize() function
215 bool Deserialize(const uint8_t** /* buf_ptr */, const uint8_t* /* end */) override { in Deserialize() function
228 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize() function
254 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize() function
358 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
387 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override { in Deserialize() function
412 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
443 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
477 bool Deserialize(const uint8_t** buf_ptr, const uint8_t* end) override;
[all …]
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp59 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
82 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
110 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
138 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
160 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
188 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
207 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
219 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
231 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
243 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
[all …]
/system/keymaster/tests/
Dkey_blob_test.cpp97 keymaster_error_t Deserialize() { in Deserialize() function in keymaster::test::KeyBlobTest
163 ASSERT_EQ(KM_ERROR_INVALID_KEY_BLOB, Deserialize()); in TEST_P()
177 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
192 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
208 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
220 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
242 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
262 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
273 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
288 ASSERT_EQ(KM_ERROR_OK, Deserialize()); in TEST_P()
[all …]
/system/keymaster/key_blob_utils/
Dintegrity_assured_key_blob.cpp131 if (!key_material->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
132 !hw_enforced->Deserialize(&p, end) || // in DeserializeIntegrityAssuredBlob_NoHmacCheck()
133 !sw_enforced->Deserialize(&p, end)) in DeserializeIntegrityAssuredBlob_NoHmacCheck()
Dauth_encrypted_key_blob.cpp253 if (!retval.encrypted_key.nonce.Deserialize(buf_ptr, end) || // in DeserializeAuthEncryptedBlob()
254 !retval.encrypted_key.ciphertext.Deserialize(buf_ptr, end) || // in DeserializeAuthEncryptedBlob()
255 !retval.encrypted_key.tag.Deserialize(buf_ptr, end)) { in DeserializeAuthEncryptedBlob()
266 if (!retval.hw_enforced.Deserialize(buf_ptr, end) || // in DeserializeAuthEncryptedBlob()
267 !retval.sw_enforced.Deserialize(buf_ptr, end)) { in DeserializeAuthEncryptedBlob()
/system/keymaster/tests/fuzzers/
Dmessage_serializable_fuzz.cpp34 serializable->Deserialize(&data_ptr, data_ptr + in_buf.size()); in LLVMFuzzerTestOneInput()

123