Home
last modified time | relevance | path

Searched refs:NfcCommonEvent (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/communication/nfc/services/src/
H A Dnfc_event_handler.cpp353 NfcCommonEvent eventId = static_cast<NfcCommonEvent>(event->GetInnerEventId()); in ProcessEvent()
361 case NfcCommonEvent::MSG_TAG_FOUND: in ProcessEvent()
364 case NfcCommonEvent::MSG_TAG_DEBOUNCE: in ProcessEvent()
367 case NfcCommonEvent::MSG_TAG_LOST: in ProcessEvent()
370 case NfcCommonEvent::MSG_SCREEN_CHANGED: { in ProcessEvent()
382 case NfcCommonEvent::MSG_COMMIT_ROUTING: { in ProcessEvent()
411 case NfcCommonEvent::MSG_SHUTDOWN: { in ProcessEvent()
420 case NfcCommonEvent::MSG_VENDOR_EVENT: { in ProcessEvent()
437 case NfcCommonEvent::MSG_WIFI_ENABLED: { in ProcessEvent()
441 case NfcCommonEvent::MSG_WIFI_CONNECTED: { in ProcessEvent()
[all …]
H A Dnfc_routing_manager.cpp39 …eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_COMMIT_ROUTING), ROUTING_DELAY_… in CommitRouting()
69 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_COMPUTE_ROUTING_PARAMS), in ComputeRoutingParams()
H A Dnfc_service.cpp158 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_TAG_FOUND), tagDiscId, 0); in OnTagDiscovered()
165 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_TAG_LOST), tagDiscId, 0); in OnTagLost()
171 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_FIELD_ACTIVATED)); in FieldActivated()
177 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_FIELD_DEACTIVATED)); in FieldDeactivated()
184 eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_VENDOR_EVENT), eventType, 0); in OnVendorEvent()
/ohos5.0/foundation/communication/nfc/services/src/tag/
H A Dwifi_connection_manager.cpp113 void WifiConnectionManager::SendMsgToEvtHandler(NfcCommonEvent evt, int64_t delay) in SendMsgToEvtHandler()
127 void WifiConnectionManager::RemoveMsgFromEvtHandler(NfcCommonEvent evt) in RemoveMsgFromEvtHandler()
156 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_WIFI_ENABLE_TIMEOUT); in OnFinish()
157 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_WIFI_CONNECT_TIMEOUT); in OnFinish()
203 SendMsgToEvtHandler(NfcCommonEvent::MSG_WIFI_ENABLE_TIMEOUT, ENABLE_WIFI_TIMEOUT); in HandleEnableWifi()
241 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_WIFI_ENABLE_TIMEOUT); in TryConnectWifi()
242 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_WIFI_CONNECT_TIMEOUT); in TryConnectWifi()
276 SendMsgToEvtHandler(NfcCommonEvent::MSG_WIFI_CONNECT_TIMEOUT, CONNECT_WIFI_TIMEOUT); in HandleConnectWifi()
301 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_WIFI_ENABLE_TIMEOUT); in OnWifiEnabled()
335 nfcWifiConnMgr_.SendMsgToEvtHandler(NfcCommonEvent::MSG_WIFI_ENABLED, 0); in OnReceiveEvent()
[all …]
H A Dbt_connection_manager.cpp94 void BtConnectionManager::SendMsgToEvtHandler(NfcCommonEvent evt, int64_t delay) in SendMsgToEvtHandler()
127 void BtConnectionManager::RemoveMsgFromEvtHandler(NfcCommonEvent evt) in RemoveMsgFromEvtHandler()
197 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_ENABLE_TIMEOUT); in OnFinish()
198 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_PAIR_TIMEOUT); in OnFinish()
199 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_CONNECT_TIMEOUT); in OnFinish()
273 SendMsgToEvtHandler(NfcCommonEvent::MSG_BT_PAIR_TIMEOUT, BT_PAIR_TIMEOUT); in HandleBtPair()
710 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_ENABLE_TIMEOUT); in TryPairBt()
711 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_PAIR_TIMEOUT); in TryPairBt()
712 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_CONNECT_TIMEOUT); in TryPairBt()
742 RemoveMsgFromEvtHandler(NfcCommonEvent::MSG_BT_ENABLE_TIMEOUT); in OnBtEnabled()
[all …]
H A Dtag_dispatcher.cpp273 …nfcService_->eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_WIFI_NTF_CLICKED)); in OnNotificationButtonClicked()
281 … nfcService_->eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_BT_NTF_CLICKED)); in OnNotificationButtonClicked()
/ohos5.0/foundation/communication/nfc/test/unittest/services/services_test/
H A Dnfc_event_handler_test.cpp70 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_TAG_FOUND), 0);
91 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_TAG_DEBOUNCE), 0);
112 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_TAG_LOST), 0);
135 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_SCREEN_CHANGED), 0);
155 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_COMMIT_ROUTING), 0);
312 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_SHUTDOWN), 0);
356 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_VENDOR_EVENT),
379 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_VENDOR_EVENT),
402 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_VENDOR_EVENT), 0);
450 AppExecFwk::InnerEvent::Get(static_cast<uint32_t>(NfcCommonEvent::MSG_WIFI_ENABLED), 0);
[all …]
/ohos5.0/foundation/communication/nfc/services/include/
H A Dwifi_connection_manager.h47 void SendMsgToEvtHandler(NfcCommonEvent evt, int64_t delay);
48 void RemoveMsgFromEvtHandler(NfcCommonEvent evt);
H A Dbt_connection_manager.h138 void SendMsgToEvtHandler(NfcCommonEvent evt, int64_t delay);
139 void SendConnMsgToEvtHandler(NfcCommonEvent evt, const Bluetooth::BluetoothRemoteDevice &device,
141 void RemoveMsgFromEvtHandler(NfcCommonEvent evt);
H A Dinfc_service.h35 enum class NfcCommonEvent { enum
/ohos5.0/foundation/communication/nfc/services/src/card_emulation/
H A Dce_service.cpp485 …nfcService_.lock()->eventHandler_->RemoveEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FI… in HandleFieldActivated()
487 static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FIELD_OFF_TIMEOUT)); in HandleFieldActivated()
489 static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FIELD_OFF_TIMEOUT), DEACTIVATE_TIMEOUT); in HandleFieldActivated()
499 …nfcService_.lock()->eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FIEL… in HandleFieldActivated()
509 static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FIELD_OFF_TIMEOUT)); in HandleFieldDeactivated()
510 …nfcService_.lock()->eventHandler_->RemoveEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FI… in HandleFieldDeactivated()
520 …nfcService_.lock()->eventHandler_->SendEvent(static_cast<uint32_t>(NfcCommonEvent::MSG_NOTIFY_FIEL… in HandleFieldDeactivated()