/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/fuzztest/rsrenderserviceconnection_fuzzer/ |
H A D | rsrenderserviceconnection_fuzzer.cpp | 77 if (size < MAX_SIZE) { in DoRegisterApplicationAgent() 104 if (size < MAX_SIZE) { in DoCommitTransaction() 141 if (size < MAX_SIZE) { in DoExecuteSynchronousTask() 166 if (size < MAX_SIZE) { in DoGetMemoryGraphic() 190 if (size < MAX_SIZE) { in DoCreateNodeAndSurface() 210 if (size < MAX_SIZE) { in DoGetScreenBacklight() 236 if (size < MAX_SIZE) { in DoGetScreenType() 261 if (size < MAX_SIZE) { in DoRegisterBufferAvailableListener() 286 if (size < MAX_SIZE) { in DoSetScreenSkipFrameInterval() 310 if (size < MAX_SIZE) { in DoSetVirtualScreenResolution() [all …]
|
/ohos5.0/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; variable 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() 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() 140 int height = GetObject<int>() % MAX_SIZE; in SurfaceFuzzTest003() [all …]
|
/ohos5.0/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; variable 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() 138 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in FontMgrFuzzTest004() 261 int weight = GetObject<int>() % MAX_SIZE; in FontMgrFuzzTest006() 262 int width = GetObject<int>() % MAX_SIZE; in FontMgrFuzzTest006() 265 size_t bcp47Count = GetObject<size_t>() % MAX_SIZE; in FontMgrFuzzTest006() 326 int weight = GetObject<int>() % MAX_SIZE; in FontMgrFuzzTest008() 327 int width = GetObject<int>() % MAX_SIZE; in FontMgrFuzzTest008() [all …]
|
/ohos5.0/base/telephony/cellular_call/services/manager/src/ |
H A D | cellular_call_stub.cpp | 28 const int32_t MAX_SIZE = 10; variable 221 size = ((size > MAX_SIZE) ? 0 : size); in OnDialInner() 240 size = ((size > MAX_SIZE) ? 0 : size); in OnHangUpInner() 260 size = ((size > MAX_SIZE) ? 0 : size); in OnRejectInner() 279 size = ((size > MAX_SIZE) ? 0 : size); in OnAnswerInner() 298 size = ((size > MAX_SIZE) ? 0 : size); in OnIsEmergencyPhoneNumberInner() 325 size = ((size > MAX_SIZE) ? 0 : size); in OnSetEmergencyCallList() 358 size = ((size > MAX_SIZE) ? 0 : size); in OnRegisterCallBackInner() 381 size = ((size > MAX_SIZE) ? 0 : size); in OnUnRegisterCallBackInner() 396 size = ((size > MAX_SIZE) ? 0 : size); in OnHoldCallInner() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/test/systemtest/ |
H A D | vsync_ltpo_test.cpp | 38 constexpr int32_t MAX_SIZE = 32; variable 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() 226 …appTimestampCur = timeStamps.appTimestamps[(timeStamps.appIndex - 1) % MAX_SIZE]; // cur should mi… in Process1() 227 …rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should min… in Process1() 228 …rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus… in Process1() 274 …rsTimestampPrev = timeStamps.rsTimestamps[(timeStamps.rsIndex - 2) % MAX_SIZE]; // prev should min… in Process1() 275 …rsTimestampCur = timeStamps.rsTimestamps[(timeStamps.rsIndex - 1) % MAX_SIZE]; // cur should minus… in Process1() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | net_test.cpp | 25 static constexpr int MAX_SIZE = 10240; variable 29 char buff[MAX_SIZE] = {0}; 31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); 32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); 39 char buff[MAX_SIZE] = {0}; 41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); 42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR);
|
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 | server_test.cpp | 25 static constexpr int MAX_SIZE = 10; variable 177 EXPECT_TRUE(RegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); 178 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, nullptr) == -1); 179 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, &context) == 0); 189 EXPECT_TRUE(UnRegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); 190 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, nullptr) == -1); 191 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, &context) == 0);
|
/ohos5.0/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | net_test.cpp | 25 static constexpr int MAX_SIZE = 10240; variable 29 char buff[MAX_SIZE] = {0}; 31 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE) == 0); 32 EXPECT_TRUE(MyRead(fd, buff, MAX_SIZE + 1) == SOCK_ERR); 39 char buff[MAX_SIZE] = {0}; 41 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE) == 0); 42 EXPECT_TRUE(MyWrite(fd, buff, MAX_SIZE + 1) == SOCK_ERR);
|
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 | server_test.cpp | 25 static constexpr int MAX_SIZE = 10; variable 177 EXPECT_TRUE(RegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); 178 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, nullptr) == -1); 179 EXPECT_TRUE(RegisterCallback(&server, MAX_SIZE, &context) == 0); 189 EXPECT_TRUE(UnRegisterCallback(nullptr, MAX_SIZE, nullptr) == -1); 190 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, nullptr) == -1); 191 EXPECT_TRUE(UnRegisterCallback(&server, MAX_SIZE, &context) == 0);
|
/ohos5.0/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; variable 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()
|
/ohos5.0/base/update/sys_installer/services/module_update/service/src/ |
H A D | module_update_queue.cpp | 21 constexpr int MAX_SIZE = 100; variable 26 queue_.resize(MAX_SIZE); in ModuleUpdateQueue() 48 tail_ = (tail_ + 1) % MAX_SIZE; in Put() 64 head_ = (head_ + 1) % MAX_SIZE; in Pop() 79 return size_ == MAX_SIZE; in IsFull()
|
/ohos5.0/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; variable 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()
|
/ohos5.0/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; variable 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() 276 if (size < MAX_SIZE) { in DoSetAppWindowNum() 310 if (size < MAX_SIZE) { in DoShowWatermark() 344 if (size < MAX_SIZE) { in DoSetScreenPowerStatus() [all …]
|
/ohos5.0/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()
|
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/surfacebuffer_fuzzer/ |
H A D | surfacebuffer_fuzzer.cpp | 33 constexpr int32_t MAX_SIZE = 1024; variable 92 width = width > MAX_SIZE ? MAX_SIZE : width; in DoSomethingInterestingWithMyAPI() 94 height = height > MAX_SIZE ? MAX_SIZE : height; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/typeface_fuzzer/ |
H A D | typeface_fuzzer.cpp | 26 constexpr size_t MAX_SIZE = 5000; variable 68 size_t length = GetObject<size_t>() % MAX_SIZE + 1; in TypefaceFuzzTest002() 92 size_t length = GetObject<size_t>() % MAX_SIZE + 1; in TypefaceFuzzTest003() 125 size_t coordinateCount = GetObject<size_t>() % MAX_SIZE + 1; in TypefaceFuzzTest004() 135 size_t overrideCount = GetObject<size_t>() % MAX_SIZE + 1; in TypefaceFuzzTest004() 164 uint32_t count = GetObject<uint32_t>() % MAX_SIZE + 1; in TypefaceFuzzTest005()
|
/ohos5.0/base/telephony/call_manager/frameworks/native/src/ |
H A D | cellular_call_proxy.cpp | 22 constexpr int32_t MAX_SIZE = 10; variable 32 if (!in.WriteInt32(MAX_SIZE)) { in Dial() 58 if (!in.WriteInt32(MAX_SIZE)) { in HangUp() 87 if (!in.WriteInt32(MAX_SIZE)) { in Reject() 113 if (!in.WriteInt32(MAX_SIZE)) { in Answer() 139 if (!in.WriteInt32(MAX_SIZE)) { in HoldCall() 165 if (!in.WriteInt32(MAX_SIZE)) { in UnHoldCall() 192 if (!in.WriteInt32(MAX_SIZE)) { in SwitchCall() 222 if (!in.WriteInt32(MAX_SIZE)) { in RegisterCallManagerCallBack() 249 if (!in.WriteInt32(MAX_SIZE)) { in UnRegisterCallManagerCallBack() [all …]
|
/ohos5.0/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; variable 44 int weight = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest() 45 int width = GetObject<int>() % MAX_SIZE; in FontStyleFuzzTest()
|
/ohos5.0/foundation/communication/netstack/frameworks/js/napi/http/cache/lru_cache/src/ |
H A D | lru_cache.cpp | 25 static constexpr const int MAX_SIZE = 1024 * 1024; variable 33 if (p.second.size() > MAX_SIZE) { in GetMapValueSize() 36 if (size + p.second.size() > MAX_SIZE) { in GetMapValueSize() 41 if (size > MAX_SIZE || size == 0) { in GetMapValueSize() 52 LRUCache::LRUCache() : capacity_(MAX_SIZE), size_(0) {} in LRUCache() 54 LRUCache::LRUCache(size_t capacity) : capacity_(std::min<size_t>(MAX_SIZE, capacity)), size_(0) {} in LRUCache()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_listener.cpp | 30 constexpr size_t MAX_SIZE = 500; variable 101 const char *src[MAX_SIZE] = {}; in OnSessionOpened() 102 for (size_t i = 0; i < fileList.size() && fileList.size() < MAX_SIZE; i++) { in OnSessionOpened() 111 const char *dst[MAX_SIZE] = {}; in OnSessionOpened() 112 for (size_t i = 0; i < fileNameList.size() && fileList.size() < MAX_SIZE; i++) { in OnSessionOpened()
|
/ohos5.0/base/powermgr/battery_manager/frameworks/napi/src/ |
H A D | napi_utils.cpp | 22 constexpr uint32_t MAX_SIZE = 255; variable 36 char str[MAX_SIZE] = {0}; in GetStringFromNapi() 38 if (napi_ok != napi_get_value_string_utf8(env, napiStr, str, MAX_SIZE - 1, &strLen)) { in GetStringFromNapi()
|
/ohos5.0/base/powermgr/power_manager/frameworks/napi/utils/ |
H A D | napi_utils.cpp | 22 constexpr uint32_t MAX_SIZE = 255; variable 36 char str[MAX_SIZE] = {0}; in GetStringFromNapi() 38 if (napi_ok != napi_get_value_string_utf8(env, napiStr, str, MAX_SIZE - 1, &strLen)) { in GetStringFromNapi()
|
/ohos5.0/base/location/frameworks/location_common/common/source/ |
H A D | location_data_rdb_manager.cpp | 25 const int MAX_SIZE = 100; variable 163 char result[MAX_SIZE] = {0}; in GetSwitchStateFromSysparaForUser() 166 auto res = GetParameter(LOCATION_SWITCH_MODE, "", result, MAX_SIZE); in GetSwitchStateFromSysparaForUser() 192 char result[MAX_SIZE] = {0}; in SetSwitchStateToSysparaForUser() 195 auto res = GetParameter(LOCATION_SWITCH_MODE, "", result, MAX_SIZE); in SetSwitchStateToSysparaForUser() 219 char valueArray[MAX_SIZE] = {0}; in SetSwitchStateToSysparaForUser()
|