/system/extras/simpleperf/ |
H A D | record_test.cpp | 21 #include "record.h" 33 void CheckRecordMatchBinary(const RecordType& record); 39 void RecordTest::CheckRecordMatchBinary(const RecordType& record) { argument 40 std::vector<char> binary = record.BinaryFormat(); 44 CheckRecordEqual(record, *record_p); 48 MmapRecord record = local 50 CheckRecordMatchBinary(record); 54 CommRecord record = CreateCommRecord(event_attr, 1, 2, "CommRecord"); local 55 CheckRecordMatchBinary(record);
|
H A D | cmd_record.cpp | 31 #include "record.h" 101 // TODO: change default workload to sleep 99999, and run record until Ctrl-C. 127 // 4. Open record file writer, and dump kernel/modules/threads mmap information. 165 // 6. Dump additional features, and close record file. 216 LOG(ERROR) << "Unknown option for record command: '" << args[i] << "'\n"; 217 LOG(ERROR) << "Try `simpleperf help record`"; 287 CommRecord record = CreateCommRecord(attr, thread.tgid, thread.tid, thread.comm); local 288 if (!record_file_writer_->WriteData(record.BinaryFormat())) { 301 MmapRecord record = local 304 if (!record_file_writer_->WriteData(record [all...] |
H A D | record.cpp | 17 #include "record.h" 167 PrintIndented(indent, "record %s: type %u, misc %u, size %u\n", 358 MmapRecord record; local 359 record.header.type = PERF_RECORD_MMAP; 360 record.header.misc = (in_kernel ? PERF_RECORD_MISC_KERNEL : PERF_RECORD_MISC_USER); 361 record.data.pid = pid; 362 record.data.tid = tid; 363 record.data.addr = addr; 364 record.data.len = len; 365 record 375 CommRecord record; local 389 BuildIdRecord record; local [all...] |
H A D | record_file.cpp | 30 #include "record.h" 40 PLOG(ERROR) << "failed to open record file '" << filename << "'"; 126 PLOG(ERROR) << "failed to write to record file '" << filename_ << "'"; 144 std::unique_ptr<const Record> record = ReadRecordFromBuffer(event_attr_, header); local 145 CHECK(record != nullptr); 146 if (record->header.type == PERF_RECORD_MMAP) { 147 if (record->header.misc & PERF_RECORD_MISC_KERNEL) { 148 kernel_mmaps.push_back(std::move(record)); 150 user_mmaps.push_back(std::move(record)); 152 } else if (record [all...] |
/system/bt/main/ |
H A D | bte_conf.c | 75 tBTA_DI_RECORD record; local 76 record.vendor = config_get_int(config, section_name, "vendorId", LMP_COMPID_BROADCOM); 77 record.vendor_id_source = config_get_int(config, section_name, "vendorIdSource", DI_VENDOR_ID_SOURCE_BTSIG); 78 record.product = config_get_int(config, section_name, "productId", 0); 79 record.version = config_get_int(config, section_name, "version", 0); 80 record.primary_record = config_get_bool(config, section_name, "primaryRecord", false); 81 strlcpy(record.client_executable_url, config_get_string(config, section_name, "clientExecutableURL", ""), sizeof(record.client_executable_url)); 82 strlcpy(record.service_description, config_get_string(config, section_name, "serviceDescription", ""), sizeof(record [all...] |
/system/bt/bta/sdp/ |
H A D | bta_sdp_int.h | 85 tBTA_SDP_API_RECORD_USER record; member in union:__anon560
|
H A D | bta_sdp_act.c | 95 static void bta_create_mns_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument 102 record->mns.hdr.type = SDP_TYPE_MAP_MNS; 103 record->mns.hdr.service_name_length = 0; 104 record->mns.hdr.service_name = NULL; 105 record->mns.hdr.rfcomm_channel_number = 0; 106 record->mns.hdr.l2cap_psm = -1; 107 record->mns.hdr.profile_version = 0; 108 record->mns.supported_features = 0x0000001F; //default value if not found 112 record->mns.supported_features = p_attr->attr_value.v.u32; 117 record 137 bta_create_mas_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument 191 bta_create_pse_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument 238 bta_create_ops_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument 320 bta_create_sap_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument 351 bta_create_raw_sdp_record(bluetooth_sdp_record *record, tSDP_DISC_REC *p_rec) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_sdp_server.c | 82 * which creates the actual record, and updates the ID<->SDPHandle map 122 bluetooth_sdp_record* record = in_record; local 126 record = &in_record[i]; 128 records_size += record->hdr.service_name_length; 129 if(record->hdr.service_name_length > 0){ 132 records_size += record->hdr.user1_ptr_len; 133 records_size += record->hdr.user2_ptr_len; 179 * The record_data will contain both the record and any data pointed to by 180 * the record. 189 bluetooth_sdp_record* record local 216 bluetooth_sdp_record* record = NULL; local 275 create_sdp_record(bluetooth_sdp_record *record, int* record_handle) argument 325 bluetooth_sdp_record* record = sdp_slot->record_data; local [all...] |
/system/core/gatekeeperd/ |
H A D | SoftGateKeeper.h | 109 virtual bool GetFailureRecord(uint32_t uid, secure_id_t user_id, failure_record_t *record, argument 117 memcpy(record, stored, sizeof(*record)); 129 virtual bool WriteFailureRecord(uint32_t uid, failure_record_t *record, bool /* secure */) { argument 130 failure_map_[uid] = *record;
|
/system/gatekeeper/ |
H A D | gatekeeper.cpp | 54 failure_record_t record; local 55 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { 60 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; 62 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { 67 timeout = ComputeRetryTimeout(&record); 128 failure_record_t record; local 129 if (!GetFailureRecord(uid, user_id, &record, throttle_secure)) { 134 if (ThrottleRequest(uid, timestamp, &record, throttle_secure, response)) return; 136 if (!IncrementFailureRecord(uid, user_id, timestamp, &record, throttle_secure)) { 141 timeout = ComputeRetryTimeout(&record); 245 ComputeRetryTimeout(const failure_record_t *record) argument 256 ThrottleRequest(uint32_t uid, uint64_t timestamp, failure_record_t *record, bool secure, GateKeeperMessage *response) argument 284 IncrementFailureRecord(uint32_t uid, secure_id_t user_id, uint64_t timestamp, failure_record_t *record, bool secure) argument [all...] |
/system/bt/stack/sdp/ |
H A D | sdpint.h | 120 /* Define the attribute element of the SDP database record */ 129 /* An SDP record consists of a handle, and 1 or more attributes */ 143 UINT32 di_primary_handle; /* Device ID Primary record or NULL if nonexistent */ 145 tSDP_RECORD record[SDP_MAX_RECORDS]; member in struct:__anon1265 160 tSDP_RECORD *prev_sdp_rec; /* last sdp record that was completely sent in the response */ 192 UINT32 handles[SDP_MAX_DISC_SERVER_RECS]; /* Discovered server record handles */
|