Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 67) sorted by relevance

123

/system/keymaster/km_openssl/
Dattestation_record.cpp98 keymaster_error_t build_auth_list(const AuthorizationSet& auth_list, KM_AUTH_LIST* record) { in build_auth_list() argument
99 assert(record); in build_auth_list()
148 integer_ptr = &record->algorithm; in build_auth_list()
151 integer_ptr = &record->ec_curve; in build_auth_list()
154 integer_ptr = &record->user_auth_type; in build_auth_list()
157 integer_ptr = &record->origin; in build_auth_list()
162 integer_set = &record->purpose; in build_auth_list()
165 integer_set = &record->padding; in build_auth_list()
168 integer_set = &record->digest; in build_auth_list()
171 integer_set = &record->kdf; in build_auth_list()
[all …]
Dwrapped_key.cpp93 UniquePtr<KM_WRAPPED_KEY, KM_WRAPPED_KEY_Delete> record( in parse_wrapped_key() local
95 if (!record.get()) return TranslateLastOpenSslError(); in parse_wrapped_key()
97 *iv = KeymasterBlob(record->iv->data, record->iv->length); in parse_wrapped_key()
98 if (record->iv->data && !iv->data) { in parse_wrapped_key()
102 *transit_key = KeymasterKeyBlob(record->transit_key->data, record->transit_key->length); in parse_wrapped_key()
103 if (record->transit_key->data && !transit_key->key_material) { in parse_wrapped_key()
107 *secure_key = KeymasterKeyBlob(record->secure_key->data, record->secure_key->length); in parse_wrapped_key()
108 if (record->secure_key->data && !secure_key->key_material) { in parse_wrapped_key()
112 *tag = KeymasterBlob(record->tag->data, record->tag->length); in parse_wrapped_key()
113 if (record->tag->data && !tag->data) { in parse_wrapped_key()
[all …]
/system/bt/main/
Dbte_conf.cc51 tBTA_DI_RECORD record; in bte_load_did_conf() local
52 record.vendor = in bte_load_did_conf()
54 record.vendor_id_source = config_get_int( in bte_load_did_conf()
56 record.product = config_get_int(*config, section_name, "productId", 0); in bte_load_did_conf()
57 record.version = config_get_int(*config, section_name, "version", 0); in bte_load_did_conf()
58 record.primary_record = in bte_load_did_conf()
62 record.client_executable_url, in bte_load_did_conf()
65 sizeof(record.client_executable_url)); in bte_load_did_conf()
67 record.service_description, in bte_load_did_conf()
70 sizeof(record.service_description)); in bte_load_did_conf()
[all …]
/system/bt/bta/sdp/
Dbta_sdp_act.cc51 static void bta_create_mns_sdp_record(bluetooth_sdp_record* record, in bta_create_mns_sdp_record() argument
56 record->mns.hdr.type = SDP_TYPE_MAP_MNS; in bta_create_mns_sdp_record()
57 record->mns.hdr.service_name_length = 0; in bta_create_mns_sdp_record()
58 record->mns.hdr.service_name = NULL; in bta_create_mns_sdp_record()
59 record->mns.hdr.rfcomm_channel_number = 0; in bta_create_mns_sdp_record()
60 record->mns.hdr.l2cap_psm = -1; in bta_create_mns_sdp_record()
61 record->mns.hdr.profile_version = 0; in bta_create_mns_sdp_record()
62 record->mns.supported_features = 0x0000001F; // default value if not found in bta_create_mns_sdp_record()
66 record->mns.supported_features = p_attr->attr_value.v.u32; in bta_create_mns_sdp_record()
71 record->mns.hdr.service_name_length = in bta_create_mns_sdp_record()
[all …]
/system/update_engine/common/
Dsubprocess.cc117 void Subprocess::OnStdoutReady(SubprocessRecord* record) { in OnStdoutReady() argument
124 record->stdout_fd, buf, arraysize(buf), &bytes_read, &eof); in OnStdoutReady()
125 record->stdout.append(buf, bytes_read); in OnStdoutReady()
129 MessageLoop::current()->CancelTask(record->stdout_task_id); in OnStdoutReady()
130 record->stdout_task_id = MessageLoop::kTaskIdNull; in OnStdoutReady()
140 SubprocessRecord* record = pid_record->second.get(); in ChildExitedCallback() local
143 OnStdoutReady(record); in ChildExitedCallback()
145 MessageLoop::current()->CancelTask(record->stdout_task_id); in ChildExitedCallback()
146 record->stdout_task_id = MessageLoop::kTaskIdNull; in ChildExitedCallback()
155 if (!record->stdout.empty()) { in ChildExitedCallback()
[all …]
/system/gatekeeper/
Dgatekeeper.cpp56 failure_record_t record; in Enroll() local
57 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Enroll()
62 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
64 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
69 timeout = ComputeRetryTimeout(&record); in Enroll()
130 failure_record_t record; in Verify() local
131 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Verify()
136 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
138 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
143 timeout = ComputeRetryTimeout(&record); in Verify()
[all …]
/system/netd/server/
DXfrmController.h292 static netdutils::Status addTransportModeTransform(const XfrmSaInfo& record);
293 static int removeTransportModeTransform(const XfrmSaInfo& record);
297 static void fillXfrmSelector(const XfrmSaInfo& record, xfrm_selector* selector);
303 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl);
306 static netdutils::Status updateSecurityAssociation(const XfrmSaInfo& record,
308 static int fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa);
311 static netdutils::Status deleteSecurityAssociation(const XfrmId& record,
313 static int fillUserSaId(const XfrmId& record, xfrm_usersa_id* said);
314 static int fillUserTemplate(const XfrmSaInfo& record, xfrm_user_tmpl* tmpl);
316 static int fillTransportModeUserSpInfo(const XfrmSaInfo& record, XfrmDirection direction,
[all …]
DXfrmController.cpp804 void XfrmController::fillXfrmSelector(const XfrmSaInfo& record, xfrm_selector* selector) { in fillXfrmSelector() argument
805 selector->family = record.addrFamily; in fillXfrmSelector()
810 netdutils::Status XfrmController::updateSecurityAssociation(const XfrmSaInfo& record, in updateSecurityAssociation() argument
856 if (!record.aead.name.empty() && (!record.auth.name.empty() || !record.crypt.name.empty())) { in updateSecurityAssociation()
862 if (record.aead.key.size() > MAX_KEY_LENGTH || record.auth.key.size() > MAX_KEY_LENGTH || in updateSecurityAssociation()
863 record.crypt.key.size() > MAX_KEY_LENGTH) { in updateSecurityAssociation()
868 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
871 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in updateSecurityAssociation()
874 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
877 len = iov[AEAD].iov_len = fillNlAttrXfrmAlgoAead(record.aead, &aead); in updateSecurityAssociation()
[all …]
/system/extras/boot_control_copy/
Dbootinfo.cpp55 struct fstab_rec *record; in boot_info_open_partition() local
77 record = fs_mgr_get_entry_for_mount_point(fstab, "/misc"); in boot_info_open_partition()
78 if (record == NULL) { in boot_info_open_partition()
83 path = strdup(record->blk_device); in boot_info_open_partition()
86 const char *end_slash = strrchr(record->blk_device, '/'); in boot_info_open_partition()
91 trimmed_len = end_slash - record->blk_device + 1; in boot_info_open_partition()
94 strncpy(path, record->blk_device, trimmed_len); in boot_info_open_partition()
/system/update_engine/
Dutils_android.cc44 struct fstab_rec* record; in DeviceForMountPoint() local
51 record = fs_mgr_get_entry_for_mount_point(fstab, mount_point.c_str()); in DeviceForMountPoint()
52 if (record == nullptr) { in DeviceForMountPoint()
58 *device = base::FilePath(record->blk_device); in DeviceForMountPoint()
/system/core/bootstat/
Dboot_event_record_store_test.cpp195 BootEventRecordStore::BootEventRecord record; in TEST_F() local
196 bool result = store.GetBootEvent("nonexistent", &record); in TEST_F()
200 EXPECT_DEATH(store.GetBootEvent(std::string(), &record), std::string()); in TEST_F()
204 result = store.GetBootEvent("carboniferous", &record); in TEST_F()
206 EXPECT_EQ("carboniferous", record.first); in TEST_F()
207 EXPECT_EQ(314, record.second); in TEST_F()
221 BootEventRecordStore::BootEventRecord record; in TEST_F() local
222 bool result = store.GetBootEvent("devonian", &record); in TEST_F()
224 EXPECT_EQ("devonian", record.first); in TEST_F()
225 EXPECT_EQ(2718, record.second); in TEST_F()
Dboot_event_record_store.cpp98 bool BootEventRecordStore::GetBootEvent(const std::string& event, BootEventRecord* record) const { in GetBootEvent()
99 CHECK_NE(static_cast<BootEventRecord*>(nullptr), record); in GetBootEvent()
109 *record = std::make_pair(event, uptime); in GetBootEvent()
130 BootEventRecord record; in GetAllBootEvents() local
131 if (!GetBootEvent(event, &record)) { in GetAllBootEvents()
136 events.push_back(record); in GetAllBootEvents()
/system/core/init/
Dperfboot.py261 def get_values(record, tag): argument
263 keys = [key for key in record.keys() if key[0] == tag]
264 return [record[k] for k in sorted(keys)]
267 def get_last_value(record, tag): argument
269 values = get_values(record, tag)
283 for record in record_list:
289 len(get_values(record, tag)))
306 for record in record_list:
312 values = get_values(record, tag)
350 end_times = [get_last_value(record, end_tag) for record in record_list
[all …]
/system/extras/simpleperf/
Drecord_file_reader.cpp210 std::unique_ptr<Record> record; in ReadDataSection() local
211 while (ReadRecord(record, sorted)) { in ReadDataSection()
212 if (record == nullptr) { in ReadDataSection()
215 if (!callback(std::move(record))) { in ReadDataSection()
222 bool RecordFileReader::ReadRecord(std::unique_ptr<Record>& record, in ReadRecord() argument
238 record = nullptr; in ReadRecord()
239 while (read_record_size_ < header_.data.size && record == nullptr) { in ReadRecord()
240 record = ReadRecord(&read_record_size_); in ReadRecord()
241 if (record == nullptr) { in ReadRecord()
244 if (record->type() == SIMPLE_PERF_RECORD_EVENT_ID) { in ReadRecord()
[all …]
Dcmd_record.cpp252 bool ProcessRecord(Record* record);
253 bool SaveRecordForPostUnwinding(Record* record);
254 bool SaveRecordAfterUnwinding(Record* record);
255 bool SaveRecordWithoutUnwinding(Record* record);
257 void UpdateRecordForEmbeddedElfPath(Record* record);
911 TracingDataRecord record(tracing_data); in DumpTracingData() local
912 if (!ProcessRecord(&record)) { in DumpTracingData()
979 MmapRecord record(attr, false, pid, pid, map.start_addr, map.len, in DumpThreadCommAndMmaps() local
981 if (!ProcessRecord(&record)) { in DumpThreadCommAndMmaps()
988 CommRecord record(attr, pid, pid, name, event_id, 0); in DumpThreadCommAndMmaps() local
[all …]
Drecord_test.cpp33 void CheckRecordMatchBinary(Record& record) { in CheckRecordMatchBinary() argument
35 ReadRecordsFromBuffer(event_attr, record.BinaryForTestingOnly(), record.size()); in CheckRecordMatchBinary()
37 CheckRecordEqual(record, *records[0]); in CheckRecordMatchBinary()
44 MmapRecord record(event_attr, true, 1, 2, 0x1000, 0x2000, 0x3000, in TEST_F() local
46 CheckRecordMatchBinary(record); in TEST_F()
50 CommRecord record(event_attr, 1, 2, "CommRecord", 0, 7); in TEST_F() local
51 CheckRecordMatchBinary(record); in TEST_F()
58 SampleRecord record(event_attr, 1, 2, 3, 4, 5, 6, 7, {8, 9, 10}); in TEST_F() local
59 CheckRecordMatchBinary(record); in TEST_F()
Drecord_file_writer.cpp125 bool RecordFileWriter::WriteRecord(const Record& record) { in WriteRecord() argument
131 if (record.size() <= RECORD_SIZE_LIMIT) { in WriteRecord()
132 WriteData(record.Binary(), record.size()); in WriteRecord()
135 CHECK_GT(record.type(), SIMPLE_PERF_RECORD_TYPE_START); in WriteRecord()
136 const char* p = record.Binary(); in WriteRecord()
137 uint32_t left_bytes = static_cast<uint32_t>(record.size()); in WriteRecord()
240 for (auto& record : build_id_records) { in WriteBuildIdFeature() local
241 if (!Write(record.Binary(), record.size())) { in WriteBuildIdFeature()
Dthread_tree.cpp294 void ThreadTree::Update(const Record& record) { in Update() argument
295 if (record.type() == PERF_RECORD_MMAP) { in Update()
296 const MmapRecord& r = *static_cast<const MmapRecord*>(&record); in Update()
304 } else if (record.type() == PERF_RECORD_MMAP2) { in Update()
305 const Mmap2Record& r = *static_cast<const Mmap2Record*>(&record); in Update()
316 } else if (record.type() == PERF_RECORD_COMM) { in Update()
317 const CommRecord& r = *static_cast<const CommRecord*>(&record); in Update()
319 } else if (record.type() == PERF_RECORD_FORK) { in Update()
320 const ForkRecord& r = *static_cast<const ForkRecord*>(&record); in Update()
322 } else if (record.type() == SIMPLE_PERF_RECORD_KERNEL_SYMBOL) { in Update()
[all …]
/system/bt/btif/src/
Dbtif_sdp_server.cc123 bluetooth_sdp_record* record = in_record; in get_sdp_records_size() local
127 record = &in_record[i]; in get_sdp_records_size()
129 records_size += record->hdr.service_name_length; in get_sdp_records_size()
130 if (record->hdr.service_name_length > 0) { in get_sdp_records_size()
133 records_size += record->hdr.user1_ptr_len; in get_sdp_records_size()
134 records_size += record->hdr.user2_ptr_len; in get_sdp_records_size()
195 bluetooth_sdp_record* record = (bluetooth_sdp_record*)osi_malloc(record_size); in alloc_sdp_slot() local
197 copy_sdp_records(in_record, record, 1); in alloc_sdp_slot()
203 sdp_slots[i].record_data = record; in alloc_sdp_slot()
210 osi_free(record); in alloc_sdp_slot()
[all …]
/system/gatekeeper/include/gatekeeper/
Dgatekeeper.h128 virtual bool GetFailureRecord(uint32_t uid, secure_id_t user_id, failure_record_t *record,
153 virtual bool WriteFailureRecord(uint32_t uid, failure_record_t *record, bool secure) = 0;
160 virtual uint32_t ComputeRetryTimeout(const failure_record_t *record);
197 failure_record_t *record, bool secure);
208 failure_record_t *record, bool secure, GateKeeperMessage *response);
/system/chre/apps/wifi_offload/test/
Dutility.cc82 void init(wifi_offload::ScanRecord &record, RandomGenerator &rand_gen) { in init() argument
83 init(record.time_spent_scanning_ms_, rand_gen); in init()
84 init(record.num_channels_scanned_, rand_gen); in init()
85 init(record.num_entries_aggregated_, rand_gen); in init()
88 void init(wifi_offload::RpcLogRecord &record, RandomGenerator &rand_gen) { in init() argument
89 init_rpc_log_record(record.record_type_, rand_gen); in init()
90 init(record.timestamp_chre_ms_, rand_gen); in init()
/system/extras/perfprofd/
Dperf_data_converter.cc32 void AddSymbolInfo(PerfprofdRecord* record, in AddSymbolInfo() argument
36 for (auto& perf_build_id : record->perf_data().build_ids()) { in AddSymbolInfo()
42 quipper::MmapEventIterator it(record->perf_data()); in AddSymbolInfo()
66 auto it = record->perf_data().events().begin(); in AddSymbolInfo()
67 auto end = record->perf_data().events().end(); in AddSymbolInfo()
142 PerfprofdRecord_SymbolInfo* symbol_info = record->add_symbol_info(); in AddSymbolInfo()
/system/core/gatekeeperd/
DSoftGateKeeper.h104 virtual bool GetFailureRecord(uint32_t uid, secure_id_t user_id, failure_record_t *record, in GetFailureRecord() argument
112 memcpy(record, stored, sizeof(*record)); in GetFailureRecord()
124 virtual bool WriteFailureRecord(uint32_t uid, failure_record_t *record, bool /* secure */) { in WriteFailureRecord() argument
125 failure_map_[uid] = *record; in WriteFailureRecord()
/system/extras/simpleperf/doc/
DREADME.md19 - [Record and report profiling data](#record-and-report-profiling-data)
20 - [Record and report call graph](#record-and-report-call-graph)
23 - [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time)
36 - [The record command](#the-record-command)
37 - [Select events to record](#select-events-to-record)
38 - [Select target to record](#select-target-to-record)
39 - [Set the frequency to record](#set-the-frequency-to-record)
40 - [Decide how long to record](#decide-how-long-to-record)
42 - [Record call graphs](#record-call-graphs-in-record-cmd)
43 …- [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time-in-record-c…
[all …]
/system/netd/server/dns/
DDnsTlsTransport.cpp41 auto record = mQueries.recordQuery(query); in query() local
42 if (!record) { in query()
52 sendQuery(record->query); in query()
55 return std::move(record->result); in query()

123