/base/theme/wallpaper_mgr/frameworks/js/napi/ |
D | wallpaper_js_util.cpp | 62 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()
|
D | napi_wallpaper_ability.cpp | 81 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()
|
D | napi_wallpaper_ability.h | 49 std::vector<uint64_t> colors; member
|
/base/theme/wallpaper_mgr/frameworks/native/include/ |
D | wallpaper_service_proxy.h | 38 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);
|
D | i_wallpaper_service.h | 60 virtual ErrorCode GetColors(int wallpaperType, std::vector<uint64_t> &colors) = 0; 110 virtual ErrorCode GetColorsV9(int32_t wallpaperType, std::vector<uint64_t> &colors) = 0;
|
D | wallpaper_manager_kits.h | 79 …orCode GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) = 0;
|
D | wallpaper_manager.h | 76 …Code GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) final;
|
/base/theme/wallpaper_mgr/services/include/ |
D | i_wallpaper_manager_callback.h | 31 virtual void OnWallpaperColorsChanged(vector<uint32_t> colors, int32_t which, int32_t userId);
|
D | wallpaper_service.h | 69 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/ |
D | WallpaperSyncApiPerfJsunit.test.js | 42 wallpaper.off('colorChange', function (colors, wallpaperType) { argument 197 wallpaper.off('colorChange', function (colors, wallpaperType) { argument
|
/base/theme/wallpaper_mgr/frameworks/native/src/ |
D | wallpaper_service_proxy.cpp | 27 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()
|
D | wallpaper_manager.cpp | 143 …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/ |
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/test/unittest/ |
D | wallpaper_test.cpp | 472 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/ |
D | wallpaper_service.cpp | 575 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/ |
D | wallpaper_manager_fuzzer.cpp | 105 std::vector<uint64_t> colors; in GetColorsFuzzTest() local 106 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
|
/base/theme/wallpaper_mgr/ |
D | README.md | 39 …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<RgbaColo… 63 … name="p1893413268144"></a>function off(type: 'colorChange', callback?: (colors: Array<RgbaColo…
|
/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/ |
D | Wallpaper.test.js | 1649 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/ |
D | hvigor-wrapper.js | 16 …colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},br}var Mr,Lr,jr,$r,Hr,Jr,Gr={exports:{}…
|