/ohos5.0/foundation/ability/ability_runtime/test/unittest/app_mgr_client_test/ |
H A D | app_mgr_client_test.cpp | 100 EXPECT_NE(appMgrClient, nullptr); 120 EXPECT_NE(appMgrClient, nullptr); 139 EXPECT_NE(appMgrClient, nullptr); 176 EXPECT_NE(appMgrClient, nullptr); 195 EXPECT_NE(appMgrClient, nullptr); 214 EXPECT_NE(appMgrClient, nullptr); 242 EXPECT_NE(appMgrClient, nullptr); 259 EXPECT_NE(appMgrClient, nullptr); 280 EXPECT_NE(appMgrClient, nullptr); 297 EXPECT_NE(appMgrClient, nullptr); [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/app_mgr_client_test/ |
H A D | app_mgr_client_test.cpp | 69 EXPECT_NE(appMgrClient, nullptr); 71 auto result = appMgrClient->ConnectAppMgrService(); 94 EXPECT_NE(appMgrClient, nullptr); 96 auto result = appMgrClient->ConnectAppMgrService(); 100 result = appMgrClient->GetConfiguration(config); 117 EXPECT_NE(appMgrClient, nullptr); 129 appMgrClient->UpdateConfiguration(configuration); 149 EXPECT_NE(appMgrClient, nullptr); 165 appMgrClient->UpdateConfiguration(configuration); 187 EXPECT_NE(appMgrClient, nullptr); [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ams_ipc_interface_test/ |
H A D | ams_ipc_appmgr_interface_test.cpp | 70 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 75 appMgrClient->AttachApplication(app); 91 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 96 appMgrClient->ApplicationForegrounded(recordId); 112 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 117 appMgrClient->ApplicationBackgrounded(recordId); 133 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 138 appMgrClient->ApplicationTerminated(recordId); 155 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 159 appMgrClient->ClearUpApplicationData("PROCESS", 0); [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_app_mgr_test/ |
H A D | ams_ipc_app_mgr_module_test.cpp | 78 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 83 appMgrClient->AttachApplication(app); 100 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 105 appMgrClient->ApplicationForegrounded(recordId); 122 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 127 appMgrClient->ApplicationBackgrounded(recordId); 144 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockAppMgr); variable 149 appMgrClient->ApplicationTerminated(recordId); 171 appMgrClient->AbilityCleaned(token); 197 appMgrClient->GetAmsMgr(); [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/updateconfiguration_fuzzer/ |
H A D | updateconfiguration_fuzzer.cpp | 35 AppMgrClient* appMgrClient = new AppMgrClient(); in DoSomethingInterestingWithMyAPI() local 36 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 46 if (appMgrClient->UpdateConfiguration(config) != 0) { in DoSomethingInterestingWithMyAPI() 49 if (appMgrClient) { in DoSomethingInterestingWithMyAPI() 50 delete appMgrClient; in DoSomethingInterestingWithMyAPI() 51 appMgrClient = nullptr; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/updateabilitystate_fuzzer/ |
H A D | updateabilitystate_fuzzer.cpp | 51 AppMgrClient* appMgrClient = new AppMgrClient(); in DoSomethingInterestingWithMyAPI() local 52 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 63 if (appMgrClient->UpdateAbilityState(token, state) != AppMgrResultCode::RESULT_OK) { in DoSomethingInterestingWithMyAPI() 66 if (appMgrClient) { in DoSomethingInterestingWithMyAPI() 67 delete appMgrClient; in DoSomethingInterestingWithMyAPI() 68 appMgrClient = nullptr; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/updateextensionstate_fuzzer/ |
H A D | updateextensionstate_fuzzer.cpp | 51 AppMgrClient* appMgrClient = new AppMgrClient(); in DoSomethingInterestingWithMyAPI() local 52 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 63 if (appMgrClient->UpdateExtensionState(token, state) != AppMgrResultCode::RESULT_OK) { in DoSomethingInterestingWithMyAPI() 66 if (appMgrClient) { in DoSomethingInterestingWithMyAPI() 67 delete appMgrClient; in DoSomethingInterestingWithMyAPI() 68 appMgrClient = nullptr; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/appmgrclientrest_fuzzer/ |
H A D | appmgrclientrest_fuzzer.cpp | 50 AppMgrClient* appMgrClient = new AppMgrClient(); in DoSomethingInterestingWithMyAPI() local 51 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 55 appMgrClient->RegisterAppStateCallback(callback); in DoSomethingInterestingWithMyAPI() 58 appMgrClient->KillApplicationByUid(bundleName, uid); in DoSomethingInterestingWithMyAPI() 60 appMgrClient->RegisterStartSpecifiedAbilityResponse(response); in DoSomethingInterestingWithMyAPI() 61 appMgrClient->GetRemoteObject(); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/moduletest/common/ams/ipc_ams_mgr_test/ |
H A D | ams_ipc_ams_mgr_module_test.cpp | 149 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockMockAppMgr); variable 158 auto amsMgrScheduler_ = appMgrClient->GetAmsMgr(); 188 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockMockAppMgr); variable 197 auto amsMgrScheduler_ = appMgrClient->GetAmsMgr(); 230 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockMockAppMgr); variable 239 auto amsMgrScheduler_ = appMgrClient->GetAmsMgr(); 272 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockMockAppMgr); variable 281 auto amsMgrScheduler_ = appMgrClient->GetAmsMgr(); 312 sptr<IAppMgr> appMgrClient = iface_cast<IAppMgr>(mockMockAppMgr); variable 321 auto amsMgrScheduler_ = appMgrClient->GetAmsMgr(); [all …]
|
/ohos5.0/foundation/ability/form_fwk/services/src/ |
H A D | form_ams_helper.cpp | 177 auto appMgrClient = std::make_unique<AppMgrClient>(); in RegisterConfigurationObserver() local 178 if (appMgrClient == nullptr) { in RegisterConfigurationObserver() 182 appMgrClient->RegisterConfigurationObserver(configurationObserver); in RegisterConfigurationObserver() 193 auto appMgrClient = std::make_unique<AppMgrClient>(); in UnRegisterConfigurationObserver() local 194 if (appMgrClient == nullptr) { in UnRegisterConfigurationObserver() 198 appMgrClient->UnregisterConfigurationObserver(configurationObserver); in UnRegisterConfigurationObserver()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | exception_handler.cpp | 30 auto appMgrClient = std::make_unique<AppExecFwk::AppMgrClient>(); in KillApplicationByUid() local 31 CHECK_NULL_VOID(appMgrClient); in KillApplicationByUid() 32 auto result = appMgrClient->ConnectAppMgrService(); in KillApplicationByUid() 37 auto ret = appMgrClient->KillApplicationSelf(); in KillApplicationByUid()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/loadability_fuzzer/ |
H A D | loadability_fuzzer.cpp | 68 AppMgrClient* appMgrClient = new AppMgrClient(); in DoSomethingInterestingWithMyAPI() local 69 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 96 appMgrClient->LoadAbility(abilityInfo, appInfo, *want, loadParam); in DoSomethingInterestingWithMyAPI() 100 delete appMgrClient; in DoSomethingInterestingWithMyAPI() 101 appMgrClient = nullptr; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/ |
H A D | bundle_resource_register.cpp | 38 auto appMgrClient = std::make_unique<AppMgrClient>(); in RegisterConfigurationObserver() local 39 if (appMgrClient == nullptr) { in RegisterConfigurationObserver() 43 appMgrClient->RegisterConfigurationObserver(observer); in RegisterConfigurationObserver()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/killapplicationself_fuzzer/ |
H A D | killapplicationself_fuzzer.cpp | 36 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 37 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 41 if (appMgrClient->KillApplicationSelf() != AppMgrResultCode::RESULT_OK) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/prestartnwebspawnprocess_fuzzer/ |
H A D | prestartnwebspawnprocess_fuzzer.cpp | 38 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 39 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 43 if (appMgrClient->PreStartNWebSpawnProcess() != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/killapplication_fuzzer/ |
H A D | killapplication_fuzzer.cpp | 36 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 38 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 44 if (appMgrClient->KillApplication(bundleName) != AppMgrResultCode::RESULT_OK) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/notifymemorylevel_fuzzer/ |
H A D | notifymemorylevel_fuzzer.cpp | 36 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 37 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 41 if (appMgrClient->NotifyMemoryLevel(level) != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/registerconfigurationobserver_fuzzer/ |
H A D | registerconfigurationobserver_fuzzer.cpp | 38 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 39 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 45 if (appMgrClient->RegisterConfigurationObserver(observer) != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/startupresidentprocess_fuzzer/ |
H A D | startupresidentprocess_fuzzer.cpp | 38 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 39 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 44 appMgrClient->StartupResidentProcess(bundleInfos); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/attachrenderprocess_fuzzer/ |
H A D | attachrenderprocess_fuzzer.cpp | 36 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 37 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 43 appMgrClient->AttachRenderProcess(renderScheduler); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/getconfiguration_fuzzer/ |
H A D | getconfiguration_fuzzer.cpp | 38 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 39 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 48 if (appMgrClient->GetConfiguration(config) != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/getapplicationinfobyprocessid_fuzzer/ |
H A D | getapplicationinfobyprocessid_fuzzer.cpp | 42 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 43 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 51 if (appMgrClient->GetApplicationInfoByProcessID(pid, application, debug) != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/getprocessrunninginfosbyuserid_fuzzer/ |
H A D | getprocessrunninginfosbyuserid_fuzzer.cpp | 41 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 42 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 49 if (appMgrClient->GetProcessRunningInfosByUserId(infos, userId) != 0) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/killprocessesbyuserid_fuzzer/ |
H A D | killprocessesbyuserid_fuzzer.cpp | 41 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 42 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 48 if (appMgrClient->KillProcessesByUserId(userId) != AppMgrResultCode::RESULT_OK) { in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/ability/ability_runtime/test/fuzztest/startrenderprocess_fuzzer/ |
H A D | startrenderprocess_fuzzer.cpp | 38 std::shared_ptr<AppMgrClient> appMgrClient = std::make_shared<AppMgrClient>(); in DoSomethingInterestingWithMyAPI() local 39 if (!appMgrClient) { in DoSomethingInterestingWithMyAPI() 49 if (appMgrClient->StartRenderProcess(renderParam, ipcFd, sharedFd, crashFd, in DoSomethingInterestingWithMyAPI()
|