Home
last modified time | relevance | path

Searched refs:event (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/system/bt/stack/rfcomm/
Drfc_mx_fsm.c43 static void rfc_mx_sm_state_idle (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
44 static void rfc_mx_sm_state_wait_conn_cnf (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
45 static void rfc_mx_sm_state_configure (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
46 static void rfc_mx_sm_sabme_wait_ua (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
47 static void rfc_mx_sm_state_wait_sabme (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
48 static void rfc_mx_sm_state_connected (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
49 static void rfc_mx_sm_state_disc_wait_ua (tRFC_MCB *p_mcb, UINT16 event, void *p_data);
67 void rfc_mx_sm_execute (tRFC_MCB *p_mcb, UINT16 event, void *p_data) in rfc_mx_sm_execute() argument
72 rfc_mx_sm_state_idle (p_mcb, event, p_data); in rfc_mx_sm_execute()
76 rfc_mx_sm_state_wait_conn_cnf (p_mcb, event, p_data); in rfc_mx_sm_execute()
[all …]
Drfc_port_fsm.c39 static void rfc_port_sm_state_closed (tPORT *p_port, UINT16 event, void *p_data);
40 static void rfc_port_sm_sabme_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
41 static void rfc_port_sm_opened (tPORT *p_port, UINT16 event, void *p_data);
42 static void rfc_port_sm_orig_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
43 static void rfc_port_sm_term_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
44 static void rfc_port_sm_disc_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
61 void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data) in rfc_port_sm_execute() argument
65 RFCOMM_TRACE_WARNING ("NULL port event %d", event); in rfc_port_sm_execute()
72 rfc_port_sm_state_closed (p_port, event, p_data); in rfc_port_sm_execute()
76 rfc_port_sm_sabme_wait_ua (p_port, event, p_data); in rfc_port_sm_execute()
[all …]
/system/extras/perfprofd/quipper/
Dperf_utils.cc32 event_t* event = reinterpret_cast<event_t*>(calloc(1, size)); in CallocMemoryForEvent() local
33 CHECK(event); in CallocMemoryForEvent()
34 return event; in CallocMemoryForEvent()
38 build_id_event* event = reinterpret_cast<build_id_event*>(calloc(1, size)); in CallocMemoryForBuildID() local
39 CHECK(event); in CallocMemoryForBuildID()
40 return event; in CallocMemoryForBuildID()
115 uint64_t GetPerfSampleDataOffset(const event_t& event) { in GetPerfSampleDataOffset() argument
117 switch (event.header.type) { in GetPerfSampleDataOffset()
122 offset = sizeof(event.mmap) - sizeof(event.mmap.filename) + in GetPerfSampleDataOffset()
123 GetUint64AlignedStringLength(event.mmap.filename); in GetPerfSampleDataOffset()
[all …]
Dperf_parser.cc22 ParsedEvent* event; member
82 const ParsedEvent& event = parsed_events_[read_index]; in ParseRawEvents() local
83 if ((event.raw_event->header.type == PERF_RECORD_MMAP || in ParseRawEvents()
84 event.raw_event->header.type == PERF_RECORD_MMAP2) && in ParseRawEvents()
85 event.num_samples_in_mmap_region == 0) { in ParseRawEvents()
89 parsed_events_[write_index] = event; in ParseRawEvents()
116 event_and_time->event = &parsed_events_[i]; in MaybeSortParsedEvents()
132 parsed_events_sorted_by_time_[i] = events_and_times[i]->event; in MaybeSortParsedEvents()
152 event_t& event = *parsed_event.raw_event; in ProcessEvents() local
153 switch (event.header.type) { in ProcessEvents()
[all …]
Dperf_reader.cc147 build_id_event event; in CheckNoBuildIDEventPadding() local
148 CHECK_EQ(sizeof(event), in CheckNoBuildIDEventPadding()
149 sizeof(event.header.type) + sizeof(event.header.misc) + in CheckNoBuildIDEventPadding()
150 sizeof(event.header.size) + sizeof(event.pid) + in CheckNoBuildIDEventPadding()
151 sizeof(event.build_id)); in CheckNoBuildIDEventPadding()
167 build_id_event* event) { in CreateOrUpdateBuildID() argument
169 if (!event && (build_id.empty() || filename.empty())) in CreateOrUpdateBuildID()
172 filename.empty() ? event->filename : filename); in CreateOrUpdateBuildID()
176 size_t new_size = sizeof(*event) + new_len; in CreateOrUpdateBuildID()
177 if (!event || new_size > event->header.size) { in CreateOrUpdateBuildID()
[all …]
/system/bt/btif/include/
Dbtif_util.h47 const char* dump_dm_search_event(UINT16 event);
48 const char* dump_dm_event(UINT16 event);
49 const char* dump_hf_event(UINT16 event);
50 const char* dump_hf_client_event(UINT16 event);
51 const char* dump_hh_event(UINT16 event);
52 const char* dump_hf_conn_state(UINT16 event);
55 const char* dump_hf_audio_state(UINT16 event);
58 const char* dump_av_conn_state(UINT16 event);
59 const char* dump_av_audio_state(UINT16 event);
60 const char* dump_rc_event(UINT8 event);
/system/core/toolbox/
Dsendevent.c16 struct input_event event; in sendevent_main() local
32 memset(&event, 0, sizeof(event)); in sendevent_main()
33 event.type = atoi(argv[2]); in sendevent_main()
34 event.code = atoi(argv[3]); in sendevent_main()
35 event.value = atoi(argv[4]); in sendevent_main()
36 ret = write(fd, &event, sizeof(event)); in sendevent_main()
37 if(ret < (ssize_t) sizeof(event)) { in sendevent_main()
/system/media/brillo/audio/audioservice/test/
Daudio_device_handler_test.cpp149 struct input_event event; in TEST_F() local
150 event.type = 0; in TEST_F()
151 event.code = 0; in TEST_F()
152 event.value = 0; in TEST_F()
153 handler_.ProcessEvent(event); in TEST_F()
160 struct input_event event; in TEST_F() local
161 event.type = EV_SW; in TEST_F()
162 event.code = SW_MICROPHONE_INSERT; in TEST_F()
163 event.value = 1; in TEST_F()
164 handler_.ProcessEvent(event); in TEST_F()
[all …]
/system/core/bootstat/
Dboot_event_record_store.cpp73 void BootEventRecordStore::AddBootEvent(const std::string& event) { in AddBootEvent() argument
74 AddBootEventWithValue(event, bootstat::ParseUptime()); in AddBootEvent()
81 const std::string& event, int32_t value) { in AddBootEventWithValue() argument
82 std::string record_path = GetBootEventPath(event); in AddBootEventWithValue()
121 const std::string& event, BootEventRecord* record) const { in GetBootEvent() argument
123 CHECK(!event.empty()); in GetBootEvent()
125 const std::string record_path = GetBootEventPath(event); in GetBootEvent()
132 *record = std::make_pair(event, uptime); in GetBootEvent()
153 const std::string event = entry->d_name; in GetAllBootEvents() local
155 if (!GetBootEvent(event, &record)) { in GetAllBootEvents()
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_sco.c127 void bta_hf_client_cback_sco(UINT8 event) in bta_hf_client_cback_sco() argument
134 (*bta_hf_client_cb.p_cback)(event, (tBTA_HF_CLIENT *) &evt); in bta_hf_client_cback_sco()
186 static void bta_hf_client_esco_connreq_cback(tBTM_ESCO_EVT event, tBTM_ESCO_EVT_DATA *p_data) in bta_hf_client_esco_connreq_cback() argument
188 APPL_TRACE_DEBUG("%s %d", __FUNCTION__, event); in bta_hf_client_esco_connreq_cback()
190 if (event != BTM_ESCO_CONN_REQ_EVT) in bta_hf_client_esco_connreq_cback()
227 p_buf->event = BTA_HF_CLIENT_SCO_OPEN_EVT; in bta_hf_client_sco_conn_cback()
255 p_buf->event = BTA_HF_CLIENT_SCO_CLOSE_EVT; in bta_hf_client_sco_disc_cback()
348 static void bta_hf_client_sco_event(UINT8 event) in bta_hf_client_sco_event() argument
351 bta_hf_client_cb.scb.sco_state, event); in bta_hf_client_sco_event()
356 switch (event) in bta_hf_client_sco_event()
[all …]
Dbta_hf_client_api.c72 p_buf->hdr.event = BTA_HF_CLIENT_API_ENABLE_EVT; in BTA_HfClientEnable()
94 p_buf->event = BTA_HF_CLIENT_API_DISABLE_EVT; in BTA_HfClientDisable()
115 p_buf->hdr.event = BTA_HF_CLIENT_API_REGISTER_EVT; in BTA_HfClientRegister()
140 p_buf->event = BTA_HF_CLIENT_API_DEREGISTER_EVT; in BTA_HfClientDeregister()
164 p_buf->hdr.event = BTA_HF_CLIENT_API_OPEN_EVT; in BTA_HfClientOpen()
187 p_buf->event = BTA_HF_CLIENT_API_CLOSE_EVT; in BTA_HfClientClose()
208 p_buf->event = BTA_HF_CLIENT_API_AUDIO_OPEN_EVT; in BTA_HfClientAudioOpen()
229 p_buf->event = BTA_HF_CLIENT_API_AUDIO_CLOSE_EVT; in BTA_HfClientAudioClose()
250 p_buf->hdr.event = BTA_HF_CLIENT_SEND_AT_CMD_EVT; in BTA_HfClientSendAT()
/system/bt/osi/src/
Dreactor.c90 struct epoll_event event; in reactor_new() local
91 memset(&event, 0, sizeof(event)); in reactor_new()
92 event.events = EPOLLIN; in reactor_new()
93 event.data.ptr = NULL; in reactor_new()
94 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
149 struct epoll_event event; in reactor_register() local
150 memset(&event, 0, sizeof(event)); in reactor_register()
152 event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_register()
154 event.events |= EPOLLOUT; in reactor_register()
155 event.data.ptr = object; in reactor_register()
[all …]
Dmetrics.cpp63 PairEvent *event = pending->add_pair_event(); in metrics_pair_event() local
65 DeviceInfo *info = event->mutable_device_paired_with(); in metrics_pair_event()
80 event->set_disconnect_reason(disconnect_reason); in metrics_pair_event()
82 event->set_event_time_millis(timestamp_ms); in metrics_pair_event()
90 WakeEvent *event = pending->add_wake_event(); in metrics_wake_event() local
99 event->set_wake_event_type(waketype); in metrics_wake_event()
102 event->set_requestor(requestor); in metrics_wake_event()
105 event->set_name(name); in metrics_wake_event()
107 event->set_event_time_millis(timestamp_ms); in metrics_wake_event()
115 ScanEvent *event = pending->add_scan_event(); in metrics_scan_event() local
[all …]
/system/bt/stack/l2cap/
Dl2c_csm.c45 static void l2c_csm_closed (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
46 static void l2c_csm_orig_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
47 static void l2c_csm_term_w4_sec_comp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
48 static void l2c_csm_w4_l2cap_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
49 static void l2c_csm_w4_l2ca_connect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
50 static void l2c_csm_config (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
51 static void l2c_csm_open (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
52 static void l2c_csm_w4_l2cap_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
53 static void l2c_csm_w4_l2ca_disconnect_rsp (tL2C_CCB *p_ccb, UINT16 event, void *p_data);
56 static char *l2c_csm_get_event_name (UINT16 event);
[all …]
/system/core/debuggerd/
Dgetevent.cpp112 struct inotify_event *event; in read_notify() local
115 if (res < (int)sizeof(*event)) { in read_notify()
126 while (res >= (int)sizeof(*event)) { in read_notify()
127 event = reinterpret_cast<struct inotify_event*>(event_buf + event_pos); in read_notify()
128 if (event->len) { in read_notify()
129 strcpy(filename, event->name); in read_notify()
130 if (event->mask & IN_CREATE) { in read_notify()
136 event_size = sizeof(*event) + event->len; in read_notify()
195 int get_event(struct input_event* event, int timeout) { in get_event() argument
211 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
[all …]
/system/bt/vendor_libs/test_vendor_lib/src/
Dhci_transport.cc125 std::unique_ptr<TimeStampedEvent> event) { in AddEventToOutboundEvents() argument
126 outbound_events_.push_back(std::move(event)); in AddEventToOutboundEvents()
129 void HciTransport::PostEventResponse(std::unique_ptr<EventPacket> event) { in PostEventResponse() argument
131 std::make_unique<TimeStampedEvent>(std::move(event))); in PostEventResponse()
134 void HciTransport::PostDelayedEventResponse(std::unique_ptr<EventPacket> event, in PostDelayedEventResponse() argument
148 PostEventResponse(std::move(event)); in PostDelayedEventResponse()
155 std::make_unique<TimeStampedEvent>(std::move(event), delay)); in PostDelayedEventResponse()
159 std::unique_ptr<EventPacket> event, base::TimeDelta delay) in TimeStampedEvent() argument
160 : event_(std::move(event)), time_stamp_(base::TimeTicks::Now() + delay) {} in TimeStampedEvent()
163 std::unique_ptr<EventPacket> event) in TimeStampedEvent() argument
[all …]
Dpacket_stream.cc75 bool PacketStream::SendEvent(const EventPacket& event, int fd) const { in SendEvent() argument
77 event.GetEventCode()); in SendEvent()
79 event.GetPacketSize()); in SendEvent()
81 if (!SendAll({static_cast<uint8_t>(event.GetType())}, 1, fd)) { in SendEvent()
86 if (!SendAll(event.GetHeader(), event.GetHeaderSize(), fd)) { in SendEvent()
91 if (!SendAll(event.GetPayload(), event.GetPayloadSize(), fd)) { in SendEvent()
/system/bt/btif/src/
Dbtif_av.c125 static BOOLEAN btif_av_state_idle_handler(btif_sm_event_t event, void *data);
126 static BOOLEAN btif_av_state_opening_handler(btif_sm_event_t event, void *data);
127 static BOOLEAN btif_av_state_opened_handler(btif_sm_event_t event, void *data);
128 static BOOLEAN btif_av_state_started_handler(btif_sm_event_t event, void *data);
129 static BOOLEAN btif_av_state_closing_handler(btif_sm_event_t event, void *data);
140 static void btif_av_event_free_data(btif_sm_event_t event, void *p_data);
145 extern void btif_rc_handler(tBTA_AV_EVT event, tBTA_AV *p_data);
169 const char *dump_av_sm_event_name(btif_av_sm_event_t event) in dump_av_sm_event_name() argument
171 switch((int)event) in dump_av_sm_event_name()
301 static BOOLEAN btif_av_state_idle_handler(btif_sm_event_t event, void *p_data) in btif_av_state_idle_handler() argument
[all …]
Dbtif_util.c200 const char* dump_dm_search_event(UINT16 event) in dump_dm_search_event() argument
202 switch(event) in dump_dm_search_event()
237 const char* dump_dm_event(UINT16 event) in dump_dm_event() argument
239 switch(event) in dump_dm_event()
273 const char* dump_hf_event(UINT16 event) in dump_hf_event() argument
275 switch(event) in dump_hf_event()
315 const char* dump_hf_client_event(UINT16 event) in dump_hf_client_event() argument
317 switch(event) in dump_hf_client_event()
347 const char* dump_hh_event(UINT16 event) in dump_hh_event() argument
349 switch(event) in dump_hh_event()
[all …]
/system/extras/perfprofd/
Dperf_data_converter.cc45 for (const auto &event : parser.parsed_events()) { in RawPerfDataToAndroidPerfProfile() local
46 if (!event.raw_event || in RawPerfDataToAndroidPerfProfile()
47 event.raw_event->header.type != PERF_RECORD_SAMPLE) { in RawPerfDataToAndroidPerfProfile()
50 string dso_name = event.dso_and_offset.dso_name(); in RawPerfDataToAndroidPerfProfile()
55 } else if (event.command() == "") { in RawPerfDataToAndroidPerfProfile()
58 program_name = event.command(); in RawPerfDataToAndroidPerfProfile()
61 event.dso_and_offset.offset()]++; in RawPerfDataToAndroidPerfProfile()
63 for (size_t i = 1; i < event.branch_stack.size(); i++) { in RawPerfDataToAndroidPerfProfile()
64 if (dso_name == event.branch_stack[i - 1].to.dso_name()) { in RawPerfDataToAndroidPerfProfile()
65 uint64 start = event.branch_stack[i].to.offset(); in RawPerfDataToAndroidPerfProfile()
[all …]
/system/bt/bta/gatt/
Dbta_gatts_api.c65 p_buf->event = BTA_GATTS_API_DISABLE_EVT; in BTA_GATTS_Disable()
92 p_buf->hdr.event = BTA_GATTS_API_REG_EVT; in BTA_GATTS_AppRegister()
118 p_buf->hdr.event = BTA_GATTS_API_DEREG_EVT; in BTA_GATTS_AppDeregister()
149 p_buf->hdr.event = BTA_GATTS_API_CREATE_SRVC_EVT; in BTA_GATTS_CreateService()
178 p_buf->hdr.event = BTA_GATTS_API_ADD_INCL_SRVC_EVT; in BTA_GATTS_AddIncludeService()
206 p_buf->hdr.event = BTA_GATTS_API_ADD_CHAR_EVT; in BTA_GATTS_AddCharacteristic()
240 p_buf->hdr.event = BTA_GATTS_API_ADD_DESCR_EVT; in BTA_GATTS_AddCharDescriptor()
265 p_buf->event = BTA_GATTS_API_DEL_SRVC_EVT; in BTA_GATTS_DeleteService()
288 p_buf->hdr.event = BTA_GATTS_API_START_SRVC_EVT; in BTA_GATTS_StartService()
310 p_buf->event = BTA_GATTS_API_STOP_SRVC_EVT; in BTA_GATTS_StopService()
[all …]
/system/bt/bta/av/
Dbta_av_api.c72 p_buf->hdr.event = BTA_AV_API_ENABLE_EVT; in BTA_AvEnable()
94 p_buf->event = BTA_AV_API_DISABLE_EVT; in BTA_AvDisable()
119 p_buf->hdr.event = BTA_AV_API_REGISTER_EVT; in BTA_AvRegister()
145 p_buf->event = BTA_AV_API_DEREGISTER_EVT; in BTA_AvDeregister()
167 p_buf->hdr.event = BTA_AV_API_OPEN_EVT; in BTA_AvOpen()
191 p_buf->event = BTA_AV_API_CLOSE_EVT; in BTA_AvClose()
211 p_buf->hdr.event = BTA_AV_API_DISCONNECT_EVT; in BTA_AvDisconnect()
230 p_buf->event = BTA_AV_API_START_EVT; in BTA_AvStart()
248 p_buf->event = BTA_AV_API_OFFLOAD_START_EVT; in BTA_AvOffloadStart()
268 p_buf->hdr.event = BTA_AV_API_OFFLOAD_START_RSP_EVT; in BTA_AvOffloadStartRsp()
[all …]
/system/bt/bta/hl/
Dbta_hl_api.c68 p_buf->hdr.event = BTA_HL_API_ENABLE_EVT; in BTA_HlEnable()
88 p_buf->event = BTA_HL_API_DISABLE_EVT; in BTA_HlDisable()
115 p_buf->hdr.event = BTA_HL_API_UPDATE_EVT; in BTA_HlUpdate()
162 p_buf->hdr.event = BTA_HL_API_REGISTER_EVT; in BTA_HlRegister()
201 p_buf->hdr.event = BTA_HL_API_DEREGISTER_EVT; in BTA_HlDeregister()
230 p_buf->hdr.event = BTA_HL_API_CCH_OPEN_EVT; in BTA_HlCchOpen()
257 p_buf->hdr.event = BTA_HL_API_CCH_CLOSE_EVT; in BTA_HlCchClose()
281 p_buf->hdr.event = BTA_HL_API_DCH_OPEN_EVT; in BTA_HlDchOpen()
310 p_buf->hdr.event = BTA_HL_API_DCH_RECONNECT_EVT; in BTA_HlDchReconnect()
334 p_buf->hdr.event = BTA_HL_API_DCH_CLOSE_EVT; in BTA_HlDchClose()
[all …]
/system/bt/stack/smp/
Dsmp_br_main.c65 const char *smp_get_br_event_name(tSMP_BR_EVENT event);
308 const char * smp_get_br_event_name(tSMP_BR_EVENT event) in smp_get_br_event_name() argument
312 if (event < SMP_BR_MAX_EVT) in smp_get_br_event_name()
314 p_str = smp_br_event_name[event- 1]; in smp_get_br_event_name()
333 void smp_br_state_machine_event(tSMP_CB *p_cb, tSMP_BR_EVENT event, void *p_data) in smp_br_state_machine_event() argument
350 p_cb->br_state, smp_get_br_event_name(event), event) ; in smp_br_state_machine_event()
356 if ((event <= SMP_BR_MAX_EVT) && ( (entry = entry_table[event - 1][curr_state]) in smp_br_state_machine_event()
372 smp_get_br_event_name(event), event, in smp_br_state_machine_event()
/system/bt/bta/ag/
Dbta_ag_api.c72 p_buf->hdr.event = BTA_AG_API_ENABLE_EVT; in BTA_AgEnable()
95 p_buf->event = BTA_AG_API_DISABLE_EVT; in BTA_AgDisable()
116 p_buf->hdr.event = BTA_AG_API_REGISTER_EVT; in BTA_AgRegister()
145 p_buf->event = BTA_AG_API_DEREGISTER_EVT; in BTA_AgDeregister()
169 p_buf->hdr.event = BTA_AG_API_OPEN_EVT; in BTA_AgOpen()
193 p_buf->event = BTA_AG_API_CLOSE_EVT; in BTA_AgClose()
214 p_buf->event = BTA_AG_API_AUDIO_OPEN_EVT; in BTA_AgAudioOpen()
235 p_buf->event = BTA_AG_API_AUDIO_CLOSE_EVT; in BTA_AgAudioClose()
258 p_buf->hdr.event = BTA_AG_API_RESULT_EVT; in BTA_AgResult()
284 p_buf->hdr.event = BTA_AG_API_SETCODEC_EVT; in BTA_AgSetCodec()

12345678910>>...14