Home
last modified time | relevance | path

Searched refs:local (Results 1 - 25 of 121) sorted by relevance

12345

/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/
H A Dlnn_select_rule.c60 static bool GetNetCap(const char *networkId, uint32_t *local, uint32_t *remote) in GetNetCap() argument
62 int32_t ret = LnnGetLocalNumU32Info(NUM_KEY_NET_CAP, local); in GetNetCap()
64 LNN_LOGE(LNN_LANE, "LnnGetLocalNumInfo err, ret=%{public}d, local=%{public}u", ret, *local); in GetNetCap()
75 static bool GetFeatureCap(const char *networkId, uint64_t *local, uint64_t *remote) in GetFeatureCap() argument
77 int32_t ret = LnnGetLocalNumU64Info(NUM_KEY_FEATURE_CAPA, local); in GetFeatureCap()
78 if (ret != SOFTBUS_OK || *local < 0) { in GetFeatureCap()
79 LNN_LOGE(LNN_LANE, "LnnGetLocalNumInfo err, ret=%{public}d, local=%{public}" PRIu64, ret, *local); in GetFeatureCap()
125 uint32_t local; in Wlan2P4GCapCheck() local
155 uint32_t local; Wlan5GCapCheck() local
173 uint32_t local; BrCapCheck() local
188 uint32_t local; P2pCapCheck() local
218 uint64_t local; HmlCapCheck() local
240 uint64_t local; P2pReuseCapCheck() local
257 uint32_t local; BleCapCheck() local
278 uint64_t local; BleDirectCapCheck() local
301 uint64_t local; CocCapCheck() local
[all...]
H A Dlnn_lane_query.c117 static bool GetNetCap(const char *networkId, uint32_t *local, uint32_t *remote) in GetNetCap() argument
119 int32_t ret = LnnGetLocalNumU32Info(NUM_KEY_NET_CAP, local); in GetNetCap()
121 LNN_LOGE(LNN_LANE, "LnnGetLocalNumInfo err, ret=%{public}d, local=%{public}u", ret, *local); in GetNetCap()
134 uint32_t local; in BrLinkState() local
136 if (!GetNetCap(networkId, &local, &remote)) { in BrLinkState()
140 if (!(local & (1 << BIT_BR))) { in BrLinkState()
141 LNN_LOGE(LNN_LANE, "local bluetooth close, local=%{public}u", local); in BrLinkState()
154 uint32_t local; BleLinkState() local
187 uint32_t local; WlanLinkState() local
216 uint32_t local; P2pLinkState() local
[all...]
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Ddate_util.cpp26 auto local = std::localtime(&now); in Current() local
27 CHECK_NULL_RETURN(local, date); in Current()
28 date.year = static_cast<uint32_t>(local->tm_year) + 1900; // local date start from 1900 in Current()
29 date.month = static_cast<uint32_t>(local->tm_mon) + 1; // local month start from 0 to 11, need add one. in Current()
30 date.day = static_cast<uint32_t>(local->tm_mday); in Current()
31 date.week = static_cast<uint32_t>(local->tm_wday); in Current()
82 auto local = std::localtime(&now); in GetMilliSecondsByDateTime() local
83 CHECK_NULL_RETURN(local, in GetMilliSecondsByDateTime()
[all...]
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_tool.c236 param->preq[PAIR_REQ_5] = SMP_GetPairMng()->local.pairParam.ioCapability; in SMP_ConstituteC1Step1Param()
237 param->preq[PAIR_REQ_4] = SMP_GetPairMng()->local.pairParam.oobDataFlag; in SMP_ConstituteC1Step1Param()
238 param->preq[PAIR_REQ_3] = SMP_GetPairMng()->local.pairParam.authReq; in SMP_ConstituteC1Step1Param()
239 param->preq[PAIR_REQ_2] = SMP_GetPairMng()->local.pairParam.maxEncKeySize; in SMP_ConstituteC1Step1Param()
240 param->preq[PAIR_REQ_1] = SMP_GetPairMng()->local.pairParam.initKeyDist; in SMP_ConstituteC1Step1Param()
241 param->preq[PAIR_REQ_0] = SMP_GetPairMng()->local.pairParam.respKeyDist; in SMP_ConstituteC1Step1Param()
249 param->iat = SMP_GetPairMng()->local.addr.type; in SMP_ConstituteC1Step1Param()
260 param->pres[PAIR_RES_5] = SMP_GetPairMng()->local.pairParam.ioCapability; in SMP_ConstituteC1Step1Param()
261 param->pres[PAIR_RES_4] = SMP_GetPairMng()->local.pairParam.oobDataFlag; in SMP_ConstituteC1Step1Param()
262 param->pres[PAIR_RES_3] = SMP_GetPairMng()->local in SMP_ConstituteC1Step1Param()
[all...]
H A Dsmp_legacy.c34 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_LegacyPairMasterStep1()
54 (void)memcpy_s(SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_LegacyPairMasterStep2()
72 (void)memcpy_s(SMP_GetPairMng()->local.random + SMP_RAND_NUM_LEN, in SMP_LegacyPairMasterStep3()
77 SMP_ROLE_MASTER, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, &cryptC1Step1Param); in SMP_LegacyPairMasterStep3()
119 SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, returnParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairMasterStep5()
120 SMP_MemoryReverseCopy(confirmTemp, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairMasterStep5()
144 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_LegacyPairMasterStep6()
220 cryptS1Param.r2, sizeof(cryptS1Param.r2), SMP_GetPairMng()->local.random, sizeof(cryptS1Param.r2)); in SMP_LegacyPairMasterStep9()
279 (void)memcpy_s(SMP_GetPairMng()->local.LTK, SMP_LTK_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_LegacyPairMasterStep13()
297 SMP_GetPairMng()->local in SMP_LegacyPairMasterStep14()
[all...]
H A Dsmp.c327 g_smpPairMng.local.addr.type = param->localAddr.type; in SMP_StartPairTask()
330 g_smpPairMng.local.addr.addr, param->localAddr.addr, sizeof(g_smpPairMng.local.addr.addr)); in SMP_StartPairTask()
332 (void)memcpy_s(&g_smpPairMng.local.pairParam, sizeof(SMP_PairParam), &param->param, sizeof(SMP_PairParam)); in SMP_StartPairTask()
478 g_smpPairMng.local.addr.type = param->localAddr.type; in SMP_RemotePairReqReplyTask()
481 g_smpPairMng.local.addr.addr, param->localAddr.addr, sizeof(g_smpPairMng.local.addr.addr)); in SMP_RemotePairReqReplyTask()
483 (void)memcpy_s(&g_smpPairMng.local.pairParam, sizeof(SMP_PairParam), &param->param, sizeof(SMP_PairParam)); in SMP_RemotePairReqReplyTask()
488 ret = SMP_SendPairingResponse(param->handle, &g_smpPairMng.local.pairParam, SMP_SendPairingResponseCallback); in SMP_RemotePairReqReplyTask()
1110 ret = SMP_SendPairingPublicKey(g_smpPairMng.handle, g_smpPairMng.local in SMP_AuthReqReplyStepTransMaster()
[all...]
H A Dsmp_send.c64 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_ENC_KEY) { in SMP_SendDistributionKeysToRemote()
71 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_ID_KEY) { in SMP_SendDistributionKeysToRemote()
78 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_SIGN_KEY) { in SMP_SendDistributionKeysToRemote()
95 (void)memcpy_s(ltkTemp, SMP_LTK_LEN, SMP_GetPairMng()->local.LTK, SMP_LTK_LEN); in SMP_SendDistKeysToRemoteEncKey()
103 SMP_MemoryReverseCopy(masterIdRandTemp, SMP_GetPairMng()->local.masterIdRand, SMP_MASTER_RAND_LEN); in SMP_SendDistKeysToRemoteEncKey()
105 SMP_GetPairMng()->local.masterIdEdiv, in SMP_SendDistKeysToRemoteEncKey()
124 SMP_GetLocalIrk(SMP_GetPairMng()->local.IRK, sizeof(SMP_GetPairMng()->local.IRK)); in SMP_SendDistKeysToRemoteIdKey()
125 (void)memcpy_s(irkTemp, SMP_IRK_LEN, SMP_GetPairMng()->local.IRK, SMP_IRK_LEN); in SMP_SendDistKeysToRemoteIdKey()
133 SMP_GetLocalIdentAddr(&SMP_GetPairMng()->local in SMP_SendDistKeysToRemoteIdKey()
[all...]
H A Dsmp_sc_accepter.c63 SMP_GetPairMng()->local.publicKey, SMP_PUBLICKEY_LEN, eventParam->localP256PublicKey, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep2()
89 SMP_SendPairingPublicKey(SMP_GetPairMng()->handle, SMP_GetPairMng()->local.publicKey, SMP_SendDataCallback); in SMP_ScPairJustworkOrNumericSlaveStep3()
114 (void)memcpy_s(SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_ScPairJustworkOrNumericSlaveStep4()
133 (void)memcpy_s(SMP_GetPairMng()->local.random + SMP_RAND_NUM_LEN, in SMP_ScPairJustworkOrNumericSlaveStep5()
138 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep5()
162 SMP_GetPublicKeyX(SMP_GetPairMng()->local.publicKey, cryptF4Param.U, sizeof(cryptF4Param.U)); in SMP_ScPairJustworkOrNumericSlaveStep6()
212 SMP_MemoryReverseCopy(SMP_GetPairMng()->local.confirm, encData->encRetParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep8()
213 SMP_MemoryReverseCopy(tmpConfirm, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep8()
237 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_JUST_WORK) { in SMP_ScPairJustworkOrNumericSlaveStep9()
239 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local in SMP_ScPairJustworkOrNumericSlaveStep9()
[all...]
H A Dsmp_sc_initiator.c41 SMP_GetPairMng()->local.publicKey, SMP_PUBLICKEY_LEN, eventParam->localP256PublicKey, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericMasterStep1()
46 SMP_SendPairingPublicKey(SMP_GetPairMng()->handle, SMP_GetPairMng()->local.publicKey, SMP_SendDataCallback); in SMP_ScPairJustworkOrNumericMasterStep1()
119 (void)memcpy_s(SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_ScPairJustworkOrNumericMasterStep5()
137 (void)memcpy_s(SMP_GetPairMng()->local.random + SMP_RAND_NUM_LEN, in SMP_ScPairJustworkOrNumericMasterStep6()
141 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericMasterStep6()
191 SMP_GetPublicKeyX(SMP_GetPairMng()->local.publicKey, cryptF4Param.V, sizeof(cryptF4Param.V)); in SMP_ScPairJustworkOrNumericMasterStep8()
248 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_JUST_WORK) { in SMP_ScPairJustworkOrNumericMasterStep10()
255 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->local.random, sizeof(encryptParam.key)); in SMP_ScPairJustworkOrNumericMasterStep10()
283 SMP_GetPublicKeyX(SMP_GetPairMng()->local.publicKey, cryptG2Param.U, sizeof(cryptG2Param.U)); in SMP_ScPairJustworkOrNumericMasterStep11()
327 uint8_t pairMethod = SMP_GetPairMng()->local in SMP_ScPairJustworkOrNumericMasterStep13()
[all...]
/foundation/arkui/napi/native_engine/
H A Dnative_utils.h28 inline napi_value JsValueFromLocalValue(panda::Local<panda::JSValueRef> local) in JsValueFromLocalValue() argument
30 return reinterpret_cast<napi_value>(*local); in JsValueFromLocalValue()
35 panda::Local<panda::JSValueRef> local(reinterpret_cast<uintptr_t>(v)); in LocalValueFromJsValue()
36 return local; in LocalValueFromJsValue()
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dstream_manager.cpp44 int StreamManager::CreateStreamClientChannel(IpAndPort &local, IpAndPort remote, Proto protocol, in CreateStreamClientChannel() argument
49 local.port, remote.port, protocol); in CreateStreamClientChannel()
60 if (streamSocket->CreateClient(local, remote, streamType, sessionKey)) { in CreateStreamClientChannel()
68 TRANS_LOGI(TRANS_STREAM, "streamSocket CreateClient success, localPort=%{public}d", local.port); in CreateStreamClientChannel()
69 return local.port; in CreateStreamClientChannel()
75 int StreamManager::CreateStreamServerChannel(IpAndPort &local, Proto protocol, in CreateStreamServerChannel() argument
79 "Start to create server channel, localPort=%{public}d, protocol=%{public}d", local.port, protocol); in CreateStreamServerChannel()
90 if (!streamSocket->CreateServer(local, streamType, sessionKey)) { in CreateStreamServerChannel()
103 return local.port; in CreateStreamServerChannel()
H A Di_stream_socket.h66 virtual bool CreateClient(IpAndPort &local, int streamType,
68 virtual bool CreateClient(IpAndPort &local, const IpAndPort &remote, int streamType,
70 virtual bool CreateServer(IpAndPort &local, int streamType, std::pair<uint8_t*, uint32_t> sessionKey) = 0;
94 virtual int CreateAndBindSocket(IpAndPort &local, bool isServer) = 0;
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/stream_manager_test/
H A Dstream_manager_test.cpp73 Communication::SoftBus::IpAndPort *local = in HWTEST_F() local
75 (void)memset_s(local, sizeof(Communication::SoftBus::IpAndPort), 0, sizeof(Communication::SoftBus::IpAndPort)); in HWTEST_F()
85 int32_t ret = streamSocketListener->CreateStreamClientChannel(*local, *remote, in HWTEST_F()
90 ret = streamSocketListener->CreateStreamClientChannel(*local, *remote, Communication::SoftBus::TCP, streamType, in HWTEST_F()
109 Communication::SoftBus::IpAndPort *local = in HWTEST_F() local
111 (void)memset_s(local, sizeof(Communication::SoftBus::IpAndPort), 0, sizeof(Communication::SoftBus::IpAndPort)); in HWTEST_F()
120 int32_t ret = streamSocketListener->CreateStreamServerChannel(*local, *protocol, streamType, sessionKey); in HWTEST_F()
124 ret = streamSocketListener->CreateStreamServerChannel(*local, *protocol, streamType, sessionKey); in HWTEST_F()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
H A Dconfig.h242 #define PA_ALSA_PATHS_DIR "/usr/local/share/pulseaudio/alsa-mixer/paths"
244 #define PA_ALSA_PROFILE_SETS_DIR "/usr/local/share/pulseaudio/alsa-mixer/profile-sets"
256 #define PA_DEFAULT_CONFIG_DIR_UNQUOTED /usr/local/etc/pulse
260 #define PA_INCDIR /usr/local/include
262 #define PA_LIBDIR /usr/local/lib/x86_64-linux-gnu
264 #define PA_MACHINE_ID "/usr/local/etc/machine-id"
266 #define PA_MACHINE_ID_FALLBACK "/var/local/lib/dbus/machine-id"
276 #define PA_SYSTEM_CONFIG_PATH "/var/local/lib/pulse"
286 #define PULSEDSP_LOCATION /usr/local/lib/x86_64-linux-gnu/pulseaudio
288 #define PULSE_LOCALEDIR "/usr/local/shar
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/text_clock/
H A Drender_text_clock.cpp111 auto local = std::localtime(&now); in GetDateTime() local
112 if (local == nullptr) { in GetDateTime()
118 dateTime.year = static_cast<uint32_t>(local->tm_year + BASE_YEAR); in GetDateTime()
119 dateTime.month = static_cast<uint32_t>(local->tm_mon); in GetDateTime()
120 dateTime.day = static_cast<uint32_t>(local->tm_mday); in GetDateTime()
/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/
H A Dtools_op_backup_test.cpp58 vector<string> local = {"false"}; in PrepareBackupArguments() local
59 mapArgToVal.insert(make_pair("isLocal", local)); in PrepareBackupArguments()
85 vector<string> local = {"true"}; in HWTEST_F() local
86 mapArgToVal.insert(make_pair("isLocal", local)); in HWTEST_F()
114 vector<string> local = {"true"}; in HWTEST_F() local
116 mapArgToVal.insert(make_pair("isLocal", local)); in HWTEST_F()
132 mapArgToVal.insert(make_pair("isLocal", local)); in HWTEST_F()
204 vector<string> local = {"false"}; in HWTEST_F() local
205 mapArgToVal.insert(make_pair("isLocal", local)); in HWTEST_F()
/foundation/ai/ai_engine/services/common/platform/dl_operation/source/
H A Daie_dl_operation.cpp32 void *AieDlopen(const char *libName, int local) in AieDlopen() argument
34 int flag = local ? LOCAL : GLOBAL; in AieDlopen()
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/
H A Dthread_adapter.c67 void THREAD_SetThreadLocal(const void *local) in THREAD_SetThreadLocal() argument
69 (void)local; in THREAD_SetThreadLocal()
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_data.cpp26 auto local = std::localtime(&now); in Current() local
27 if (local == nullptr) { in Current()
31 date.SetYear(local->tm_year + 1900); // local date start from 1900 in Current()
32 date.SetMonth(local->tm_mon + 1); // local month start from 0 to 11, need add one. in Current()
33 date.SetDay(local->tm_mday); in Current()
34 date.SetWeek(local->tm_wday); in Current()
130 auto local = std::localtime(&now); in Current() local
131 if (local in Current()
[all...]
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/vtp_stream_socket_test/
H A Dvtp_stream_socket_test.cpp73 Communication::SoftBus::IpAndPort *local = in HWTEST_F() local
75 ASSERT_TRUE(local != nullptr); in HWTEST_F()
76 (void)memset_s(local, sizeof(Communication::SoftBus::IpAndPort), 0, sizeof(Communication::SoftBus::IpAndPort)); in HWTEST_F()
85 bool ret = vtpStreamSocket->CreateClient(*local, streamType, sessionKey); in HWTEST_F()
88 local->ip = "10.50.140.1"; in HWTEST_F()
89 local->port = 1000; in HWTEST_F()
90 ret = vtpStreamSocket->CreateClient(*local, streamType, sessionKey); in HWTEST_F()
94 if (local != nullptr) { in HWTEST_F()
95 SoftBusFree(local); in HWTEST_F()
110 Communication::SoftBus::IpAndPort *local in HWTEST_F() local
143 Communication::SoftBus::IpAndPort *local = HWTEST_F() local
[all...]
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/
H A Dwifi_direct_ip_manager_test.cpp112 Ipv4Info local("172.30.1.2"); in HWTEST_F()
120 int32_t ret = ipManager.ConfigIpv4(interface, local, remote, remoteMac); in HWTEST_F()
124 ret = ipManager.ConfigIpv4(interface, local, remote, remoteMac); in HWTEST_F()
130 ret = ipManager.ConfigIpv4(interface, local, remote, remoteMac); in HWTEST_F()
136 ipManager.ReleaseIpv4(interface, local, remote, remoteMac); in HWTEST_F()
141 ipManager.ReleaseIpv4(interface, local, remote, remoteMac); in HWTEST_F()
146 ipManager.ReleaseIpv4(interface, local, remote, remoteMac); in HWTEST_F()
/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_smartgenius.c76 struct sockaddr_nl local = {0}; in CreateNetLinkSocketFd() local
77 local.nl_family = AF_NETLINK; in CreateNetLinkSocketFd()
78 local.nl_groups = RTMGRP_NOTIFY | RTMGRP_IPV4_IFADDR | RTMGRP_IPV4_ROUTE | RTMGRP_LINK; in CreateNetLinkSocketFd()
79 local.nl_pid = getpid(); in CreateNetLinkSocketFd()
80 socklen_t len = sizeof(local); in CreateNetLinkSocketFd()
87 if (bind(fd, (struct sockaddr *)&local, len) < 0) { in CreateNetLinkSocketFd()
92 if (getsockname(fd, (struct sockaddr *)&local, &len)) { in CreateNetLinkSocketFd()
/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_manager.cpp130 auto local = discoveryMap_.find(cb); in StopDiscoverService() local
131 if (local == discoveryMap_.end()) { in StopDiscoverService()
134 key = local->second; in StopDiscoverService()
135 discoveryMap_.erase(local); in StopDiscoverService()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/permission/src/
H A Dpermit_delegate.cpp139 StrategyMeta local(data.deviceId, data.user, data.bundleName, data.storeId); in VerifyStrategy()
140 MetaDataManager::GetInstance().LoadMeta(local.GetKey(), local); in VerifyStrategy()
143 if (!local.IsEffect() || !remote.IsEffect()) { in VerifyStrategy()
147 auto lremotes = local.capabilityRange.remoteLabel; in VerifyStrategy()
/foundation/multimedia/av_codec/test/unittest/demuxer_test/
H A Ddemuxer_unit_test.h44 void InitResource(const std::string &path, bool local);
45 void ReadSample(const std::string &path, bool local, bool checkBufferInfo = false);

Completed in 18 milliseconds

12345