Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 18 of 18) sorted by relevance

/base/theme/wallpaper_mgr/interfaces/kits/napi/
Dwallpaper_js_util.cpp61 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()
Dnapi_wallpaper_ability.cpp80 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()
Dnapi_wallpaper_ability.h49 std::vector<uint64_t> colors; member
/base/theme/wallpaper_mgr/frameworks/innerkitsimpl/wallpaper_manager/include/
Dwallpaper_service_proxy.h34 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);
Di_wallpaper_service.h83 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;
Dwallpaper_manager_kits.h78 …nt32_t GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) = 0;
Dwallpaper_manager.h73 …int32_t GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) fi…
/base/theme/wallpaper_mgr/services/include/
Di_wallpaper_manager_callback.h30 virtual void OnWallpaperColorsChanged(vector<uint64_t> colors, int which, int userId);
Dwallpaper_service.h74 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/
Dwallpaper_service_proxy.cpp28 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()
Dwallpaper_manager.cpp134 …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/
Dwallpaper_test.cpp342 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/
Dmock_pixel_map.cpp45 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/
Dwallpaper_service.cpp384 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/
Dwallpaper_manager_fuzzer.cpp102 std::vector<uint64_t> colors; in GetColorsFuzzTest() local
103 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
/base/theme/wallpaper_mgr/
DREADME.md38 …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&lt;RgbaColo…
62 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array&lt;RgbaColo…
DREADME_ZH.md208 …<a name="p1893413268144"></a>function on(type: 'colorChange', callback: (colors: Array&lt;RgbaColo…
214 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array&lt;RgbaColo…
588 let listener = (colors, wallpaperType) => {
/base/theme/wallpaper_mgr/interfaces/kits/napi/test/unittest/src/wallpaper_js/
DWallpaper.test.js1623 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}`);