Searched refs:g_monitorInstance_ (Results 1 – 2 of 2) sorted by relevance
116 static shared_ptr<UiEventMonitor> g_monitorInstance_ = make_shared<UiEventMonitor>(); variable298 g_monitorInstance_->WaitScrollCompelete(); in GetAamsWindowInfos()627 if (g_monitorInstance_ == nullptr) { in ConnectToSysAbility()628 g_monitorInstance_ = make_shared<UiEventMonitor>(); in ConnectToSysAbility()630 g_monitorInstance_->SetOnAbilityConnectCallback(onConnectCallback); in ConnectToSysAbility()631 g_monitorInstance_->SetOnAbilityDisConnectCallback(onDisConnectCallback); in ConnectToSysAbility()633 if (ability->RegisterAbilityListener(g_monitorInstance_) != RET_OK) { in ConnectToSysAbility()668 g_monitorInstance_->RegisterUiEventListener(listener); in RegisterUiEventListener()673 return g_monitorInstance_->WaitEventIdle(idleThresholdMs, timeoutMs); in WaitForUiSteady()678 if (!connected_ || g_monitorInstance_ == nullptr) { in DisConnectFromSysAbility()[all …]
133 …std::shared_ptr<ComponentEventMonitor> g_monitorInstance_ = std::make_shared<ComponentEventMonitor… in Connect() local140 g_monitorInstance_->SetOnAbilityConnectCallback(onConnectCallback); in Connect()142 if (ability->RegisterAbilityListener(g_monitorInstance_) != Accessibility::RET_OK) { in Connect()