/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | bus_center_heartbeat_sdk_test.cpp | 86 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 D | bus_center_server_test.cpp | 172 .cycle = MID_FREQ_CYCLE, in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/shiftlnngear_fuzzer/ |
H A D | shiftlnngear_fuzzer.cpp | 41 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 D | hb_ctrl_deps_mock.cpp | 90 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 D | idle_time.cpp | 83 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 D | auth_mock.cpp | 88 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) in AuthSendKeepaliveOption() argument 90 return GetAuthInterface()->AuthSendKeepaliveOption(uuid, cycle); in AuthSendKeepaliveOption()
|
H A D | auth_mock.h | 40 virtual int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) = 0;
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/demo/bus_center/ |
H A D | shift_lnn_gear_demo.c | 35 .cycle = MID_FREQ_CYCLE, in main()
|
/foundation/resourceschedule/work_scheduler/frameworks/include/ |
H A D | work_info.h | 88 * @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 D | net_quota_policy.cpp | 199 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 D | net_policy_traffic.cpp | 215 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 D | auth_tcp_connection.c | 697 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 D | auth_session_message.c | 382 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 D | auth_manager.c | 1246 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 D | hb_ctrl_deps_mock.h | 42 virtual int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle) = 0;
|
/foundation/communication/dsoftbus/core/authentication/include/ |
H A D | auth_tcp_connection.h | 61 int32_t AuthSetTcpKeepaliveOption(int32_t fd, ModeCycle cycle);
|
H A D | auth_manager.h | 61 ModeCycle cycle; member
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_strategy.c | 105 "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 D | lnn_heartbeat_ctrl.c | 991 "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 D | pipeline_context_test_ng.h | 73 static void CreateCycleDirtyNode(int cycle, bool& flagUpdate);
|
H A D | pipeline_context_test_ng.cpp | 96 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 D | hb_strategy_test.cpp | 302 .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 D | work_info.cpp | 92 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 D | softbus_bus_center.h | 587 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 D | auth_interface.h | 133 int32_t AuthSendKeepaliveOption(const char *uuid, ModeCycle cycle);
|