/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/window_fuzzer/ |
H A D | window_fuzzer.cpp | 352 startPos += GetObject(alpha, data + startPos, size - startPos); in CheckWindowImplFunctionsPart1() 398 startPos += GetObject(posX, data + startPos, size - startPos); in CheckWindowImplFunctionsPart2() 399 startPos += GetObject(posY, data + startPos, size - startPos); in CheckWindowImplFunctionsPart2() 404 startPos += GetObject(width, data + startPos, size - startPos); in CheckWindowImplFunctionsPart2() 405 startPos += GetObject(hight, data + startPos, size - startPos); in CheckWindowImplFunctionsPart2() 465 startPos += GetObject(rect, data + startPos, size - startPos); in CheckWindowImplFunctionsPart3() 470 startPos += GetObject(mode, data + startPos, size - startPos); in CheckWindowImplFunctionsPart3() 518 startPos += GetObject(rect, data + startPos, size - startPos); in CheckWindowImplFunctionsPart4() 533 startPos += GetObject(mode, data + startPos, size - startPos); in CheckWindowImplFunctionsPart4() 546 startPos += GetObject(rect, data + startPos, size - startPos); in CheckWindowImplFunctionsPart5() [all …]
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/updatedisplayinfo_fuzzer/ |
H A D | updatedisplayinfo_fuzzer.cpp | 64 startPos += GetObject<int32_t>(data + startPos, size - startPos, defaultRect.y); in UpdateHotAreas() 65 startPos += GetObject<int32_t>(data + startPos, size - startPos, defaultRect.width); in UpdateHotAreas() 66 startPos += GetObject<int32_t>(data + startPos, size - startPos, defaultRect.x); in UpdateHotAreas() 70 startPos += GetObject<int32_t>(data + startPos, size - startPos, pointerRect.y); in UpdateHotAreas() 71 startPos += GetObject<int32_t>(data + startPos, size - startPos, pointerRect.width); in UpdateHotAreas() 72 startPos += GetObject<int32_t>(data + startPos, size - startPos, pointerRect.x); in UpdateHotAreas() 81 startPos += GetObject<int32_t>(data + startPos, size - startPos, temp); in UpdateHotAreas() 88 startPos += GetObject<float>(data + startPos, size - startPos, temp); in UpdateHotAreas() 112 startPos += GetObject<int32_t>(data + startPos, size - startPos, windowInfo.id); in UpdateDisplayInfoFuzzTest() 124 startPos += GetString(data + startPos, size - startPos, name, stringSize); in UpdateDisplayInfoFuzzTest() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowscene_fuzzer/ |
H A D | windowscene_fuzzer.cpp | 79 startPos += GetObject<Rect>(windowRect, data + startPos, size - startPos); in InitWindowOption1() 82 startPos += GetObject<uint32_t>(type, data + startPos, size - startPos); in InitWindowOption1() 85 startPos += GetObject<uint32_t>(mode, data + startPos, size - startPos); in InitWindowOption1() 88 startPos += GetObject<bool>(focusable, data + startPos, size - startPos); in InitWindowOption1() 91 startPos += GetObject<bool>(touchable, data + startPos, size - startPos); in InitWindowOption1() 94 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in InitWindowOption1() 97 startPos += GetObject<uint32_t>(parentId, data + startPos, size - startPos); in InitWindowOption1() 102 startPos += GetObject<char>(name[i], data + startPos, size - startPos); in InitWindowOption1() 113 startPos += GetObject<uint32_t>(flags, data + startPos, size - startPos); in InitWindowOption2() 133 startPos += GetObject<float>(brightness, data + startPos, size - startPos); in InitWindowOption2() [all …]
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/pointerstyle_fuzzer/ |
H A D | pointerstyle_fuzzer.cpp | 59 startPos += GetObject<int32_t>(data + startPos, size - startPos, defaultRect.x); in UpdateHotAreas() 60 startPos += GetObject<int32_t>(data + startPos, size - startPos, defaultRect.y); in UpdateHotAreas() 65 startPos += GetObject<int32_t>(data + startPos, size - startPos, pointerRect.x); in UpdateHotAreas() 66 startPos += GetObject<int32_t>(data + startPos, size - startPos, pointerRect.y); in UpdateHotAreas() 86 startPos += GetObject<int32_t>(data + startPos, size - startPos, windowInfo.uid); in UpdateDisplayInfo() 95 startPos += GetObject<int32_t>(data + startPos, size - startPos, displayInfo.id); in UpdateDisplayInfo() 96 startPos += GetObject<int32_t>(data + startPos, size - startPos, displayInfo.x); in UpdateDisplayInfo() 97 startPos += GetObject<int32_t>(data + startPos, size - startPos, displayInfo.y); in UpdateDisplayInfo() 100 startPos += GetObject<int32_t>(data + startPos, size - startPos, displayInfo.dpi); in UpdateDisplayInfo() 102 startPos += GetString(data + startPos, size - startPos, name, stringSize); in UpdateDisplayInfo() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowagent_fuzzer/ |
H A D | window_agent_fuzzer.cpp | 55 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1() 56 startPos += GetObject<bool>(boolVal, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1() 61 startPos += GetObject<WindowMode>(mode, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1() 71 startPos += GetObject<OHOS::Rosen::Rect>(rect, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1() 80 startPos += GetObject<AvoidAreaType>(type, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart1() 97 startPos += GetObject<PointInfo>(point, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart2() 98 startPos += GetObject<DragEvent>(dragEvent, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart2() 103 startPos += GetObject<DisplayId>(from, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart2() 104 startPos += GetObject<DisplayId>(to, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart2() 117 startPos += GetObject<bool>(boolVal, data + startPos, size - startPos); in CheckWindowAgentFunctionsPart2() [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibilityconfig_fuzzer/ |
H A D | accessibilityconfig_fuzzer.cpp | 131 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingSetConfig() 134 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingSetConfig() 137 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingSetConfig() 141 startPos += GetObject<float>(tempFloat, &data[startPos], size - startPos); in DoSomethingInterestingSetConfig() 144 startPos += GetObject<float>(tempFloat, &data[startPos], size - startPos); in DoSomethingInterestingSetConfig() 173 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingGetAbility() 183 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingGetAbility() 185 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingGetAbility() 214 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingGetConfig() 217 startPos += GetObject<uint32_t>(temp, &data[startPos], size - startPos); in DoSomethingInterestingGetConfig() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/dms/screen_fuzzer/ |
H A D | screen_fuzzer.cpp | 54 startPos += GetObject<char>(name[i], data + startPos, size - startPos); in CreateScreenInfo() 58 startPos += GetObject<ScreenId>(info->id_, data + startPos, size - startPos); in CreateScreenInfo() 59 startPos += GetObject<uint32_t>(info->virtualWidth_, data + startPos, size - startPos); in CreateScreenInfo() 62 startPos += GetObject<ScreenId>(info->lastParent_, data + startPos, size - startPos); in CreateScreenInfo() 63 startPos += GetObject<ScreenId>(info->parent_, data + startPos, size - startPos); in CreateScreenInfo() 64 startPos += GetObject<bool>(info->isScreenGroup_, data + startPos, size - startPos); in CreateScreenInfo() 65 startPos += GetObject<Rotation>(info->rotation_, data + startPos, size - startPos); in CreateScreenInfo() 67 startPos += GetObject<ScreenType>(info->type_, data + startPos, size - startPos); in CreateScreenInfo() 86 startPos += GetObject<uint32_t>(modeId, data + startPos, size - startPos); in ScreenFuzzTest() 114 startPos += GetObject<uint32_t>(modeId, data + startPos, size - startPos); in ScreenFuzzTestNoDisplay() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/dms/screenmanager_fuzzer/ |
H A D | screenmanager_fuzzer.cpp | 82 startPos += GetObject<uint32_t>(screenPowerState, data + startPos, size - startPos); in ScreenPowerFuzzTest() 113 startPos += GetObject<uint32_t>(option.width_, data + startPos, size - startPos); in MakeMirrorWithVirtualScreenFuzzTest() 114 startPos += GetObject<uint32_t>(option.height_, data + startPos, size - startPos); in MakeMirrorWithVirtualScreenFuzzTest() 115 startPos += GetObject<float>(option.density_, data + startPos, size - startPos); in MakeMirrorWithVirtualScreenFuzzTest() 116 startPos += GetObject<int32_t>(option.flags_, data + startPos, size - startPos); in MakeMirrorWithVirtualScreenFuzzTest() 154 startPos += GetObject<uint32_t>(option.width_, data + startPos, size - startPos); in MakeExpandWithVirtualScreenFuzzTest() 156 startPos += GetObject<float>(option.density_, data + startPos, size - startPos); in MakeExpandWithVirtualScreenFuzzTest() 157 startPos += GetObject<int32_t>(option.flags_, data + startPos, size - startPos); in MakeExpandWithVirtualScreenFuzzTest() 229 startPos += GetObject<bool>(flag, data + startPos, size - startPos); in SetScreenRotationLockedFuzzTest() 243 startPos += GetObject<bool>(flag, data + startPos, size - startPos); in IsScreenRotationLocked() [all …]
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/injectevent_fuzzer/ |
H A D | injectevent_fuzzer.cpp | 45 startPos += GetObject<int32_t>(keyCode, data + startPos, size - startPos); in InjectKeyEvent() 50 startPos += GetObject<int64_t>(downTime, data + startPos, size - startPos); in InjectKeyEvent() 55 startPos += GetObject<int32_t>(keyCodePressed, data + startPos, size - startPos); in InjectKeyEvent() 64 startPos += GetObject<int64_t>(downTime, data + startPos, size - startPos); in InjectKeyEvent() 84 startPos += GetObject<int32_t>(physicalX, data + startPos, size - startPos); in InjectTouchEvent() 88 startPos += GetObject<int32_t>(physicalY, data + startPos, size - startPos); in InjectTouchEvent() 92 startPos += GetObject<int32_t>(pressure, data + startPos, size - startPos); in InjectTouchEvent() 129 startPos += GetObject<int32_t>(physicalX, data + startPos, size - startPos); in InjectMouseEvent() 133 startPos += GetObject<int32_t>(physicalY, data + startPos, size - startPos); in InjectMouseEvent() 137 startPos += GetObject<int32_t>(pressure, data + startPos, size - startPos); in InjectMouseEvent() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/animator/ |
H A D | easing_equation.cpp | 34 return static_cast<int16_t>((x * (static_cast<int32_t>(endPos) - startPos)) + startPos); in BackEaseIn() 46 return static_cast<int16_t>((x * (static_cast<int32_t>(endPos) - startPos)) + startPos); in BackEaseOut() 69 startPos); in CircEaseIn() 82 startPos); in CircEaseOut() 105 startPos); in CubicEaseIn() 119 startPos); in CubicEaseOut() 140 startPos); in LinearEaseNone() 153 startPos); in QuadEaseIn() 166 startPos); in QuadEaseOut() 228 return static_cast<int16_t>(x * (endPos - startPos)) + startPos; in SineEaseIn() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowutilmath_fuzzer/ |
H A D | windowutilmath_fuzzer.cpp | 54 startPos += GetObject<float>(mat3.mat_[i][j], data + startPos, size - startPos); in InitMatrix3() 57 return startPos; in InitMatrix3() 70 startPos += GetObject<float>(mat4.mat_[i][j], data + startPos, size - startPos); in InitMatrix4() 81 startPos += GetObject<float>(vec2.x_, data + startPos, size - startPos); in InitVector2() 82 startPos += GetObject<float>(vec2.y_, data + startPos, size - startPos); in InitVector2() 91 startPos += GetObject<float>(vec3.x_, data + startPos, size - startPos); in InitVector3() 92 startPos += GetObject<float>(vec3.y_, data + startPos, size - startPos); in InitVector3() 93 startPos += GetObject<float>(vec3.y_, data + startPos, size - startPos); in InitVector3() 101 size_t startPos = 0; in WindowUtilMathFuzzPart1() local 120 startPos += GetObject<float>(theta, data + startPos, size - startPos); in WindowUtilMathFuzzPart1() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/dms/displaymanager_fuzzer/ |
H A D | displaymanager_fuzzer.cpp | 86 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in DisplayFuzzTest() 88 startPos += GetObject<ScreenId>(screenId, data + startPos, size - startPos); in DisplayFuzzTest() 91 startPos += GetObject<bool>(flag, data + startPos, size - startPos); in DisplayFuzzTest() 120 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in GetScreenshotFuzzTest() 122 startPos += GetObject<Media::Rect>(rect, data + startPos, size - startPos); in GetScreenshotFuzzTest() 123 startPos += GetObject<Media::Size>(mediaSize, data + startPos, size - startPos); in GetScreenshotFuzzTest() 142 startPos += GetObject<uint32_t>(reason, data + startPos, size - startPos); in DisplayPowerFuzzTest() 148 startPos += GetObject<uint32_t>(state, data + startPos, size - startPos); in DisplayPowerFuzzTest() 152 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in DisplayPowerFuzzTest() 169 startPos += GetObject<uint64_t>(screenId, data + startPos, size - startPos); in ScreenBrightnessFuzzTest() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/pip_fuzzer/ |
H A D | pip_fuzzer.cpp | 48 size_t startPos = 0; in DoSomethingInterestingWithMyAPI() local 51 startPos += GetObject(context, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 58 startPos += GetObject<uint32_t>(templateType, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 61 startPos += GetObject<uint32_t>(height, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 63 startPos += GetObject<uint32_t>(width, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 66 startPos += GetObject(windowId, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 68 startPos += GetObject(env, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 75 startPos += GetObject(boolVal, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 78 startPos += GetObject<uint32_t>(w, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI() 80 startPos += GetObject<uint32_t>(h, data + startPos, size - startPos); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/simulateinputevent_fuzzer/ |
H A D | simulateinputevent_fuzzer.cpp | 48 CHECKSIZE(startPos, size); in SimulateInjectEvent() 49 startPos += GetObject<int32_t>(keyCode, data + startPos, size - startPos); in SimulateInjectEvent() 53 CHECKSIZE(startPos, size); in SimulateInjectEvent() 54 startPos += GetObject<int64_t>(downTime, data + startPos, size - startPos); in SimulateInjectEvent() 58 CHECKSIZE(startPos, size); in SimulateInjectEvent() 59 startPos += GetObject<int32_t>(keyCodePressed, data + startPos, size - startPos); in SimulateInjectEvent() 68 startPos += GetObject<int64_t>(downTime, data + startPos, size - startPos); in SimulateInjectEvent() 88 startPos += GetObject<int32_t>(physicalX, data + startPos, size - startPos); in SimulatePointerEvent() 92 startPos += GetObject<int32_t>(physicalY, data + startPos, size - startPos); in SimulatePointerEvent() 96 startPos += GetObject<int32_t>(pressure, data + startPos, size - startPos); in SimulatePointerEvent() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/animator/ |
H A D | easing_equation.h | 52 typedef int16_t (*EasingFunc)(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t duration… 91 …static int16_t BackEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 109 …static int16_t BackEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 127 …static int16_t BackEaseInOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t duration… 145 …static int16_t CircEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 163 …static int16_t CircEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 199 …static int16_t CubicEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… 217 …static int16_t CubicEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationT… 270 …static int16_t QuadEaseIn(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTim… 288 …static int16_t QuadEaseOut(int16_t startPos, int16_t endPos, uint16_t curTime, uint16_t durationTi… [all …]
|
/ohos5.0/base/sensors/miscdevice/test/fuzztest/vibrator/preprocess_fuzzer/ |
H A D | preprocess_fuzzer.cpp | 77 size_t startPos = 0; in PreProcessFuzzTest() local 78 startPos += GetObject<int32_t>(data + startPos, size - startPos, fileDescription.fd); in PreProcessFuzzTest() 79 startPos += GetObject<int64_t>(data + startPos, size - startPos, fileDescription.offset); in PreProcessFuzzTest() 80 startPos += GetObject<int64_t>(data + startPos, size - startPos, fileDescription.length); in PreProcessFuzzTest() 83 startPos += GetObject<int32_t>(data + startPos, size - startPos, package.patternNum); in PreProcessFuzzTest() 84 GetObject<int32_t>(data + startPos, size - startPos, package.packageDuration); in PreProcessFuzzTest()
|
/ohos5.0/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibleabilityclient_fuzzer/ |
H A D | accessibleabilityclient_fuzzer.cpp | 409 startPos += GetObject<int32_t>(focusType, &data[startPos], size - startPos); in DoSomethingInterestingWithGetFocusByElementInfo() 426 startPos += GetObject<float>(point, &data[startPos], size - startPos); in DoSomethingInterestingWithInjectGesture() 429 startPos += GetObject<float>(point, &data[startPos], size - startPos); in DoSomethingInterestingWithInjectGesture() 528 startPos += GetObject<int32_t>(direction, &data[startPos], size - startPos); in DoSomethingInterestingWithGetNext() 546 startPos += GetObject<int32_t>(index, &data[startPos], size - startPos); in DoSomethingInterestingWithGetChildElementInfo() 577 … startPos += GenerateAccessibilityElementInfo(sourceElementInfo, &data[startPos], size - startPos); in DoSomethingInterestingWithGetByContent() 581 startPos += GetObject<char>(name[i], &data[startPos], size - startPos); in DoSomethingInterestingWithGetByContent() 631 startPos += GetObject<int32_t>(action, &data[startPos], size - startPos); in DoSomethingInterestingWithExecuteAction() 637 startPos += GetObject<char>(name[i], &data[startPos], size - startPos); in DoSomethingInterestingWithExecuteAction() 641 startPos += GetObject<char>(name[i], &data[startPos], size - startPos); in DoSomethingInterestingWithExecuteAction() [all …]
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/getdisplaybindinfo_fuzzer/ |
H A D | getdisplaybindinfo_fuzzer.cpp | 61 size_t startPos = 0; in GetDisplayBindInfoFuzzTest() local 66 startPos += GetObject<int32_t>(inputDeviceId, data + startPos, size - startPos); in GetDisplayBindInfoFuzzTest() 69 startPos += GetObject<int32_t>(displayId, data + startPos, size - startPos); in GetDisplayBindInfoFuzzTest() 72 startPos += GetString(data + startPos, size - startPos, inputDeviceName, stringSize); in GetDisplayBindInfoFuzzTest() 75 startPos += GetString(data + startPos, size - startPos, displayName, stringSize); in GetDisplayBindInfoFuzzTest()
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | zip_file_reader_io.cpp | 27 std::string ZipFileReaderIo::ReadBuffer(size_t startPos, size_t bufferSize) in ReadBuffer() argument 30 if (fd_ < 0 || startPos >= fileLen_ || bufferSize > fileLen_ - startPos) { in ReadBuffer() 32 filePath_.c_str(), startPos, bufferSize, fileLen_); in ReadBuffer() 37 if (!ReadBuffer((uint8_t*)result.data(), startPos, bufferSize)) { in ReadBuffer() 44 bool ZipFileReaderIo::ReadBuffer(uint8_t *dst, size_t startPos, size_t bufferSize) in ReadBuffer() argument 46 if (dst == nullptr || fd_ < 0 || startPos >= fileLen_ || bufferSize > fileLen_ - startPos) { in ReadBuffer() 48 filePath_.c_str(), startPos, bufferSize, fileLen_); in ReadBuffer() 55 nread = pread(fd_, dst, remainSize, startPos); in ReadBuffer() 60 startPos += (size_t)nread; in ReadBuffer()
|
/ohos5.0/foundation/multimodalinput/input/test/fuzztest/subscribekeyevent_fuzzer/ |
H A D | subscribekeyevent_fuzzer.cpp | 60 size_t startPos = 0; in SubscribeKeyEventFuzzTest() local 63 startPos += GetObject<int32_t>(preKey, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest() 68 startPos += GetObject<int32_t>(keyDown, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest() 71 startPos += GetObject<int32_t>(keyDownDuration, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest() 74 startPos += GetObject<int32_t>(finalKey, data + startPos, size - startPos); in SubscribeKeyEventFuzzTest()
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowipc_fuzzer/ |
H A D | windowipc_fuzzer.cpp | 72 size_t startPos = 0; in IPCFuzzTest() local 73 startPos += GetObject<uint32_t>(code, data + startPos, size - startPos); in IPCFuzzTest() 74 startPos += GetObject<int>(flags, data + startPos, size - startPos); in IPCFuzzTest() 75 startPos += GetObject<int>(waitTime, data + startPos, size - startPos); in IPCFuzzTest() 79 sendData.WriteBuffer(data + startPos, size - startPos); in IPCFuzzTest() 162 size_t startPos = 0; in IPCInterfaceFuzzTest() local 163 startPos += GetObject<int>(flags, data + startPos, size - startPos); in IPCInterfaceFuzzTest() 164 startPos += GetObject<int>(waitTime, data + startPos, size - startPos); in IPCInterfaceFuzzTest() 169 sendData.WriteBuffer(data + startPos, size - startPos); in IPCInterfaceFuzzTest()
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/dms/displaymanageripc_fuzzer/ |
H A D | displaymanageripc_fuzzer.cpp | 73 size_t startPos = 0; in IPCFuzzTest() local 74 startPos += GetObject<uint32_t>(code, data + startPos, size - startPos); in IPCFuzzTest() 75 startPos += GetObject<int>(flags, data + startPos, size - startPos); in IPCFuzzTest() 76 startPos += GetObject<int>(waitTime, data + startPos, size - startPos); in IPCFuzzTest() 80 uint32_t dataSize = (size - startPos) > 1024 * 1024 ? 1024 * 1024 : (size - startPos); in IPCFuzzTest() 81 sendData.WriteBuffer(data + startPos, dataSize); in IPCFuzzTest() 199 size_t startPos = 0; in IPCInterfaceFuzzTest() local 200 startPos += GetObject<int>(flags, data + startPos, size - startPos); in IPCInterfaceFuzzTest() 201 startPos += GetObject<int>(waitTime, data + startPos, size - startPos); in IPCInterfaceFuzzTest() 206 uint32_t dataSize = (size - startPos) > 1024 * 1024 ? 1024 * 1024 : (size - startPos); in IPCInterfaceFuzzTest() [all …]
|
/ohos5.0/base/sensors/miscdevice/test/fuzztest/light/startlight_fuzzer/ |
H A D | startlight_fuzzer.cpp | 38 size_t startPos = 0; in StartLightFuzzTest() local 40 startPos += GetObject<int32_t>(lightId, data + startPos, size - startPos); in StartLightFuzzTest() 42 startPos += GetObject<LightColor>(color, data + startPos, size - startPos); in StartLightFuzzTest() 44 GetObject<LightAnimation>(animation, data + startPos, size - startPos); in StartLightFuzzTest()
|
/ohos5.0/base/sensors/sensor/test/fuzztest/services/service/reportsensorsysevent_fuzzer/ |
H A D | reportsensorsysevent_fuzzer.cpp | 80 size_t startPos = 0; in ReportSensorSysEventFuzzTest() local 82 startPos += GetObject<int32_t>(sensorId, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest() 84 startPos += GetObject<bool>(enable, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest() 86 startPos += GetObject<int32_t>(pid, data + startPos, size - startPos); in ReportSensorSysEventFuzzTest()
|
/ohos5.0/base/sensors/miscdevice/test/fuzztest/vibrator/playvibratorcustom_fuzzer/ |
H A D | playvibratorcustom_fuzzer.cpp | 47 size_t startPos = 0; in PlayVibratorCustomFuzzTest() local 49 startPos += GetObject<int32_t>(data + startPos, size - startPos, fd); in PlayVibratorCustomFuzzTest() 51 startPos += GetObject<int64_t>(data + startPos, size - startPos, offset); in PlayVibratorCustomFuzzTest() 53 GetObject<int64_t>(data + startPos, size - startPos, length); in PlayVibratorCustomFuzzTest()
|