Home
last modified time | relevance | path

Searched refs:GetInstance (Results 1 – 25 of 72) sorted by relevance

123

/test/ostest/wukong/common/include/
Dwukong_define.h35 #define TRACK_LOG_STD() WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s START",…
36 #define TRACK_LOG_END() WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s END", _…
38 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s : " #format, __LINE__, __func_…
40 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_DEBUG, "DBG : (%5d) %s : " #format, __LINE__, __func_…
42 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_INFO, "INF : (%5d) %s : " #format, __LINE__, __func__…
44 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_WARN, "WRN : (%5d) %s : " #format, __LINE__, __func__…
46 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_ERROR, "ERR : (%5d) %s : " #format, __LINE__, __func_…
48 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_TRACK, "TRK : (%5d) %s : %s", __LINE__, __func__, str)
50 …WuKongLogger::GetInstance()->Print(LOG_LEVEL_DEBUG, "DBG : (%5d) %s : %s", __LINE__, __func__, str)
51 #define INFO_LOG(str) WuKongLogger::GetInstance()->Print(LOG_LEVEL_INFO, "INF : (%5d) %s : %s", __L…
[all …]
/test/ostest/wukong/input_factory/src/
Dappswitch_input.cpp44 auto util = WuKongUtil::GetInstance(); in OrderInput()
57 …ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleLis… in OrderInput()
68 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in RandomInput()
79 …ErrCode result = AppManager::GetInstance()->StartAbilityByBundleInfo(abilityList[index], bundleLis… in RandomInput()
83 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
91 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in PrintResultOfStartAbility()
110 WuKongUtil::GetInstance()->GetAllowList(allowlist); in GetAbilityIndex()
111 WuKongUtil::GetInstance()->GetValidBundleList(validlist); in GetAbilityIndex()
114 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, allowlist.at(rand() % allowlist.size())… in GetAbilityIndex()
116 …index = WuKongUtil::GetInstance()->FindElement(bundlelist, validlist.at(rand() % validlist.size())… in GetAbilityIndex()
Dkeyboard_input.cpp42 MultimodeManager::GetInstance()->GetKeycodeList(keycodelist); in RandomInput()
46 result = MultimodeManager::GetInstance()->SingleKeyCodeInput(keycode, DOWN_TIME); in RandomInput()
48 result = MultimodeManager::GetInstance()->MultiKeyCodeInput(DOWN_TIME); in RandomInput()
56 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
Dhardkey_input.cpp39 …ErrCode result = MultimodeManager::GetInstance()->SingleKeyCodeInput(MMI::KeyEvent::KEYCODE_POWER,… in OrderInput()
46 ErrCode result = MultimodeManager::GetInstance()->SingleKeyCodeInput(keycode, DOWN_TIME); in RandomInput()
47 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
Dcomponent_input.cpp65 WuKongUtil::GetInstance()->SetTempAllowList(tempAllowList); in CheckLauncherApp()
121 auto currentAbilityPtr = TreeManager::GetInstance()->GetCurrentAbility(); in CheckInputFinished()
163 result = ComponentManager::GetInstance()->BackToPrePage(); in JudgeBackResult()
192 auto treemanager = TreeManager::GetInstance(); in OrderInput()
193 auto delegate = SceneDelegate::GetInstance(); in OrderInput()
223 … result = ComponentManager::GetInstance()->ComponentEventInput(*(elementInfo.get()), actionType); in OrderInput()
233 Report::GetInstance()->SyncInputInfo(componentInputMsg); in OrderInput()
253 auto treemanager = TreeManager::GetInstance(); in RandomInput()
257 auto delegate = SceneDelegate::GetInstance(); in RandomInput()
263 result = ComponentManager::GetInstance()->BackToPrePage(); in RandomInput()
[all …]
Dswap_input.cpp57 …result = MultimodeManager::GetInstance()->IntervalSwap(xSrcPosition, ySrcPosition, xDstPosition, y… in OrderInput()
65 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
74 …result = MultimodeManager::GetInstance()->IntervalSwap(xSrcPosition, ySrcPosition, xDstPosition, y… in RandomInput()
78 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
Dtouch_input.cpp43 auto multiinput = MultimodeManager::GetInstance(); in OrderInput()
59 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
65 auto multiinput = MultimodeManager::GetInstance(); in RandomInput()
76 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
Dmouse_input.cpp45 ErrCode result = WuKongUtil::GetInstance()->GetScreenSize(screenWidth, screenHeight); in RandomInput()
63 auto multiinput = MultimodeManager::GetInstance(); in RandomInput()
73 Report::GetInstance()->SyncInputInfo(inputedMsgObject_); in RandomInput()
/test/xts/dcts/distributedhardware/distributedscreentest/
Dtest.cpp62 vector<sptr<Screen>> allScreens = ScreenManager::GetInstance().GetAllScreens(); in QueryRemoteScreenInfo()
63 sptr<Display> defaultDisplay = DisplayManager::GetInstance().GetDefaultDisplay(); in QueryRemoteScreenInfo()
119 sptr<Display> defaultDisplay = DisplayManager::GetInstance().GetDefaultDisplay(); in StartMirror()
124 ScreenManager::GetInstance().MakeMirror(defaultDisplay->GetScreenId(), mirrorIds); in StartMirror()
160 ScreenManager::GetInstance().RemoveVirtualScreenFromGroup(stopMirrorIds); in StopMirror()
193 sptr<Display> defaultDisplay = DisplayManager::GetInstance().GetDefaultDisplay(); in StartExpand()
197 ScreenManager::GetInstance().MakeExpand(options); in StartExpand()
233 ScreenManager::GetInstance().RemoveVirtualScreenFromGroup(stopExpandIds); in StopExpand()
327 sptr<Display> defaultDisplay = DisplayManager::GetInstance().GetDefaultDisplay(); in CreateWindow()
334 int32_t windowId = ScreenClient::GetInstance().AddWindow(windowProperty); in CreateWindow()
[all …]
/test/xts/hats/hdf/display/device/
Dhdi_device_test.cpp198 return HdiTestDevice::GetInstance().GetFirstDisplay(); in GetFirstDisplay()
205 return HdiCompositionCheck::GetInstance().Check(layers, *clientBuffer, checkType); in CheckComposition()
211 HdiTestDevice::GetInstance(); in CreateTestLayer()
213 std::shared_ptr<HdiTestDisplay> display = HdiTestDevice::GetInstance().GetFirstDisplay(); in CreateTestLayer()
244 std::shared_ptr<HdiTestDisplay> display = HdiTestDevice::GetInstance().GetFirstDisplay(); in PrepareAndPrensent()
260 VblankCtr::GetInstance().NotifyVblank(sequence, ns, data); in TestVBlankCallback()
320 … HdiTestDevice::GetInstance().GetGrallocFuncs().InvalidateCache(GetFirstDisplay()->SnapShot()); in PresentAndCheck()
329 HdiTestDevice::GetInstance().Clear(); in TearDown()
335 HdiTestDevice::GetInstance().Clear(); in TearDown()
340 HdiTestDevice::GetInstance().Clear(); in TearDown()
[all …]
Dhdi_test_layer.cpp24 GrallocFuncs &gralloc = HdiTestDevice::GetInstance().GetGrallocFuncs(); in HdiGrallocBuffer()
44 GrallocFuncs &gralloc = HdiTestDevice::GetInstance().GetGrallocFuncs(); in ~HdiGrallocBuffer()
159 …int ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerSize(mDisplayID, mId, &mDisplayRect… in PreparePresent()
162 ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerCrop(mDisplayID, mId, &mCropRect); in PreparePresent()
165 ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerZorder(mDisplayID, mId, mZorder); in PreparePresent()
168 …ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerCompositionType(mDisplayID, mId, mCompT… in PreparePresent()
172 … ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetTransformMode(mDisplayID, mId, mTransform); in PreparePresent()
175 ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerAlpha(mDisplayID, mId, &mAlpha); in PreparePresent()
181 ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerBuffer(mDisplayID, mId, handle, -1); in PreparePresent()
184 … ret = HdiTestDevice::GetInstance().GetLayerFuncs().SetLayerBlendType(mDisplayID, mId, mBlendType); in PreparePresent()
Dhdi_test_display.cpp81 LayerFuncs &layerFuncs = HdiTestDevice::GetInstance().GetLayerFuncs(); in CreateHdiTestLayer()
130 …ret = HdiTestDevice::GetInstance().GetDeviceFuncs().GetDisplayReleaseFence(mId, &num, nullptr, nul… in GetLayersReleaseFence()
135 …ret = HdiTestDevice::GetInstance().GetDeviceFuncs().GetDisplayReleaseFence(mId, &num, layers.data(… in GetLayersReleaseFence()
179 ret = HdiTestDevice::GetInstance().GetDeviceFuncs().SetDisplayClientBuffer(mId, handle, -1); in Commit()
186 ret = HdiTestDevice::GetInstance().GetDeviceFuncs().Commit(mId, &fenceFd); in Commit()
203 int ret = HdiTestDevice::GetInstance().GetDeviceFuncs().RegDisplayVBlankCallback(mId, cb, data); in RegDisplayVBlankCallback()
209 int ret = HdiTestDevice::GetInstance().GetDeviceFuncs().SetDisplayVsyncEnabled(mId, enabled); in SetDisplayVsyncEnabled()
226 HdiTestDevice::GetInstance().GetLayerFuncs().CloseLayer(mId, layerId); in Clear()
Dhdi_device_test.h60 static TestParemeter &GetInstance() in GetInstance() function
93 static VblankCtr &GetInstance() in GetInstance() function
/test/ostest/wukong/common/src/
Dapp_manager.cpp39 auto util = WuKongUtil::GetInstance(); in AllowAbilityStart()
71 if (WuKongUtil::GetInstance()->GetOrderFlag()) { in AllowAbilityBackground()
95 result = OHOS::AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want); in StartAbilityByBundleInfo()
112 … OHOS::AAFwk::AbilityManagerClient::GetInstance()->SetAbilityController(abilityController_, true); in SetAbilityController()
Dcomponent_manager.cpp90 auto listenerlist = ComponentManager::GetInstance()->GetListenerList(); in OnAccessibilityEvent()
141 auto ability = Accessibility::AccessibilityUITestAbility::GetInstance(); in Connect()
162 auto auita = Accessibility::AccessibilityUITestAbility::GetInstance(); in Disconnect()
221 auto touchInput = MultimodeManager::GetInstance(); in ComponentTouchInput()
241 result = MultimodeManager::GetInstance()->SingleKeyCodeInput(backKeyCode, DOWNTIME); in BackToPrePage()
254 …ErrCode result = MultimodeManager::GetInstance()->IntervalSwap(componentUpSwapStartX, componentUpS… in ComponentUpSwapInput()
269 …ErrCode result = MultimodeManager::GetInstance()->IntervalSwap(componentDownSwapStartX, componentD… in ComponentDownSwapInput()
282 result = MultimodeManager::GetInstance()->MultiKeyCodeInput(DOWNTIME); in ComponentMultikeyInput()
296 …result = MultimodeManager::GetInstance()->IntervalSwap(leftSwapStartX, leftSwapStartY, leftSwapEnd… in ComponentLeftSwapInput()
Dmultimode_manager.cpp55 MMI::InputManager::GetInstance()->SimulateInputEvent(keyKeyboardEvent); in SingleKeyCodeInput()
69 MMI::InputManager::GetInstance()->SimulateInputEvent(keyKeyboardEvent); in SingleKeyCodeInput()
87 result = MultimodeManager::GetInstance()->SingleKeyCodeInput(keycode, downtime); in MultiKeyCodeInput()
116 MMI::InputManager::GetInstance()->SimulateInputEvent(pointerEvent); in PointerInput()
123 auto multiinput = MultimodeManager::GetInstance(); in IntervalSwap()
/test/ostest/wukong/test_flow/src/
Dtest_flow.cpp76 AppManager::GetInstance()->SetAbilityController(); in CheckVaildityCmd()
81 result = WuKongUtil::GetInstance()->GetAllAppInfo(); in CheckVaildityCmd()
107 result = ComponentManager::GetInstance()->PermoissionInput(); in Run()
132 OHOS::WuKong::Report::GetInstance()->Finish(); in Run()
Drandom_test_flow.cpp183 Report::GetInstance()->SetSeed(std::to_string(seedArgs_)); in EnvInit()
235 ComponentManager::GetInstance()->BackToPrePage(); in InputScene()
243 auto accPtr = OHOS::Accessibility::AccessibilityUITestAbility::GetInstance(); in SetBlockPage()
293 WuKongUtil::GetInstance()->GetAllowList(allowList); in RunStep()
296 auto elementName = AAFwk::AbilityManagerClient::GetInstance()->GetTopAbility(); in RunStep()
323 result = WuKongUtil::GetInstance()->SetAllowList(optarg); in HandleNormalOption()
353 result = WuKongUtil::GetInstance()->SetBlockList(optarg); in HandleNormalOption()
361 WuKongUtil::GetInstance()->SetOrderFlag(false); in HandleNormalOption()
/test/ostest/wukong/shell_command/src/
Dwukong_shell_command.cpp117 auto cm = ComponentManager::GetInstance(); in RunTestCommand()
139 auto aacPtr = OHOS::Accessibility::AccessibilityUITestAbility::GetInstance(); in RunTestCommand()
182 ErrCode result = WuKongUtil::GetInstance()->GetAllAppInfo(); in ShowAllAppInfo()
190 WuKongUtil::GetInstance()->GetIconPath(iconpath); in ShowAllAppInfo()
191 WuKongUtil::GetInstance()->GetBundleList(bundleList, abilityList); in ShowAllAppInfo()
/test/xts/device_attest/services/devattest_ability/src/
Ddevattest_system_ability_listener.cpp41 …ptr<NetManagerStandard::NetConnClient> netManager = DelayedSingleton<NetConnClient>::GetInstance(); in OnAddSystemAbility()
80 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in AddDevAttestSystemAbilityListener()
100 auto samgrProxy = SystemAbilityManagerClient::GetInstance().GetSystemAbilityManager(); in RemoveDevAttestSystemAbilityListener()
/test/xts/acts/arkui/ace_ets_xcomponent/entry/src/main/cpp/
Dplugin_manager.cpp116 auto context = PluginManager::GetInstance(); in Export()
151 PluginRender* instance = PluginRender::GetInstance(id); in GetRender()
168 PluginManager::GetInstance()->OnCreateNative(env, loop); in NapiOnCreate()
174 PluginManager::GetInstance()->OnShowNative(); in NapiOnShow()
180 PluginManager::GetInstance()->OnHideNative(); in NapiOnHide()
186 PluginManager::GetInstance()->OnDestroyNative(); in NapiOnDestroy()
/test/testfwk/arkxtest/uitest/server/
Dsystem_ui_controller.cpp209 auto ability = AccessibilityUITestAbility::GetInstance(); in MarshallAccessibilityNodeInfo()
276 auto ability = AccessibilityUITestAbility::GetInstance(); in GetUiHierarchy()
330 DisplayManager &displayMgr = DisplayManager::GetInstance(); in InjectTouchEventSequence()
332 InputManager::GetInstance()->SimulateInputEvent(pointerEvent); in InjectTouchEventSequence()
358 InputManager::GetInstance()->SimulateInputEvent(keyEvent); in InjectKeyEventSequence()
370 InputManager::GetInstance()->SimulateInputEvent(keyEvent); in InjectKeyEventSequence()
432 DisplayManager &displayMgr = DisplayManager::GetInstance(); in TakeScreenCap()
498 auto ability = AccessibilityUITestAbility::GetInstance(); in ConnectToSysAbility()
551 auto ability = AccessibilityUITestAbility::GetInstance(); in DisConnectFromSysAbility()
566 auto display = DisplayManager::GetInstance().GetDefaultDisplay(); in SetDisplayRotation()
[all …]
/test/xts/acts/hiviewdfx/hiappeventtest/hiappeventcpptest/
DHiAppEventCPPTest.cpp71 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
106 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
140 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
174 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
210 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
244 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
278 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
312 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
346 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
380 OHOS::HiviewDFX::HiAppEventConfig::GetInstance().SetStorageDir("/data/test/hiappevent/");
[all …]
/test/ostest/wukong/component_event/src/
Dtree_manager.cpp57 res = OHOS::Accessibility::AccessibilityUITestAbility::GetInstance()->GetChildElementInfo( in RecursGetChildElementInfo()
88 if (LOG_LEVEL_TRACK < WuKongLogger::GetInstance()->GetLogLevel()) { in RecursComponent()
198 if (WuKongLogger::GetInstance()->GetLogLevel() == LOG_LEVEL_TRACK) { in UpdateComponentInfo()
208 auto aacPtr = OHOS::Accessibility::AccessibilityUITestAbility::GetInstance(); in UpdateComponentInfo()
359 if (WuKongLogger::GetInstance()->GetLogLevel() == LOG_LEVEL_TRACK) { in SamePage()
421 if (WuKongLogger::GetInstance()->GetLogLevel() == LOG_LEVEL_TRACK) { in RemovePage()
456 if (WuKongLogger::GetInstance()->GetLogLevel() == LOG_LEVEL_TRACK) { in UpdateCurrentPage()
469 if (WuKongLogger::GetInstance()->GetLogLevel() == LOG_LEVEL_TRACK) { in UpdateCurrentPage()
/test/ostest/wukong/report/src/
Dreport.cpp66 std::string destDir = Report::GetInstance()->GetReportExceptionDir(); in ListenCrashDir()
77 WuKongUtil::GetInstance()->CopyFile(targetFile, crashDir, destDir); in ListenCrashDir()
79 Report::GetInstance()->ExceptionRecord(targetFile); in ListenCrashDir()
107 startRunTime_ = WuKongUtil::GetInstance()->GetStartRunTime(); in EnvInit()
114 currentTestDir_ = WuKongUtil::GetInstance()->GetCurrentTestDir(); in EnvInit()
134 ExceptionManager::GetInstance()->StartCatching(); in EnvInit()
155 WuKongUtil::GetInstance()->DeleteFile(targetDir_); in EnvInit()
188 … std::shared_ptr<AbilityManagerClient> abilityManagerClient = AbilityManagerClient::GetInstance(); in SyncInputInfo()
405 std::shared_ptr<WuKongUtil> utilPtr = WuKongUtil::GetInstance(); in HilogFileRecord()
456 ExceptionManager::GetInstance()->StopCatching(); in Finish()

123