/base/update/updateservice/frameworks/js/napi/client/ |
D | update_session.h | 44 SessionType GetType() const override in GetType() 72 return sessionParams_.type == SessionType::SESSION_CHECK_VERSION; in IsAsyncCompleteWork() 92 SessionType type; in GetSessionFuncParameter() 95 { SessionType::SESSION_CHECK_VERSION, "checkNewVersion" }, in GetSessionFuncParameter() 96 { SessionType::SESSION_DOWNLOAD, "download" }, in GetSessionFuncParameter() 97 { SessionType::SESSION_PAUSE_DOWNLOAD, "pauseDownload" }, in GetSessionFuncParameter() 98 { SessionType::SESSION_RESUME_DOWNLOAD, "resumeDownload" }, in GetSessionFuncParameter() 99 { SessionType::SESSION_UPGRADE, "upgrade" }, in GetSessionFuncParameter() 100 { SessionType::SESSION_SET_POLICY, "setUpgradePolicy" }, in GetSessionFuncParameter() 101 { SessionType::SESSION_GET_POLICY, "getUpgradePolicy" }, in GetSessionFuncParameter() [all …]
|
D | update_client.cpp | 106 …SessionParams sessionParams(SessionType::SESSION_CHECK_VERSION, CALLBACK_POSITION_ONE, false, true… in CheckNewVersion() 107 …napi_value ret = StartSession(env, info, sessionParams, [=](SessionType type, void *context) -> in… in CheckNewVersion() 121 SessionParams sessionParams(SessionType::SESSION_CANCEL_UPGRADE, CALLBACK_POSITION_ONE, true); in CancelUpgrade() 129 [=](SessionType type, void *context) -> int { in CancelUpgrade() 189 SessionParams sessionParams(SessionType::SESSION_DOWNLOAD, CALLBACK_POSITION_THREE, true); in Download() 190 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in Download() 214 SessionParams sessionParams(SessionType::SESSION_PAUSE_DOWNLOAD, CALLBACK_POSITION_THREE, true); in PauseDownload() 215 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in PauseDownload() 239 … SessionParams sessionParams(SessionType::SESSION_RESUME_DOWNLOAD, CALLBACK_POSITION_THREE, true); in ResumeDownload() 240 …napi_value retValue = StartSession(env, info, sessionParams, [=](SessionType type, void *context) … in ResumeDownload() [all …]
|
D | iupdate_session.h | 28 using DoWorkFunction = std::function<int(SessionType type, void *context)>; 30 virtual SessionType GetType() const = 0;
|
D | restorer.cpp | 40 SessionParams sessionParams(SessionType::SESSION_FACTORY_RESET, CALLBACK_POSITION_ONE, true); in FactoryReset() 42 [](SessionType type, void *context) -> int { in FactoryReset()
|
D | local_updater.cpp | 104 SessionParams sessionParams(SessionType::SESSION_VERIFY_PACKAGE, CALLBACK_POSITION_THREE, true); in VerifyUpgradePackage() 106 [upgradeFile, certsFile](SessionType type, void *context) -> int { in VerifyUpgradePackage() 130 … SessionParams sessionParams(SessionType::SESSION_APPLY_NEW_VERSION, CALLBACK_POSITION_TWO, true); in ApplyNewVersion() 132 [upgradeFiles](SessionType type, void *context) -> int { in ApplyNewVersion()
|
D | update_client.h | 59 void GetUpdateResult(SessionType type, UpdateResult &result) override;
|
/base/update/updateservice/frameworks/js/napi/base/include/ |
D | client_helper.h | 39 enum class SessionType { enum 66 SessionType type; 71 SessionParams(SessionType typeValue = SessionType::SESSION_MAX, size_t callbackPosition = 1, 79 SessionType type; 96 if (type == SessionType::SESSION_DOWNLOAD || type == SessionType::SESSION_UPGRADE) { in Release() 99 } else if (type == SessionType::SESSION_CHECK_VERSION) { in Release() 102 } else if (type == SessionType::SESSION_GET_NEW_VERSION) { in Release() 105 } else if (type == SessionType::SESSION_GET_NEW_VERSION_DESCRIPTION || in Release() 106 type == SessionType::SESSION_GET_CUR_VERSION_DESCRIPTION) { in Release() 109 } 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/base/src/ |
D | iupdater.cpp | 40 SessionParams sessionParams(SessionType::SESSION_SUBSCRIBE, CALLBACK_POSITION_TWO); in On() 46 [](SessionType type, void *context) -> int { in On() 85 void IUpdater::GetUpdateResult(SessionType type, UpdateResult &result) in GetUpdateResult() 116 SessionParams sessionParams(SessionType::SESSION_REPLY_PARAM_ERROR, callbackPosition, true); in StartParamErrorSession() 117 return StartSession(env, info, sessionParams, [](SessionType type, void *context) -> int { in StartParamErrorSession()
|
D | session_manager.cpp | 116 if (listener->GetType() != SessionType::SESSION_SUBSCRIBE || in ProcessUnsubscribe() 143 if (iter->second->GetType() != SessionType::SESSION_SUBSCRIBE) { in Unsubscribe() 178 if (listener->GetType() != SessionType::SESSION_SUBSCRIBE) { in FindSessionByHandle() 197 if (iter.second->GetType() != SessionType::SESSION_SUBSCRIBE) { in FindSessionByHandle() 225 if (iter.second->GetType() != SessionType::SESSION_SUBSCRIBE) { in PublishToJS()
|
D | client_helper.cpp | 163 PARAM_CHECK(result.type == SessionType::SESSION_GET_CUR_VERSION, in BuildCurrentVersionInfo() 243 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION, in BuildNewVersionInfo() 261 PARAM_CHECK(result.type == SessionType::SESSION_GET_NEW_VERSION_DESCRIPTION || in BuildVersionDescriptionInfo() 262 result.type == SessionType::SESSION_GET_CUR_VERSION_DESCRIPTION, in BuildVersionDescriptionInfo() 277 PARAM_CHECK(result.type == SessionType::SESSION_CHECK_VERSION, in BuildCheckResult() 299 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
|
/base/msdp/device_status/services/interaction/coordination/src/ |
D | coordination_softbus_adapter.cpp | 41 .dataType = SessionType::TYPE_BYTES,
|