Searched refs:UpdateSession (Results 1 – 8 of 8) sorted by relevance
/base/update/updateservice/test/unittest/update_client/ |
D | client_unittest.cpp | 128 UpdateSession *sess = TestGetUpdateSession(); in TestCheckNewVersion() 132 UpdateSession::ExecuteWork((napi_env)&g_testEnv, reinterpret_cast<void*>(sess)); in TestCheckNewVersion() 141 …UpdateSession::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() 182 …UpdateSession::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() 219 …UpdateSession::CompleteWork((napi_env)&g_testEnv, napi_status::napi_ok, reinterpret_cast<void*>(se… in TestUpgradeVersion() 234 UpdateSession *sess = TestGetUpdateSession(); in TestSetUpdatePolicy() [all …]
|
D | client_stub.h | 61 updateClient::UpdateSession *TestGetUpdateSession();
|
D | client_stub.cpp | 95 UpdateSession *TestGetUpdateSession() in TestGetUpdateSession() 392 UpdateSession *sess = static_cast<UpdateSession *>(data); in napi_create_async_work()
|
/base/update/updateservice/frameworks/js/napi/client/ |
D | update_session.h | 30 class UpdateSession : public IUpdateSession { 32 … UpdateSession(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
|
D | update_session.cpp | 31 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 …]
|
D | update_client.h | 67 UpdateSession *GetUpdateSession(uint32_t sessId) in GetUpdateSession()
|
D | update_client.cpp | 112 std::shared_ptr<UpdateSession> sess = nullptr; in CancelUpgrade()
|
/base/update/updateservice/frameworks/js/napi/base/src/ |
D | iupdater.cpp | 34 …std::shared_ptr<UpdateSession> sess = std::make_shared<UpdateListener>(this, sessionParams, argc, … in On()
|