Lines Matching defs:WallpaperService

74 REGISTER_SYSTEM_ABILITY_BY_ID(WallpaperService, WALLPAPER_MANAGER_SERVICE_ID, true);
131 std::mutex WallpaperService::instanceLock_;
133 sptr<WallpaperService> WallpaperService::instance_;
135 std::shared_ptr<AppExecFwk::EventHandler> WallpaperService::serviceHandler_;
137 WallpaperService::WallpaperService(int32_t systemAbilityId, bool runOnCreate)
143 WallpaperService::WallpaperService() : WallpaperServiceStub(true), state_(ServiceRunningState::STATE_NOT_START)
147 WallpaperService::~WallpaperService()
151 int32_t WallpaperService::Init()
168 void WallpaperService::OnStart()
173 HILOG_ERROR("WallpaperService is already running.");
195 void WallpaperService::OnAddSystemAbility(int32_t systemAbilityId, const std::string &deviceId)
207 void WallpaperService::RegisterSubscriber(int32_t times)
220 void WallpaperService::InitServiceHandler()
228 AppExecFwk::EventRunner::Create("WallpaperService", AppExecFwk::ThreadMode::FFRT);
232 void WallpaperService::OnStop()
254 void WallpaperService::InitData()
256 HILOG_INFO("WallpaperService::initData --> start.");
280 void WallpaperService::AddWallpaperExtensionDeathRecipient(const sptr<IRemoteObject> &remoteObject)
297 void WallpaperService::RemoveExtensionDeathRecipient()
310 void WallpaperService::InitQueryUserId(int32_t times)
322 void WallpaperService::StartExtensionAbility(int32_t times)
334 bool WallpaperService::InitUsersOnBoot()
354 void WallpaperService::ClearRedundantFile(int32_t userId, WallpaperType wallpaperType, std::string fileName)
361 void WallpaperService::OnInitUser(int32_t userId)
383 bool WallpaperService::InitUserDir(int32_t userId)
405 bool WallpaperService::RestoreUserResources(int32_t userId, WallpaperData &wallpaperData, WallpaperType wallpaperType)
421 std::string WallpaperService::GetWallpaperDefaultPath(WallpaperType wallpaperType)
433 void WallpaperService::OnRemovedUser(int32_t userId)
449 void WallpaperService::OnSwitchedUser(int32_t userId)
479 std::string WallpaperService::GetWallpaperDir(int32_t userId, WallpaperType wallpaperType)
491 bool WallpaperService::GetFileNameFromMap(int32_t userId, WallpaperType wallpaperType, std::string &filePathName)
520 bool WallpaperService::GetPictureFileName(int32_t userId, WallpaperType wallpaperType, std::string &filePathName)
535 int32_t WallpaperService::MakeWallpaperIdLocked()
544 void WallpaperService::UpdataWallpaperMap(int32_t userId, WallpaperType wallpaperType)
575 ErrorCode WallpaperService::GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors)
588 ErrorCode WallpaperService::GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors)
597 ErrorCode WallpaperService::GetFile(int32_t wallpaperType, int32_t &wallpaperFd)
615 bool WallpaperService::CompareColor(const uint64_t &localColor, const ColorManager::Color &color)
620 bool WallpaperService::SaveColor(int32_t userId, WallpaperType wallpaperType)
656 ErrorCode WallpaperService::SetWallpaper(int32_t fd, int32_t wallpaperType, int32_t length)
664 ErrorCode WallpaperService::SetWallpaperByPixelMap(
677 ErrorCode WallpaperService::SetWallpaperV9(int32_t fd, int32_t wallpaperType, int32_t length)
686 ErrorCode WallpaperService::SetWallpaperV9ByPixelMap(
700 ErrorCode WallpaperService::SetWallpaperBackupData(
720 WallpaperService::GetWallpaperFile(resourceType, wallpaperData, wallpaperFile);
748 void WallpaperService::GetWallpaperFile(
770 WallpaperResourceType WallpaperService::GetResType(int32_t userId, WallpaperType wallpaperType)
786 ErrorCode WallpaperService::SendEvent(const std::string &eventType)
816 bool WallpaperService::SendWallpaperChangeEvent(int32_t userId, WallpaperType wallpaperType)
840 ErrorCode WallpaperService::SetVideo(int32_t fd, int32_t wallpaperType, int32_t length)
852 ErrorCode WallpaperService::SetCustomWallpaper(int32_t fd, int32_t type, int32_t length)
897 ErrorCode WallpaperService::GetPixelMap(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo)
899 HILOG_INFO("WallpaperService::getPixelMap start.");
936 ErrorCode WallpaperService::GetPixelMapV9(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo)
941 int32_t WallpaperService::GetWallpaperId(int32_t wallpaperType)
943 HILOG_INFO("WallpaperService::GetWallpaperId --> start.");
958 HILOG_INFO("WallpaperService::GetWallpaperId --> end ID[%{public}d]", iWallpaperId);
962 bool WallpaperService::IsChangePermitted()
969 bool WallpaperService::IsOperationAllowed()
976 ErrorCode WallpaperService::ResetWallpaper(int32_t wallpaperType)
1000 ErrorCode WallpaperService::ResetWallpaperV9(int32_t wallpaperType)
1009 ErrorCode WallpaperService::SetDefaultDataForWallpaper(int32_t userId, WallpaperType wallpaperType)
1039 ErrorCode WallpaperService::On(const std::string &type, sptr<IWallpaperEventListener> listener)
1041 HILOG_DEBUG("WallpaperService::On in.");
1043 HILOG_ERROR("WallpaperService::On listener is null.");
1055 ErrorCode WallpaperService::Off(const std::string &type, sptr<IWallpaperEventListener> listener)
1057 HILOG_DEBUG("WallpaperService::Off in.");
1075 bool WallpaperService::RegisterWallpaperCallback(const sptr<IWallpaperCallback> callback)
1077 HILOG_INFO(" WallpaperService::RegisterWallpaperCallback.");
1082 bool WallpaperService::GetWallpaperSafeLocked(int32_t userId, WallpaperType wallpaperType, WallpaperData &wallpaperData)
1101 void WallpaperService::ClearWallpaperLocked(int32_t userId, WallpaperType wallpaperType)
1119 bool WallpaperService::CheckCallingPermission(const std::string &permissionName)
1130 void WallpaperService::ReporterFault(FaultType faultType, FaultCode faultCode)
1137 msg.moduleName = "WallpaperService";
1150 int32_t WallpaperService::Dump(int32_t fd, const std::vector<std::u16string> &args)
1165 bool WallpaperService::ConnectExtensionAbility()
1185 bool WallpaperService::IsSystemApp()
1192 ErrorCode WallpaperService::GetImageFd(int32_t userId, WallpaperType wallpaperType, int32_t &fd)
1194 HILOG_INFO("WallpaperService::GetImageFd start.");
1216 ErrorCode WallpaperService::GetImageSize(int32_t userId, WallpaperType wallpaperType, int32_t &size)
1218 HILOG_INFO("WallpaperService::GetImageSize start.");
1247 int32_t WallpaperService::QueryActiveUserId()
1258 bool WallpaperService::CheckUserPermissionById(int32_t userId)
1274 ErrorCode WallpaperService::SetWallpaper(
1323 ErrorCode WallpaperService::SetWallpaperByPixelMap(
1349 ErrorCode WallpaperService::WritePixelMapToFile(std::shared_ptr<OHOS::Media::PixelMap> pixelMap,
1396 int64_t WallpaperService::WritePixelMapToStream(
1422 void WallpaperService::OnColorsChange(WallpaperType wallpaperType, const ColorManager::Color &color)
1442 ErrorCode WallpaperService::CheckValid(int32_t wallpaperType, int32_t length, WallpaperResourceType resourceType)
1460 bool WallpaperService::WallpaperChanged(
1477 void WallpaperService::NotifyColorChange(const std::vector<uint64_t> &colors, const WallpaperType &wallpaperType)
1491 bool WallpaperService::SaveWallpaperState(
1531 void WallpaperService::LoadWallpaperState()
1570 std::string WallpaperService::GetDefaultResDir()
1587 std::string WallpaperService::GetWallpaperPathInJson(const std::string filePath)