Home
last modified time | relevance | path

Searched refs:appMgrClient (Results 1 – 25 of 53) sorted by relevance

123

/ohos5.0/foundation/ability/ability_runtime/test/unittest/app_mgr_client_test/
H A Dapp_mgr_client_test.cpp100 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 Dapp_mgr_client_test.cpp69 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 Dams_ipc_appmgr_interface_test.cpp70 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 Dams_ipc_app_mgr_module_test.cpp78 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 Dupdateconfiguration_fuzzer.cpp35 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 Dupdateabilitystate_fuzzer.cpp51 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 Dupdateextensionstate_fuzzer.cpp51 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 Dappmgrclientrest_fuzzer.cpp50 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 Dams_ipc_ams_mgr_module_test.cpp149 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 Dform_ams_helper.cpp177 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 Dexception_handler.cpp30 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 Dloadability_fuzzer.cpp68 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 Dbundle_resource_register.cpp38 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 Dkillapplicationself_fuzzer.cpp36 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 Dprestartnwebspawnprocess_fuzzer.cpp38 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 Dkillapplication_fuzzer.cpp36 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 Dnotifymemorylevel_fuzzer.cpp36 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 Dregisterconfigurationobserver_fuzzer.cpp38 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 Dstartupresidentprocess_fuzzer.cpp38 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 Dattachrenderprocess_fuzzer.cpp36 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 Dgetconfiguration_fuzzer.cpp38 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 Dgetapplicationinfobyprocessid_fuzzer.cpp42 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 Dgetprocessrunninginfosbyuserid_fuzzer.cpp41 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 Dkillprocessesbyuserid_fuzzer.cpp41 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 Dstartrenderprocess_fuzzer.cpp38 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()

123