/base/update/updateservice/frameworks/js/napi/base/include/ |
D | client_helper.h | 36 enum class SessionType { enum 63 SessionType type; 68 SessionParams(SessionType typeValue = SessionType::SESSION_MAX, size_t callbackPosition = 1, 76 SessionType type; 93 if (type == SessionType::SESSION_DOWNLOAD || type == SessionType::SESSION_UPGRADE) { in Release() 96 } else if (type == SessionType::SESSION_CHECK_VERSION) { in Release() 99 } else if (type == SessionType::SESSION_GET_NEW_VERSION) { in Release() 102 } else if (type == SessionType::SESSION_GET_NEW_VERSION_DESCRIPTION || in Release() 103 type == SessionType::SESSION_GET_CUR_VERSION_DESCRIPTION) { in Release() 106 } else if (type == SessionType::SESSION_GET_CUR_VERSION) { in Release() [all …]
|
D | iupdater.h | 35 virtual void GetUpdateResult(SessionType type, UpdateResult &result);
|
/base/update/updateservice/frameworks/js/napi/client/ |
D | update_client.cpp | 96 …SessionParams sessionParams(SessionType::SESSION_CHECK_VERSION, CALLBACK_POSITION_ONE, false, true… in CheckNewVersion() 97 …napi_value ret = StartSession(env, info, sessionParams, [=](SessionType type, void *context) -> in… in CheckNewVersion() 111 SessionParams sessionParams(SessionType::SESSION_CANCEL_UPGRADE, CALLBACK_POSITION_ONE, true); in CancelUpgrade() 119 [=](SessionType type, void *context) -> int { in CancelUpgrade() 175 SessionParams sessionParams(SessionType::SESSION_DOWNLOAD, CALLBACK_POSITION_THREE, true); in Download() 176 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in Download() 203 SessionParams sessionParams(SessionType::SESSION_PAUSE_DOWNLOAD, CALLBACK_POSITION_THREE, true); in PauseDownload() 204 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in PauseDownload() 231 … SessionParams sessionParams(SessionType::SESSION_RESUME_DOWNLOAD, CALLBACK_POSITION_THREE, true); in ResumeDownload() 232 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in ResumeDownload() [all …]
|
D | iupdate_session.h | 26 using DoWorkFunction = std::function<int(SessionType type, void *context)>; 28 virtual SessionType GetType() const = 0;
|
D | restorer.cpp | 39 SessionParams sessionParams(SessionType::SESSION_FACTORY_RESET, CALLBACK_POSITION_ONE, true); in FactoryReset() 41 [](SessionType type, void *context) -> int { in FactoryReset()
|
D | local_updater.cpp | 101 SessionParams sessionParams(SessionType::SESSION_VERIFY_PACKAGE, CALLBACK_POSITION_THREE, true); in VerifyUpgradePackage() 103 [upgradeFile, certsFile](SessionType type, void *context) -> int { in VerifyUpgradePackage() 127 … SessionParams sessionParams(SessionType::SESSION_APPLY_NEW_VERSION, CALLBACK_POSITION_TWO, true); in ApplyNewVersion() 129 [upgradeFiles](SessionType type, void *context) -> int { in ApplyNewVersion()
|
D | update_client.h | 59 void GetUpdateResult(SessionType type, UpdateResult &result) override;
|
D | update_session.h | 43 SessionType GetType() const override in GetType()
|
/base/update/updateservice/test/unittest/update_client/ |
D | client_unittest.cpp | 89 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_UPDATER); in TestGetUpdate() 100 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_UPDATER); in TestGetUpdaterForOther() 111 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_UPDATER); in TestGetUpdaterFromOther() 122 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_CHECK_VERSION); in TestCheckNewVersion() 153 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_DOWNLOAD); in TestDownloadVersion() 190 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_UPGRADE); in TestUpgradeVersion() 227 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_SET_POLICY); in TestSetUpdatePolicy() 246 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_POLICY); in TestGetUpdatePolicy() 264 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_NEW_VERSION); in TestGetNewVersionInfo() 281 g_testEnv.testStage = static_cast<int32_t>(SessionType::SESSION_GET_STATUS); in TestGetUpgradeStatus() [all …]
|
D | client_stub.cpp | 414 case static_cast<int32_t>(SessionType::SESSION_GET_UPDATER): { in napi_get_cb_info() 425 case static_cast<int32_t>(SessionType::SESSION_VERIFY_PACKAGE): { in napi_get_cb_info() 433 case static_cast<int32_t>(SessionType::SESSION_SET_POLICY): { in napi_get_cb_info() 441 case static_cast<int32_t>(SessionType::SESSION_SUBSCRIBE): in napi_get_cb_info() 442 case static_cast<int32_t>(SessionType::SESSION_UNSUBSCRIBE): { in napi_get_cb_info()
|
/base/update/updateservice/frameworks/js/napi/base/src/ |
D | iupdater.cpp | 33 SessionParams sessionParams(SessionType::SESSION_SUBSCRIBE, CALLBACK_POSITION_TWO); in On() 39 [](SessionType type, void *context) -> int { in On() 70 void IUpdater::GetUpdateResult(SessionType type, UpdateResult &result) in GetUpdateResult() 101 SessionParams sessionParams(SessionType::SESSION_REPLY_PARAM_ERROR, callbackPosition, true); in StartParamErrorSession() 102 return StartSession(env, info, sessionParams, [](SessionType type, void *context) -> int { in StartParamErrorSession()
|
D | session_manager.cpp | 128 if (listener->GetType() != SessionType::SESSION_SUBSCRIBE || in ProcessUnsubscribe() 155 if (iter->second->GetType() != SessionType::SESSION_SUBSCRIBE) { in Unsubscribe() 190 if (listener->GetType() != SessionType::SESSION_SUBSCRIBE) { in FindSessionByHandle() 209 if (iter.second->GetType() != SessionType::SESSION_SUBSCRIBE) { in FindSessionByHandle() 247 if (updateSession->GetType() == SessionType::SESSION_SUBSCRIBE) { in PublishToJS() 284 if (iter.second->GetType() != SessionType::SESSION_SUBSCRIBE) { in PublishToJS()
|
D | client_helper.cpp | 187 PARAM_CHECK(result.type == SessionType::SESSION_GET_CUR_VERSION, in BuildCurrentVersionInfo() 267 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION, in BuildNewVersionInfo() 286 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION_DESCRIPTION || in BuildVersionDescriptionInfo() 287 result.type == SessionType::SESSION_GET_CUR_VERSION_DESCRIPTION, in BuildVersionDescriptionInfo() 302 PARAM_CHECK(result.type == SessionType::SESSION_CHECK_VERSION, in BuildCheckResultEx() 325 PARAM_CHECK(result.type == SessionType::SESSION_GET_POLICY, in BuildUpgradePolicy()
|
/base/security/access_token/services/tokensyncmanager/test/mock/include/ |
D | session.h | 63 } SessionType; typedef
|