Home
last modified time | relevance | path

Searched refs:cycle (Results 1 - 25 of 29) sorted by relevance

12

/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/
H A Dbus_center_heartbeat_sdk_test.cpp86 GearMode mode1 = { .cycle = MID_FREQ_CYCLE, .duration = DEFAULT_DURATION, .wakeupFlag = false }; in HWTEST_F()
87 GearMode mode2 = { .cycle = HIGH_FREQ_CYCLE, .duration = DEFAULT_DURATION, .wakeupFlag = true }; in HWTEST_F()
88 GearMode mode3 = { .cycle = LOW_FREQ_CYCLE, .duration = LONG_DURATION, .wakeupFlag = true }; in HWTEST_F()
89 GearMode mode4 = { .cycle = HIGH_FREQ_CYCLE, .duration = NORMAL_DURATION, .wakeupFlag = true }; in HWTEST_F()
90 GearMode mode5 = { .cycle = MID_FREQ_CYCLE, .duration = LONG_DURATION, .wakeupFlag = false }; in HWTEST_F()
H A Dbus_center_server_test.cpp172 .cycle = MID_FREQ_CYCLE, in HWTEST_F()
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/shiftlnngear_fuzzer/
H A Dshiftlnngear_fuzzer.cpp41 g_mode.cycle = HIGH_FREQ_CYCLE; in GenRanDiscInfo()
44 g_mode.cycle = MID_FREQ_CYCLE; in GenRanDiscInfo()
47 g_mode.cycle = LOW_FREQ_CYCLE; in GenRanDiscInfo()
/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/src/
H A Dhb_ctrl_deps_mock.cpp90 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) in AuthSendKeepaliveOption() argument
92 return HeartBeatCtrlDepsInterface()->AuthSendKeepaliveOption(uuid, cycle); in AuthSendKeepaliveOption()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Didle_time.cpp83 int64_t cycle = elapsedTime / period ; in EventTask() local
85 AAFwkTag::APPKIT, "EventTask idleTime %{public}" PRId64 ", cycle is %{public}" PRId64, idleTime, cycle); in EventTask()
86 if (idleTime > 0 && cycle < MAX_PERIOD_COUNT) { in EventTask()
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/mock/
H A Dauth_mock.cpp88 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) in AuthSendKeepaliveOption() argument
90 return GetAuthInterface()->AuthSendKeepaliveOption(uuid, cycle); in AuthSendKeepaliveOption()
H A Dauth_mock.h40 virtual int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) = 0;
/foundation/communication/dsoftbus/tests/sdk/bus_center/demo/bus_center/
H A Dshift_lnn_gear_demo.c35 .cycle = MID_FREQ_CYCLE, in main()
/foundation/resourceschedule/work_scheduler/frameworks/include/
H A Dwork_info.h88 * @brief Request repeat cycle.
91 * @param cycle The cycle.
93 void RequestRepeatCycle(uint32_t timeInterval, int32_t cycle);
95 * @brief Request repeat cycle.
101 * @brief Request base time and repeat cycle.
104 * @param cycle The cycle.
106 void RequestBaseTimeAndCycle(time_t baseTime, int32_t cycle);
221 * @brief Get the count of cycle
[all...]
/foundation/communication/netmanager_base/frameworks/native/netpolicyclient/src/
H A Dnet_quota_policy.cpp199 std::string cycle = quotapolicy.periodDuration.substr(0, 1); in GetPeriodStart() local
202 if (cycle == PERIOD_DAY) { in GetPeriodStart()
206 } else if (cycle == PERIOD_YEAR) { in GetPeriodStart()
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_traffic.cpp215 NetmanagerHiTrace::NetmanagerStartSyncTrace("Get the start time of the metering cycle start"); in UpdateQuotaNotify()
217 NetmanagerHiTrace::NetmanagerFinishSyncTrace("Get the start time of the metering cycle end"); in UpdateQuotaNotify()
440 std::string cycle = periodDuration.substr(0, 1); in IsValidPeriodDuration() local
444 if (cycle == PERIOD_DAY) { in IsValidPeriodDuration()
450 if (cycle == PERIOD_MONTH) { in IsValidPeriodDuration()
456 if (cycle == PERIOD_YEAR) { in IsValidPeriodDuration()
461 NETMGR_LOG_E("Invalid periodDuration start [%{public}d],Invalid periodDuration cycle [%{public}s]", start, in IsValidPeriodDuration()
462 cycle.c_str()); in IsValidPeriodDuration()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_tcp_connection.c697 static int32_t GetTcpKeepaliveOptionByCycle(ModeCycle cycle, TcpKeepaliveOption *tcpKeepaliveOption) in GetTcpKeepaliveOptionByCycle() argument
703 switch (cycle) { in GetTcpKeepaliveOptionByCycle()
721 AUTH_LOGE(AUTH_CONN, "no match cycle, cycle=%{public}d", cycle); in GetTcpKeepaliveOptionByCycle()
724 tcpKeepaliveOption->keepaliveIdle = (int32_t)cycle; in GetTcpKeepaliveOptionByCycle()
729 int32_t AuthSetTcpKeepaliveOption(int32_t fd, ModeCycle cycle) in AuthSetTcpKeepaliveOption() argument
731 if (fd <= 0 || cycle < HIGH_FREQ_CYCLE || cycle > DEFAULT_FREQ_CYCLE) { in AuthSetTcpKeepaliveOption()
737 if (GetTcpKeepaliveOptionByCycle(cycle, in AuthSetTcpKeepaliveOption()
[all...]
H A Dauth_session_message.c382 static char *PackKeepaliveMessage(const char *uuid, ModeCycle cycle) in PackKeepaliveMessage() argument
390 !JSON_AddInt32ToObject(obj, TIME, cycle)) { in PackKeepaliveMessage()
391 AUTH_LOGE(AUTH_FSM, "add uuid or cycle fail"); in PackKeepaliveMessage()
437 if (JSON_GetInt32FromOject(json, TIME, (int32_t *)&messageParse->cycle)) { in IsDeviceMessagePacket()
438 AUTH_LOGI(AUTH_FSM, "parse keepalive cycle success, cycle=%{public}d", messageParse->cycle); in IsDeviceMessagePacket()
550 msg = PackKeepaliveMessage(auth->uuid, messageParse->cycle); in PostDeviceMessage()
H A Dauth_manager.c1246 static int32_t AuthSetTcpKeepaliveByConnInfo(const AuthConnInfo *connInfo, ModeCycle cycle) in AuthSetTcpKeepaliveByConnInfo() argument
1261 ret = AuthSetTcpKeepaliveOption(GetFd(auth[i]->connId[AUTH_LINK_TYPE_WIFI]), cycle); in AuthSetTcpKeepaliveByConnInfo()
1282 if (AuthSetTcpKeepaliveByConnInfo(connInfo, messageParse.cycle) != SOFTBUS_OK) { in HandleDeviceInfoData()
1586 static int32_t PostDeviceMessageByUuid(const char *uuid, int32_t messageType, ModeCycle cycle) in PostDeviceMessageByUuid() argument
1593 DeviceMessageParse messageParse = { messageType, cycle }; in PostDeviceMessageByUuid()
1612 static int32_t SetLocalTcpKeepalive(const char *uuid, ModeCycle cycle) in SetLocalTcpKeepalive() argument
1622 ret = AuthSetTcpKeepaliveByConnInfo(&connInfo, cycle); in SetLocalTcpKeepalive()
1642 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) in AuthSendKeepaliveOption() argument
1644 if (uuid == NULL || uuid[0] == '\0' || cycle < HIGH_FREQ_CYCLE || cycle > DEFAULT_FREQ_CYCL in AuthSendKeepaliveOption()
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/
H A Dhb_ctrl_deps_mock.h42 virtual int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) = 0;
/foundation/communication/dsoftbus/core/authentication/include/
H A Dauth_tcp_connection.h61 int32_t AuthSetTcpKeepaliveOption(int32_t fd, ModeCycle cycle);
H A Dauth_manager.h61 ModeCycle cycle; member
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/
H A Dlnn_heartbeat_strategy.c105 "DumpGearModeSettingList count=%{public}d, callerId=%{public}s, cycle=%{public}d, " in DumpGearModeSettingList()
107 dumpCount, info->callerId, info->mode.cycle, info->mode.duration, info->mode.wakeupFlag, in DumpGearModeSettingList()
138 if (mode->cycle != 0 && mode->cycle < info->mode.cycle) { in GetGearModeFromSettingList()
141 if (mode->cycle == info->mode.cycle && !info->mode.wakeupFlag) { in GetGearModeFromSettingList()
155 "HB get Gearmode from list, id=%{public}s, cycle=%{public}d, duration=%{public}d, wakeupFlag=%{public}d", in GetGearModeFromSettingList()
156 tmpCallerId, mode->cycle, mode->duration, mode->wakeupFlag); in GetGearModeFromSettingList()
699 uint64_t delayMillis = (uint64_t)mode.cycle * HB_TIME_FACTO in AdjustablePeriodSendStrategy()
[all...]
H A Dlnn_heartbeat_ctrl.c991 "shift lnn gear mode, callerId=%{public}s, networkId=%{public}s, cycle=%{public}d, " in LnnShiftLNNGear()
993 callerId, targetNetworkId != NULL ? AnonymizeWrapper(anonyNetworkId) : "", mode->cycle, mode->duration, in LnnShiftLNNGear()
1005 if (AuthSendKeepaliveOption(uuid, mode->cycle) != SOFTBUS_OK) { in LnnShiftLNNGear()
1036 "shift lnn gear mode, callerId=%{public}s, cycle=%{public}d, duration=%{public}d, wakeupFlag=%{public}d", in LnnShiftLNNGearWithoutPkgName()
1037 callerId, mode->cycle, mode->duration, mode->wakeupFlag); in LnnShiftLNNGearWithoutPkgName()
/foundation/arkui/ace_engine/test/unittest/core/pipeline/
H A Dpipeline_context_test_ng.h73 static void CreateCycleDirtyNode(int cycle, bool& flagUpdate);
H A Dpipeline_context_test_ng.cpp96 void PipelineContextTestNg::CreateCycleDirtyNode(int cycle, bool& flagUpdate) in CreateCycleDirtyNode() argument
98 if (cycle <= 0) { in CreateCycleDirtyNode()
101 cycle -= 1; in CreateCycleDirtyNode()
102 auto customNodeTemp = CustomNode::CreateCustomNode(customNodeId_ + cycle + 100, TEST_TAG); in CreateCycleDirtyNode()
103 customNodeTemp->SetUpdateFunction([cycle, &flagUpdate]() { in CreateCycleDirtyNode()
104 PipelineContextTestNg::CreateCycleDirtyNode(cycle, flagUpdate); in CreateCycleDirtyNode()
/foundation/communication/dsoftbus/tests/core/bus_center/test/heartbeat/
H A Dhb_strategy_test.cpp302 .cycle = MID_FREQ_CYCLE, in HWTEST_F()
342 .cycle = MID_FREQ_CYCLE, in HWTEST_F()
386 .cycle = MID_FREQ_CYCLE, in HWTEST_F()
/foundation/resourceschedule/work_scheduler/frameworks/src/
H A Dwork_info.cpp92 void WorkInfo::RequestRepeatCycle(uint32_t timeInterval, int32_t cycle) in RequestRepeatCycle() argument
96 repeatCycle->intVal = cycle; in RequestRepeatCycle()
109 void WorkInfo::RequestBaseTimeAndCycle(time_t baseTime, int32_t cycle) in RequestBaseTimeAndCycle() argument
113 conditionMap_.at(WorkCondition::Type::TIMER)->intVal = cycle; in RequestBaseTimeAndCycle()
531 conditions["cycle"] = it.second->intVal; in ParseConditionToJsonStr()
647 if (conditions.isMember("cycle") && conditions["cycle"].isInt()) { in ParseTimerFormJsonStr()
648 this->RequestRepeatCycle(conditions["timer"].asInt(), conditions["cycle"].asInt()); in ParseTimerFormJsonStr()
/foundation/communication/dsoftbus/interfaces/kits/bus_center/
H A Dsoftbus_bus_center.h587 ModeCycle cycle; /**< Heartbeat mode cycle */ member
913 * @param mode The duration or cycle parameter of heartbeat. For details, see {@link GearMode}.
/foundation/communication/dsoftbus/core/authentication/interface/
H A Dauth_interface.h133 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle);

Completed in 19 milliseconds

12