Lines Matching refs:token
65 void NotifyDisplayInfoChanged(const sptr<IRemoteObject>& token, DisplayId displayId,
310 void WindowManager::Impl::NotifyDisplayInfoChanged(const sptr<IRemoteObject>& token, DisplayId displayId,
317 iter = displayInfoChangedListeners_.find(token);
319 TLOGI(WmsLogTag::DMS, "can not find token in listener list, need not notify the change of display info");
326 listener->OnDisplayInfoChange(token, displayId, density, orientation);
894 WMError WindowManager::RegisterDisplayInfoChangedListener(const sptr<IRemoteObject>& token,
897 if (token == nullptr) {
898 TLOGE(WmsLogTag::DMS, "ability token could not be null");
907 sptr<WindowDisplayChangeAdapter> listenerAdapter = new (std::nothrow) WindowDisplayChangeAdapter(token, listener);
913 auto iter = pImpl_->displayInfoChangedListeners_.find(token);
915 pImpl_->displayInfoChangedListeners_.insert({token, {listenerAdapter}});
931 WMError WindowManager::UnregisterDisplayInfoChangedListener(const sptr<IRemoteObject>& token,
934 if (token == nullptr) {
935 TLOGE(WmsLogTag::DMS, "ability token could not be null");
945 auto iter = pImpl_->displayInfoChangedListeners_.find(token);
947 TLOGW(WmsLogTag::DMS, "can not find the ability token");
1023 WMError WindowManager::NotifyDisplayInfoChange(const sptr<IRemoteObject>& token, DisplayId displayId,
1028 if (token == nullptr) {
1029 TLOGE(WmsLogTag::DMS, "notify display info change failed, token is nullptr");
1032 pImpl_->NotifyDisplayInfoChanged(token, displayId, density, orientation);