Home
last modified time | relevance | path

Searched refs:fdInfo (Results 1 – 7 of 7) sorted by relevance

/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service_stub.cpp169 IWallpaperService::FdInfo fdInfo; in OnGetPixelMapInner() local
172 wallpaperErrorCode = GetPixelMapV9(wallpaperType, fdInfo); in OnGetPixelMapInner()
174 wallpaperErrorCode = GetPixelMap(wallpaperType, fdInfo); in OnGetPixelMapInner()
179 close(fdInfo.fd); in OnGetPixelMapInner()
183 if (!reply.WriteInt32(fdInfo.size)) { in OnGetPixelMapInner()
185 close(fdInfo.fd); in OnGetPixelMapInner()
188 if (!reply.WriteFileDescriptor(fdInfo.fd)) { in OnGetPixelMapInner()
190 close(fdInfo.fd); in OnGetPixelMapInner()
194 close(fdInfo.fd); in OnGetPixelMapInner()
Dwallpaper_service.cpp861 ErrorCode WallpaperService::GetPixelMap(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) in GetPixelMap() argument
883 fdInfo.size = 0; // 0: empty file size in GetPixelMap()
884 fdInfo.fd = -1; // -1: invalid file description in GetPixelMap()
887 ErrorCode ret = GetImageSize(userId, type, fdInfo.size); in GetPixelMap()
892 ret = GetImageFd(userId, type, fdInfo.fd); in GetPixelMap()
900 ErrorCode WallpaperService::GetPixelMapV9(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) in GetPixelMapV9() argument
902 return GetPixelMap(wallpaperType, fdInfo); in GetPixelMapV9()
/base/theme/wallpaper_mgr/frameworks/native/include/
Dwallpaper_service_proxy.h37 ErrorCode GetPixelMap(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) override;
53 ErrorCode GetPixelMapV9(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) override;
61 … int32_t wallpaperType, WallpaperServiceIpcInterfaceCode code, IWallpaperService::FdInfo &fdInfo);
Di_wallpaper_service.h54 virtual ErrorCode GetPixelMap(int32_t wallpaperType, FdInfo &fdInfo) = 0;
109 virtual ErrorCode GetPixelMapV9(int32_t wallpaperType, FdInfo &fdInfo) = 0;
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_service_proxy.cpp140 …orCode WallpaperServiceProxy::GetPixelMap(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) in GetPixelMap() argument
142 return GetPixelMapInner(wallpaperType, WallpaperServiceIpcInterfaceCode::GET_PIXELMAP, fdInfo); in GetPixelMap()
145 …Code WallpaperServiceProxy::GetPixelMapV9(int32_t wallpaperType, IWallpaperService::FdInfo &fdInfo) in GetPixelMapV9() argument
147 … return GetPixelMapInner(wallpaperType, WallpaperServiceIpcInterfaceCode::GET_PIXELMAP_V9, fdInfo); in GetPixelMapV9()
212 int32_t wallpaperType, WallpaperServiceIpcInterfaceCode code, IWallpaperService::FdInfo &fdInfo) in GetPixelMapInner() argument
235 fdInfo.size = reply.ReadInt32(); in GetPixelMapInner()
236 fdInfo.fd = reply.ReadFileDescriptor(); in GetPixelMapInner()
Dwallpaper_manager.cpp347 IWallpaperService::FdInfo fdInfo; in GetPixelMap() local
350 wallpaperErrorCode = wallpaperServerProxy->GetPixelMapV9(wallpaperType, fdInfo); in GetPixelMap()
352 wallpaperErrorCode = wallpaperServerProxy->GetPixelMap(wallpaperType, fdInfo); in GetPixelMap()
358 if (fdInfo.size == 0 && fdInfo.fd == -1) { // 0: empty file size; -1: invalid file description in GetPixelMap()
367 OHOS::Media::ImageSource::CreateImageSource(fdInfo.fd, opts, errorCode); in GetPixelMap()
370 close(fdInfo.fd); in GetPixelMap()
373 close(fdInfo.fd); in GetPixelMap()
/base/theme/wallpaper_mgr/services/include/
Dwallpaper_service.h69 ErrorCode GetPixelMap(int32_t wallpaperType, FdInfo &fdInfo) override;
82 ErrorCode GetPixelMapV9(int32_t wallpaperType, FdInfo &fdInfo) override;