Home
last modified time | relevance | path

Searched refs:callerId (Results 1 - 25 of 43) sorted by relevance

12

/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/shiftlnngear_fuzzer/
H A Dshiftlnngear_fuzzer.cpp32 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 Dlnn_heartbeat_ctrl_virtual.c51 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 Dlnn_heartbeat_strategy.c42 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 Dlnn_heartbeat_ctrl.c979 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 Dshift_lnn_gear_demo.c32 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 Dshift_lnn_gear_device_service_fuzzer.cpp29 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 Dlnn_heartbeat_ctrl.h33 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 Dlnn_heartbeat_strategy.h32 int32_t LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode, LnnHeartbeatType type);
33 int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type);
H A Dlnn_heartbeat_fsm.h93 char callerId[PKG_NAME_SIZE_MAX]; member
/foundation/communication/dsoftbus/core/frame/standard/init/src/
H A Dif_softbus_server.cpp93 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 Dbus_center_server_test.cpp169 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 Dbus_center_server_proxy.c133 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 Dhb_fsm_mock.cpp96 int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type) in LnnGetGearModeBySpecificType() argument
98 return HeartBeatFSMInterfaceInstance()->LnnGetGearModeBySpecificType(mode, callerId, type); in LnnGetGearModeBySpecificType()
H A Dbus_center_ipc_mock.cpp121 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 Dhb_strategy_mock.cpp81 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 Dlnn_bus_center_ipc.c149 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 Dbus_center_server_proxy.h52 int32_t ServerIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
/foundation/communication/dsoftbus/sdk/bus_center/service/src/
H A Dclient_bus_center.c544 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 Dclient_bus_center_manager.h54 int32_t ShiftLNNGearInner(const char *pkgName, const char *callerId, const char *targetNetworkId,
/foundation/communication/dsoftbus/tests/core/bus_center/test/mock/include/
H A Dhb_fsm_mock.h47 virtual int32_t LnnGetGearModeBySpecificType(GearMode *mode, char *callerId, LnnHeartbeatType type) = 0;
H A Dhb_strategy_mock.h44 virtual int32_t LnnSetGearModeBySpecificType(const char *callerId, const GearMode *mode,
/foundation/communication/dsoftbus/core/bus_center/ipc/include/
H A Dlnn_bus_center_ipc.h64 int32_t LnnIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
/foundation/communication/dsoftbus/sdk/bus_center/ipc/standard/src/
H A Dbus_center_server_proxy.cpp295 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 Dbus_center_server_proxy_standard.h66 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
/foundation/communication/dsoftbus/core/frame/standard/init/include/
H A Dsoftbus_server.h69 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,

Completed in 12 milliseconds

12