/foundation/arkui/ace_engine/test/unittest/core/property/ |
D | templates_parser_test_ng.cpp | 51 double size = 0; variable 56 size = 200; in __anonae8532900202() 61 size, gap, childrenCount, {} }, in __anonae8532900202() 63 size = 200; in __anonae8532900402() 68 size, gap, childrenCount, {} }, in __anonae8532900402() 70 size = 200; in __anonae8532900602() 75 size, gap, childrenCount, { -2, 0, 0 } }, in __anonae8532900602() 77 size = 200; in __anonae8532900802() 82 size, gap, childrenCount, { -2, 0, 0 } }, in __anonae8532900802() 84 size = 200; in __anonae8532900a02() [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttransudpmanager_fuzzer/ |
D | clienttransudpmanager_fuzzer.cpp | 29 void TransOnUdpChannelOpenedTest(const uint8_t* data, size_t size) in TransOnUdpChannelOpenedTest() argument 31 if ((data == nullptr) || (size == 0)) { in TransOnUdpChannelOpenedTest() 37 int32_t udpPort = size; in TransOnUdpChannelOpenedTest() 41 void TransOnUdpChannelOpenFailedTest(const uint8_t* data, size_t size) in TransOnUdpChannelOpenFailedTest() argument 43 if ((data == nullptr) || (size == 0)) { in TransOnUdpChannelOpenFailedTest() 46 TransOnUdpChannelOpenFailed((int32_t)size, (int32_t)size); in TransOnUdpChannelOpenFailedTest() 49 void TransOnUdpChannelClosedTest(const uint8_t* data, size_t size) in TransOnUdpChannelClosedTest() argument 51 if ((data == nullptr) || (size == 0)) { in TransOnUdpChannelClosedTest() 54 TransOnUdpChannelClosed((int32_t)size); in TransOnUdpChannelClosedTest() 57 void TransOnUdpChannelQosEventTest(const uint8_t* data, size_t size) in TransOnUdpChannelQosEventTest() argument [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttranstcpdirectlistener_fuzzer/ |
D | clienttranstcpdirectlistener_fuzzer.cpp | 59 void TransTdcCreateListenerTest(const uint8_t* data, size_t size) in TransTdcCreateListenerTest() argument 61 if ((data == nullptr) || (size == 0)) { in TransTdcCreateListenerTest() 64 TransTdcCreateListener((int32_t)size); in TransTdcCreateListenerTest() 67 void TransTdcStopReadTest(const uint8_t* data, size_t size) in TransTdcStopReadTest() argument 69 if ((data == nullptr) || (size == 0)) { in TransTdcStopReadTest() 72 TransTdcStopRead((int32_t)size); in TransTdcStopReadTest() 75 void TransTdcSendBytesTest(const uint8_t* data, size_t size) in TransTdcSendBytesTest() argument 77 if ((data == nullptr) || (size == 0)) { in TransTdcSendBytesTest() 81 TransTdcSendBytes((int32_t)size, &tmp, (uint32_t)size); in TransTdcSendBytesTest() 84 void TransTdcSendMessageTest(const uint8_t* data, size_t size) in TransTdcSendMessageTest() argument [all …]
|
/foundation/communication/netstack/test/fuzztest/socket/fuzztest/socketexec_fuzzer/ |
D | socket_exec_fuzzer.cpp | 44 inline void SetGlobalFuzzData(const uint8_t *data, size_t size) in SetGlobalFuzzData() argument 47 g_netstackFuzzSize = size; in SetGlobalFuzzData() 52 void MakeUdpSocketFuzzTest(const uint8_t *data, size_t size) in MakeUdpSocketFuzzTest() argument 54 if ((data == nullptr) || (size == 0)) { in MakeUdpSocketFuzzTest() 57 SetGlobalFuzzData(data, size); in MakeUdpSocketFuzzTest() 65 void MakeTcpSocketFuzzTest(const uint8_t *data, size_t size) in MakeTcpSocketFuzzTest() argument 67 if ((data == nullptr) || (size == 0)) { in MakeTcpSocketFuzzTest() 70 SetGlobalFuzzData(data, size); in MakeTcpSocketFuzzTest() 78 void ExecUdpBindFuzzTest(const uint8_t *data, size_t size) in ExecUdpBindFuzzTest() argument 80 if ((data == nullptr) || (size == 0)) { in ExecUdpBindFuzzTest() [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessionmock_fuzzer/ |
D | sessionmock_fuzzer.cpp | 24 void GetPkgNameInnerTest(const uint8_t* data, size_t size) in GetPkgNameInnerTest() argument 26 if ((data == nullptr) || (size < sizeof(int32_t))) { in GetPkgNameInnerTest() 31 GetPkgNameInner(sessionId, tmp, size); in GetPkgNameInnerTest() 34 void GetPeerDeviceIdInnerTest(const uint8_t* data, size_t size) in GetPeerDeviceIdInnerTest() argument 36 if ((data == nullptr) || (size < sizeof(int32_t))) { in GetPeerDeviceIdInnerTest() 41 GetPeerDeviceIdInner(sessionId, tmp, size); in GetPeerDeviceIdInnerTest() 44 void GetPeerSessionNameInnerTest(const uint8_t* data, size_t size) in GetPeerSessionNameInnerTest() argument 46 if ((data == nullptr) || (size < sizeof(int32_t))) { in GetPeerSessionNameInnerTest() 52 GetPeerSessionNameInner(sessionId, tmp, size); in GetPeerSessionNameInnerTest() 55 void GetMySessionNameInnerTest(const uint8_t* data, size_t size) in GetMySessionNameInnerTest() argument [all …]
|
/foundation/communication/ipc/ipc/native/test/fuzztest/core/bufferobject_fuzzer/ |
D | bufferobject_fuzzer.cpp | 24 bool GetSendBufferAndLockTest(const uint8_t* data, size_t size) in GetSendBufferAndLockTest() argument 26 if (data == nullptr || size < sizeof(uint32_t)) { in GetSendBufferAndLockTest() 39 bool GetReceiveBufferAndLockTest(const uint8_t* data, size_t size) in GetReceiveBufferAndLockTest() argument 41 if (data == nullptr || size < sizeof(uint32_t)) { in GetReceiveBufferAndLockTest() 54 bool ReleaseSendBufferLockTest(const uint8_t* data, size_t size) in ReleaseSendBufferLockTest() argument 56 if (data == nullptr || size == 0) { in ReleaseSendBufferLockTest() 64 bool ReleaseReceiveBufferLockTest(const uint8_t* data, size_t size) in ReleaseReceiveBufferLockTest() argument 66 if (data == nullptr || size == 0) { in ReleaseReceiveBufferLockTest() 74 bool GetReceiveBufferWriteCursorTest(const uint8_t* data, size_t size) in GetReceiveBufferWriteCursorTest() argument 76 if (data == nullptr || size == 0) { in GetReceiveBufferWriteCursorTest() [all …]
|
/foundation/communication/ipc/ipc/native/test/fuzztest/mock/dbinderdatabusinvoker_fuzzer/ |
D | dbinderdatabusinvoker_fuzzer.cpp | 29 bool AcquireHandleTest(const uint8_t* data, size_t size) in AcquireHandleTest() argument 31 if (data == nullptr || size < sizeof(int32_t)) { in AcquireHandleTest() 44 bool ReleaseHandleTest(const uint8_t* data, size_t size) in ReleaseHandleTest() argument 46 if (data == nullptr || size < sizeof(int32_t)) { in ReleaseHandleTest() 59 bool QueryClientSessionObjectTest(const uint8_t* data, size_t size) in QueryClientSessionObjectTest() argument 61 if (data == nullptr || size < sizeof(int32_t)) { in QueryClientSessionObjectTest() 75 bool QueryServerSessionObjectTest(const uint8_t* data, size_t size) in QueryServerSessionObjectTest() argument 77 if (data == nullptr || size < sizeof(int32_t)) { in QueryServerSessionObjectTest() 91 bool OnMessageAvailableTest(const uint8_t* data, size_t size) in OnMessageAvailableTest() argument 93 if (data == nullptr || size < sizeof(ssize_t)) { in OnMessageAvailableTest() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/query_fuzzer/ |
D | query_fuzzer.cpp | 27 void FuzzEqualTo(const uint8_t* data, size_t size) in FuzzEqualTo() argument 29 std::string rawString(reinterpret_cast<const char *>(data), size); in FuzzEqualTo() 30 Query query = Query::Select().EqualTo(rawString, static_cast<int>(size)); in FuzzEqualTo() 33 void FuzzNotEqualTo(const uint8_t* data, size_t size) in FuzzNotEqualTo() argument 35 std::string rawString(reinterpret_cast<const char *>(data), size); in FuzzNotEqualTo() 39 void FuzzGreaterThan(const uint8_t* data, size_t size) in FuzzGreaterThan() argument 41 std::string rawString(reinterpret_cast<const char *>(data), size); in FuzzGreaterThan() 45 void FuzzLessThan(const uint8_t* data, size_t size) in FuzzLessThan() argument 47 std::string rawString(reinterpret_cast<const char *>(data), size); in FuzzLessThan() 51 void FuzzGreaterThanOrEqualTo(const uint8_t* data, size_t size) in FuzzGreaterThanOrEqualTo() argument [all …]
|
/foundation/communication/netmanager_base/test/fuzztest/common_fuzzer/ |
D | common_fuzzer.cpp | 70 void GetIfaceNamesFuzzTest(const uint8_t *data, size_t size) in GetIfaceNamesFuzzTest() argument 72 if ((data == nullptr) || (size == 0)) { in GetIfaceNamesFuzzTest() 76 g_baseFuzzSize = size; in GetIfaceNamesFuzzTest() 85 void GetIfaceNameByTypeFuzzTest(const uint8_t *data, size_t size) in GetIfaceNameByTypeFuzzTest() argument 87 if ((data == nullptr) || (size == 0)) { in GetIfaceNameByTypeFuzzTest() 91 g_baseFuzzSize = size; in GetIfaceNameByTypeFuzzTest() 100 void UnregisterNetSupplierFuzzTest(const uint8_t *data, size_t size) in UnregisterNetSupplierFuzzTest() argument 102 if ((data == nullptr) || (size == 0)) { in UnregisterNetSupplierFuzzTest() 106 g_baseFuzzSize = size; in UnregisterNetSupplierFuzzTest() 112 void UpdateNetLinkInfoFuzzTest(const uint8_t *data, size_t size) in UpdateNetLinkInfoFuzzTest() argument [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/vtpstreamsocket_fuzzer/ |
D | vtpstreamsocket_fuzzer.cpp | 28 void VtpCreateClientTest(const uint8_t* data, size_t size) in VtpCreateClientTest() argument 30 if ((data == nullptr) || (size < sizeof(int))) { in VtpCreateClientTest() 42 void VtpCreateServerTest(const uint8_t* data, size_t size) in VtpCreateServerTest() argument 44 if ((data == nullptr) || (size < sizeof(int))) { in VtpCreateServerTest() 55 void VtpDestroyStreamSocketTest(const uint8_t* data, size_t size) in VtpDestroyStreamSocketTest() argument 57 if ((data == nullptr) || (size == 0)) { in VtpDestroyStreamSocketTest() 64 void VtpConnectTest(const uint8_t* data, size_t size) in VtpConnectTest() argument 66 if ((data == nullptr) || (size == 0)) { in VtpConnectTest() 74 void VtpSetOptionTest(const uint8_t* data, size_t size) in VtpSetOptionTest() argument 76 if ((data == nullptr) || (size < sizeof(int))) { in VtpSetOptionTest() [all …]
|
/foundation/distributeddatamgr/preferences/test/native/fuzztest/preferences_fuzzer/ |
D | preferences_fuzzer.cpp | 62 bool PutIntFuzz(const uint8_t *data, size_t size) in PutIntFuzz() argument 64 std::string skey(data, data + size); in PutIntFuzz() 65 auto svalue = static_cast<int>(size); in PutIntFuzz() 74 bool GetIntFuzz(const uint8_t *data, size_t size) in GetIntFuzz() argument 76 std::string skey(data, data + size); in GetIntFuzz() 77 auto svalue = static_cast<int>(size); in GetIntFuzz() 87 bool PutStringFuzz(const uint8_t *data, size_t size) in PutStringFuzz() argument 90 std::string skey(data, data + size); in PutStringFuzz() 91 std::string svalue(data, data + size); in PutStringFuzz() 99 bool GetStringFuzz(const uint8_t *data, size_t size) in GetStringFuzz() argument [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttranssessionmanager_fuzzer/ |
D | clienttranssessionmanager_fuzzer.cpp | 42 void ClientAddNewSessionTest(const uint8_t* data, size_t size) in ClientAddNewSessionTest() argument 44 if ((data == nullptr) || (size == 0)) { in ClientAddNewSessionTest() 52 void ClientAddAuthSessionTest(const uint8_t* data, size_t size) in ClientAddAuthSessionTest() argument 55 if ((data == nullptr) || (size < SESSION_NAME_SIZE_MAX)) { in ClientAddAuthSessionTest() 62 void ClientDeleteSessionTest(const uint8_t* data, size_t size) in ClientDeleteSessionTest() argument 64 if ((data == nullptr) || (size < sizeof(int32_t))) { in ClientDeleteSessionTest() 71 void ClientGetSessionDataTest(const uint8_t* data, size_t size) in ClientGetSessionDataTest() argument 73 if ((data == nullptr) || (size < sizeof(int32_t))) { in ClientGetSessionDataTest() 79 ClientGetSessionDataById(sessionId, testData, size, KEY_SESSION_NAME); in ClientGetSessionDataTest() 84 void ClientSetChannelBySessionIdTest(const uint8_t* data, size_t size) in ClientSetChannelBySessionIdTest() argument [all …]
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/recording/ |
D | mem_allocator.cpp | 33 bool MemAllocator::BuildFromData(const void* data, size_t size) in BuildFromData() argument 35 if (!data || size == 0 || size > MEM_SIZE_MAX) { in BuildFromData() 42 capacity_ = size; in BuildFromData() 43 size_ = size; in BuildFromData() 48 bool MemAllocator::BuildFromDataWithCopy(const void* data, size_t size) in BuildFromDataWithCopy() argument 50 if (!data || size == 0 || size > MEM_SIZE_MAX) { in BuildFromDataWithCopy() 56 Add(data, size); in BuildFromDataWithCopy() 72 bool MemAllocator::Resize(size_t size) in Resize() argument 74 if (isReadOnly_ || size == 0 || size > MEM_SIZE_MAX || size < size_) { in Resize() 78 char* newData = new char[size]; in Resize() [all …]
|
/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/src/wifip2pimpl_fuzzer/ |
D | wifip2pimpl_fuzzer.cpp | 27 void RequestServiceTest(const uint8_t* data, size_t size) in RequestServiceTest() argument 31 if (size >= THREE) { in RequestServiceTest() 33 std::string deviceName = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() 34 std::string networkName = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() 35 std::string mDeviceAddress = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() 36 std::string primaryDeviceType = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() 37 … std::string secondaryDeviceType = std::string(reinterpret_cast<const char*>(data), size); in RequestServiceTest() 53 void PutLocalP2pServiceTest(const uint8_t* data, size_t size) in PutLocalP2pServiceTest() argument 56 std::string serviceName = std::string(reinterpret_cast<const char*>(data), size); in PutLocalP2pServiceTest() 57 std::string mDeviceAddress = std::string(reinterpret_cast<const char*>(data), size); in PutLocalP2pServiceTest() [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/sessioncallbackmock_fuzzer/ |
D | sessioncallbackmock_fuzzer.cpp | 27 void InnerOnSessionOpenedTest(const uint8_t* data, size_t size) in InnerOnSessionOpenedTest() argument 29 if ((data == nullptr) || (size == 0)) { in InnerOnSessionOpenedTest() 34 InnerOnSessionOpened(size, result); in InnerOnSessionOpenedTest() 37 void InnerOnSessionClosedTest(const uint8_t* data, size_t size) in InnerOnSessionClosedTest() argument 39 if ((data == nullptr) || (size == 0)) { in InnerOnSessionClosedTest() 43 InnerOnSessionClosed(size); in InnerOnSessionClosedTest() 46 void InnerOnBytesReceivedTest(const uint8_t* data, size_t size) in InnerOnBytesReceivedTest() argument 48 if ((data == nullptr) || (size == 0)) { in InnerOnBytesReceivedTest() 53 InnerOnBytesReceived(sessionId, data, size); in InnerOnBytesReceivedTest() 56 void InnerOnMessageReceivedTest(const uint8_t* data, size_t size) in InnerOnMessageReceivedTest() argument [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/transserverproxyextern_fuzzer/ |
D | transserverproxyextern_fuzzer.cpp | 34 void TransServerProxyDeInitTest(const uint8_t* data, size_t size) in TransServerProxyDeInitTest() argument 36 if ((data == nullptr) || (size == 0)) { in TransServerProxyDeInitTest() 43 void ServerIpcOpenAuthSessionTest(const uint8_t* data, size_t size) in ServerIpcOpenAuthSessionTest() argument 45 if ((data == nullptr) || (size == 0)) { in ServerIpcOpenAuthSessionTest() 52 void ServerIpcNotifyAuthSuccessTest(const uint8_t* data, size_t size) in ServerIpcNotifyAuthSuccessTest() argument 54 if ((data == nullptr) || (size < sizeof(int32_t))) { in ServerIpcNotifyAuthSuccessTest() 64 void ServerIpcCloseChannelTest(const uint8_t* data, size_t size) in ServerIpcCloseChannelTest() argument 66 if ((data == nullptr) || (size < sizeof(int32_t))) { in ServerIpcCloseChannelTest() 75 void ServerIpcSendMessageTest(const uint8_t* data, size_t size) in ServerIpcSendMessageTest() argument 77 if ((data == nullptr) || (size < sizeof(int32_t))) { in ServerIpcSendMessageTest() [all …]
|
/foundation/ai/ai_engine/services/client/algorithm_sdk/asr/keyword_spotting/source/ |
D | pcm_iterator.cpp | 99 if (input.data == nullptr || input.size == 0) { in SetInput() 111 numRealCopy_ = (numCopy_ > input.size) ? input.size : numCopy_; in Prepare() 112 size_t realCacheSize = nextCachePos_ + pcmCache_.size; in Prepare() 119 pcmCache_.size += numRealCopy_; in Prepare() 125 pcmData_.size = input.size - diff; in Prepare() 136 if (windowSize_ <= pcmCache_.size || windowSize_ <= pcmData_.size) { in Prepare() 141 if (pcmCache_.size == 0 && pcmData_.size > 0 && pcmData_.size < windowSize_) { in Prepare() 160 if (nextCachePos_ > 0 && numCopy_ == 0 && pcmCache_.size > 0 && pcmCache_.size < windowSize_) { in HasNext() 163 .size = pcmCache_.size in HasNext() 168 if (pcmCache_.size == 0 && pcmData_.size > 0 && pcmData_.size < windowSize_) { in HasNext() [all …]
|
/foundation/communication/netmanager_base/test/fuzztest/netstatsclient_fuzzer/ |
D | net_stats_client_fuzzer.cpp | 112 void RegisterNetStatsCallbackFuzzTest(const uint8_t *data, size_t size) in RegisterNetStatsCallbackFuzzTest() argument 114 if ((data == nullptr) || (size == 0)) { in RegisterNetStatsCallbackFuzzTest() 132 void UnregisterNetStatsCallbackFuzzTest(const uint8_t *data, size_t size) in UnregisterNetStatsCallbackFuzzTest() argument 134 if ((data == nullptr) || (size == 0)) { in UnregisterNetStatsCallbackFuzzTest() 152 void GetIfaceRxBytesFuzzTest(const uint8_t *data, size_t size) in GetIfaceRxBytesFuzzTest() argument 154 if ((data == nullptr) || (size == 0)) { in GetIfaceRxBytesFuzzTest() 158 g_baseFuzzSize = size; in GetIfaceRxBytesFuzzTest() 171 void GetIfaceTxBytesFuzzTest(const uint8_t *data, size_t size) in GetIfaceTxBytesFuzzTest() argument 173 if ((data == nullptr) || (size == 0)) { in GetIfaceTxBytesFuzzTest() 177 g_baseFuzzSize = size; in GetIfaceTxBytesFuzzTest() [all …]
|
/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibilitysystemabilityclient_fuzzer/ |
D | accessibilitysystemabilityclient_fuzzer.cpp | 30 size_t GetObject(T &object, const uint8_t *data, size_t size) in GetObject() argument 33 if (objectSize > size) { in GetObject() 68 … void CreateEventInfoFirstPart(AccessibilityEventInfo &eventInfo, const uint8_t* data, size_t size, in CreateEventInfoFirstPart() argument 72 position += GetObject<int32_t>(componentId, &data[position], size - position); in CreateEventInfoFirstPart() 75 position += GetObject<int32_t>(windowId, &data[position], size - position); in CreateEventInfoFirstPart() 78 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 80 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 82 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 85 position += GetObject<int32_t>(itemCounts, &data[position], size - position); in CreateEventInfoFirstPart() 88 position += GetObject<WindowsContentChangeTypes>(changeTypes, &data[position], size - position); in CreateEventInfoFirstPart() [all …]
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
D | size_t.h | 153 bool UpdateSizeWithCheck(const SizeT& size) in UpdateSizeWithCheck() argument 156 if (NonNegative(size.width_) && (width_ != size.width_)) { in UpdateSizeWithCheck() 157 width_ = size.width_; in UpdateSizeWithCheck() 160 if (NonNegative(size.height_) && (height_ != size.height_)) { in UpdateSizeWithCheck() 161 height_ = size.height_; in UpdateSizeWithCheck() 167 void UpdateIllegalSizeWithCheck(const SizeT& size) in UpdateIllegalSizeWithCheck() argument 169 if (Negative(width_) && NonNegative(size.width_)) { in UpdateIllegalSizeWithCheck() 170 width_ = size.width_; in UpdateIllegalSizeWithCheck() 172 if (Negative(height_) && NonNegative(size.height_)) { in UpdateIllegalSizeWithCheck() 173 height_ = size.height_; in UpdateIllegalSizeWithCheck() [all …]
|
/foundation/communication/wifi/wifi/test/fuzztest/frameworks/native/c_adapter/wifichid2d_fuzzer/ |
D | wifichid2d_fuzzer.cpp | 25 bool WifiCHid2dFuzzerTest(const uint8_t* data, size_t size) in WifiCHid2dFuzzerTest() argument 27 Hid2dRequestGcIpTest(data, size); in WifiCHid2dFuzzerTest() 31 Hid2dCreateGroupTest(data, size); in WifiCHid2dFuzzerTest() 32 Hid2dRemoveGcGroupTest(data, size); in WifiCHid2dFuzzerTest() 33 Hid2dConnectTest(data, size); in WifiCHid2dFuzzerTest() 34 Hid2dConfigIPAddrTest(data, size); in WifiCHid2dFuzzerTest() 35 Hid2dReleaseIPAddrTest(data, size); in WifiCHid2dFuzzerTest() 36 Hid2dGetRecommendChannelTest(data, size); in WifiCHid2dFuzzerTest() 37 Hid2dGetSelfWifiCfgInfoTest(data, size); in WifiCHid2dFuzzerTest() 38 Hid2dSetPeerWifiCfgInfoTest(data, size); in WifiCHid2dFuzzerTest() [all …]
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
D | size_test.cpp | 84 std::unique_ptr<SizeF> size = std::make_unique<SizeF>(); variable 85 ASSERT_TRUE(size != nullptr); 86 ASSERT_TRUE(size->IsZero()); 98 std::unique_ptr<SizeF> size = std::make_unique<SizeF>(); variable 99 ASSERT_TRUE(size != nullptr); 100 ASSERT_FALSE(!size->IsZero()); 112 std::unique_ptr<SizeF> size = std::make_unique<SizeF>(); variable 113 ASSERT_TRUE(size != nullptr); 114 ASSERT_TRUE(size->IsEmpty()); 126 std::unique_ptr<SizeF> size = std::make_unique<SizeF>(); variable [all …]
|
/foundation/communication/dsoftbus/tests/sdk/transmission/fuzztest/clienttransudpstreaminterface_fuzzer/ |
D | clienttransudpstreaminterface_fuzzer.cpp | 25 void SendVtpStreamTest(const uint8_t* data, size_t size) in SendVtpStreamTest() argument 27 if ((data == nullptr) || (size == 0)) { in SendVtpStreamTest() 34 SendVtpStream(size, indata, ext, param); in SendVtpStreamTest() 37 void StartVtpStreamChannelServerTest(const uint8_t* data, size_t size) in StartVtpStreamChannelServerTest() argument 39 if ((data == nullptr) || (size == 0)) { in StartVtpStreamChannelServerTest() 45 StartVtpStreamChannelServer(size, param, callback); in StartVtpStreamChannelServerTest() 48 void StartVtpStreamChannelClientTest(const uint8_t* data, size_t size) in StartVtpStreamChannelClientTest() argument 50 if ((data == nullptr) || (size == 0)) { in StartVtpStreamChannelClientTest() 56 StartVtpStreamChannelClient(size, param, callback); in StartVtpStreamChannelClientTest() 59 void CloseVtpStreamChannelTest(const uint8_t* data, size_t size) in CloseVtpStreamChannelTest() argument [all …]
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/refreshlnn_fuzzer/ |
D | refreshlnn_fuzzer.cpp | 57 static void GenRanDiscInfo(char* data, size_t size) in GenRanDiscInfo() argument 59 g_sInfo.subscribeId = size; in GenRanDiscInfo() 60 … g_sInfo.mode = (size % MAX_SIZE_DISCOVER_MODE) ? DISCOVER_MODE_ACTIVE : DISCOVER_MODE_PASSIVE; in GenRanDiscInfo() 61 g_sInfo.medium = (ExchangeMedium)(size % MAX_SIZE_EXCHANGE_MEDIUM); in GenRanDiscInfo() 62 g_sInfo.freq = (ExchangeFreq)(size % MAX_SIZE_EXCHANGE_FREQ); in GenRanDiscInfo() 63 g_sInfo.isSameAccount = (size % MAX_SIZE_DISCOVER_MODE) ? true : false; in GenRanDiscInfo() 64 g_sInfo.isWakeRemote = (size % MAX_SIZE_DISCOVER_MODE) ? true : false; in GenRanDiscInfo() 65 … g_sInfo.capability = g_capabilityMap[(DataBitMap)(size % MAX_SIZE_CAPABILITYMAP)].capability; in GenRanDiscInfo() 67 g_sInfo.dataLen = size; in GenRanDiscInfo() 70 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument [all …]
|
/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibleabilityclient_fuzzer/ |
D | accessibleabilityclient_fuzzer.cpp | 33 size_t GetObject(T &object, const uint8_t *data, size_t size) in GetObject() argument 36 if (objectSize > size) { in GetObject() 54 static size_t GenerateRect(OHOS::Accessibility::Rect &bounds, const uint8_t* data, size_t size) in GenerateRect() argument 59 position += GetObject<int32_t>(posX, &data[position], size - position); in GenerateRect() 60 position += GetObject<int32_t>(posY, &data[position], size - position); in GenerateRect() 63 position += GetObject<int32_t>(posX, &data[position], size - position); in GenerateRect() 64 position += GetObject<int32_t>(posY, &data[position], size - position); in GenerateRect() 69 …ze_t GenerateRangeInfo(OHOS::Accessibility::RangeInfo &rangeInfo, const uint8_t* data, size_t size) in GenerateRangeInfo() argument 73 position += GetObject<int32_t>(int32Data, &data[position], size - position); in GenerateRangeInfo() 76 position += GetObject<int32_t>(int32Data, &data[position], size - position); in GenerateRangeInfo() [all …]
|