Home
last modified time | relevance | path

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

/ohos5.0/base/theme/wallpaper_mgr/test/unittest/
H A Dwallpaper_test.cpp183 ApiInfo apiInfo{ false, false }; in TearDownTestCase() local
333 ApiInfo apiInfo{ false, false }; variable
347 ApiInfo apiInfo{ false, false }; variable
361 ApiInfo apiInfo{ false, false }; variable
414 ApiInfo apiInfo{ true, true }; variable
538 ApiInfo apiInfo{ true, true }; variable
702 ApiInfo apiInfo{ true, true }; variable
735 ApiInfo apiInfo{ true, true }; variable
782 ApiInfo apiInfo{ true, true }; variable
920 ApiInfo apiInfo{ true, true }; variable
[all …]
H A Dwallpaper_permission_test.cpp114 ApiInfo apiInfo{ false, false }; variable
116 … OHOS::WallpaperMgrService::WallpaperManager::GetInstance().ResetWallpaper(LOCKSCREEN, apiInfo);
148 ApiInfo apiInfo{ false, false }; variable
151 …OHOS::WallpaperMgrService::WallpaperManager::GetInstance().GetPixelMap(LOCKSCREEN, apiInfo, pixelM…
167 ApiInfo apiInfo{ false, false }; variable
169 … OHOS::WallpaperMgrService::WallpaperManager::GetInstance().SetWallpaper(pixelMap, 2, apiInfo);
184 ApiInfo apiInfo{ false, false }; variable
186 … OHOS::WallpaperMgrService::WallpaperManager::GetInstance().SetWallpaper(URI, LOCKSCREEN, apiInfo);
/ohos5.0/base/theme/wallpaper_mgr/frameworks/js/napi/
H A Dnapi_wallpaper_ability.cpp46 ApiInfo apiInfo{ false, false }; in NAPI_GetColors() local
56 ApiInfo apiInfo{ true, true }; in NAPI_GetColorsSync() local
87 if (apiInfo.needException) { in GetColorsInner()
138 ApiInfo apiInfo{ false, false }; in NAPI_GetFile() local
171 if (apiInfo.needException) { in GetFileInner()
190 ApiInfo apiInfo{ false, false }; in NAPI_GetMinHeight() local
200 ApiInfo apiInfo{ true, true }; in NAPI_GetMinHeightSync() local
247 ApiInfo apiInfo{ true, true }; in NAPI_GetMinWidthSync() local
347 ApiInfo apiInfo{ true, true }; in NAPI_Restore() local
408 ApiInfo apiInfo{ true, true }; in NAPI_SetImage() local
[all …]
H A Dnapi_wallpaper_ability.h189 static void GetColorsInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo);
191 static void GetFileInner(std::shared_ptr<GetFileContextInfo> context, const ApiInfo &apiInfo);
192 … static void GetMinHeightInner(std::shared_ptr<GetMinContextInfo> context, const ApiInfo &apiInfo);
193 … static void GetMinWidthInner(std::shared_ptr<GetMinContextInfo> context, const ApiInfo &apiInfo);
196 static void RestoreInner(std::shared_ptr<SetContextInfo> context, const ApiInfo &apiInfo);
198 static void SetImageExec(std::shared_ptr<SetContextInfo> context, const ApiInfo &apiInfo);
199 static void GetImageInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo);
200 … void GetCorrespondWallpaperInner(std::shared_ptr<GetContextInfo> context, const ApiInfo &apiInfo);
/ohos5.0/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
H A Dwallpaper_manager_fuzzer.cpp103 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in GetColorsFuzzTest() local
105 WallpaperMgrService::WallpaperManager::GetInstance().GetColors(wallpaperType, apiInfo, colors); in GetColorsFuzzTest()
122 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in ResetWallpaperFuzzTest() local
123 WallpaperMgrService::WallpaperManager::GetInstance().ResetWallpaper(wallpaperType, apiInfo); in ResetWallpaperFuzzTest()
136 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in SetWallpaperByUriFuzzTest() local
139 WallpaperMgrService::WallpaperManager::GetInstance().SetWallpaper(uri, wallpaperType, apiInfo); in SetWallpaperByUriFuzzTest()
155 …WallpaperMgrService::ApiInfo apiInfo{ static_cast<bool>(data[0] % 2), static_cast<bool>(data[1] % … in SetWallpaperByMapFuzzTest() local
157 …allpaperMgrService::WallpaperManager::GetInstance().SetWallpaper(pixelMap, wallpaperType, apiInfo); in SetWallpaperByMapFuzzTest()
178 WallpaperMgrService::WallpaperManager::GetInstance().GetWallpaperMinHeight(apiInfo, minHeight); in WallpaperManagerFuzzTest()
179 WallpaperMgrService::WallpaperManager::GetInstance().GetWallpaperMinWidth(apiInfo, minWidth); in WallpaperManagerFuzzTest()
[all …]
/ohos5.0/base/theme/wallpaper_mgr/frameworks/native/include/
H A Dwallpaper_manager.h50 ErrorCode SetWallpaper(std::string uri, int32_t wallpaperType, const ApiInfo &apiInfo);
59 … std::shared_ptr<OHOS::Media::PixelMap> pixelMap, int32_t wallpaperType, const ApiInfo &apiInfo);
70 … int32_t wallpaperType, const ApiInfo &apiInfo, std::shared_ptr<OHOS::Media::PixelMap> &PixelMap);
77 … ErrorCode GetColors(int32_t wallpaperType, const ApiInfo &apiInfo, std::vector<uint64_t> &colors);
92 ErrorCode GetWallpaperMinHeight(const ApiInfo &apiInfo, int32_t &minHeight);
98 ErrorCode GetWallpaperMinWidth(const ApiInfo &apiInfo, int32_t &minWidth);
117 ErrorCode ResetWallpaper(std::int32_t wallpaperType, const ApiInfo &apiInfo);
/ohos5.0/base/theme/wallpaper_mgr/frameworks/native/src/
H A Dwallpaper_manager.cpp172 if (apiInfo.isSystemApi) { in GetColors()
198 …Code WallpaperManager::SetWallpaper(std::string uri, int32_t wallpaperType, const ApiInfo &apiInfo) in SetWallpaper() argument
225 if (apiInfo.isSystemApi) { in SetWallpaper()
239 std::shared_ptr<OHOS::Media::PixelMap> pixelMap, int32_t wallpaperType, const ApiInfo &apiInfo) in SetWallpaper() argument
248 if (apiInfo.isSystemApi) { in SetWallpaper()
326 int32_t wallpaperType, const ApiInfo &apiInfo, std::shared_ptr<OHOS::Media::PixelMap> &pixelMap) in GetPixelMap() argument
336 if (apiInfo.isSystemApi) { in GetPixelMap()
406 ErrorCode WallpaperManager::GetWallpaperMinHeight(const ApiInfo &apiInfo, int32_t &minHeight) in GetWallpaperMinHeight() argument
417 ErrorCode WallpaperManager::GetWallpaperMinWidth(const ApiInfo &apiInfo, int32_t &minWidth) in GetWallpaperMinWidth() argument
447 ErrorCode WallpaperManager::ResetWallpaper(std::int32_t wallpaperType, const ApiInfo &apiInfo) in ResetWallpaper() argument
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/hisysevent_adapter/
H A Dsoftbus_hisysevt_transreporter.c253 if (apiInfo == NULL) { in GetNewApiInfo()
257 if (strcpy_s(apiInfo->appName, SOFTBUS_HISYSEVT_PARAM_LEN, appName) != EOK || in GetNewApiInfo()
258 strcpy_s(apiInfo->softbusVersion, SOFTBUS_HISYSEVT_PARAM_LEN, g_softbusVersion) != EOK || in GetNewApiInfo()
259 strcpy_s(apiInfo->packageVersion, SOFTBUS_HISYSEVT_PARAM_LEN, g_pkgVersion) != EOK) { in GetNewApiInfo()
261 SoftBusFree(apiInfo); in GetNewApiInfo()
264 ListInit(&apiInfo->node); in GetNewApiInfo()
265 ListInit(&apiInfo->apiCntList); in GetNewApiInfo()
269 SoftBusFree(apiInfo); in GetNewApiInfo()
272 ListAdd(&apiInfo->apiCntList, &apiCnt->node); in GetNewApiInfo()
273 apiInfo->cnt = API_TYPE_DEFAULT; in GetNewApiInfo()
[all …]