Home
last modified time | relevance | path

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

/base/update/updateservice/test/unittest/update_client/
Dclient_unittest.cpp128 UpdateSession *sess = TestGetUpdateSession(); in TestCheckNewVersion()
132 UpdateSession::ExecuteWork((napi_env)&g_testEnv, reinterpret_cast<void*>(sess)); in TestCheckNewVersion()
141UpdateSession::CompleteWork((napi_env)&g_testEnv, napi_status::napi_ok, reinterpret_cast<void*>(se… in TestCheckNewVersion()
159 UpdateSession *sess = TestGetUpdateSession(); in TestDownloadVersion()
161 UpdateSession::ExecuteWork((napi_env)&g_testEnv, reinterpret_cast<void*>(sess)); in TestDownloadVersion()
182UpdateSession::CompleteWork((napi_env)&g_testEnv, napi_status::napi_ok, reinterpret_cast<void*>(se… in TestDownloadVersion()
196 UpdateSession *sess = TestGetUpdateSession(); in TestUpgradeVersion()
198 UpdateSession::ExecuteWork((napi_env)&g_testEnv, reinterpret_cast<void*>(sess)); in TestUpgradeVersion()
219UpdateSession::CompleteWork((napi_env)&g_testEnv, napi_status::napi_ok, reinterpret_cast<void*>(se… in TestUpgradeVersion()
234 UpdateSession *sess = TestGetUpdateSession(); in TestSetUpdatePolicy()
[all …]
Dclient_stub.h61 updateClient::UpdateSession *TestGetUpdateSession();
Dclient_stub.cpp95 UpdateSession *TestGetUpdateSession() in TestGetUpdateSession()
392 UpdateSession *sess = static_cast<UpdateSession *>(data); in napi_create_async_work()
/base/update/updateservice/frameworks/js/napi/client/
Dupdate_session.h30 class UpdateSession : public IUpdateSession {
32UpdateSession(IUpdater *client, SessionParams &sessionParams, size_t argc, size_t callbackNumber);
34 virtual ~UpdateSession() {} in ~UpdateSession()
127 class UpdateAsyncSession : public UpdateSession {
130 : UpdateSession(client, sessionParams, argc, callbackNumber) in UpdateSession() function
160 class UpdatePromiseSession : public UpdateSession {
163 : UpdateSession(client, sessionParams, argc, callbackNumber) {} in UpdateSession() function
176 class UpdateListener : public UpdateSession {
180 : UpdateSession(client, sessionParams, argc, callbackNumber), isOnce_(isOnce) {} in UpdateSession() function
Dupdate_session.cpp31 UpdateSession::UpdateSession(IUpdater *client, SessionParams &sessionParams, size_t argc, size_t ca… in UpdateSession() function in OHOS::UpdateEngine::UpdateSession
35 napi_value UpdateSession::CreateWorkerName(napi_env env) const in CreateWorkerName()
44 napi_value UpdateSession::StartWork(napi_env env, const napi_value *args, DoWorkFunction worker, vo… in StartWork()
52 void UpdateSession::ExecuteWork(napi_env env) in ExecuteWork()
73 void UpdateSession::CompleteWork(napi_env env, napi_status status, void *data) in CompleteWork()
75 auto sess = reinterpret_cast<UpdateSession*>(data); in CompleteWork()
87 void UpdateSession::ExecuteWork(napi_env env, void *data) in ExecuteWork()
89 auto sess = reinterpret_cast<UpdateSession*>(data); in ExecuteWork()
121 …env, nullptr, workName, UpdateSession::ExecuteWork, UpdateSession::CompleteWork, this, &(worker_)); in StartWork()
127 UpdateSession::ExecuteWork, in StartWork()
[all …]
Dupdate_client.h67 UpdateSession *GetUpdateSession(uint32_t sessId) in GetUpdateSession()
Dupdate_client.cpp112 std::shared_ptr<UpdateSession> sess = nullptr; in CancelUpgrade()
/base/update/updateservice/frameworks/js/napi/base/src/
Diupdater.cpp34 …std::shared_ptr<UpdateSession> sess = std::make_shared<UpdateListener>(this, sessionParams, argc, … in On()