Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 71) 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.cc118 void Subprocess::OnStdoutReady(SubprocessRecord* record) { in OnStdoutReady() argument
125 record->stdout_fd, buf, arraysize(buf), &bytes_read, &eof); in OnStdoutReady()
126 record->stdout.append(buf, bytes_read); in OnStdoutReady()
130 MessageLoop::current()->CancelTask(record->stdout_task_id); in OnStdoutReady()
131 record->stdout_task_id = MessageLoop::kTaskIdNull; in OnStdoutReady()
141 SubprocessRecord* record = pid_record->second.get(); in ChildExitedCallback() local
144 OnStdoutReady(record); in ChildExitedCallback()
146 MessageLoop::current()->CancelTask(record->stdout_task_id); in ChildExitedCallback()
147 record->stdout_task_id = MessageLoop::kTaskIdNull; in ChildExitedCallback()
156 if (!record->stdout.empty()) { in ChildExitedCallback()
[all …]
/system/gatekeeper/
Dgatekeeper.cpp60 failure_record_t record; in Enroll() local
61 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Enroll()
66 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Enroll()
68 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Enroll()
73 timeout = ComputeRetryTimeout(&record); in Enroll()
139 failure_record_t record; in Verify() local
140 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { in Verify()
145 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; in Verify()
147 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { in Verify()
152 timeout = ComputeRetryTimeout(&record); in Verify()
[all …]
/system/extras/simpleperf/
Dcmd_record.cpp280 bool ProcessRecord(Record* record);
281 bool ShouldOmitRecord(Record* record);
282 bool DumpMapsForRecord(Record* record);
283 bool SaveRecordForPostUnwinding(Record* record);
284 bool SaveRecordAfterUnwinding(Record* record);
285 bool SaveRecordWithoutUnwinding(Record* record);
289 void UpdateRecord(Record* record);
1084 TracingDataRecord record(tracing_data); in DumpTracingData() local
1085 if (!ProcessRecord(&record)) { in DumpTracingData()
1152 Mmap2Record record(attr, false, pid, pid, map.start_addr, map.len, in DumpProcessMaps() 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}, {}, 0); in TEST_F() local
59 CheckRecordMatchBinary(record); in TEST_F()
Dcmd_trace_sched.cpp103 void ProcessRecord(Record& record);
104 void ProcessSampleRecord(const SampleRecord& record);
209 auto callback = [this](std::unique_ptr<Record> record) { in ParseSchedEvents() argument
210 ProcessRecord(*record); in ParseSchedEvents()
216 void TraceSchedCommand::ProcessRecord(Record& record) { in ProcessRecord() argument
217 switch (record.type()) { in ProcessRecord()
219 ProcessSampleRecord(*static_cast<SampleRecord*>(&record)); in ProcessRecord()
223 const CommRecord& r = *static_cast<const CommRecord*>(&record); in ProcessRecord()
231 const ForkRecord& r = *static_cast<const ForkRecord*>(&record); in ProcessRecord()
243 const TracingDataRecord& r = *static_cast<const TracingDataRecord*>(&record); in ProcessRecord()
[all …]
Drecord_file_reader.cpp210 std::unique_ptr<Record> record; in ReadDataSection() local
211 while (ReadRecord(record)) { 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
229 record = nullptr; in ReadRecord()
231 record = ReadRecord(&read_record_size_); in ReadRecord()
232 if (record == nullptr) { in ReadRecord()
235 if (record->type() == SIMPLE_PERF_RECORD_EVENT_ID) { in ReadRecord()
236 ProcessEventIdRecord(*static_cast<EventIdRecord*>(record.get())); in ReadRecord()
[all …]
DRecordReadThread_test.cpp80 auto process_record = [&](std::unique_ptr<Record> record) { in TEST() argument
81 if (record->type() == PERF_RECORD_MMAP || record->type() == PERF_RECORD_COMM || in TEST()
82 record->type() == PERF_RECORD_FORK || record->type() == PERF_RECORD_SAMPLE) { in TEST()
84 memcpy(&header, record->Binary(), sizeof(header)); in TEST()
86 memcpy(dest, record->Binary() + pos, size); in TEST()
92 ASSERT_EQ(record->Timestamp(), time); in TEST()
93 if (record->type() == PERF_RECORD_SAMPLE) { in TEST()
98 ASSERT_EQ(static_cast<SampleRecord*>(record.get())->stack_user_data.size, stack_size); in TEST()
102 ASSERT_TRUE(reader->ReadDataSection([&](std::unique_ptr<Record> record) { in TEST() argument
103 process_record(std::move(record)); in TEST()
Dthread_tree.cpp291 void ThreadTree::Update(const Record& record) { in Update() argument
292 if (record.type() == PERF_RECORD_MMAP) { in Update()
293 const MmapRecord& r = *static_cast<const MmapRecord*>(&record); in Update()
299 } else if (record.type() == PERF_RECORD_MMAP2) { in Update()
300 const Mmap2Record& r = *static_cast<const Mmap2Record*>(&record); in Update()
310 } else if (record.type() == PERF_RECORD_COMM) { in Update()
311 const CommRecord& r = *static_cast<const CommRecord*>(&record); in Update()
313 } else if (record.type() == PERF_RECORD_FORK) { in Update()
314 const ForkRecord& r = *static_cast<const ForkRecord*>(&record); in Update()
316 } else if (record.type() == SIMPLE_PERF_RECORD_KERNEL_SYMBOL) { in Update()
[all …]
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()
/system/core/bootstat/
Dboot_event_record_store_test.cpp194 BootEventRecordStore::BootEventRecord record; in TEST_F() local
195 bool result = store.GetBootEvent("nonexistent", &record); in TEST_F()
199 EXPECT_DEATH(store.GetBootEvent(std::string(), &record), std::string()); in TEST_F()
203 result = store.GetBootEvent("carboniferous", &record); in TEST_F()
205 EXPECT_EQ("carboniferous", record.first); in TEST_F()
206 EXPECT_EQ(314, record.second); in TEST_F()
220 BootEventRecordStore::BootEventRecord record; in TEST_F() local
221 bool result = store.GetBootEvent("devonian", &record); in TEST_F()
223 EXPECT_EQ("devonian", record.first); in TEST_F()
224 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/netd/server/
DXfrmController.cpp878 netdutils::Status XfrmController::updateSecurityAssociation(const XfrmSaInfo& record, in updateSecurityAssociation() argument
929 if (!record.aead.name.empty() && (!record.auth.name.empty() || !record.crypt.name.empty())) { in updateSecurityAssociation()
935 if (record.aead.key.size() > MAX_KEY_LENGTH || record.auth.key.size() > MAX_KEY_LENGTH || in updateSecurityAssociation()
936 record.crypt.key.size() > MAX_KEY_LENGTH) { in updateSecurityAssociation()
940 if (record.mode != XfrmMode::TUNNEL && in updateSecurityAssociation()
941 (record.xfrm_if_id != 0 || record.netId != 0 || record.mark.v != 0 || record.mark.m != 0)) { in updateSecurityAssociation()
945 } else if (record.mode == XfrmMode::TUNNEL && !mIsXfrmIntfSupported && record.xfrm_if_id != 0) { in updateSecurityAssociation()
950 len = iov[USERSA].iov_len = fillUserSaInfo(record, &usersa); in updateSecurityAssociation()
953 len = iov[CRYPT].iov_len = fillNlAttrXfrmAlgoEnc(record.crypt, &crypt); in updateSecurityAssociation()
956 len = iov[AUTH].iov_len = fillNlAttrXfrmAlgoAuth(record.auth, &auth); in updateSecurityAssociation()
[all …]
DXfrmController.h351 static netdutils::Status addTransportModeTransform(const XfrmSaInfo& record);
352 static int removeTransportModeTransform(const XfrmSaInfo& record);
356 static void fillXfrmSelector(const int record, xfrm_selector* selector);
362 static int fillNlAttrXfrmEncapTmpl(const XfrmSaInfo& record, nlattr_encap_tmpl* tmpl);
365 static netdutils::Status updateSecurityAssociation(const XfrmSaInfo& record,
367 static int fillUserSaInfo(const XfrmSaInfo& record, xfrm_usersa_info* usersa);
370 static netdutils::Status deleteSecurityAssociation(const XfrmCommonInfo& record,
372 static int fillUserSaId(const XfrmCommonInfo& record, xfrm_usersa_id* said);
373 static int fillUserTemplate(const XfrmSpInfo& record, xfrm_user_tmpl* tmpl);
375 static int fillUserSpInfo(const XfrmSpInfo& record, XfrmDirection direction,
[all …]
/system/extras/boot_control_copy/
Dbootinfo.cpp75 auto record = GetEntryForMountPoint(&fstab, "/misc"); in boot_info_open_partition() local
76 if (record == nullptr) { in boot_info_open_partition()
80 path = strdup(record->blk_device.c_str()); in boot_info_open_partition()
83 const char *end_slash = strrchr(record->blk_device.c_str(), '/'); in boot_info_open_partition()
87 trimmed_len = end_slash - record->blk_device.c_str() + 1; in boot_info_open_partition()
90 strncpy(path, record->blk_device.c_str(), trimmed_len); in boot_info_open_partition()
/system/bt/btif/src/
Dbtif_sdp_server.cc125 bluetooth_sdp_record* record = in_record; in get_sdp_records_size() local
129 record = &in_record[i]; in get_sdp_records_size()
131 records_size += record->hdr.service_name_length; in get_sdp_records_size()
132 if (record->hdr.service_name_length > 0) { in get_sdp_records_size()
135 records_size += record->hdr.user1_ptr_len; in get_sdp_records_size()
136 records_size += record->hdr.user2_ptr_len; in get_sdp_records_size()
197 bluetooth_sdp_record* record = (bluetooth_sdp_record*)osi_malloc(record_size); in alloc_sdp_slot() local
199 copy_sdp_records(in_record, record, 1); in alloc_sdp_slot()
205 sdp_slots[i].record_data = record; in alloc_sdp_slot()
212 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
38 for (auto& perf_build_id : record->build_ids()) { in AddSymbolInfo()
45 quipper::MmapEventIterator it(*record); in AddSymbolInfo()
69 auto it = record->events().begin(); in AddSymbolInfo()
70 auto end = record->events().end(); in AddSymbolInfo()
146 auto* symbol_info = record->AddExtension(::quipper::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.md17 - [Record and report profiling data](#record-and-report-profiling-data)
18 - [Record and report call graph](#record-and-report-call-graph)
21 - [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time)
35 - [The record command](#the-record-command)
36 - [Select events to record](#select-events-to-record)
37 - [Select target to record](#select-target-to-record)
38 - [Set the frequency to record](#set-the-frequency-to-record)
39 - [Decide how long to record](#decide-how-long-to-record)
41 - [Record call graphs](#record-call-graphs-in-record-cmd)
42 …- [Record both on CPU time and off CPU time](#record-both-on-cpu-time-and-off-cpu-time-in-record-c…
[all …]

123