/base/theme/wallpaper_mgr/test/unittest/ |
D | wallpaper_test.cpp | 303 …ErrorCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(SYSTYEM, apiInfo… variable 304 EXPECT_EQ(wallpaperErrorCode, E_OK) << "Failed to reset."; 317 …ErrorCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(LOCKSCREEN, apiI… variable 318 EXPECT_EQ(wallpaperErrorCode, E_OK) << "Failed to reset."; 331 …ErrorCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(INVALID_WALLPAPE… variable 332 EXPECT_EQ(wallpaperErrorCode, E_PARAMETERS_INVALID) << "Failed to throw error."; 345 …ErrorCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(SYSTYEM, apiInfo… variable 346 EXPECT_EQ(wallpaperErrorCode, E_OK) << "Failed to reset."; 349 wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(SYSTYEM, apiInfo); 350 EXPECT_EQ(wallpaperErrorCode, E_OK) << "Failed to reset."; [all …]
|
D | wallpaper_permission_test.cpp | 115 ErrorCode wallpaperErrorCode = variable 117 EXPECT_EQ(wallpaperErrorCode, E_NO_PERMISSION) << "throw permission error successfully"; 132 ErrorCode wallpaperErrorCode = variable 134 EXPECT_EQ(wallpaperErrorCode, E_NO_PERMISSION) << "throw permission error successfully"; 150 ErrorCode wallpaperErrorCode = variable 152 EXPECT_EQ(wallpaperErrorCode, E_NO_PERMISSION) << "throw permission error successfully"; 168 ErrorCode wallpaperErrorCode = variable 170 EXPECT_EQ(wallpaperErrorCode, E_NO_PERMISSION) << "throw permission error successfully"; 185 ErrorCode wallpaperErrorCode = variable 187 EXPECT_EQ(wallpaperErrorCode, E_NO_PERMISSION) << "throw permission error successfully";
|
/base/theme/wallpaper_mgr/services/src/ |
D | wallpaper_service_stub.cpp | 112 ErrorCode wallpaperErrorCode = E_UNKNOWN; in OnSetWallpaperInner() local 114 wallpaperErrorCode = SetWallpaperV9(fd, wallpaperType, length); in OnSetWallpaperInner() 116 wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length); in OnSetWallpaperInner() 119 if (!reply.WriteInt32(static_cast<int32_t>(wallpaperErrorCode))) { in OnSetWallpaperInner() 137 ErrorCode wallpaperErrorCode = SetVideo(fd, wallpaperType, length); in OnSetVideo() local 139 if (!reply.WriteInt32(static_cast<int32_t>(wallpaperErrorCode))) { in OnSetVideo() 151 ErrorCode wallpaperErrorCode = SetCustomWallpaper(uri, wallpaperType); in OnSetCustomWallpaper() local 152 if (!reply.WriteInt32(static_cast<int32_t>(wallpaperErrorCode))) { in OnSetCustomWallpaper() 170 ErrorCode wallpaperErrorCode = E_UNKNOWN; in OnGetPixelMapInner() local 172 wallpaperErrorCode = GetPixelMapV9(wallpaperType, fdInfo); in OnGetPixelMapInner() [all …]
|
D | wallpaper_service.cpp | 667 ErrorCode wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length, PICTURE); in SetWallpaper() local 669 return wallpaperErrorCode; in SetWallpaper() 799 ErrorCode wallpaperErrorCode = SetWallpaper(fd, wallpaperType, length, VIDEO); in SetVideo() local 801 return wallpaperErrorCode; in SetVideo() 960 ErrorCode wallpaperErrorCode = SetDefaultDataForWallpaper(userId, type); in ResetWallpaper() local 961 HILOG_INFO(" Set default data result[%{public}d]", wallpaperErrorCode); in ResetWallpaper() 962 return wallpaperErrorCode; in ResetWallpaper() 1341 ErrorCode wallpaperErrorCode = SetWallpaperBackupData(userId, resourceType, uri, type); in SetWallpaper() local 1345 return wallpaperErrorCode; in SetWallpaper()
|
/base/theme/wallpaper_mgr/frameworks/native/src/ |
D | wallpaper_manager.cpp | 169 ErrorCode wallpaperErrorCode = wallpaperServerProxy->GetFile(wallpaperType, wallpaperFd); in GetFile() local 170 if (wallpaperErrorCode == E_OK && wallpaperFd != -1) { in GetFile() 173 return wallpaperErrorCode; in GetFile() 190 ErrorCode wallpaperErrorCode = CheckWallpaperFormat(fileRealPath, false, length); in SetWallpaper() local 191 if (wallpaperErrorCode != E_OK) { in SetWallpaper() 193 return wallpaperErrorCode; in SetWallpaper() 204 wallpaperErrorCode = wallpaperServerProxy->SetWallpaperV9(fd, wallpaperType, length); in SetWallpaper() 206 wallpaperErrorCode = wallpaperServerProxy->SetWallpaper(fd, wallpaperType, length); in SetWallpaper() 209 if (wallpaperErrorCode == E_OK) { in SetWallpaper() 213 return wallpaperErrorCode; in SetWallpaper() [all …]
|
D | wallpaper_service_proxy.cpp | 58 ErrorCode wallpaperErrorCode = ConvertIntToErrorCode(reply.ReadInt32()); in GetColorsInner() local 59 if (wallpaperErrorCode == E_OK) { in GetColorsInner() 64 return wallpaperErrorCode; in GetColorsInner() 88 ErrorCode wallpaperErrorCode = ConvertIntToErrorCode(reply.ReadInt32()); in GetFile() local 89 if (wallpaperErrorCode == E_OK) { in GetFile() 92 return wallpaperErrorCode; in GetFile() 233 ErrorCode wallpaperErrorCode = ConvertIntToErrorCode(reply.ReadInt32()); in GetPixelMapInner() local 234 if (wallpaperErrorCode == E_OK) { in GetPixelMapInner() 238 return wallpaperErrorCode; in GetPixelMapInner() 466 ErrorCode wallpaperErrorCode = E_UNKNOWN; in ConvertIntToErrorCode() local [all …]
|
/base/theme/wallpaper_mgr/frameworks/js/napi/ |
D | napi_wallpaper_ability.cpp | 88 ErrorCode wallpaperErrorCode = in GetColorsInner() local 91 if (wallpaperErrorCode == E_OK && !context->colors.empty()) { in GetColorsInner() 96 JsErrorInfo jsErrorInfo = JsError::ConvertErrorCode(wallpaperErrorCode); in GetColorsInner() 173 ErrorCode wallpaperErrorCode = in GetFileInner() local 176 if (wallpaperErrorCode == E_OK && context->wallpaperFd >= 0) { in GetFileInner() 181 JsErrorInfo jsErrorInfo = JsError::ConvertErrorCode(wallpaperErrorCode); in GetFileInner() 223 ErrorCode wallpaperErrorCode = in GetMinHeightInner() local 225 if (wallpaperErrorCode == E_OK && context->minHeight >= 0) { in GetMinHeightInner() 230 JsErrorInfo jsErrorInfo = JsError::ConvertErrorCode(wallpaperErrorCode); in GetMinHeightInner() 270 ErrorCode wallpaperErrorCode = in GetMinWidthInner() local [all …]
|
D | js_error.cpp | 32 JsErrorInfo JsError::ConvertErrorCode(ErrorCode wallpaperErrorCode) in ConvertErrorCode() argument 36 switch (wallpaperErrorCode) { in ConvertErrorCode()
|
D | js_error.h | 50 static JsErrorInfo ConvertErrorCode(ErrorCode wallpaperErrorCode);
|