Home
last modified time | relevance | path

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

/base/theme/wallpaper_mgr/frameworks/js/napi/
Dwallpaper_js_util.cpp62 ColorManager::Color colors(it); in Convert2JSRgbaArray() local
67 napi_create_int32(env, static_cast<int32_t>(colors.r * COLOR_MASK), &red); in Convert2JSRgbaArray()
68 napi_create_int32(env, static_cast<int32_t>(colors.g * COLOR_MASK), &green); in Convert2JSRgbaArray()
69 napi_create_int32(env, static_cast<int32_t>(colors.b * COLOR_MASK), &blue); in Convert2JSRgbaArray()
70 napi_create_int32(env, static_cast<int32_t>(colors.a * COLOR_MASK), &alpha); in Convert2JSRgbaArray()
Dnapi_wallpaper_ability.cpp81 napi_value data = WallpaperJSUtil::Convert2JSRgbaArray(env, context->colors); in GetColorsInner()
90 context->colors); in GetColorsInner()
91 if (wallpaperErrorCode == 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/native/include/
Dwallpaper_service_proxy.h38 ErrorCode GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) override;
54 ErrorCode GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) override;
63 … int32_t wallpaperType, WallpaperServiceIpcInterfaceCode code, std::vector<uint64_t> &colors);
Di_wallpaper_service.h60 virtual ErrorCode GetColors(int wallpaperType, std::vector<uint64_t> &colors) = 0;
110 virtual ErrorCode GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) = 0;
Dwallpaper_manager_kits.h79 …orCode GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) = 0;
Dwallpaper_manager.h76 …Code GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) final;
/base/theme/wallpaper_mgr/services/include/
Di_wallpaper_manager_callback.h31 virtual void OnWallpaperColorsChanged(vector<uint32_t> colors, int32_t which, int32_t userId);
Dwallpaper_service.h69 ErrorCode GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) override;
82 ErrorCode GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) override;
137 void NotifyColorChange(const std::vector<uint64_t> &colors, const WallpaperType &wallpaperType);
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_perf/
DWallpaperSyncApiPerfJsunit.test.js42 wallpaper.off('colorChange', function (colors, wallpaperType) { argument
197 wallpaper.off('colorChange', function (colors, wallpaperType) { argument
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_service_proxy.cpp27 ErrorCode WallpaperServiceProxy::GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColors() argument
29 return GetColorsInner(wallpaperType, WallpaperServiceIpcInterfaceCode::GET_COLORS, colors); in GetColors()
32 ErrorCode WallpaperServiceProxy::GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColorsV9() argument
34 return GetColorsInner(wallpaperType, WallpaperServiceIpcInterfaceCode::GET_COLORS_V9, colors); in GetColorsV9()
38 int32_t wallpaperType, WallpaperServiceIpcInterfaceCode code, std::vector<uint64_t> &colors) in GetColorsInner() argument
60 if (!reply.ReadUInt64Vector(&colors)) { in GetColorsInner()
Dwallpaper_manager.cpp143 …perManager::GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) in GetColors() argument
151 return wallpaperServerProxy->GetColorsV9(wallpaperType, colors); in GetColors()
153 return wallpaperServerProxy->GetColors(wallpaperType, colors); in GetColors()
/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/test/unittest/
Dwallpaper_test.cpp472 std::vector<uint64_t> colors; variable
474 ErrorCode errorCode = WallpaperManagerkits::GetInstance().GetColors(SYSTYEM, apiInfo, colors);
476 EXPECT_FALSE(colors.empty());
489 std::vector<uint64_t> colors; variable
491 … ErrorCode errorCode = WallpaperManagerkits::GetInstance().GetColors(LOCKSCREEN, apiInfo, colors);
493 EXPECT_FALSE(colors.empty());
506 std::vector<uint64_t> colors; variable
508 … ErrorCode errorCode = WallpaperManagerkits::GetInstance().GetColors(LOCKSCREEN, apiInfo, colors);
510 errorCode = WallpaperManagerkits::GetInstance().GetColors(SYSTYEM, apiInfo, colors);
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp575 ErrorCode WallpaperService::GetColors(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColors() argument
578 colors.emplace_back(systemWallpaperColor_); in GetColors()
580 colors.emplace_back(lockWallpaperColor_); in GetColors()
586 ErrorCode WallpaperService::GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) in GetColorsV9() argument
592 return GetColors(wallpaperType, colors); in GetColorsV9()
1332 std::vector<uint64_t> colors; in OnColorsChange() local
1335 colors.emplace_back(systemWallpaperColor_); in OnColorsChange()
1336 NotifyColorChange(colors, WALLPAPER_SYSTEM); in OnColorsChange()
1339 colors.emplace_back(lockWallpaperColor_); in OnColorsChange()
1340 NotifyColorChange(colors, WALLPAPER_LOCKSCREEN); in OnColorsChange()
[all …]
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
Dwallpaper_manager_fuzzer.cpp105 std::vector<uint64_t> colors; in GetColorsFuzzTest() local
106 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
/base/theme/wallpaper_mgr/
DREADME.md39 …p18761104812149"></a><a name="p18761104812149"></a>Obtains the wallpaper colors for the wallpaper …
57 …<a name="p1893413268144"></a>function on(type: 'colorChange', callback: (colors: Array&lt;RgbaColo…
63 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array&lt;RgbaColo…
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/
DWallpaper.test.js1649 wallpaper.on('colorChange', (colors, wallpaperType) => {
1650 console.info(`onCallbackTest001 colors : ${colors}`);
1651 expect(colors != null).assertTrue();
1755 wallpaper.on('colorChange', async (colors, wallpaperType) => {
1756 console.info(`offCallbackTest001 colors : ${colors}`);
/base/useriam/face_auth/ui/Settings_FaceAuth/hvigor/
Dhvigor-wrapper.js16colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},br}var Mr,Lr,jr,$r,Hr,Jr,Gr={exports:{}…