/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/shiftlnngear_fuzzer/ |
H A D | shiftlnngear_fuzzer.cpp | 32 static char *callerId = nullptr; member 67 callerId = (char *)malloc(callerIdLen); in GenRanDiscInfo() 68 if (callerId == nullptr) { in GenRanDiscInfo() 71 int32_t ret = strncpy_s(callerId, in GenRanDiscInfo() 84 ShiftLNNGear(TEST_PKG_NAME1, callerId, networkId, &g_mode); in DoSomethingInterestingWithMyAPI() 85 if (callerId != nullptr) { in DoSomethingInterestingWithMyAPI() 86 free(callerId); in DoSomethingInterestingWithMyAPI() 87 callerId = nullptr; in DoSomethingInterestingWithMyAPI()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/src/ |
H A D | lnn_heartbeat_ctrl_virtual.c | 51 int32_t LnnShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode) in LnnShiftLNNGear() argument 54 (void)callerId; in LnnShiftLNNGear() 94 int32_t LnnShiftLNNGearWithoutPkgName(const char *callerId, const GearMode *mode, LnnHeartbeatStrategyType strategyType) in LnnShiftLNNGearWithoutPkgName() argument 96 (void)callerId; in LnnShiftLNNGearWithoutPkgName()
|
H A D | lnn_heartbeat_strategy.c | 42 const char *callerId; member 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() 113 static int32_t GetGearModeFromSettingList(GearMode *mode, char *callerId, const ListNode *gearModeList, in GetGearModeFromSettingList() argument 132 SoftBusFree((void *)info->callerId); in GetGearModeFromSettingList() 148 tmpCallerId = info->callerId; in GetGearModeFromSettingList() 151 if (callerId != NULL && strcpy_s(callerId, PKG_NAME_SIZE_MAX, tmpCallerId) != EOK) { in GetGearModeFromSettingList() 152 LNN_LOGE(LNN_HEART_BEAT, "strcpy callerId fail"); in GetGearModeFromSettingList() 173 int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatTyp argument 208 FirstSetGearModeByCallerId(const char *callerId, int64_t nowTime, ListNode *list, const GearMode *mode) FirstSetGearModeByCallerId() argument 244 LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode, LnnHeartbeatType type) LnnSetGearModeBySpecificType() argument [all...] |
H A D | lnn_heartbeat_ctrl.c | 979 int32_t LnnShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode) in LnnShiftLNNGear() argument 982 if (pkgName == NULL || mode == NULL || callerId == NULL) { in LnnShiftLNNGear() 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() 1011 if (LnnSetGearModeBySpecificType(callerId, mode, HEARTBEAT_TYPE_BLE_V0) != SOFTBUS_OK) { in LnnShiftLNNGear() 1028 int32_t LnnShiftLNNGearWithoutPkgName(const char *callerId, const GearMode *mode, LnnHeartbeatStrategyType strategyType) in LnnShiftLNNGearWithoutPkgName() argument 1030 if (mode == NULL || callerId == NULL) { in LnnShiftLNNGearWithoutPkgName() 1034 ReportBusinessDiscoveryResultEvt(callerId, 1); in LnnShiftLNNGearWithoutPkgName() 1036 "shift lnn gear mode, callerId=%{public}s, cycle=%{public}d, duration=%{public}d, wakeupFlag=%{public}d", in LnnShiftLNNGearWithoutPkgName() 1037 callerId, mod in LnnShiftLNNGearWithoutPkgName() [all...] |
/foundation/communication/dsoftbus/tests/sdk/bus_center/demo/bus_center/ |
H A D | shift_lnn_gear_demo.c | 32 const char *callerId = "1"; in main() local 40 if (ShiftLNNGear(pkgName, callerId, networkId, &mode) != 0) { in main()
|
/foundation/distributedhardware/device_manager/test/servicesfuzztest/shiftlnngeardeviceservice_fuzzer/ |
H A D | shift_lnn_gear_device_service_fuzzer.cpp | 29 std::string callerId(reinterpret_cast<const char*>(data), size); in ShiftLNNGearDeviceServiceFuzzTest() 32 DeviceManagerService::GetInstance().ShiftLNNGear(pkgName, callerId, isRefresh, false); in ShiftLNNGearDeviceServiceFuzzTest()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/heartbeat/include/ |
H A D | lnn_heartbeat_ctrl.h | 33 int32_t LnnShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode); 35 const char *callerId, const GearMode *mode, LnnHeartbeatStrategyType strategyType);
|
H A D | lnn_heartbeat_strategy.h | 32 int32_t LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode, LnnHeartbeatType type); 33 int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type);
|
H A D | lnn_heartbeat_fsm.h | 93 char callerId[PKG_NAME_SIZE_MAX]; member
|
/foundation/communication/dsoftbus/core/frame/standard/init/src/ |
H A D | if_softbus_server.cpp | 93 int32_t ISoftBusServer::ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, in ShiftLNNGear() argument 97 (void)callerId; in ShiftLNNGear()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | bus_center_server_test.cpp | 169 const char *callerId = "1234"; in HWTEST_F() local 177 int32_t ret = ServerIpcShiftLNNGear(pkgName, callerId, targetNetworkId, &mode); in HWTEST_F()
|
/foundation/communication/dsoftbus/sdk/bus_center/ipc/mini/ |
H A D | bus_center_server_proxy.c | 133 int32_t ServerIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, in ServerIpcShiftLNNGear() argument 136 return LnnIpcShiftLNNGear(pkgName, callerId, targetNetworkId, mode); in ServerIpcShiftLNNGear()
|
/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/src/ |
H A D | hb_fsm_mock.cpp | 96 int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type) in LnnGetGearModeBySpecificType() argument 98 return HeartBeatFSMInterfaceInstance()->LnnGetGearModeBySpecificType(mode, callerId, type); in LnnGetGearModeBySpecificType()
|
H A D | bus_center_ipc_mock.cpp | 121 int32_t LnnShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode) in LnnShiftLNNGear() argument 123 return BusCenterIpcInterfaceInstance()->LnnShiftLNNGear(pkgName, callerId, targetNetworkId, mode); in LnnShiftLNNGear()
|
H A D | hb_strategy_mock.cpp | 81 int32_t LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode, LnnHeartbeatType type) in LnnSetGearModeBySpecificType() argument 83 return HeartBeatStrategyInterface()->LnnSetGearModeBySpecificType(callerId, mode, type); in LnnSetGearModeBySpecificType()
|
/foundation/communication/dsoftbus/core/bus_center/ipc/mini/ |
H A D | lnn_bus_center_ipc.c | 149 int32_t LnnIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, in LnnIpcShiftLNNGear() argument 152 return LnnShiftLNNGear(pkgName, callerId, targetNetworkId, mode); in LnnIpcShiftLNNGear()
|
/foundation/communication/dsoftbus/sdk/bus_center/ipc/include/ |
H A D | bus_center_server_proxy.h | 52 int32_t ServerIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/foundation/communication/dsoftbus/sdk/bus_center/service/src/ |
H A D | client_bus_center.c | 544 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode) in ShiftLNNGear() argument 547 if (pkgName == NULL || callerId == NULL || mode == NULL) { in ShiftLNNGear() 555 size_t len = strnlen(callerId, CALLER_ID_MAX_LEN); in ShiftLNNGear() 557 LNN_LOGE(LNN_STATE, "invalid shift lnn gear callerId len=%{public}zu", len); in ShiftLNNGear() 565 return ShiftLNNGearInner(pkgName, callerId, targetNetworkId, mode); in ShiftLNNGear()
|
/foundation/communication/dsoftbus/sdk/bus_center/manager/include/ |
H A D | client_bus_center_manager.h | 54 int32_t ShiftLNNGearInner(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/ |
H A D | hb_fsm_mock.h | 47 virtual int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type) = 0;
|
H A D | hb_strategy_mock.h | 44 virtual int32_t LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode,
|
/foundation/communication/dsoftbus/core/bus_center/ipc/include/ |
H A D | lnn_bus_center_ipc.h | 64 int32_t LnnIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/foundation/communication/dsoftbus/sdk/bus_center/ipc/standard/src/ |
H A D | bus_center_server_proxy.cpp | 295 int32_t ServerIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, in ServerIpcShiftLNNGear() argument 302 int32_t ret = g_serverProxy->ShiftLNNGear(pkgName, callerId, targetNetworkId, mode); in ServerIpcShiftLNNGear()
|
/foundation/communication/dsoftbus/sdk/bus_center/ipc/standard/include/ |
H A D | bus_center_server_proxy_standard.h | 66 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/foundation/communication/dsoftbus/core/frame/standard/init/include/ |
H A D | softbus_server.h | 69 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|