/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/image_fuzzer/ |
H A D | image_fuzzer.cpp | 39 constexpr size_t MAX_SIZE = 5000; member 75 int32_t width = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest001() 76 int32_t height = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest001() 107 int32_t width = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest002() 108 int32_t height = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest002() 133 int32_t width = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest003() 134 int32_t height = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest003() 136 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in ImageFuzzTest003() 162 size_t length = GetObject<size_t>() % MAX_SIZE + 1; in ImageFuzzTest004() 169 int32_t width = GetObject<int32_t>() % MAX_SIZE; in ImageFuzzTest004() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | rpc_test_main.cpp | 18 static constexpr int MAX_SIZE = 10240; variable 26 } else if (size == MAX_SIZE) { in __wrap_read() 29 } else if (size > MAX_SIZE) { in __wrap_read() 48 } else if (size == MAX_SIZE) { in __wrap_write() 51 } else if (size > MAX_SIZE) { in __wrap_write()
|
H A D | net_test.cpp | 25 static constexpr int MAX_SIZE = 10240; member 29 char buff[MAX_SIZE] = {0}; in HWTEST_F() 31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); in HWTEST_F() 32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F() 39 char buff[MAX_SIZE] = {0}; in HWTEST_F() 41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); in HWTEST_F() 42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
|
H A D | server_test.cpp | 25 static constexpr int MAX_SIZE = 10; member 177 EXPECT_TRUE(RegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); in HWTEST_F() 178 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, nullptr) == -1); in HWTEST_F() 179 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, &context) == 0); in HWTEST_F() 189 EXPECT_TRUE(UnRegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); in HWTEST_F() 190 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, nullptr) == -1); in HWTEST_F() 191 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, &context) == 0); in HWTEST_F()
|
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | rpc_test_main.cpp | 18 static constexpr int MAX_SIZE = 10240; variable 26 } else if (size == MAX_SIZE) { in __wrap_read() 29 } else if (size > MAX_SIZE) { in __wrap_read() 48 } else if (size == MAX_SIZE) { in __wrap_write() 51 } else if (size > MAX_SIZE) { in __wrap_write()
|
H A D | net_test.cpp | 25 static constexpr int MAX_SIZE = 10240; member 29 char buff[MAX_SIZE] = {0}; in HWTEST_F() 31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); in HWTEST_F() 32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F() 39 char buff[MAX_SIZE] = {0}; in HWTEST_F() 41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); in HWTEST_F() 42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR); in HWTEST_F()
|
H A D | server_test.cpp | 25 static constexpr int MAX_SIZE = 10; member 177 EXPECT_TRUE(RegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); in HWTEST_F() 178 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, nullptr) == -1); in HWTEST_F() 179 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, &context) == 0); in HWTEST_F() 189 EXPECT_TRUE(UnRegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); in HWTEST_F() 190 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, nullptr) == -1); in HWTEST_F() 191 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, &context) == 0); in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/drawsurface_fuzzer/ |
H A D | drawsurface_fuzzer.cpp | 31 constexpr size_t MAX_SIZE = 5000; member 48 int width = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest001() 49 int height = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest001() 93 int width = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest002() 94 int height = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest002() 101 int32_t widthT = GetObject<int32_t>() % MAX_SIZE; in SurfaceFuzzTest002() 102 int32_t heightT = GetObject<int32_t>() % MAX_SIZE; in SurfaceFuzzTest002() 112 int surWidth = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest002() 113 int surHeight = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest002() 139 int width = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest003() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/fuzztest/rsrenderserviceconnection_fuzzer/ |
H A D | rsrenderserviceconnection_fuzzer.cpp | 47 constexpr size_t MAX_SIZE = 4; member 80 if (size < MAX_SIZE) { in DoRegisterApplicationAgent() 107 if (size < MAX_SIZE) { in DoCommitTransaction() 144 if (size < MAX_SIZE) { in DoExecuteSynchronousTask() 169 if (size < MAX_SIZE) { in DoGetMemoryGraphic() 193 if (size < MAX_SIZE) { in DoCreateNodeAndSurface() 213 if (size < MAX_SIZE) { in DoGetScreenBacklight() 239 if (size < MAX_SIZE) { in DoGetScreenType() 264 if (size < MAX_SIZE) { in DoRegisterBufferAvailableListener() 289 if (size < MAX_SIZE) { in DoSetScreenSkipFrameInterval() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/systemtest/ |
H A D | vsync_ltpo_test.cpp | 38 constexpr int32_t MAX_SIZE = 32; member 40 int64_t appTimestamps[MAX_SIZE] = {0}; 42 int64_t rsTimestamps[MAX_SIZE] = {0}; 53 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 59 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 180 int64_t appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 181 int64_t appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 182 int64_t rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 183 int64_t rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 228 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_120to30_test.cpp | 38 constexpr int32_t MAX_SIZE = 128; member 40 int64_t appTimestamps[MAX_SIZE] = {0}; 42 int64_t rsTimestamps[MAX_SIZE] = {0}; 53 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 59 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 196 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 197 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 198 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 199 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 244 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_90to30_test.cpp | 38 constexpr int32_t MAX_SIZE = 128; member 40 int64_t appTimestamps[MAX_SIZE] = {0}; 42 int64_t rsTimestamps[MAX_SIZE] = {0}; 53 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 59 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 196 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 197 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 198 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 199 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 244 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_90to60_test.cpp | 38 constexpr int32_t MAX_SIZE = 128; member 40 int64_t appTimestamps[MAX_SIZE] = {0}; 42 int64_t rsTimestamps[MAX_SIZE] = {0}; 53 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 59 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 196 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 197 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 198 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 199 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 244 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_30to120_test.cpp | 45 constexpr int32_t MAX_SIZE = 128; member 47 int64_t appTimestamps[MAX_SIZE] = {0}; 49 int64_t rsTimestamps[MAX_SIZE] = {0}; 60 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 66 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 203 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 204 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 205 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 206 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 253 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_30to60_test.cpp | 45 constexpr int32_t MAX_SIZE = 128; member 47 int64_t appTimestamps[MAX_SIZE] = {0}; 49 int64_t rsTimestamps[MAX_SIZE] = {0}; 60 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 66 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 203 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 204 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 205 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 206 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 253 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_30to90_test.cpp | 45 constexpr int32_t MAX_SIZE = 128; member 47 int64_t appTimestamps[MAX_SIZE] = {0}; 49 int64_t rsTimestamps[MAX_SIZE] = {0}; 60 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 66 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 203 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 204 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 205 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 206 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 253 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
H A D | vsync_60to120_test.cpp | 45 constexpr int32_t MAX_SIZE = 128; member 47 int64_t appTimestamps[MAX_SIZE] = {0}; 49 int64_t rsTimestamps[MAX_SIZE] = {0}; 60 g_timeStamps.appIndex %= MAX_SIZE; in OnVSyncApp() 66 g_timeStamps.rsIndex %= MAX_SIZE; in OnVSyncRs() 203 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 204 appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 205 rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should minus 2 in Process1() 206 rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus 1 in Process1() 253 appTimestampPrev = timeStamps.appTimestamps[(timeStamps.appIndex - 2) % MAX_SIZE]; // pre in Process1() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/imageinfo_fuzzer/ |
H A D | imageinfo_fuzzer.cpp | 33 constexpr size_t MAX_SIZE = 5000; member 46 int width = GetObject<int>() % MAX_SIZE; in ImageInfoFuzzTest001() 47 int height = GetObject<int>() % MAX_SIZE; in ImageInfoFuzzTest001() 68 int32_t width = GetObject<int32_t>() % MAX_SIZE; in ImageInfoFuzzTest002() 69 int32_t height = GetObject<int32_t>() % MAX_SIZE; in ImageInfoFuzzTest002() 85 int width = GetObject<int>() % MAX_SIZE; in ImageInfoFuzzTest003() 86 int height = GetObject<int>() % MAX_SIZE; in ImageInfoFuzzTest003()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontmgr_fuzzer/ |
H A D | fontmgr_fuzzer.cpp | 29 constexpr size_t MAX_SIZE = 5000; member 44 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest001() 75 int index = GetObject<int>() % MAX_SIZE; in FontMgrFuzzTest002() 92 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest003() 102 size_t dataLength = GetObject<size_t>() % MAX_SIZE + 1; in FontMgrFuzzTest003() 138 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest004() 148 size_t dataLength = GetObject<size_t>() % MAX_SIZE + 1; in FontMgrFuzzTest004() 184 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest005() 194 uint32_t countT = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest005() 208 size_t dataLength = GetObject<size_t>() % MAX_SIZE in FontMgrFuzzTest005() [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontstyleset_fuzzer/ |
H A D | fontstyleset_fuzzer.cpp | 29 constexpr size_t MAX_SIZE = 5000; member 45 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontStyleSetFuzzTest001() 74 int weight = GetObject<int>() % MAX_SIZE; in FontStyleSetFuzzTest002() 75 int width = GetObject<int>() % MAX_SIZE; in FontStyleSetFuzzTest002() 79 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontStyleSetFuzzTest002()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontstyle_fuzzer/ |
H A D | fontstyle_fuzzer.cpp | 28 constexpr size_t MAX_SIZE = 5000; member 44 int weight = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest() 45 int width = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest()
|
/foundation/graphic/graphic_surface/surface/test/fuzztest/surfacebuffer_fuzzer/ |
H A D | surfacebuffer_fuzzer.cpp | 33 constexpr int32_t MAX_SIZE = 1024; member 91 width = width > MAX_SIZE ? MAX_SIZE : width; in DoSomethingInterestingWithMyAPI() 93 height = height > MAX_SIZE ? MAX_SIZE : height; in DoSomethingInterestingWithMyAPI()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/drawcmdlist_fuzzer/ |
H A D | draw_cmd_list_fuzzer.cpp | 32 constexpr size_t MAX_SIZE = 5000; member 44 int32_t width = GetObject<int32_t>() % MAX_SIZE; in DrawCmdListFuzzTest000() 45 int32_t height = GetObject<int32_t>() % MAX_SIZE; in DrawCmdListFuzzTest000() 46 size_t length = GetObject<size_t>() % MAX_SIZE + 1; in DrawCmdListFuzzTest000() 88 size_t length = GetObject<size_t>() % MAX_SIZE + 1; in DrawCmdListFuzzTest001()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/matrix/src/ |
H A D | auto_sync_matrix.cpp | 144 if (pos >= MAX_SIZE) { in Delete() 145 ZLOGE("pos:%{public}zu exceeds maximum value:%{public}d", pos, MAX_SIZE); in Delete() 148 std::bitset<MAX_SIZE> tmp; in Delete() 160 if (pos >= MAX_SIZE) { in Set() 161 ZLOGE("pos:%{public}zu exceeds maximum value:%{public}d", pos, MAX_SIZE); in Set() 169 if (size >= MAX_SIZE) { in Init() 170 ZLOGE("pos:%{public}zu exceeds maximum value:%{public}d", size, MAX_SIZE); in Init() 180 if (pos >= MAX_SIZE) { in Reset() 181 ZLOGE("pos:%{public}zu exceeds maximum value:%{public}d", pos, MAX_SIZE); in Reset()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/fuzztest/rsrenderserviceconnectionstub_fuzzer/ |
H A D | rsrenderserviceconnectionstub_fuzzer.cpp | 36 constexpr size_t MAX_SIZE = 4; member 71 if (size < MAX_SIZE) { in DoOnRemoteRequest() 106 if (size < MAX_SIZE) { in DoSetScreenGamutMap() 140 if (size < MAX_SIZE) { in DoGetScreenGamutMap() 174 if (size < MAX_SIZE) { in DoGetScreenHDRCapability() 208 if (size < MAX_SIZE) { in DoGetScreenType() 242 if (size < MAX_SIZE) { in DoGetBitmap() 274 if (size < MAX_SIZE) { in DoSetAppWindowNum() 308 if (size < MAX_SIZE) { in DoShowWatermark() 342 if (size < MAX_SIZE) { in DoSetScreenPowerStatus() [all...] |