Home
last modified time | relevance | path

Searched refs:MAX_SIZE (Results 1 - 25 of 103) sorted by relevance

12345

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/image/image_fuzzer/
H A Dimage_fuzzer.cpp39 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 Drpc_test_main.cpp18 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 Dnet_test.cpp25 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 Dserver_test.cpp25 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 Drpc_test_main.cpp18 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 Dnet_test.cpp25 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 Dserver_test.cpp25 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 Ddrawsurface_fuzzer.cpp31 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 Drsrenderserviceconnection_fuzzer.cpp47 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 Dvsync_ltpo_test.cpp38 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 Dvsync_120to30_test.cpp38 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 Dvsync_90to30_test.cpp38 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 Dvsync_90to60_test.cpp38 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 Dvsync_30to120_test.cpp45 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 Dvsync_30to60_test.cpp45 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 Dvsync_30to90_test.cpp45 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 Dvsync_60to120_test.cpp45 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 Dimageinfo_fuzzer.cpp33 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 Dfontmgr_fuzzer.cpp29 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 Dfontstyleset_fuzzer.cpp29 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 Dfontstyle_fuzzer.cpp28 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 Dsurfacebuffer_fuzzer.cpp33 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 Ddraw_cmd_list_fuzzer.cpp32 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 Dauto_sync_matrix.cpp144 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 Drsrenderserviceconnectionstub_fuzzer.cpp36 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...]

Completed in 12 milliseconds

12345