Home
last modified time | relevance | path

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

12345678910>>...24

/system/core/libstats/socket/
Dstats_event.c59 struct stats_event* event = malloc(sizeof(struct stats_event)); in stats_event_obtain() local
60 event->buf = (uint8_t*)calloc(MAX_EVENT_PAYLOAD, 1); in stats_event_obtain()
61 event->buf[0] = OBJECT_TYPE; in stats_event_obtain()
62 event->atomId = 0; in stats_event_obtain()
63 event->errors = 0; in stats_event_obtain()
64 event->truncate = true; // truncate for both pulled and pushed atoms in stats_event_obtain()
65 event->built = false; in stats_event_obtain()
69 event->buf[POS_TIMESTAMP] = INT64_TYPE; in stats_event_obtain()
70 memcpy(&event->buf[POS_TIMESTAMP + sizeof(uint8_t)], &timestampNs, sizeof(timestampNs)); in stats_event_obtain()
72 event->numElements = 1; in stats_event_obtain()
[all …]
/system/chre/pal/tests/src/
Dgnss_pal_impl_test.cc70 void chrePalLocationEventCallback(struct chreGnssLocationEvent *event) { in chrePalLocationEventCallback() argument
72 gTest->locationEventCallback(event); in chrePalLocationEventCallback()
82 void chrePalMeasurementEventCallback(struct chreGnssDataEvent *event) { in chrePalMeasurementEventCallback() argument
84 gTest->measurementEventCallback(event); in chrePalMeasurementEventCallback()
88 void logLocationEvent(const struct chreGnssLocationEvent &event) { in logLocationEvent() argument
89 LOGI("Received location: %" PRId32 ", %" PRId32, event.latitude_deg_e7, in logLocationEvent()
90 event.longitude_deg_e7); in logLocationEvent()
91 LOGI(" timestamp (ms): %" PRIu64, event.timestamp); in logLocationEvent()
92 LOGI(" altitude (m): %f", event.altitude); in logLocationEvent()
93 LOGI(" speed (m/s): %f", event.speed); in logLocationEvent()
[all …]
Dwifi_pal_impl_test.cc67 void chrePalScanEventCallback(struct chreWifiScanEvent *event) { in chrePalScanEventCallback() argument
69 gTest->scanEventCallback(event); in chrePalScanEventCallback()
74 struct chreWifiRangingEvent *event) { in chrePalRangingEventCallback() argument
76 gTest->rangingEventCallback(errorCode, event); in chrePalRangingEventCallback()
168 void PalWifiTest::scanEventCallback(struct chreWifiScanEvent *event) { in scanEventCallback() argument
169 if (event == nullptr) { in scanEventCallback()
174 scanEventList_.push_back(event); in scanEventCallback()
175 numScanResultCount_ += event->resultCount; in scanEventCallback()
176 lastScanEventReceived_ = (numScanResultCount_ == event->resultTotal); in scanEventCallback()
184 struct chreWifiRangingEvent *event) { in rangingEventCallback() argument
[all …]
/system/core/libstats/socket/benchmark/
Dstats_event_benchmark.cpp21 struct stats_event* event = stats_event_obtain(); in constructStatsEvent() local
22 stats_event_set_atom_id(event, 100); in constructStatsEvent()
27 stats_event_write_int32(event, i); in constructStatsEvent()
30 return event; in constructStatsEvent()
35 struct stats_event* event = constructStatsEvent(); in BM_stats_event_truncate_buffer() local
36 stats_event_build(event); in BM_stats_event_truncate_buffer()
37 stats_event_write(event); in BM_stats_event_truncate_buffer()
38 stats_event_release(event); in BM_stats_event_truncate_buffer()
46 struct stats_event* event = constructStatsEvent(); in BM_stats_event_full_buffer() local
47 stats_event_truncate_buffer(event, false); in BM_stats_event_full_buffer()
[all …]
/system/core/libstats/socket/tests/
Dstats_event_test.cpp91 struct stats_event* event = stats_event_obtain(); in TEST() local
92 stats_event_set_atom_id(event, atomId); in TEST()
93 stats_event_write_int32(event, int32Value); in TEST()
94 stats_event_write_int64(event, int64Value); in TEST()
95 stats_event_write_float(event, floatValue); in TEST()
96 stats_event_write_bool(event, boolValue); in TEST()
97 stats_event_build(event); in TEST()
101 uint8_t* buffer = stats_event_get_buffer(event, &bufferSize); in TEST()
123 EXPECT_EQ(stats_event_get_errors(event), 0); in TEST()
124 stats_event_release(event); in TEST()
[all …]
/system/core/libstats/socket/include/
Dstats_event.h87 void stats_event_build(struct stats_event* event);
88 int stats_event_write(struct stats_event* event);
89 void stats_event_release(struct stats_event* event);
91 void stats_event_set_atom_id(struct stats_event* event, uint32_t atomId);
93 void stats_event_write_int32(struct stats_event* event, int32_t value);
94 void stats_event_write_int64(struct stats_event* event, int64_t value);
95 void stats_event_write_float(struct stats_event* event, float value);
96 void stats_event_write_bool(struct stats_event* event, bool value);
98 void stats_event_write_byte_array(struct stats_event* event, const uint8_t* buf, size_t numBytes);
101 void stats_event_write_string8(struct stats_event* event, const char* value);
[all …]
/system/bt/stack/rfcomm/
Drfc_mx_fsm.cc43 static void rfc_mx_sm_state_idle(tRFC_MCB* p_mcb, uint16_t event, void* p_data);
44 static void rfc_mx_sm_state_wait_conn_cnf(tRFC_MCB* p_mcb, uint16_t event,
46 static void rfc_mx_sm_state_configure(tRFC_MCB* p_mcb, uint16_t event,
48 static void rfc_mx_sm_sabme_wait_ua(tRFC_MCB* p_mcb, uint16_t event,
50 static void rfc_mx_sm_state_wait_sabme(tRFC_MCB* p_mcb, uint16_t event,
52 static void rfc_mx_sm_state_connected(tRFC_MCB* p_mcb, uint16_t event,
54 static void rfc_mx_sm_state_disc_wait_ua(tRFC_MCB* p_mcb, uint16_t event,
71 void rfc_mx_sm_execute(tRFC_MCB* p_mcb, uint16_t event, void* p_data) { in rfc_mx_sm_execute() argument
72 CHECK(p_mcb != nullptr) << __func__ << ": NULL mcb for event " << event; in rfc_mx_sm_execute()
74 << ", state=" << std::to_string(p_mcb->state) << ", event=" << event; in rfc_mx_sm_execute()
[all …]
/system/bt/btif/include/
Dbtif_util.h47 const char* dump_dm_search_event(uint16_t event);
48 const char* dump_dm_event(uint16_t event);
49 const char* dump_hf_event(uint16_t event);
50 const char* dump_hf_client_event(uint16_t event);
51 const char* dump_hh_event(uint16_t event);
52 const char* dump_hd_event(uint16_t event);
56 const char* dump_av_conn_state(uint16_t event);
57 const char* dump_av_audio_state(uint16_t event);
58 const char* dump_rc_event(uint8_t event);
/system/chre/core/
Devent_ref_queue.cc28 bool EventRefQueue::push(Event *event) { in push() argument
29 CHRE_ASSERT(event != nullptr); in push()
31 bool pushed = mQueue.push(event); in push()
33 event->incrementRefCount(); in push()
42 Event *event = mQueue.front(); in pop() local
44 event->decrementRefCount(); in pop()
46 return event; in pop()
Dwifi_request_manager.cc215 uint8_t errorCode, struct chreWifiRangingEvent *event) { in handleRangingEvent() argument
245 SystemCallbackType::WifiHandleRangingEvent, event, successCb); in handleRangingEvent()
249 void WifiRequestManager::handleScanEvent(chreWifiScanEvent *event) { in handleScanEvent() argument
257 SystemCallbackType::WifiHandleScanEvent, event, callback); in handleScanEvent()
372 chreAsyncResult *event = memoryAlloc<chreAsyncResult>(); in postScanMonitorAsyncResultEvent() local
373 if (event == nullptr) { in postScanMonitorAsyncResultEvent()
376 event->requestType = CHRE_WIFI_REQUEST_TYPE_CONFIGURE_SCAN_MONITOR; in postScanMonitorAsyncResultEvent()
377 event->success = success; in postScanMonitorAsyncResultEvent()
378 event->errorCode = errorCode; in postScanMonitorAsyncResultEvent()
379 event->reserved = 0; in postScanMonitorAsyncResultEvent()
[all …]
Dnanoapp.cc80 Event *event = mEventQueue.pop(); in processNextEvent() local
82 CHRE_ASSERT_LOG(event != nullptr, "Tried delivering event, but queue empty"); in processNextEvent()
83 if (event != nullptr) { in processNextEvent()
84 handleEvent(event->senderInstanceId, event->eventType, event->eventData); in processNextEvent()
87 return event; in processNextEvent()
/system/nfc/src/nfa/rw/
Dnfa_rw_main.cc58 static std::string nfa_rw_evt_2_str(uint16_t event);
117 void nfa_rw_proc_disc_evt(tNFA_DM_RF_DISC_EVT event, tNFC_DISCOVER* p_data, in nfa_rw_proc_disc_evt() argument
121 switch (event) { in nfa_rw_proc_disc_evt()
123 msg.hdr.event = NFA_RW_ACTIVATE_NTF_EVT; in nfa_rw_proc_disc_evt()
131 msg.hdr.event = NFA_RW_DEACTIVATE_NTF_EVT; in nfa_rw_proc_disc_evt()
155 p_msg->hdr.event = NFA_RW_OP_REQUEST_EVT; in nfa_rw_send_raw_frame()
181 nfa_rw_evt_2_str(p_msg->event).c_str(), p_msg->event, nfa_rw_cb.flags); in nfa_rw_handle_event()
184 act_idx = (p_msg->event & 0x00FF); in nfa_rw_handle_event()
189 p_msg->event); in nfa_rw_handle_event()
201 static std::string nfa_rw_evt_2_str(uint16_t event) { in nfa_rw_evt_2_str() argument
[all …]
/system/bt/gd/hci/
Dhci_layer.cc113 void on_command_status(EventPacketView event) { in on_command_status()
114 handle_command_response<CommandStatusView>(event, "status"); in on_command_status()
117 void on_command_complete(EventPacketView event) { in on_command_complete()
118 handle_command_response<CommandCompleteView>(event, "complete"); in on_command_complete()
122 void handle_command_response(EventPacketView event, std::string logging_id) { in handle_command_response()
123 TResponse response_view = TResponse::Create(event); in handle_command_response()
170 void register_event(EventCode event, ContextualCallback<void(EventPacketView)> handler) { in register_event()
171 …ASSERT_LOG(event_handlers_.count(event) == 0, "Can not register a second handler for %02hhx (%s)",… in register_event()
172 EventCodeText(event).c_str()); in register_event()
173 event_handlers_[event] = handler; in register_event()
[all …]
/system/core/bootstat/
Dboot_event_record_store.cpp60 void BootEventRecordStore::AddBootEvent(const std::string& event) { in AddBootEvent() argument
63 AddBootEventWithValue(event, uptime.count()); in AddBootEvent()
69 void BootEventRecordStore::AddBootEventWithValue(const std::string& event, int32_t value) { in AddBootEventWithValue() argument
70 std::string record_path = GetBootEventPath(event); in AddBootEventWithValue()
98 bool BootEventRecordStore::GetBootEvent(const std::string& event, BootEventRecord* record) const { in GetBootEvent() argument
100 CHECK(!event.empty()); in GetBootEvent()
102 const std::string record_path = GetBootEventPath(event); in GetBootEvent()
109 *record = std::make_pair(event, uptime); in GetBootEvent()
129 const std::string event = entry->d_name; in GetAllBootEvents() local
131 if (!GetBootEvent(event, &record)) { in GetAllBootEvents()
[all …]
/system/nfc/src/nfc/nfc/
Dnfc_task.cc70 p_msg->event = BT_EVT_TO_START_TIMER; in nfc_start_timer()
81 p_tle->event = type; in nfc_start_timer()
118 switch (p_tle->event) { in nfc_process_timer_evt()
132 p_tle, p_tle->event); in nfc_process_timer_evt()
135 p_tle->event); in nfc_process_timer_evt()
187 p_msg->event = BT_EVT_TO_START_QUICK_TIMER; in nfc_start_quick_timer()
200 p_tle->event = type; in nfc_start_quick_timer()
243 switch (p_tle->event) { in nfc_process_quick_timer_evt()
285 p_tle->event); in nfc_process_quick_timer_evt()
345 uint16_t event; in nfc_task() local
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_sco.cc83 void bta_hf_client_cback_sco(tBTA_HF_CLIENT_CB* client_cb, uint8_t event) { in bta_hf_client_cback_sco() argument
90 bta_hf_client_app_callback(event, &evt); in bta_hf_client_cback_sco()
141 static void bta_hf_client_esco_connreq_cback(tBTM_ESCO_EVT event, in bta_hf_client_esco_connreq_cback() argument
143 APPL_TRACE_DEBUG("%s: %d", __func__, event); in bta_hf_client_esco_connreq_cback()
153 if (event != BTM_ESCO_CONN_REQ_EVT) { in bta_hf_client_esco_connreq_cback()
183 p_buf->event = BTA_HF_CLIENT_SCO_OPEN_EVT; in bta_hf_client_sco_conn_cback()
208 p_buf->event = BTA_HF_CLIENT_SCO_CLOSE_EVT; in bta_hf_client_sco_disc_cback()
270 uint8_t event) { in bta_hf_client_sco_event() argument
272 client_cb->sco_state, event); in bta_hf_client_sco_event()
276 switch (event) { in bta_hf_client_sco_event()
[all …]
/system/chre/apps/gnss_world/
Dgnss_world.cc223 void handleGnssLocationEvent(const chreGnssLocationEvent *event) { in handleGnssLocationEvent() argument
224 LOGI("Received location: %" PRId32 ", %" PRId32, event->latitude_deg_e7, in handleGnssLocationEvent()
225 event->longitude_deg_e7); in handleGnssLocationEvent()
226 LOGI(" timestamp (ms): %" PRIu64, event->timestamp); in handleGnssLocationEvent()
227 LOGI(" altitude (m): %f", event->altitude); in handleGnssLocationEvent()
228 LOGI(" speed (m/s): %f", event->speed); in handleGnssLocationEvent()
229 LOGI(" bearing (deg): %f", event->bearing); in handleGnssLocationEvent()
230 LOGI(" accuracy: %f", event->accuracy); in handleGnssLocationEvent()
231 LOGI(" flags: %" PRIx16, event->flags); in handleGnssLocationEvent()
232 LOGI(" altitude_accuracy: %f", event->altitude_accuracy); in handleGnssLocationEvent()
[all …]
/system/extras/boottime_tools/io_analysis/
Dcheck_io_trace.py99 event = RwEvent(block_num, start_time, size)
101 self.reads.append((start_time, event))
102 self.recent_reads[block_num] = event
105 self.writes.append((start_time, event))
114 event = self.recent_reads.get(block_num)
115 if not event:
121 latency = end_time - event.start_time
124 print "start time,", event.start_time
125 event.set_latency(latency)
158 for (time, event) in self.reads:
[all …]
/system/chre/core/include/chre/core/
Daudio_request_manager.h84 void handleAudioDataEvent(const struct chreAudioDataEvent *event);
211 explicit AudioDataEventRefCount(struct chreAudioDataEvent *event) in AudioDataEventRefCount()
212 : event(event) {} in AudioDataEventRefCount()
214 AudioDataEventRefCount(struct chreAudioDataEvent *event, uint32_t refCount) in AudioDataEventRefCount()
215 : event(event), refCount(refCount) {} in AudioDataEventRefCount()
224 return (event == other.event);
228 struct chreAudioDataEvent *event; member
347 void handleAudioDataEventSync(struct chreAudioDataEvent *event);
392 void postAudioDataEventFatal(struct chreAudioDataEvent *event,
/system/chre/platform/slpi/see/
Dsee_helper.cc106 UniquePtr<uint8_t> event; member
440 sns_suid_event event = { in decodeSnsSuidEvent() local
447 bool success = pb_decode(stream, sns_suid_event_fields, &event); in decodeSnsSuidEvent()
683 sns_std_attr_event event; in decodeSnsStdAttrEvent() member
690 data->event.attributes.funcs.decode = decodeSnsStrAttr; in decodeSnsStdAttrEvent()
691 data->event.attributes.arg = &data->attr; in decodeSnsStdAttrEvent()
693 success = pb_decode(stream, sns_std_attr_event_fields, &data->event); in decodeSnsStdAttrEvent()
736 sns_std_error_event event = {}; in decodeSnsStdProtoEvent() local
737 success = pb_decode(stream, sns_std_error_event_fields, &event); in decodeSnsStdProtoEvent()
741 LOGW("SNS_STD_MSGID_SNS_STD_ERROR_EVENT: %d", event.error); in decodeSnsStdProtoEvent()
[all …]
/system/bt/osi/src/
Dreactor.cc95 struct epoll_event event; in reactor_new() local
96 memset(&event, 0, sizeof(event)); in reactor_new()
97 event.events = EPOLLIN; in reactor_new()
98 event.data.ptr = NULL; in reactor_new()
99 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
153 struct epoll_event event; in reactor_register() local
154 memset(&event, 0, sizeof(event)); in reactor_register()
155 if (read_ready) event.events |= (EPOLLIN | EPOLLRDHUP); in reactor_register()
156 if (write_ready) event.events |= EPOLLOUT; in reactor_register()
157 event.data.ptr = object; in reactor_register()
[all …]
/system/bt/gd/cert/
Dcaptures.py68 …lambda packet: packet.event[0:5] == b'\x0e\x0a\x01\x09\x10', lambda packet: hci_packets.ReadBdAddr…
70 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet.event))))))
75 … lambda packet: packet.event[0:2] == b'\x04\x0a', lambda packet: hci_packets.ConnectionRequestView(
76 hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet.event)))))
81 …lambda packet: packet.event[0:3] == b'\x03\x0b\x00', lambda packet: hci_packets.ConnectionComplete…
82 hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet.event)))))
87 …lambda packet: packet.event[0:2] == b'\x05\x04', lambda packet: hci_packets.DisconnectionCompleteV…
88 hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet.event)))))
93 … lambda packet: packet.event[0] == 0x3e and (packet.event[2] == 0x01 or packet.event[2] == 0x0a),
96 … hci_packets.EventPacketView(bt_packets.PacketViewLittleEndian(list(packet.event))))))
[all …]
/system/connectivity/wificond/net/
Dmlme_event_handler.h33 virtual void OnConnect(std::unique_ptr<MlmeConnectEvent> event) = 0;
34 virtual void OnRoam(const std::unique_ptr<MlmeRoamEvent> event) = 0;
35 virtual void OnAssociate(std::unique_ptr<MlmeAssociateEvent> event) = 0;
36 virtual void OnDisconnect(std::unique_ptr<MlmeDisconnectEvent> event) = 0;
37 virtual void OnDisassociate(std::unique_ptr<MlmeDisassociateEvent> event) = 0;
/system/chre/platform/shared/
Dplatform_wifi.cc96 void PlatformWifi::releaseRangingEvent(struct chreWifiRangingEvent *event) { in releaseRangingEvent() argument
98 mWifiApi->releaseRangingEvent(event); in releaseRangingEvent()
101 void PlatformWifi::releaseScanEvent(struct chreWifiScanEvent *event) { in releaseScanEvent() argument
103 mWifiApi->releaseScanEvent(event); in releaseScanEvent()
107 uint8_t errorCode, struct chreWifiRangingEvent *event) { in rangingEventCallback() argument
109 .handleRangingEvent(errorCode, event); in rangingEventCallback()
123 void PlatformWifiBase::scanEventCallback(struct chreWifiScanEvent *event) { in scanEventCallback() argument
125 .handleScanEvent(event); in scanEventCallback()
/system/core/logd/
Dlogtagd.rc2 # logtagd event log tag service (debug only)
6 write /data/misc/logd/event-log-tags ""
7 chown logd log /data/misc/logd/event-log-tags
8 chmod 0600 /data/misc/logd/event-log-tags
9 restorecon /data/misc/logd/event-log-tags

12345678910>>...24