Home
last modified time | relevance | path

Searched refs:autoUpgradePeriods (Results 1 – 6 of 6) sorted by relevance

/base/update/updateservice/test/fuzztest/common/
Dfuzztest_helper.cpp148 upgradePolicy.autoUpgradePeriods[0].start = GetUInt(); in BuildUpgradePolicy()
149 upgradePolicy.autoUpgradePeriods[0].end = GetUInt(); in BuildUpgradePolicy()
150 upgradePolicy.autoUpgradePeriods[1].start = GetUInt(); in BuildUpgradePolicy()
151 upgradePolicy.autoUpgradePeriods[1].end = GetUInt(); in BuildUpgradePolicy()
/base/update/updateservice/services/engine/src/
Dmessage_parcel_helper.cpp268 size_t arraySize = COUNT_OF(policy.autoUpgradePeriods); in ReadUpgradePolicy()
274 policy.autoUpgradePeriods[i].start = reply.ReadUint32(); in ReadUpgradePolicy()
275 policy.autoUpgradePeriods[i].end = reply.ReadUint32(); in ReadUpgradePolicy()
284 int32_t size = static_cast<int32_t>(COUNT_OF(policy.autoUpgradePeriods)); in WriteUpgradePolicy()
287 data.WriteUint32(policy.autoUpgradePeriods[i].start); in WriteUpgradePolicy()
288 data.WriteUint32(policy.autoUpgradePeriods[i].end); in WriteUpgradePolicy()
Dupdate_service_impl_firmware.cpp240 policy.downloadStrategy, policy.autoUpgradeStrategy, policy.autoUpgradePeriods[0].start, in SetUpgradePolicy()
241 policy.autoUpgradePeriods[1].end); in SetUpgradePolicy()
260 policy.autoUpgradePeriods[0].start = in GetUpgradePolicy()
262 policy.autoUpgradePeriods[0].end = in GetUpgradePolicy()
/base/update/updateservice/frameworks/js/napi/base/src/
Dclient_helper.cpp309 napi_value autoUpgradePeriods; in BuildUpgradePolicy() local
310 size_t count = COUNT_OF(upgradePolicy.autoUpgradePeriods); in BuildUpgradePolicy()
311 status = napi_create_array_with_length(env, count, &autoUpgradePeriods); in BuildUpgradePolicy()
317 NapiUtil::SetInt32(env, result, "start", upgradePolicy.autoUpgradePeriods[i].start); in BuildUpgradePolicy()
318 NapiUtil::SetInt32(env, result, "end", upgradePolicy.autoUpgradePeriods[i].end); in BuildUpgradePolicy()
319 napi_set_element(env, autoUpgradePeriods, i, result); in BuildUpgradePolicy()
321 status = napi_set_named_property(env, obj, "autoUpgradePeriods", autoUpgradePeriods); in BuildUpgradePolicy()
397 if (i >= COUNT_OF(upgradePolicy.autoUpgradePeriods)) { in GetUpgradePolicyFromArg()
402 napi_get_value_uint32(env, element, &upgradePolicy.autoUpgradePeriods[i].start); in GetUpgradePolicyFromArg()
403 napi_get_value_uint32(env, element, &upgradePolicy.autoUpgradePeriods[i].end); in GetUpgradePolicyFromArg()
/base/update/updateservice/interfaces/kits/js/declaration/
D@ohos.update.d.ts1172 autoUpgradePeriods: Array<UpgradePeriod>; property
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h462 UpgradePeriod autoUpgradePeriods[2]; member