Lines Matching refs:NfcService
40 uint32_t NfcService::unloadStaSaTimerId{0};
42 NfcService::NfcService()
50 NfcService::~NfcService()
63 std::weak_ptr<NfcService> NfcService::GetInstance() const
68 std::weak_ptr<NCI::INciTagInterface> NfcService::GetNciTagProxy(void)
73 std::weak_ptr<NfcPollingManager> NfcService::GetNfcPollingManager()
78 std::weak_ptr<NfcRoutingManager> NfcService::GetNfcRoutingManager()
83 std::weak_ptr<CeService> NfcService::GetCeService()
88 std::string NfcService::GetSimVendorBundleName()
93 bool NfcService::Initialize()
125 void NfcService::UnloadNfcSa()
141 std::weak_ptr<TAG::TagDispatcher> NfcService::GetTagDispatcher()
146 OHOS::sptr<IRemoteObject> NfcService::GetTagServiceIface()
151 void NfcService::OnTagDiscovered(uint32_t tagDiscId)
153 InfoLog("NfcService::OnTagDiscovered tagDiscId %{public}d", tagDiscId);
155 InfoLog("NfcService::OnTagDiscovered end");
158 void NfcService::OnTagLost(uint32_t tagDiscId)
160 InfoLog("NfcService::OnTagLost tagDiscId %{public}d", tagDiscId);
164 void NfcService::FieldActivated()
166 InfoLog("NfcService::FieldActivated");
170 void NfcService::FieldDeactivated()
172 InfoLog("NfcService::FieldDeactivated");
177 void NfcService::OnVendorEvent(int eventType, int arg1, std::string arg2)
179 InfoLog("NfcService::OnVendorEvent");
184 void NfcService::OnCardEmulationData(const std::vector<uint8_t> &data)
186 InfoLog("NfcService::OnCardEmulationData");
190 void NfcService::OnCardEmulationActivated()
192 InfoLog("NfcService::OnCardEmulationActivated");
196 OHOS::sptr<IRemoteObject> NfcService::GetHceServiceIface()
201 void NfcService::OnCardEmulationDeactivated()
203 InfoLog("NfcService::OnCardEmulationDeactivated");
207 bool NfcService::IsNfcTaskReady(std::future<int>& future) const
227 int NfcService::ExecuteTask(KITS::NfcTask param)
269 void NfcService::NfcTaskThread(KITS::NfcTask params, std::promise<int> promise)
289 bool NfcService::DoTurnOn()
340 bool NfcService::DoTurnOff()
366 void NfcService::DoInitialize()
380 int NfcService::SetRegisterCallBack(const sptr<INfcControllerCallback> &callback,
383 InfoLog("NfcService SetRegisterCallBack");
412 int NfcService::RemoveRegisterCallBack(const std::string& type,
415 InfoLog("NfcService RemoveRegisterCallBack");
421 InfoLog("NfcService RemoveRegisterCallBack success.");
430 int NfcService::RemoveAllRegisterCallBack(Security::AccessToken::AccessTokenID callerToken)
432 InfoLog("NfcService RemoveAllRegisterCallBack");
438 InfoLog("NfcService RemoveAllRegisterCallBack success.");
447 void NfcService::UpdateNfcState(int newState)
478 int NfcService::GetNfcState()
490 int NfcService::GetScreenState()
496 int NfcService::GetNciVersion()
501 bool NfcService::IsNfcEnabled()
507 void NfcService::HandleShutdown()
515 bool NfcService::RegNdefMsgCb(const sptr<INdefMsgCallback> &callback)
517 DebugLog("NfcService::RegNdefMsgCb");
522 void NfcService::SetupUnloadNfcSaTimer(bool shouldRestartTimer)
524 TimeOutCallback timeoutCallback = []() { NfcService::UnloadNfcSa(); };
536 void NfcService::CancelUnloadNfcSaTimer()