Lines Matching refs:ScreenLockSystemAbility
66 REGISTER_SYSTEM_ABILITY_BY_ID(ScreenLockSystemAbility, SCREENLOCK_SERVICE_ID, true);
70 std::mutex ScreenLockSystemAbility::instanceLock_;
71 sptr<ScreenLockSystemAbility> ScreenLockSystemAbility::instance_;
73 std::shared_ptr<ffrt::queue> ScreenLockSystemAbility::queue_;
74 ScreenLockSystemAbility::ScreenLockSystemAbility(int32_t systemAbilityId, bool runOnCreate)
78 ScreenLockSystemAbility::~ScreenLockSystemAbility() {}
80 sptr<ScreenLockSystemAbility> ScreenLockSystemAbility::GetInstance()
85 SCLOCK_HILOGI("ScreenLockSystemAbility create instance.");
86 instance_ = new ScreenLockSystemAbility(SCREENLOCK_SERVICE_ID, true);
105 ScreenLockSystemAbility::AccountSubscriber::AccountSubscriber(const OsAccountSubscribeInfo &subscribeInfo)
109 void ScreenLockSystemAbility::AccountSubscriber::OnAccountsChanged(const int &id)
127 int32_t ScreenLockSystemAbility::Init()
129 bool ret = Publish(ScreenLockSystemAbility::GetInstance());
131 SCLOCK_HILOGE("Publish ScreenLockSystemAbility failed.");
135 SCLOCK_HILOGI("Init ScreenLockSystemAbility success.");
139 void ScreenLockSystemAbility::OnStart()
141 SCLOCK_HILOGI("ScreenLockSystemAbility::Enter OnStart.");
146 SCLOCK_HILOGW("ScreenLockSystemAbility is already running.");
153 SCLOCK_HILOGW("ScreenLockSystemAbility Init failed. Try again 5s later");
162 void ScreenLockSystemAbility::OnAddSystemAbility(int32_t systemAbilityId, const std::string &deviceId)
168 displayPowerEventListener_ = new ScreenLockSystemAbility::ScreenLockDisplayPowerEventListener();
180 void ScreenLockSystemAbility::RegisterDisplayPowerEventListener(int32_t times)
196 void ScreenLockSystemAbility::InitServiceHandler()
202 queue_ = std::make_shared<ffrt::queue>("ScreenLockSystemAbility");
206 void ScreenLockSystemAbility::InitUserId()
233 void ScreenLockSystemAbility::OnStop()
252 void ScreenLockSystemAbility::ScreenLockDisplayPowerEventListener::OnDisplayPowerEvent(DisplayPowerEvent event,
278 void ScreenLockSystemAbility::OnScreenOff(EventStatus status)
290 void ScreenLockSystemAbility::OnScreenOn(EventStatus status)
302 void ScreenLockSystemAbility::OnSystemReady()
304 SCLOCK_HILOGI("ScreenLockSystemAbility OnSystemReady started.");
310 SCLOCK_HILOGI("ScreenLockSystemAbility OnSystemReady started1.");
316 SCLOCK_HILOGE("ScreenLockSystemAbility OnSystemReady type not found., tryTime = %{public}d", tryTime);
323 void ScreenLockSystemAbility::OnWakeUp(EventStatus status)
335 void ScreenLockSystemAbility::OnSleep(EventStatus status)
347 void ScreenLockSystemAbility::OnExitAnimation()
353 void ScreenLockSystemAbility::StrongAuthChanged(int32_t userId, int32_t reasonFlag)
362 int32_t ScreenLockSystemAbility::UnlockScreen(const sptr<ScreenLockCallbackInterface> &listener)
368 int32_t ScreenLockSystemAbility::Unlock(const sptr<ScreenLockCallbackInterface> &listener)
379 int32_t ScreenLockSystemAbility::UnlockInner(const sptr<ScreenLockCallbackInterface> &listener)
403 int32_t ScreenLockSystemAbility::Lock(const sptr<ScreenLockCallbackInterface> &listener)
424 int32_t ScreenLockSystemAbility::Lock(int32_t userId)
437 int32_t ScreenLockSystemAbility::IsLocked(bool &isLocked)
449 bool ScreenLockSystemAbility::IsScreenLocked()
457 bool ScreenLockSystemAbility::GetSecure()
460 SCLOCK_HILOGI("ScreenLockSystemAbility GetSecure restart.");
462 SCLOCK_HILOGI("ScreenLockSystemAbility GetSecure started.");
464 SCLOCK_HILOGD("ScreenLockSystemAbility::GetSecure callingUid=%{public}d", callingUid);
480 int32_t ScreenLockSystemAbility::OnSystemEvent(const sptr<ScreenLockSystemAbilityInterface> &listener)
496 SCLOCK_HILOGI("ScreenLockSystemAbility::OnSystemEvent end.");
500 int32_t ScreenLockSystemAbility::SendScreenLockEvent(const std::string &event, int param)
521 int32_t ScreenLockSystemAbility::IsScreenLockDisabled(int userId, bool &isDisabled)
538 int32_t ScreenLockSystemAbility::SetScreenLockDisabled(bool disable, int userId)
563 int32_t ScreenLockSystemAbility::SetScreenLockAuthState(int authState, int32_t userId, std::string &authToken)
580 int32_t ScreenLockSystemAbility::GetScreenLockAuthState(int userId, int32_t &authState)
598 int32_t ScreenLockSystemAbility::RequestStrongAuth(int reasonFlag, int32_t userId)
610 int32_t ScreenLockSystemAbility::GetStrongAuth(int userId, int32_t &reasonFlag)
617 void ScreenLockSystemAbility::SetScreenlocked(bool isScreenlocked)
619 SCLOCK_HILOGI("ScreenLockSystemAbility SetScreenlocked state:%{public}d.", isScreenlocked);
630 int ScreenLockSystemAbility::Dump(int fd, const std::vector<std::u16string> &args)
647 void ScreenLockSystemAbility::RegisterDumpCommand()
670 void ScreenLockSystemAbility::PublishEvent(const std::string &eventAction)
679 void ScreenLockSystemAbility::LockScreenEvent(int stateResult)
681 SCLOCK_HILOGD("ScreenLockSystemAbility LockScreenEvent stateResult:%{public}d", stateResult);
701 void ScreenLockSystemAbility::UnlockScreenEvent(int stateResult)
703 SCLOCK_HILOGD("ScreenLockSystemAbility UnlockScreenEvent stateResult:%{public}d", stateResult);
715 void ScreenLockSystemAbility::SystemEventCallBack(const SystemEvent &systemEvent, TraceTaskId traceTaskId)
728 StartAsyncTrace(HITRACE_TAG_MISC, "ScreenLockSystemAbility::" + systemEvent.eventType_ + "begin callback",
734 FinishAsyncTrace(HITRACE_TAG_MISC, "ScreenLockSystemAbility::" + systemEvent.eventType_ + "end callback",
743 void ScreenLockSystemAbility::NotifyUnlockListener(const int32_t screenLockResult)
758 void ScreenLockSystemAbility::NotifyDisplayEvent(DisplayEvent event)
768 void ScreenLockSystemAbility::ResetFfrtQueue()
773 bool ScreenLockSystemAbility::IsAppInForeground(int32_t callingPid, uint32_t callingTokenId)
791 bool ScreenLockSystemAbility::IsSystemApp()
796 bool ScreenLockSystemAbility::CheckPermission(const std::string &permissionName)