Home
last modified time | relevance | path

Searched refs:cid (Results 1 - 25 of 60) sorted by relevance

123

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_utils.cpp25 int SQLiteRelationalUtils::GetDataValueByType(sqlite3_stmt *statement, int cid, DataValue &value) in GetDataValueByType() argument
27 if (statement == nullptr || cid < 0 || cid >= sqlite3_column_count(statement)) { in GetDataValueByType()
32 int storageType = sqlite3_column_type(statement, cid); in GetDataValueByType()
35 value = static_cast<int64_t>(sqlite3_column_int64(statement, cid)); in GetDataValueByType()
38 value = sqlite3_column_double(statement, cid); in GetDataValueByType()
42 errCode = SQLiteUtils::GetColumnBlobValue(statement, cid, blobValue); in GetDataValueByType()
62 (void)SQLiteUtils::GetColumnTextValue(statement, cid, str); in GetDataValueByType()
78 for (int cid = 0, colCount = sqlite3_column_count(stmt); cid < colCoun in GetSelectValues()
86 GetCloudValueByType(sqlite3_stmt *statement, int type, int cid, Type &cloudValue) GetCloudValueByType() argument
162 BindStatementByType(sqlite3_stmt *statement, int cid, Type &typeVal) BindStatementByType() argument
198 BindExtendStatementByType(sqlite3_stmt *statement, int cid, Type &typeVal) BindExtendStatementByType() argument
270 GetTypeValByStatement(sqlite3_stmt *stmt, int cid, Type &typeVal) GetTypeValByStatement() argument
316 GetBlobByStatement(sqlite3_stmt *stmt, int cid, Type &typeVal) GetBlobByStatement() argument
[all...]
H A Dsqlite_relational_utils.h28 static int GetDataValueByType(sqlite3_stmt *statement, int cid, DataValue &value);
32 static int GetCloudValueByType(sqlite3_stmt *statement, int type, int cid, Type &cloudValue);
36 static int BindStatementByType(sqlite3_stmt *statement, int cid, Type &typeVal);
51 static int BindExtendStatementByType(sqlite3_stmt *statement, int cid, Type &typeVal);
53 static int GetTypeValByStatement(sqlite3_stmt *stmt, int cid, Type &typeVal);
54 static int GetBlobByStatement(sqlite3_stmt *stmt, int cid, Type &typeVal);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/
H A Dkernel_talker.cpp39 uint8_t cid[CID_MAX_LEN]; member
45 uint8_t cid[CID_MAX_LEN]; member
77 auto cid = session->GetCid(); in SinkSessionTokernel() local
78 LOGI("sink session to kernel success, cid:%{public}s, socketFd:%{public}d, key[0]:%{public}x", in SinkSessionTokernel()
79 Utils::GetAnonyString(cid).c_str(), socketFd, *(uint32_t *)masterkey.data()); in SinkSessionTokernel()
93 if (memcpy_s(cmd.cid, CID_MAX_LEN, cid.c_str(), cid.size())) { in SinkSessionTokernel()
98 DevslDispatcher::DevslGetRegister(cid, shared_from_this()); in SinkSessionTokernel()
101 void KernelTalker::SinkDevslTokernel(const std::string &cid, uint32_ argument
115 SinkOfflineCmdToKernel(string cid) SinkOfflineCmdToKernel() argument
[all...]
H A Dsession_pool.cpp61 std::string cid = ""; in ReleaseSession() local
77 cid = (*iter)->GetCid(); in ReleaseSession()
79 if (DeviceDisconnectCountOnly(cid, linkType, false)) { in ReleaseSession()
97 void SessionPool::ReleaseSession(const string &cid, const uint8_t linkType) in ReleaseSession() argument
102 if ((*iter)->GetCid() == cid) { in ReleaseSession()
107 if (mlinkType == linkType && DeviceDisconnectCountOnly(cid, linkType, false)) { in ReleaseSession()
137 bool SessionPool::DeviceDisconnectCountOnly(const string &cid, const uint8_t linkType, bool needErase) in DeviceDisconnectCountOnly() argument
143 if (cid.empty()) { in DeviceDisconnectCountOnly()
147 std::string key = cid + "_" + std::to_string(linkType); in DeviceDisconnectCountOnly()
173 auto cid in DeviceConnectCountOnly() local
[all...]
H A Dnetwork_agent_template.cpp115 LOGI("DeviceOffline, cid:%{public}s", Utils::GetAnonyString(info.GetCid()).c_str()); in DisconnectDevice()
121 LOGI("DeviceOffline, cid:%{public}s", Utils::GetAnonyString(info.GetCid()).c_str()); in DisconnectDeviceByP2P()
127 LOGI("DeviceOffline, cid:%{public}s", Utils::GetAnonyString(info.GetCid()).c_str()); in DisconnectDeviceByP2PHmdfs()
150 auto cid = session->GetCid(); in AcceptSession() local
151 LOGI("AcceptSesion, cid:%{public}s", Utils::GetAnonyString(cid).c_str()); in AcceptSession()
167 LOGI("NOTIFY_GET_SESSION, old fd %{public}d, remote cid %{public}s", fd, Utils::GetAnonyString(cidStr).c_str()); in GetSessionProcessInner()
172 void NetworkAgentTemplate::GetSession(const string &cid, uint8_t linkType) in GetSession() argument
176 deviceInfo.SetCid(cid); in GetSession()
190 deviceManager->RemoveNetworkIdForAllToken(cid); in GetSession()
[all...]
H A Ddevsl_dispatcher.cpp56 uint32_t DevslDispatcher::DevslGetRegister(const std::string &cid, std::weak_ptr<KernelTalker> talker) in DevslGetRegister() argument
60 deviceManager.GetUdidByNetworkId(IDaemon::SERVICE_NAME, cid, udid); in DevslGetRegister()
70 idMap_[udid] = cid; in DevslGetRegister()
/foundation/filemanagement/app_file_service/test/fuzztest/remotefileshare_fuzzer/
H A Dremotefileshare_fuzzer.cpp42 char cid[HMDFS_CID_SIZE]; member
71 const char* cid = reinterpret_cast<const char*>(data); in ShareFilePathIoctlFdAndCidFuzzTest() local
73 if (memcpy_s(sc.cid, HMDFS_CID_SIZE, cid, size) != 0) { in ShareFilePathIoctlFdAndCidFuzzTest()
121 const char* cid = reinterpret_cast<const char*>(data); in ShareFilePathIoctlCidFuzzTest() local
122 if (memcpy_s(sc.cid, HMDFS_CID_SIZE, cid, size) != 0) { in ShareFilePathIoctlCidFuzzTest()
166 const char* cid = "remoteShareFileFuzzTestCidxxx"; in ShareFilePathIoctlFdFuzzTest() local
167 if (memcpy_s(sc.cid, HMDFS_CID_SIZE, cid, strle in ShareFilePathIoctlFdFuzzTest()
[all...]
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/
H A Dudmf_capi_common.h27 const int64_t cid; member
30 explicit UdsObject(int cid);
52 const int64_t cid = UTD_STRUCT_ID; member
92 const int64_t cid = UDMF_UNIFIED_RECORD_STRUCT_ID; member
103 const int64_t cid = UDMF_UNIFIED_DATA_STRUCT_ID; member
113 const int64_t cid = UDMF_UNIFIED_DATA_PROPERTIES_ID; member
119 bool IsInvalidUdsObjectPtr(const UdsObject* pThis, int cid);
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dl2cap_le_if.h102 * @param cid fix channel id
107 uint16_t cid, const L2capLeFixChannel *chan, void (*cb)(uint16_t cid, int result));
112 * @param cid fix channel id
115 void BTSTACK_API L2CIF_LeDeregisterFixChannel(uint16_t cid, void (*cb)(uint16_t cid, int result));
146 * @param cid fix channel id
151 uint16_t aclHandle, uint16_t cid, Packet *pkt, void (*cb)(uint16_t aclHandle, int result));
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
H A Dl2cap_cmn.c35 uint16_t cid; member
44 static void L2capProcessPacket(uint16_t handle, uint16_t cid, Packet *pkt) in L2capProcessPacket() argument
46 if (cid >= L2CAP_MIN_CID) { in L2capProcessPacket()
48 g_l2capBdr.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
51 } else if ((cid >= L2CAP_LE_MIN_CID) && (cid <= L2CAP_LE_MAX_CID)) { in L2capProcessPacket()
53 g_l2capLe.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
58 switch (cid) { in L2capProcessPacket()
61 g_l2capBdr.recvL2capPacket(handle, cid, pkt); in L2capProcessPacket()
68 g_l2capLe.recvL2capPacket(handle, cid, pk in L2capProcessPacket()
78 L2capRecombineStart(uint16_t handle, uint16_t length, uint16_t cid, const Packet *pkt) L2capRecombineStart() argument
167 uint16_t cid = L2capLe16ToCpu(header + L2CAP_OFFSET_2); L2capAclDataReceived() local
448 L2capBuildSignalPacket(uint16_t cid, const L2capSignalHeader *signal, const uint8_t *data) L2capBuildSignalPacket() argument
481 L2capSendCommandReject(uint16_t handle, uint16_t cid, uint8_t ident, uint16_t reason, uint16_t data[2]) L2capSendCommandReject() argument
[all...]
H A Dl2cap_le_if.c340 uint16_t cid; member
342 void (*cb)(uint16_t cid, int result);
352 result = L2CAP_LeRegisterFixChannel(ctx->cid, &(ctx->chan)); in L2cifLeRegisterFixChannel()
354 ctx->cb(ctx->cid, result); in L2cifLeRegisterFixChannel()
361 int L2CIF_LeRegisterFixChannel(uint16_t cid, const L2capLeFixChannel *chan, void (*cb)(uint16_t cid, int result)) in L2CIF_LeRegisterFixChannel() argument
374 ctx->cid = cid; in L2CIF_LeRegisterFixChannel()
383 uint16_t cid; member
384 void (*cb)(uint16_t cid, in
403 L2CIF_LeDeregisterFixChannel(uint16_t cid, void (*cb)(uint16_t cid, int result)) L2CIF_LeDeregisterFixChannel() argument
541 uint16_t cid; global() member
577 L2CIF_LeSendFixChannelData( uint16_t aclHandle, uint16_t cid, Packet *pkt, void (*cb)(uint16_t aclHandle, int result)) L2CIF_LeSendFixChannelData() argument
[all...]
H A Dl2cap_le.h113 * @param cid fix channel id
117 int L2CAP_LeRegisterFixChannel(uint16_t cid, const L2capLeFixChannel *chan);
122 * @param cid fix channel id
125 int L2CAP_LeDeregisterFixChannel(uint16_t cid);
155 * @param cid fix channel id
159 int L2CAP_LeSendFixChannelData(uint16_t aclHandle, uint16_t cid, const Packet *pkt);
H A Dl2cap_cmn.h156 int (*recvL2capPacket)(uint16_t handle, uint16_t cid, Packet *pkt);
162 int (*recvL2capPacket)(uint16_t handle, uint16_t cid, Packet *pkt);
174 Packet *L2capBuildSignalPacket(uint16_t cid, const L2capSignalHeader *signal, const uint8_t *data);
175 int L2capSendCommandReject(uint16_t handle, uint16_t cid, uint8_t ident, uint16_t reason, uint16_t data[2]);
/foundation/distributeddatamgr/preferences/frameworks/ndk/src/
H A Doh_preferences_option.cpp69 option->cid = PreferencesNdkStructId::PREFERENCES_OH_OPTION_CID; in OH_PreferencesOption_Create()
77 option->cid, PreferencesNdkStructId::PREFERENCES_OH_OPTION_CID)) { in OH_PreferencesOption_SetFileName()
90 option->cid, PreferencesNdkStructId::PREFERENCES_OH_OPTION_CID)) { in OH_PreferencesOption_SetBundleName()
104 option->cid, PreferencesNdkStructId::PREFERENCES_OH_OPTION_CID)) { in OH_PreferencesOption_SetDataGroupId()
118 option->cid, PreferencesNdkStructId::PREFERENCES_OH_OPTION_CID)) { in OH_PreferencesOption_Destroy()
H A Doh_preferences_value.cpp29 value->cid, PreferencesNdkStructId::PREFERENCES_OH_VALUE_CID)) { in GetSelf()
45 pairs[index].cid, PreferencesNdkStructId::PREFERENCES_OH_PAIR_CID)) { in OH_PreferencesPair_GetKey()
46 LOG_ERROR("cid error when get key from pair, cid: %{public}ld", static_cast<long>(pairs[index].cid)); in OH_PreferencesPair_GetKey()
60 pairs[index].cid, PreferencesNdkStructId::PREFERENCES_OH_PAIR_CID)) { in OH_PreferencesPair_GetPreferencesValue()
61 LOG_ERROR("cid error when get value from pair, cid: %{public}ld", static_cast<long>(pairs[index].cid)); in OH_PreferencesPair_GetPreferencesValue()
/foundation/distributeddatamgr/preferences/frameworks/ndk/include/
H A Doh_preferences_value_impl.h24 int64_t cid; member
28 int64_t cid; member
H A Doh_preferences_impl.h48 int64_t cid; member
80 int64_t cid; member
95 static bool PreferencesStructValidCheck(int64_t cid, int64_t structCid);
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/att/
H A Datt_common.h118 uint16_t cid; member
267 * @brief lookup AttConnectInfo info by cid.
269 * @param1 cid Indicates the cid.
272 void AttGetConnectInfoIndexByCid(uint16_t cid, AttConnectInfo **connect);
275 * @brief lookup AttConnectInfo info by cid and output parameter index.
277 * @param1 cid Indicates the cid.
281 void AttGetConnectInfoIndexByCidOutIndex(uint16_t cid, uint16_t *index, AttConnectInfo **connect);
300 * @brief lookup AttConnectingInfo info by cid
[all...]
H A Datt_common.c240 * @brief lookup AttConnectInfo info by cid.
242 * @param1 cid Indicates the cid.
245 void AttGetConnectInfoIndexByCid(uint16_t cid, AttConnectInfo **connect) in AttGetConnectInfoIndexByCid() argument
247 LOG_INFO("%{public}s enter, cid = %hu", __FUNCTION__, cid); in AttGetConnectInfoIndexByCid()
253 if (g_connectInfo[index].AttConnectID.bredrcid == cid) { in AttGetConnectInfoIndexByCid()
258 if (g_connectInfo[index].aclHandle == cid) { in AttGetConnectInfoIndexByCid()
275 * @brief lookup AttConnectInfo info by cid and output parameter index.
277 * @param1 cid Indicate
281 AttGetConnectInfoIndexByCidOutIndex(uint16_t cid, uint16_t *index, AttConnectInfo **connect) AttGetConnectInfoIndexByCidOutIndex() argument
659 AttGetConnectingIndexByCid(uint16_t cid, AttConnectingInfo **connecting) AttGetConnectingIndexByCid() argument
691 AttGetConnectingIndexByCidOutIndex(uint16_t cid, uint16_t *index, AttConnectingInfo **connecting) AttGetConnectingIndexByCidOutIndex() argument
757 AttGetConnectingIndexByCidConnectHandle( uint16_t cid, uint16_t connectHandle, uint16_t *index, AttConnectingInfo **connecting) AttGetConnectingIndexByCidConnectHandle() argument
858 AttGetConnectingIndexByAddrAclhandleCid( const BtAddr *addr, uint16_t aclHandle, uint16_t cid, AttConnectingInfo **connecting) AttGetConnectingIndexByAddrAclhandleCid() argument
[all...]
H A Datt_init.c42 static void L2cifLeRisterFixChannelCallback(uint16_t cid, int result);
141 lel2capLeFixChannelObj.cid = LE_CID; in ATT_StartUpAsync()
254 * @param1 cid Indicates the cid.
257 static void L2cifLeRisterFixChannelCallback(uint16_t cid, int result) in L2cifLeRisterFixChannelCallback() argument
259 LOG_INFO("%{public}s enter, cid = %hu, result = %{public}d", __FUNCTION__, cid, result); in L2cifLeRisterFixChannelCallback()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/
H A Dsoftbus_agent.cpp160 LOGI("Start to OpenSession, cid:%{public}s, linkType:%{public}d", in OpenSession()
205 LOGI("Success to OpenSession, socketId:%{public}d, linkType:%{public}d, cid:%{public}s", in OpenSession()
212 LOGI("Start to OpenApSession, cid:%{public}s, linkType:%{public}d", in OpenApSession()
239 LOGI("Bind Socket in use cid:%{public}s", Utils::GetAnonyString(info.GetCid()).c_str()); in OpenApSession()
243 LOGE("Bind SocketClient error cid:%{public}s", Utils::GetAnonyString(info.GetCid()).c_str()); in OpenApSession()
253 LOGI("Success to OpenApSession, socketId:%{public}d, linkType:%{public}d, cid:%{public}s", in OpenApSession()
266 bool SoftbusAgent::IsContinueRetry(const string &cid) in IsContinueRetry() argument
268 auto retriedTimesMap = OpenSessionRetriedTimesMap_.find(cid); in IsContinueRetry()
274 OpenSessionRetriedTimesMap_[cid] = 0; in IsContinueRetry()
276 OpenSessionRetriedTimesMap_[cid] in IsContinueRetry()
285 auto cid = session->GetCid(); OnSessionOpened() local
[all...]
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/convert/
H A Dndk_data_conversion.cpp21 if (ndkData == nullptr || data == nullptr || ndkData->cid != NdkStructId::UDMF_UNIFIED_DATA_STRUCT_ID) { in GetNativeUnifiedData()
30 if (data == nullptr || ndkData == nullptr || ndkData->cid != NdkStructId::UDMF_UNIFIED_DATA_STRUCT_ID) { in GetNdkUnifiedData()
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/network/
H A Ddevsl_dispatcher.h37 static uint32_t DevslGetRegister(const std::string &cid, std::weak_ptr<KernelTalker>);
39 static DEVSLQueryParams MakeDevslQueryParams(const std::string &cid);
H A Dsession_pool.h39 void ReleaseSession(const std::string &cid, const uint8_t linkType);
42 bool DeviceDisconnectCountOnly(const std::string &cid, const uint8_t linkType, bool needErase);
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/device/
H A Ddevice_info.cpp51 void DeviceInfo::SetCid(const string &cid) in SetCid() argument
54 cid_ = cid; in SetCid()
64 ThrowException(ERR_DEVICE_CID_UN_INIT, "cid uninitialized"); in GetCid()

Completed in 11 milliseconds

123