Home
last modified time | relevance | path

Searched refs:apiInfo (Results 1 – 8 of 8) sorted by relevance

/base/theme/wallpaper_mgr/test/unittest/
Dwallpaper_test.cpp159 ApiInfo apiInfo{ false, false }; in TearDownTestCase() local
160 WallpaperManagerkits::GetInstance().ResetWallpaper(SYSTYEM, apiInfo); in TearDownTestCase()
161 WallpaperManagerkits::GetInstance().ResetWallpaper(LOCKSCREEN, apiInfo); in TearDownTestCase()
302 ApiInfo apiInfo{ false, false }; variable
303 …rrorCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(SYSTYEM, apiInfo);
316 ApiInfo apiInfo{ false, false }; variable
317 …rCode wallpaperErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(LOCKSCREEN, apiInfo);
330 ApiInfo apiInfo{ false, false }; variable
331 …perErrorCode = WallpaperManagerkits::GetInstance().ResetWallpaper(INVALID_WALLPAPER_TYPE, apiInfo);
344 ApiInfo apiInfo{ false, false }; variable
[all …]
Dwallpaper_permission_test.cpp114 ApiInfo apiInfo{ false, false }; variable
116 …OHOS::WallpaperMgrService::WallpaperManagerkits::GetInstance().ResetWallpaper(LOCKSCREEN, apiInfo);
148 ApiInfo apiInfo{ false, false }; variable
151 …allpaperMgrService::WallpaperManagerkits::GetInstance().GetPixelMap(LOCKSCREEN, apiInfo, pixelMap);
167 ApiInfo apiInfo{ false, false }; variable
169 … OHOS::WallpaperMgrService::WallpaperManagerkits::GetInstance().SetWallpaper(pixelMap, 2, apiInfo);
184 ApiInfo apiInfo{ false, false }; variable
186 …S::WallpaperMgrService::WallpaperManagerkits::GetInstance().SetWallpaper(URI, LOCKSCREEN, apiInfo);
/base/theme/wallpaper_mgr/frameworks/native/include/
Dwallpaper_manager_kits.h52 …virtual ErrorCode SetWallpaper(std::string uri, int32_t wallpaperType, const ApiInfo &apiInfo) = 0;
61 const ApiInfo &apiInfo) = 0;
71 virtual ErrorCode GetPixelMap(int32_t wallpaperType, const ApiInfo &apiInfo,
79 …virtual ErrorCode GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &…
94 virtual ErrorCode GetWallpaperMinHeight(const ApiInfo &apiInfo, int32_t &minHeight) = 0;
100 virtual ErrorCode GetWallpaperMinWidth(const ApiInfo &apiInfo, int32_t &minWidth) = 0;
119 virtual ErrorCode ResetWallpaper(std::int32_t wallpaperType, const ApiInfo &apiInfo) = 0;
Dwallpaper_manager.h49 ErrorCode SetWallpaper(std::string uri, int32_t wallpaperType, const ApiInfo &apiInfo) final;
58 const ApiInfo &apiInfo) final;
68 ErrorCode GetPixelMap(int32_t wallpaperType, const ApiInfo &apiInfo,
76 …ErrorCode GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors) …
91 ErrorCode GetWallpaperMinHeight(const ApiInfo &apiInfo, int32_t &minHeight) final;
97 ErrorCode GetWallpaperMinWidth(const ApiInfo &apiInfo, int32_t &minWidth) final;
116 ErrorCode ResetWallpaper(std::int32_t wallpaperType, const ApiInfo &apiInfo) final;
/base/theme/wallpaper_mgr/frameworks/js/napi/
Dnapi_wallpaper_ability.cpp53 ApiInfo apiInfo{ false, false }; in NAPI_GetColors() local
54 NapiWallpaperAbility::GetColorsInner(context, apiInfo); in NAPI_GetColors()
55 … Call call(env, info, std::dynamic_pointer_cast<Call::Context>(context), 1, apiInfo.needException); in NAPI_GetColors()
63 ApiInfo apiInfo{ true, true }; in NAPI_GetColorsSync() local
64 NapiWallpaperAbility::GetColorsInner(context, apiInfo); in NAPI_GetColorsSync()
65 Call call(env, info, context, 1, apiInfo.needException); in NAPI_GetColorsSync()
69 …piWallpaperAbility::GetColorsInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo) in GetColorsInner() argument
86 auto exec = [context, apiInfo](Call::Context *ctx) { in GetColorsInner()
89 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(context->wallpaperType, apiInfo, in GetColorsInner()
95 if (apiInfo.needException) { in GetColorsInner()
[all …]
Dnapi_wallpaper_ability.h181 static void GetColorsInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo);
183 static void GetFileInner(std::shared_ptr<GetFileContextInfo> context, const ApiInfo &apiInfo);
184 … static void GetMinHeightInner(std::shared_ptr<GetMinContextInfo> context, const ApiInfo &apiInfo);
185 … static void GetMinWidthInner(std::shared_ptr<GetMinContextInfo> context, const ApiInfo &apiInfo);
188 static void RestoreInner(std::shared_ptr<SetContextInfo> context, const ApiInfo &apiInfo);
190 static void SetImageExec(std::shared_ptr<SetContextInfo> context, const ApiInfo &apiInfo);
191 static void GetImageInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo);
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
Dwallpaper_manager_fuzzer.cpp104 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in GetColorsFuzzTest() local
106 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
123 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in ResetWallpaperFuzzTest() local
124 WallpaperMgrService::WallpaperManagerkits::GetInstance().ResetWallpaper(wallpaperType, apiInfo); in ResetWallpaperFuzzTest()
137 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in SetWallpaperByUriFuzzTest() local
140 …WallpaperMgrService::WallpaperManagerkits::GetInstance().SetWallpaper(uri, wallpaperType, apiInfo); in SetWallpaperByUriFuzzTest()
156 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in SetWallpaperByMapFuzzTest() local
158 …aperMgrService::WallpaperManagerkits::GetInstance().SetWallpaper(pixelMap, wallpaperType, apiInfo); in SetWallpaperByMapFuzzTest()
177 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in WallpaperManagerFuzzTest() local
179 …WallpaperMgrService::WallpaperManagerkits::GetInstance().GetWallpaperMinHeight(apiInfo, minHeight); in WallpaperManagerFuzzTest()
[all …]
/base/theme/wallpaper_mgr/frameworks/native/src/
Dwallpaper_manager.cpp143 ErrorCode WallpaperManager::GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<ui… in GetColors() argument
150 if (apiInfo.isSystemApi) { in GetColors()
176 …Code WallpaperManager::SetWallpaper(std::string uri, int32_t wallpaperType, const ApiInfo &apiInfo) in SetWallpaper() argument
203 if (apiInfo.isSystemApi) { in SetWallpaper()
217 const ApiInfo &apiInfo) in SetWallpaper() argument
253 if (apiInfo.isSystemApi) { in SetWallpaper()
338 ErrorCode WallpaperManager::GetPixelMap(int32_t wallpaperType, const ApiInfo &apiInfo, in GetPixelMap() argument
349 if (apiInfo.isSystemApi) { in GetPixelMap()
395 ErrorCode WallpaperManager::GetWallpaperMinHeight(const ApiInfo &apiInfo, int32_t &minHeight) in GetWallpaperMinHeight() argument
406 ErrorCode WallpaperManager::GetWallpaperMinWidth(const ApiInfo &apiInfo, int32_t &minWidth) in GetWallpaperMinWidth() argument
[all …]