/foundation/communication/wifi/wifi/test/wifi_standard/non_mock/ |
H A D | block_connect_service_test.cpp | 72 int targetNetworkId = 1; in HWTEST_F() local 73 bool result = BlockConnectService::GetInstance().EnableNetworkSelectStatus(targetNetworkId); in HWTEST_F() 76 WifiSettings::GetInstance().GetDeviceConfig(targetNetworkId, config); in HWTEST_F() 83 int targetNetworkId = -1; in HWTEST_F() local 84 bool result = BlockConnectService::GetInstance().EnableNetworkSelectStatus(targetNetworkId); in HWTEST_F() 101 int targetNetworkId = 1; in HWTEST_F() local 103 bool result = BlockConnectService::GetInstance().UpdateNetworkSelectStatus(targetNetworkId, reason); in HWTEST_F() 106 WifiSettings::GetInstance().GetDeviceConfig(targetNetworkId, config); in HWTEST_F() 108 result = BlockConnectService::GetInstance().UpdateNetworkSelectStatus(targetNetworkId, reason); in HWTEST_F() 110 WifiSettings::GetInstance().GetDeviceConfig(targetNetworkId, confi in HWTEST_F() 122 int targetNetworkId = 1; HWTEST_F() local 141 int targetNetworkId = 1; HWTEST_F() local 201 int targetNetworkId = 1; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/time_sync/src/ |
H A D | lnn_time_sync_impl_virtual.c | 32 int32_t LnnStartTimeSyncImpl(const char *targetNetworkId, TimeSyncAccuracy accuracy, in LnnStartTimeSyncImpl() argument 35 (void)targetNetworkId; in LnnStartTimeSyncImpl() 43 int32_t LnnStopTimeSyncImpl(const char *targetNetworkId) in LnnStopTimeSyncImpl() argument 45 (void)targetNetworkId; in LnnStopTimeSyncImpl()
|
H A D | lnn_time_sync_manager_virtual.c | 21 int32_t LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, in LnnStartTimeSync() argument 26 (void)targetNetworkId; in LnnStartTimeSync() 32 int32_t LnnStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid) in LnnStopTimeSync() argument 35 (void)targetNetworkId; in LnnStopTimeSync()
|
H A D | lnn_time_sync_manager.c | 50 char targetNetworkId[NETWORK_ID_BUF_LEN]; member 67 char targetNetworkId[NETWORK_ID_BUF_LEN]; member 75 char targetNetworkId[NETWORK_ID_BUF_LEN]; member 99 if (strcmp(networkId, item->targetNetworkId) == 0) { in FindTimeSyncReqInfo() 135 if (strncpy_s(info->targetNetworkId, NETWORK_ID_BUF_LEN, para->targetNetworkId, in CreateTimeSyncReqInfo() 136 strlen(para->targetNetworkId)) != EOK) { in CreateTimeSyncReqInfo() 238 existInfo = FindTimeSyncReqInfo(para->targetNetworkId); in ProcessStartTimeSyncRequest() 253 if (LnnStartTimeSyncImpl(existInfo->targetNetworkId, existInfo->curAccuracy, in ProcessStartTimeSyncRequest() 304 LnnStartTimeSyncImpl(info->targetNetworkId, curAccurac in TryUpdateTimeSyncReq() 537 LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period) LnnStartTimeSync() argument 577 LnnStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid) LnnStopTimeSync() argument [all...] |
/foundation/distributedhardware/distributed_camera/services/channel/test/unittest/common/channel/ |
H A D | session_bus_center.cpp | 30 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy, in StartTimeSync() argument 34 (void)targetNetworkId; in StartTimeSync() 41 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId) in StopTimeSync() argument 44 (void)targetNetworkId; in StopTimeSync()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | block_connect_service.h | 59 bool EnableNetworkSelectStatus(int targetNetworkId); 62 bool UpdateNetworkSelectStatus(int targetNetworkId, DisabledReason disableReason, int wpaReason); 65 bool UpdateNetworkSelectStatus(int targetNetworkId, DisabledReason disableReason); 71 // Check if the given targetNetworkId is blocked due to wrong password 72 bool IsWrongPassword(int targetNetworkId);
|
H A D | block_connect_service.cpp | 148 bool BlockConnectService::EnableNetworkSelectStatus(int targetNetworkId) in EnableNetworkSelectStatus() argument 154 if (WifiSettings::GetInstance().GetDeviceConfig(targetNetworkId, targetNetwork)) { in EnableNetworkSelectStatus() 155 WIFI_LOGE("Failed to get device config %{public}d", targetNetworkId); in EnableNetworkSelectStatus() 164 targetNetworkId, SsidAnonymize(targetNetwork.ssid).c_str()); in EnableNetworkSelectStatus() 182 bool BlockConnectService::UpdateNetworkSelectStatus(int targetNetworkId, DisabledReason disableReason, int wpaReason) in UpdateNetworkSelectStatus() argument 192 return UpdateNetworkSelectStatus(targetNetworkId, disableReason); in UpdateNetworkSelectStatus() 196 bool BlockConnectService::UpdateNetworkSelectStatus(int targetNetworkId, DisabledReason disableReason) in UpdateNetworkSelectStatus() argument 203 if (WifiSettings::GetInstance().GetDeviceConfig(targetNetworkId, targetNetwork)) { in UpdateNetworkSelectStatus() 204 WIFI_LOGE("Failed to get device config %{public}d", targetNetworkId); in UpdateNetworkSelectStatus() 229 targetNetworkId, SsidAnonymiz in UpdateNetworkSelectStatus() 279 IsWrongPassword(int targetNetworkId) IsWrongPassword() argument [all...] |
/foundation/communication/dsoftbus/sdk/bus_center/ipc/mini/ |
H A D | bus_center_server_proxy.c | 85 int32_t ServerIpcStartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, int32_t period) in ServerIpcStartTimeSync() argument 87 return LnnIpcStartTimeSync(pkgName, 0, targetNetworkId, accuracy, period); in ServerIpcStartTimeSync() 90 int32_t ServerIpcStopTimeSync(const char *pkgName, const char *targetNetworkId) in ServerIpcStopTimeSync() argument 92 return LnnIpcStopTimeSync(pkgName, targetNetworkId, 0); in ServerIpcStopTimeSync() 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 | bus_center_ipc_mock.cpp | 76 int32_t callingPid, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period) in LnnStartTimeSync() 78 return BusCenterIpcInterfaceInstance()->LnnStartTimeSync(pkgName, callingPid, targetNetworkId, accuracy, period); in LnnStartTimeSync() 81 int32_t LnnStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid) in LnnStopTimeSync() argument 83 return BusCenterIpcInterfaceInstance()->LnnStopTimeSync(pkgName, targetNetworkId, callingPid); in LnnStopTimeSync() 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() 75 LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, TimeSyncAccuracy accuracy, TimeSyncPeriod period) LnnStartTimeSync() argument
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/unittest/ |
H A D | bus_center_server_test.cpp | 100 const char *targetNetworkId = "1234"; in HWTEST_F() local 102 int32_t ret = ServerIpcStartTimeSync(pkgName, targetNetworkId, NORMAL_ACCURACY, BIT_NETWORK_TYPE_WIFI); in HWTEST_F() 104 ret = ServerIpcStopTimeSync(pkgName, targetNetworkId); in HWTEST_F() 170 const char *targetNetworkId = nullptr; in HWTEST_F() local 177 int32_t ret = ServerIpcShiftLNNGear(pkgName, callerId, targetNetworkId, &mode); in HWTEST_F()
|
H A D | client_bus_center_manager_mock.cpp | 89 int32_t ServerIpcStartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, int32_t period) in ServerIpcStartTimeSync() argument 91 return GetBusCenterManagerInterface()->ServerIpcStartTimeSync(pkgName, targetNetworkId, accuracy, period); in ServerIpcStartTimeSync() 94 int32_t ServerIpcStopTimeSync(const char *pkgName, const char *targetNetworkId) in ServerIpcStopTimeSync() argument 96 return GetBusCenterManagerInterface()->ServerIpcStopTimeSync(pkgName, targetNetworkId); in ServerIpcStopTimeSync()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/time_sync/include/ |
H A D | lnn_time_sync_impl.h | 32 int32_t LnnStartTimeSyncImpl(const char *targetNetworkId, TimeSyncAccuracy accuracy, 34 int32_t LnnStopTimeSyncImpl(const char *targetNetworkId);
|
H A D | lnn_time_sync_manager.h | 26 int32_t LnnStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, 28 int32_t LnnStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid);
|
/foundation/communication/dsoftbus/core/bus_center/ipc/mini/ |
H A D | lnn_bus_center_ipc.c | 98 int32_t LnnIpcStartTimeSync(const char *pkgName, int32_t callingPid, const char *targetNetworkId, in LnnIpcStartTimeSync() argument 101 return LnnStartTimeSync(pkgName, callingPid, targetNetworkId, (TimeSyncAccuracy)accuracy, (TimeSyncPeriod)period); in LnnIpcStartTimeSync() 104 int32_t LnnIpcStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid) in LnnIpcStopTimeSync() argument 106 return LnnStopTimeSync(pkgName, targetNetworkId, callingPid); in LnnIpcStopTimeSync() 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 | 43 int32_t ServerIpcStartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, int32_t period); 44 int32_t ServerIpcStopTimeSync(const char *pkgName, const char *targetNetworkId); 52 int32_t ServerIpcShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/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 55 (void)targetNetworkId; in LnnShiftLNNGear()
|
/foundation/communication/dsoftbus/sdk/bus_center/manager/include/ |
H A D | client_bus_center_manager.h | 44 int32_t StartTimeSyncInner(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy, 46 int32_t StopTimeSyncInner(const char *pkgName, const char *targetNetworkId); 54 int32_t ShiftLNNGearInner(const char *pkgName, const char *callerId, const char *targetNetworkId,
|
/foundation/communication/dsoftbus/core/bus_center/ipc/include/ |
H A D | lnn_bus_center_ipc.h | 42 const char *pkgName, int32_t callingPid, const char *targetNetworkId, int32_t accuracy, int32_t period); 43 int32_t LnnIpcStopTimeSync(const char *pkgName, const char *targetNetworkId, int32_t callingPid); 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 | 193 int32_t ServerIpcStartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, int32_t period) in ServerIpcStartTimeSync() argument 199 int32_t ret = g_serverProxy->StartTimeSync(pkgName, targetNetworkId, accuracy, period); in ServerIpcStartTimeSync() 203 int32_t ServerIpcStopTimeSync(const char *pkgName, const char *targetNetworkId) in ServerIpcStopTimeSync() argument 209 int ret = g_serverProxy->StopTimeSync(pkgName, targetNetworkId); in ServerIpcStopTimeSync() 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/service/src/ |
H A D | client_bus_center.c | 401 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy, in StartTimeSync() argument 404 if (pkgName == NULL || !IsValidString(targetNetworkId, NETWORK_ID_BUF_LEN) || in StartTimeSync() 413 return StartTimeSyncInner(pkgName, targetNetworkId, accuracy, period, cb); in StartTimeSync() 416 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId) in StopTimeSync() argument 418 if (pkgName == NULL || !IsValidString(targetNetworkId, NETWORK_ID_BUF_LEN)) { in StopTimeSync() 426 return StopTimeSyncInner(pkgName, targetNetworkId); in StopTimeSync() 544 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode) in ShiftLNNGear() argument 560 if (targetNetworkId != NULL && in ShiftLNNGear() 561 strnlen(targetNetworkId, NETWORK_ID_BUF_LEN) != NETWORK_ID_BUF_LEN - 1) { in ShiftLNNGear() 562 LNN_LOGE(LNN_STATE, "invalid shift lnn gear targetNetworkId"); in ShiftLNNGear() [all...] |
/foundation/communication/dsoftbus/sdk/frame/standard/src/ |
H A D | softbus_server_proxy_standard.cpp | 224 int32_t SoftBusServerProxyFrame::StartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, in StartTimeSync() argument 228 (void)targetNetworkId; in StartTimeSync() 234 int32_t SoftBusServerProxyFrame::StopTimeSync(const char *pkgName, const char *targetNetworkId) in StopTimeSync() argument 237 (void)targetNetworkId; in StopTimeSync()
|
/foundation/communication/dsoftbus/interfaces/kits/bus_center/ |
H A D | softbus_bus_center.h | 337 char targetNetworkId[NETWORK_ID_BUF_LEN]; /**< The network id of time sync target device */ member 761 * @param targetNetworkId Indicates the pointer to the address of the specified device. 773 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, TimeSyncAccuracy accuracy, 781 * @param targetNetworkId Indicates the pointer to the address of the specified device. 788 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId); 912 * @param targetNetworkId The networkId of the target device to refresh online state, and could be <b>NULL</b>. 920 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId, const GearMode *mode);
|
/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 98 (void)targetNetworkId; in ShiftLNNGear()
|
/foundation/communication/dsoftbus/sdk/bus_center/ipc/standard/include/ |
H A D | bus_center_server_proxy_standard.h | 53 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, 55 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId) override; 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 | 56 int32_t StartTimeSync(const char *pkgName, const char *targetNetworkId, int32_t accuracy, 58 int32_t StopTimeSync(const char *pkgName, const char *targetNetworkId) override; 69 int32_t ShiftLNNGear(const char *pkgName, const char *callerId, const char *targetNetworkId,
|