Lines Matching defs:length
656 ErrorCode WallpaperService::SetWallpaper(int32_t fd, int32_t wallpaperType, int32_t length)
659 ErrorCode wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length, PICTURE);
677 ErrorCode WallpaperService::SetWallpaperV9(int32_t fd, int32_t wallpaperType, int32_t length)
683 return SetWallpaper(fd, wallpaperType, length);
840 ErrorCode WallpaperService::SetVideo(int32_t fd, int32_t wallpaperType, int32_t length)
847 ErrorCode wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length, VIDEO);
852 ErrorCode WallpaperService::SetCustomWallpaper(int32_t fd, int32_t type, int32_t length)
881 ErrorCode wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length, PACKAGE);
1275 int32_t fd, int32_t wallpaperType, int32_t length, WallpaperResourceType resourceType)
1282 ErrorCode errCode = CheckValid(wallpaperType, length, resourceType);
1287 char *paperBuf = new (std::nothrow) char[length]();
1293 if (read(fd, paperBuf, length) <= 0) {
1305 if (write(fdw, paperBuf, length) <= 0) {
1442 ErrorCode WallpaperService::CheckValid(int32_t wallpaperType, int32_t length, WallpaperResourceType resourceType)
1454 if (length <= 0 || length > maxLength) {