/base/security/certificate_manager/test/fuzz_test/cminstallappcert_fuzzer/ |
H A D | cminstallappcert_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCert)) { in DoSomethingInterestingWithMyAPI() 39 CmFree(myData); in DoSomethingInterestingWithMyAPI() 44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertPwd)) { in DoSomethingInterestingWithMyAPI() 45 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI() 51 CmFree(myData); in DoSomethingInterestingWithMyAPI() 56 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 57 CmFree(myData); in DoSomethingInterestingWithMyAPI() [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
H A D | BufferTests.cpp | 66 uint32_t myData = 0x01020304; in TEST_P() local 67 constexpr size_t kSize = sizeof(myData); in TEST_P() 68 queue.WriteBuffer(buffer, 0, &myData, kSize); in TEST_P() 71 CheckMapping(buffer.GetConstMappedRange(), &myData, kSize); in TEST_P() 72 CheckMapping(buffer.GetConstMappedRange(0, kSize), &myData, kSize); in TEST_P() 89 uint32_t myData[3] = {0x01020304, 0x05060708, 0x090A0B0C}; in TEST_P() local 90 queue.WriteBuffer(buffer, 0, &myData, sizeof(myData)); in TEST_P() 93 ASSERT_EQ(myData[2], *static_cast<const uint32_t*>(buffer.GetConstMappedRange(8))); in TEST_P() 101 uint32_t myData in TEST_P() local 120 uint32_t myData[] = {0x00010203, 0x04050607, 0x08090a0b}; TEST_P() local 137 std::vector<uint32_t> myData; TEST_P() local 171 uint32_t myData[3] = {0x01020304, 0x05060708, 0x090A0B0C}; TEST_P() local 210 uint32_t myData = 2934875; TEST_P() local 224 uint32_t myData = 2934875; TEST_P() local 248 uint32_t myData = 2934875; TEST_P() local 260 uint32_t myData = 2934875; TEST_P() local 345 std::vector<uint32_t> myData; TEST_P() local 363 std::vector<uint32_t> myData; TEST_P() local 443 static constexpr uint32_t myData = 2934875; TEST_P() local 484 static constexpr uint32_t myData = 2934875; TEST_P() local 580 uint32_t myData = 230502; TEST_P() local 589 uint32_t myData = 230502; TEST_P() local 600 uint32_t myData = 4239; TEST_P() local 610 std::vector<uint32_t> myData; TEST_P() local 625 std::vector<uint32_t> myData; TEST_P() local 642 std::vector<uint32_t> myData; TEST_P() local 670 static uint32_t myData = 230502; TEST_P() local 695 uint32_t myData = 230502; TEST_P() local [all...] |
/base/security/certificate_manager/test/fuzz_test/cmgetappcert_fuzzer/ |
H A D | cmgetappcert_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &appCertUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 CmFree(myData); in DoSomethingInterestingWithMyAPI() 52 (void)memcpy_s(&credCert, sizeof(struct Credential), myData + offset, sizeof(struct Credential)); in DoSomethingInterestingWithMyAPI() 56 CmFree(myData); in DoSomethingInterestingWithMyAPI() 59 credCert.credData.data = const_cast<uint8_t *>(myData in DoSomethingInterestingWithMyAPI() [all...] |
/base/security/certificate_manager/test/fuzz_test/cmfinish_fuzzer/ |
H A D | cmfinish_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &fiHandle)) { in DoSomethingInterestingWithMyAPI() 39 CmFree(myData); in DoSomethingInterestingWithMyAPI() 44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &inData)) { in DoSomethingInterestingWithMyAPI() 45 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &outData)) { in DoSomethingInterestingWithMyAPI() 51 CmFree(myData); in DoSomethingInterestingWithMyAPI() 58 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgetcertinfo_fuzzer/ |
H A D | cmgetcertinfo_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, buffSize, &myData)) { in DoSomethingInterestingWithMyAPI() 35 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &sysUri)) { in DoSomethingInterestingWithMyAPI() 36 CmFree(myData); in DoSomethingInterestingWithMyAPI() 41 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 42 CmFree(myData); in DoSomethingInterestingWithMyAPI() 47 if (!GetCertInfoFromBuffer(myData, &remainSize, &offset, &sysCertInfo)) { in DoSomethingInterestingWithMyAPI() 48 CmFree(myData); in DoSomethingInterestingWithMyAPI() 55 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgetauthorizedapplist_fuzzer/ |
H A D | cmgetauthorizedapplist_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authorUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &(appUidList.appUidCount))) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 47 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 appUidList.appUid = reinterpret_cast<uint32_t *>(myData + offset); in DoSomethingInterestingWithMyAPI() 55 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgetappcertlist_fuzzer/ |
H A D | cmgetappcertlist_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetUintFromBuffer(myData, &remainSize, &offset, &credStore)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &(credCertList.credentialCount))) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 47 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 credCertList.credentialAbstract = reinterpret_cast<struct CredentialAbstract *>(myData + offset); in DoSomethingInterestingWithMyAPI() 55 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgetusercertinfo_fuzzer/ |
H A D | cmgetusercertinfo_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &userCertUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 if (!GetCertInfoFromBuffer(myData, &remainSize, &offset, &userCertInfo)) { in DoSomethingInterestingWithMyAPI() 49 CmFree(myData); in DoSomethingInterestingWithMyAPI() 56 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgrantappcertificate_fuzzer/ |
H A D | cmgrantappcertificate_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &keyUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authUri)) { in DoSomethingInterestingWithMyAPI() 49 CmFree(myData); in DoSomethingInterestingWithMyAPI() 56 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cminit_fuzzer/ |
H A D | cminit_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &authUri)) { in DoSomethingInterestingWithMyAPI() 39 CmFree(myData); in DoSomethingInterestingWithMyAPI() 44 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 (void)memcpy_s(&spec, sizeof(struct CmSignatureSpec), myData + offset, sizeof(struct CmSignatureSpec)); in DoSomethingInterestingWithMyAPI() 53 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &handle)) { in DoSomethingInterestingWithMyAPI() 54 CmFree(myData); in DoSomethingInterestingWithMyAPI() 61 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cminstallusertrustedcert_fuzzer/ |
H A D | cminstallusertrustedcert_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 37 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &userCert)) { in DoSomethingInterestingWithMyAPI() 38 CmFree(myData); in DoSomethingInterestingWithMyAPI() 43 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certAlias)) { in DoSomethingInterestingWithMyAPI() 44 CmFree(myData); in DoSomethingInterestingWithMyAPI() 49 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &certUri)) { in DoSomethingInterestingWithMyAPI() 50 CmFree(myData); in DoSomethingInterestingWithMyAPI() 57 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmsetusercertstatus_fuzzer/ |
H A D | cmsetusercertstatus_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &setUserUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &userStore)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 CmFree(myData); in DoSomethingInterestingWithMyAPI() 52 (void)memcpy_s(&status, sizeof(bool), myData + offset, sizeof(bool)); in DoSomethingInterestingWithMyAPI() 57 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmsetcertstatus_fuzzer/ |
H A D | cmsetcertstatus_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &sysCertUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 48 CmFree(myData); in DoSomethingInterestingWithMyAPI() 52 (void)memcpy_s(&status, sizeof(bool), myData + offset, sizeof(bool)); in DoSomethingInterestingWithMyAPI() 56 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/ |
H A D | trans_udp_negotiation_test.cpp | 133 newChannel->info.myData.channelId = TEST_CHANNEL_ID; in HWTEST_F() 138 appInfo->myData.channelId = TEST_CHANNEL_ID; in HWTEST_F() 140 strcpy_s(appInfo->myData.sessionName, sizeof(appInfo->myData.sessionName), g_sessionName); in HWTEST_F() 164 appInfo->myData.channelId = TEST_CHANNEL_ID; in HWTEST_F() 189 newChannel->info.myData.channelId = TEST_CHANNEL_ID; in HWTEST_F() 208 int32_t res = strcpy_s(appInfo->myData.pkgName, sizeof(appInfo->myData.pkgName), g_pkgName); in HWTEST_F() 210 appInfo->myData.pid = INVALID_PID; in HWTEST_F() 211 appInfo->myData in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation.c | 124 info.channelId = appInfo->myData.channelId; in NotifyUdpChannelOpened() 128 info.myIp = (char*)appInfo->myData.addr; in NotifyUdpChannelOpened() 151 TransGetLaneIdByChannelId(appInfo->myData.channelId, &info.laneId); in NotifyUdpChannelOpened() 152 ret = g_channelCb->GetPkgNameBySessionName(appInfo->myData.sessionName, in NotifyUdpChannelOpened() 153 (char*)appInfo->myData.pkgName, PKG_NAME_SIZE_MAX); in NotifyUdpChannelOpened() 158 return g_channelCb->OnChannelOpened(appInfo->myData.pkgName, appInfo->myData.pid, in NotifyUdpChannelOpened() 159 appInfo->myData.sessionName, &info); in NotifyUdpChannelOpened() 169 TRANS_LOGI(TRANS_CTRL, "pkgName=%{public}s.", info->myData.pkgName); in NotifyUdpChannelClosed() 170 int32_t ret = g_channelCb->OnChannelClosed(info->myData in NotifyUdpChannelClosed() [all...] |
H A D | trans_udp_negotiation_exchange.c | 51 IsIShareSession(appInfo->myData.sessionName) && (IsIShareSession(appInfo->peerData.sessionName))) ? in getCodeType() 105 (void)GetJsonObjectStringItem(msg, "BUS_NAME", appInfo->myData.sessionName, SESSION_NAME_SIZE_MAX); in TransGetCommonUdpInfoFromJson() 151 (void)GetJsonObjectNumber64Item(msg, "PEER_CHANNEL_ID", &(appInfo->myData.channelId)); in TransUnpackRequestUdpInfo() 154 if (appInfo->myData.channelId == INVALID_CHANNEL_ID) { in TransUnpackRequestUdpInfo() 175 (void)AddNumber64ToJsonObject(msg, "MY_CHANNEL_ID", appInfo->myData.channelId); in TransPackRequestUdpInfo() 176 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo() 182 (void)AddNumber64ToJsonObject(msg, "MY_CHANNEL_ID", appInfo->myData.channelId); in TransPackRequestUdpInfo() 183 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo() 200 (void)AddNumberToJsonObject(msg, "API_VERSION", appInfo->myData.apiVersion); in TransPackRequestUdpInfo() 201 (void)AddNumberToJsonObject(msg, "UID", appInfo->myData in TransPackRequestUdpInfo() [all...] |
/base/security/certificate_manager/test/fuzz_test/cmgetcertlist_fuzzer/ |
H A D | cmgetcertlist_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, buffSize, &myData)) { in DoSomethingInterestingWithMyAPI() 35 if (!GetUintFromBuffer(myData, &remainSize, &offset, &sysStore)) { in DoSomethingInterestingWithMyAPI() 36 CmFree(myData); in DoSomethingInterestingWithMyAPI() 41 if (!GetCertListFromBuffer(myData, &remainSize, &offset, &sysCertList)) { in DoSomethingInterestingWithMyAPI() 42 CmFree(myData); in DoSomethingInterestingWithMyAPI() 49 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmgetusercertlist_fuzzer/ |
H A D | cmgetusercertlist_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetUintFromBuffer(myData, &remainSize, &offset, &userStore)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetCertListFromBuffer(myData, &remainSize, &offset, &userCertList)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmremovegrantedapp_fuzzer/ |
H A D | cmremovegrantedapp_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &grantKeyUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &appUid)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmuninstallappcert_fuzzer/ |
H A D | cmuninstallappcert_fuzzer.cpp | 27 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 28 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 36 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &rmKeyUri)) { in DoSomethingInterestingWithMyAPI() 37 CmFree(myData); in DoSomethingInterestingWithMyAPI() 42 if (!GetUintFromBuffer(myData, &remainSize, &offset, &store)) { in DoSomethingInterestingWithMyAPI() 43 CmFree(myData); in DoSomethingInterestingWithMyAPI() 50 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmupdate_fuzzer/ |
H A D | cmupdate_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 38 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &upHandle)) { in DoSomethingInterestingWithMyAPI() 39 CmFree(myData); in DoSomethingInterestingWithMyAPI() 44 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &inData)) { in DoSomethingInterestingWithMyAPI() 45 CmFree(myData); in DoSomethingInterestingWithMyAPI() 52 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmsendrequest_fuzzer/ |
H A D | cmsendrequest_fuzzer.cpp | 28 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 29 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 37 (void)memcpy_s(&type, sizeof(CertManagerInterfaceCode), myData, sizeof(CertManagerInterfaceCode)); in DoSomethingInterestingWithMyAPI() 45 if (ConstructParamSet(myData, &remainSize, &offset, type, &sendParamSet) == false) { in DoSomethingInterestingWithMyAPI() 46 CmFree(myData); in DoSomethingInterestingWithMyAPI() 53 if (!GetCmBlobFromBuffer(myData, &remainSize, &offset, &outBlob)) { in DoSomethingInterestingWithMyAPI() 54 CmFree(myData); in DoSomethingInterestingWithMyAPI() 62 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_manager/test/fuzz_test/cmonremoterequest_fuzzer/ |
H A D | cmonremoterequest_fuzzer.cpp | 29 uint8_t *myData = nullptr; in DoSomethingInterestingWithMyAPI() local 30 if (!CopyMyData(data, size, minSize, &myData)) { in DoSomethingInterestingWithMyAPI() 39 if (!GetUintFromBuffer(myData, &remainSize, &offset, &code)) { in DoSomethingInterestingWithMyAPI() 40 CmFree(myData); in DoSomethingInterestingWithMyAPI() 47 if (!GetUintFromBuffer(myData, &remainSize, &offset, &outSize)) { in DoSomethingInterestingWithMyAPI() 48 CmFree(myData); in DoSomethingInterestingWithMyAPI() 52 if (ConstructParamSet(myData, &remainSize, &offset, in DoSomethingInterestingWithMyAPI() 54 CmFree(myData); in DoSomethingInterestingWithMyAPI() 75 CmFree(myData); in DoSomethingInterestingWithMyAPI()
|
/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/ |
H A D | softbus_message_open_channel_test.cpp | 71 appInfo->myData.channelId = 1; in TestGetMsgPack() 72 appInfo->myData.apiVersion = API_V2; in TestGetMsgPack() 74 (void)memcpy_s(appInfo->myData.sessionName, SESSION_NAME_MAX_LEN, g_sessionName, (strlen(g_sessionName)+1)); in TestGetMsgPack() 75 (void)memcpy_s(appInfo->myData.pkgName, PKG_NAME_SIZE_MAX_LEN, g_pkgName, (strlen(g_pkgName)+1)); in TestGetMsgPack() 98 if (!AddStringToJsonObject(msg, "DEVICE_ID", appInfo->myData.deviceId) || in TestTransAuthChannelMsgPack() 99 !AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName) || in TestTransAuthChannelMsgPack() 100 !AddStringToJsonObject(msg, "SRC_BUS_NAME", appInfo->myData.sessionName) || in TestTransAuthChannelMsgPack() 104 !AddNumberToJsonObject(msg, "MTU_SIZE", appInfo->myData.dataConfig)) { in TestTransAuthChannelMsgPack() 147 int32_t res = strcpy_s(appInfo->myData.pkgName, sizeof(appInfo->myData in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/ |
H A D | trans_auth_manager.c | 104 if (info->appInfo.myData.channelId == channelId) { in GetAuthChannelInfoByChanId() 131 if (info->appInfo.myData.channelId == channelId) { in GetAuthIdByChannelId() 172 channelInfo.channelId = appInfo->myData.channelId; in NotifyOpenAuthChannelSuccess() 183 channelInfo.dataConfig = appInfo->myData.dataConfig; in NotifyOpenAuthChannelSuccess() 188 return g_cb->OnChannelOpened(appInfo->myData.pkgName, appInfo->myData.pid, in NotifyOpenAuthChannelSuccess() 189 appInfo->myData.sessionName, &channelInfo); in NotifyOpenAuthChannelSuccess() 220 return g_cb->OnDataReceived(channel.appInfo.myData.pkgName, channel.appInfo.myData.pid, in NotifyOnDataReceived() 221 channel.appInfo.myData in NotifyOnDataReceived() [all...] |