/foundation/communication/nfc/services/src/ipc/controller/ |
H A D | nfc_controller_impl.cpp | 27 : NfcControllerStub(), nfcService_(nfcService)
in NfcControllerImpl() 37 if (nfcService_.expired()) {
in GetState() 40 return nfcService_.lock()->GetNfcState();
in GetState() 45 if (nfcService_.expired()) {
in TurnOn() 48 return nfcService_.lock()->ExecuteTask(KITS::TASK_TURN_ON);
in TurnOn() 53 if (nfcService_.expired()) {
in TurnOff() 56 return nfcService_.lock()->ExecuteTask(KITS::TASK_TURN_OFF);
in TurnOff() 61 if (nfcService_.expired()) {
in IsNfcOpen() 64 isOpen = nfcService_.lock()->IsNfcEnabled();
in IsNfcOpen() 71 if (nfcService_ in RegisterCallBack() [all...] |
H A D | nfc_controller_impl.h | 52 std::weak_ptr<NfcService> nfcService_ = {};
member in OHOS::NFC::final
|
/foundation/communication/nfc/services/src/ |
H A D | nfc_sa_manager.cpp | 29 if (nfcService_) {
in ~NfcSaManager() 30 nfcService_ = nullptr;
in ~NfcSaManager() 59 nfcService_ = std::make_shared<NfcService>();
in Init() 60 nfcService_->Initialize();
in Init() 61 bool ret = Publish(nfcService_->nfcControllerImpl_);
in Init() 83 if (nfcService_ == nullptr) {
in OnAddSystemAbility() 84 ErrorLog("nfcService_ is nullptr");
in OnAddSystemAbility() 87 if (nfcService_->eventHandler_ == nullptr) {
in OnAddSystemAbility() 91 nfcService_->eventHandler_->SubscribePackageChangedEvent();
in OnAddSystemAbility() 92 nfcService_ in OnAddSystemAbility() [all...] |
H A D | nfc_routing_manager.cpp | 29 : eventHandler_(eventHandler), nciNfccProxy_(nciNfccProxy), nciCeProxy_(nciCeProxy), nfcService_(nfcService) in NfcRoutingManager() 45 int nfcState = nfcService_.lock()->GetNfcState(); in HandleCommitRouting() 51 nfcService_.lock()->GetNfcPollingManager().lock()->GetCurrentParameters(); in HandleCommitRouting() 75 if (!nfcService_.lock()->IsNfcEnabled()) { in HandleComputeRoutingParams()
|
H A D | nfc_event_handler.cpp | 49 std::weak_ptr<NfcService> nfcService_ {};
56 nfcService_(nfcService),
in ScreenChangedReceiver() 123 std::weak_ptr<NfcService> nfcService_ {};
130 nfcService_(nfcService),
in PackageChangedReceiver() 163 std::weak_ptr<NfcService> nfcService_ {};
170 nfcService_(nfcService),
in ShutdownEventReceiver() 199 std::weak_ptr<NfcService> nfcService_ {};
206 nfcService_(nfcService),
in DataShareChangedReceiver() 228 : EventHandler(runner), nfcService_(service)
in NfcEventHandler() 271 screenSubscriber_ = std::make_shared<ScreenChangedReceiver>(nfcService_, subscribeInf in SubscribeScreenChangedEvent() [all...] |
H A D | nfc_polling_manager.cpp | 27 : nfcService_(nfcService), nciNfccProxy_(nciNfccProxy), nciTagProxy_(nciTagProxy) in NfcPollingManager() 82 if (nfcService_.expired()) { in StartPollingLoop() 83 ErrorLog("StartPollingLoop: nfcService_ is nullptr."); in StartPollingLoop() 86 if (!nfcService_.lock()->IsNfcEnabled()) { in StartPollingLoop() 152 if (nfcService_.expired() || nciTagProxy_.expired()) { in EnableForegroundDispatch() 153 ErrorLog("EnableForegroundDispatch: nfcService_ is nullptr."); in EnableForegroundDispatch() 156 if (!nfcService_.lock()->IsNfcEnabled()) { in EnableForegroundDispatch() 216 if (nfcService_.expired() || nciTagProxy_.expired()) { in EnableReaderMode() 217 ErrorLog("EnableReaderMode: nfcService_ is nullptr."); in EnableReaderMode() 220 if (!nfcService_ in EnableReaderMode() [all...] |
H A D | nfc_service.cpp | 65 return nfcService_;
in GetInstance() 95 nfcService_ = shared_from_this();
in Initialize() 100 nciTagProxy_->SetTagListener(nfcService_);
in Initialize() 101 nciCeProxy_->SetCeHostListener(nfcService_);
in Initialize()
|
/foundation/communication/nfc/services/src/tag/ |
H A D | tag_dispatcher.cpp | 49 : nfcService_(nfcService),
in TagDispatcher() 53 if (nfcService_) {
in TagDispatcher() 54 nciTagProxy_ = nfcService_->GetNciTagProxy();
in TagDispatcher() 132 BtConnectionManager::GetInstance().Initialize(nfcService_);
in HandleNdefDispatch() 139 WifiConnectionManager::GetInstance().Initialize(nfcService_);
in HandleNdefDispatch() 153 if (nfcService_ == nullptr || nciTagProxy_.expired() || nfcService_->GetNfcPollingManager().expired()) {
in HandleTagFound() 182 if (nfcService_->GetNfcPollingManager().lock()->IsReaderModeEnabled()) {
in HandleTagFound() 183 nfcService_->GetNfcPollingManager().lock()->SendTagToReaderApp(tagInfo);
in HandleTagFound() 186 if (nfcService_ in HandleTagFound() [all...] |
H A D | wifi_connection_manager.cpp | 55 nfcService_ = nfcService;
in Initialize() 111 if (nfcService_.expired()) {
in SendMsgToEvtHandler() 115 if (nfcService_.lock()->eventHandler_ == nullptr) {
in SendMsgToEvtHandler() 120 nfcService_.lock()->eventHandler_->SendEvent(static_cast<uint32_t>(evt), delay);
in SendMsgToEvtHandler() 125 if (nfcService_.expired()) {
in RemoveMsgFromEvtHandler() 129 if (nfcService_.lock()->eventHandler_ == nullptr) {
in RemoveMsgFromEvtHandler() 134 nfcService_.lock()->eventHandler_->RemoveEvent(static_cast<uint32_t>(evt), static_cast<int64_t>(0));
in RemoveMsgFromEvtHandler()
|
H A D | bt_connection_manager.cpp | 90 nfcService_ = nfcService;
in Initialize() 96 if (nfcService_.expired()) {
in SendMsgToEvtHandler() 100 if (nfcService_.lock()->eventHandler_ == nullptr) {
in SendMsgToEvtHandler() 105 nfcService_.lock()->eventHandler_->SendEvent(static_cast<uint32_t>(evt), delay);
in SendMsgToEvtHandler() 111 if (nfcService_.expired()) {
in SendConnMsgToEvtHandler() 115 if (nfcService_.lock()->eventHandler_ == nullptr) {
in SendConnMsgToEvtHandler() 124 nfcService_.lock()->eventHandler_->SendEvent(static_cast<uint32_t>(evt), info, 0);
in SendConnMsgToEvtHandler() 129 if (nfcService_.expired()) {
in RemoveMsgFromEvtHandler() 133 if (nfcService_.lock()->eventHandler_ == nullptr) {
in RemoveMsgFromEvtHandler() 138 nfcService_ in RemoveMsgFromEvtHandler() [all...] |
/foundation/communication/nfc/services/src/ipc/tags/ |
H A D | tag_session.cpp | 34 : nfcService_(service)
in TagSession() 59 if (nfcService_.expired() || nciTagProxy_.expired()) {
in Connect() 63 if (!nfcService_.lock()->IsNfcEnabled()) {
in Connect() 88 if (nfcService_.expired() || nciTagProxy_.expired()) {
in IsConnected() 92 if (!nfcService_.lock()->IsNfcEnabled()) {
in IsConnected() 108 if (nfcService_.expired() || nciTagProxy_.expired()) {
in Reconnect() 112 if (!nfcService_.lock()->IsNfcEnabled()) {
in Reconnect() 131 if (nfcService_.expired() || nciTagProxy_.expired() || !nfcService_.lock()->IsNfcEnabled()) {
in Disconnect() 146 if (nfcService_ in SetTimeout() [all...] |
/foundation/communication/nfc/services/src/card_emulation/ |
H A D | ce_service.cpp | 37 : nfcService_(nfcService), nciCeProxy_(nciCeProxy) in CeService() 241 if (nfcService_.expired()) { in OnDefaultPaymentServiceChange() 242 ErrorLog("nfcService_ is nullptr."); in OnDefaultPaymentServiceChange() 245 if (!nfcService_.lock()->IsNfcEnabled()) { in OnDefaultPaymentServiceChange() 286 if (nfcService_.expired()) { in OnAppAddOrChangeOrRemove() 287 ErrorLog("nfcService_ is nullptr."); in OnAppAddOrChangeOrRemove() 290 if (!nfcService_.lock()->IsNfcEnabled()) { in OnAppAddOrChangeOrRemove() 363 if (nfcService_.expired()) { in ConfigRoutingAndCommit() 367 std::weak_ptr<NfcRoutingManager> routingManager = nfcService_.lock()->GetNfcRoutingManager(); in ConfigRoutingAndCommit() 479 if (nfcService_ in HandleFieldActivated() [all...] |
H A D | host_card_emulation_manager.cpp | 46 : nfcService_(nfcService), nciCeProxy_(nciCeProxy), ceService_(ceService) in HostCardEmulationManager() 294 if (nfcService_.expired()) { in RegHceCmdCallback() 295 ErrorLog("RegHceCmdCallback: nfcService_ is nullptr."); in RegHceCmdCallback() 298 if (!nfcService_.lock()->IsNfcEnabled()) { in RegHceCmdCallback() 331 if (nfcService_.expired()) { in SendHostApduData() 332 ErrorLog("SendHostApduData: nfcService_ is nullptr."); in SendHostApduData() 335 if (!nfcService_.lock()->IsNfcEnabled()) { in SendHostApduData()
|
H A D | host_card_emulation_manager.h | 80 std::weak_ptr<NfcService> nfcService_{};
|
H A D | ce_service.h | 109 std::weak_ptr<NfcService> nfcService_{};
|
/foundation/communication/nfc/services/src/external_deps/ |
H A D | nfc_notification_publisher.cpp | 65 if (!isInitialized_ || nfcService_.expired()) {
in RegNotificationCallback() 66 nfcService_ = service;
in RegNotificationCallback() 112 if (nfcService_.expired()) {
in OnNotificationButtonClicked() 116 std::weak_ptr<TAG::TagDispatcher> tagDispatcher = nfcService_.lock()->GetTagDispatcher();
in OnNotificationButtonClicked()
|
H A D | nfc_notification_publisher.h | 72 std::weak_ptr<NfcService> nfcService_;
member in OHOS::NFC::TAG::NfcNotificationPublisher
|
/foundation/communication/nfc/services/src/ipc/card_emulation/ |
H A D | hce_session.cpp | 27 HceSession::HceSession(std::shared_ptr<INfcService> service) : nfcService_(service) in HceSession() 159 .append(std::to_string(nfcService_.lock()->GetNfcState())) in GetDumpInfo() 162 .append(std::to_string(nfcService_.lock()->GetScreenState())) in GetDumpInfo() 165 .append(std::to_string(nfcService_.lock()->GetNciVersion())) in GetDumpInfo() 179 std::string simBundleName = nfcService_.lock()->GetSimVendorBundleName(); in AppendSimBundle()
|
H A D | hce_session.h | 65 std::weak_ptr<NFC::INfcService> nfcService_{};
|
/foundation/communication/nfc/services/include/ |
H A D | nfc_sa_manager.h | 54 std::shared_ptr<NfcService> nfcService_;
member in OHOS::NFC::NfcSaManager
|
H A D | wifi_connection_manager.h | 60 std::weak_ptr<NfcService> nfcService_ {};
|
H A D | nfc_routing_manager.h | 42 std::weak_ptr<NfcService> nfcService_ {};
|
H A D | tag_dispatcher.h | 55 std::shared_ptr<NfcService> nfcService_ {};
|
H A D | nfc_event_handler.h | 67 std::weak_ptr<NfcService> nfcService_ {};
|
H A D | nfc_polling_manager.h | 87 std::weak_ptr<NfcService> nfcService_ {};
|