/base/theme/wallpaper_mgr/interfaces/kits/napi/ |
D | wallpaper_js_util.cpp | 61 ColorManager::Color colors(it); in Convert2JSRgbaArray() local 66 napi_create_int32(env, static_cast<int32_t>(colors.r * COLOR_MASK), &red); in Convert2JSRgbaArray() 67 napi_create_int32(env, static_cast<int32_t>(colors.g * COLOR_MASK), &green); in Convert2JSRgbaArray() 68 napi_create_int32(env, static_cast<int32_t>(colors.b * COLOR_MASK), &blue); in Convert2JSRgbaArray() 69 napi_create_int32(env, static_cast<int32_t>(colors.a * COLOR_MASK), &alpha); in Convert2JSRgbaArray()
|
D | napi_wallpaper_ability.cpp | 80 napi_value data = WallpaperJSUtil::Convert2JSRgbaArray(env, context->colors); in GetColorsInner() 90 context->colors); in GetColorsInner() 91 if (wallpaperErrorCode == static_cast<int32_t>(E_OK) && !context->colors.empty()) { in GetColorsInner() 101 HILOG_DEBUG("exec GetColors colors size : %{public}zu", context->colors.size()); in GetColorsInner()
|
D | napi_wallpaper_ability.h | 49 std::vector<uint64_t> colors; member
|
/base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/include/ |
D | wallpaper_service_proxy.h | 34 int32_t GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) override; 50 int32_t GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) override; 60 int32_t GetColorsInner(int32_t wallpaperType, uint32_t code, std::vector<uint64_t> &colors);
|
D | i_wallpaper_service.h | 83 virtual int32_t GetColors(int wallpaperType, std::vector<uint64_t> &colors) = 0; 146 virtual int32_t GetColorsV9(int wallpaperType, std::vector<uint64_t> &colors) = 0;
|
D | wallpaper_manager_kits.h | 78 …nt32_t GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) = 0;
|
D | wallpaper_manager.h | 73 …int32_t GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) fi…
|
/base/theme/wallpaper_mgr/services/include/ |
D | i_wallpaper_manager_callback.h | 30 virtual void OnWallpaperColorsChanged(vector<uint64_t> colors, int which, int userId);
|
D | wallpaper_service.h | 74 int32_t GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) override; 91 int32_t GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) override;
|
/base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/src/ |
D | wallpaper_service_proxy.cpp | 28 int32_t WallpaperServiceProxy::GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColors() argument 30 return GetColorsInner(wallpaperType, GET_COLORS, colors); in GetColors() 33 int32_t WallpaperServiceProxy::GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColorsV9() argument 35 return GetColorsInner(wallpaperType, GET_COLORS_V9, colors); in GetColorsV9() 38 …erServiceProxy::GetColorsInner(int32_t wallpaperType, uint32_t code, std::vector<uint64_t> &colors) in GetColorsInner() argument 60 if (!reply.ReadUInt64Vector(&colors)) { in GetColorsInner()
|
D | wallpaper_manager.cpp | 134 …perManager::GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) in GetColors() argument 142 return wpServerProxy->GetColorsV9(wallpaperType, colors); in GetColors() 144 return wpServerProxy->GetColors(wallpaperType, colors); in GetColors()
|
/base/theme/wallpaper_mgr/test/unittest/ |
D | wallpaper_test.cpp | 342 std::vector<uint64_t> colors; variable 344 int32_t errorCode = WallpaperManagerkits::GetInstance().GetColors(SYSTYEM, apiInfo, colors); 346 EXPECT_FALSE(colors.empty()); 359 std::vector<uint64_t> colors; variable 361 int32_t errorCode = WallpaperManagerkits::GetInstance().GetColors(LOCKSCREEN, apiInfo, colors); 363 EXPECT_FALSE(colors.empty());
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/ |
D | mock_pixel_map.cpp | 45 std::unique_ptr<PixelMap> PixelMap::Create(const uint32_t *colors, uint32_t colorLength, in Create() argument 51 std::unique_ptr<PixelMap> PixelMap::Create(const uint32_t *colors, uint32_t colorLength, int32_t of… in Create() argument 57 bool PixelMap::CheckParams(const uint32_t *colors, uint32_t colorLength, int32_t offset, int32_t st… in CheckParams() argument
|
/base/theme/wallpaper_mgr/services/src/ |
D | wallpaper_service.cpp | 384 int32_t WallpaperService::GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColors() argument 387 colors.emplace_back(systemWallpaperColor_); in GetColors() 389 colors.emplace_back(lockWallpaperColor_); in GetColors() 395 int32_t WallpaperService::GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColorsV9() argument 401 return GetColors(wallpaperType, colors); in GetColorsV9() 471 std::vector<uint64_t> colors; in SaveColor() local 474 colors.emplace_back(systemWallpaperColor_); in SaveColor() 477 listener.second->OnColorsChange(colors, WALLPAPER_SYSTEM); in SaveColor() 481 colors.emplace_back(lockWallpaperColor_); in SaveColor() 484 listener.second->OnColorsChange(colors, WALLPAPER_LOCKSCREEN); in SaveColor()
|
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/ |
D | wallpaper_manager_fuzzer.cpp | 102 std::vector<uint64_t> colors; in GetColorsFuzzTest() local 103 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
|
/base/theme/wallpaper_mgr/ |
D | README.md | 38 …p18761104812149"></a><a name="p18761104812149"></a>Obtains the wallpaper colors for the wallpaper … 56 …<a name="p1893413268144"></a>function on(type: 'colorChange', callback: (colors: Array<RgbaColo… 62 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array<RgbaColo…
|
D | README_ZH.md | 208 …<a name="p1893413268144"></a>function on(type: 'colorChange', callback: (colors: Array<RgbaColo… 214 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array<RgbaColo… 588 let listener = (colors, wallpaperType) => {
|
/base/theme/wallpaper_mgr/interfaces/kits/napi/test/unittest/src/wallpaper_js/ |
D | Wallpaper.test.js | 1623 wallpaper.on('colorChange', (colors, wallpaperType) => { 1624 console.info(`onCallbackTest001 colors : ${colors}`); 1625 expect(colors != null).assertTrue(); 1649 wallpaper.on('colorChange', (colors, wallpaperType) => { 1650 console.info(`offCallbackTest001 colors : ${colors}`);
|