Lines Matching refs:mFDP

94     FuzzedDataProvider* mFDP = nullptr;  member in CameraFuzzer
108 int32_t numFds = mFDP->ConsumeIntegralInRange<int32_t>(kMinElements, kMaxElements); in createNativeHandle()
109 int32_t numInts = mFDP->ConsumeIntegralInRange<int32_t>(kNumMin, kNumMax); in createNativeHandle()
112 std::string filename = mFDP->ConsumeRandomLengthString(kMaxBytes); in createNativeHandle()
126 if (mFDP->ConsumeBool()) { in initCamera()
127 cameraService->connect(this, mFDP->ConsumeIntegral<int32_t>() /* cameraId */, "CAMERAFUZZ", in initCamera()
134 cameraService->connect(this, mFDP->ConsumeIntegral<int32_t>() /* cameraId */, in initCamera()
135 mFDP->ConsumeRandomLengthString(kMaxBytes).c_str(), in initCamera()
136 mFDP->ConsumeIntegral<int8_t>() /* clientUid */, in initCamera()
137 mFDP->ConsumeIntegral<int8_t>() /* clientPid */, in initCamera()
138 /*targetSdkVersion*/ mFDP->ConsumeIntegral<int32_t>(), in initCamera()
139 /*overrideToPortrait*/ mFDP->ConsumeBool(), in initCamera()
140 /*forceSlowJpegMode*/ mFDP->ConsumeBool(), kDefaultDeviceId, in initCamera()
154 int32_t width = mFDP->ConsumeIntegral<int32_t>(); in invokeSetParameters()
155 int32_t height = mFDP->ConsumeIntegral<int32_t>(); in invokeSetParameters()
157 int32_t frameRate = mFDP->ConsumeIntegralInRange<int32_t>(kFrameRateMin, kFrameRateMax); in invokeSetParameters()
167 int32_t cameraId = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
170 cameraInfo.facing = mFDP->ConsumeBool() ? mFDP->PickValueInArray(kValidFacing) in invokeCamera()
171 : mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
172 cameraInfo.orientation = mFDP->ConsumeBool() ? mFDP->PickValueInArray(kValidOrientation) in invokeCamera()
173 : mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
180 if (mFDP->ConsumeBool()) { in invokeCamera()
185 static_cast<String8>(mFDP->ConsumeRandomLengthString(kMaxBytes).c_str()) /* name */, in invokeCamera()
186 mFDP->ConsumeIntegral<uint32_t>() /* width */, in invokeCamera()
187 mFDP->ConsumeIntegral<uint32_t>() /* height */, in invokeCamera()
188 mFDP->ConsumeIntegral<int32_t>() /* format */, in invokeCamera()
189 mFDP->ConsumeIntegral<int32_t>() /* flags */); in invokeCamera()
192 if (mFDP->ConsumeBool()) { in invokeCamera()
203 while (mFDP->remaining_bytes()) { in invokeCamera()
204 auto callCameraAPIs = mFDP->PickValueInArray<const std::function<void()>>({ in invokeCamera()
245 int32_t msgType = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
250 cmd = mFDP->ConsumeBool() ? mFDP->PickValueInArray(kValidCMD) in invokeCamera()
251 : mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
252 int32_t arg1 = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
253 int32_t arg2 = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
258 mFDP->ConsumeBool() ? mFDP->PickValueInArray(kValidVideoBufferMode) in invokeCamera()
259 : mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
274 mFDP->ConsumeBool() ? mFDP->PickValueInArray(kValidPreviewCallbackFlag) in invokeCamera()
275 : mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
285 int32_t mode = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
295 int32_t msgTypeNC = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
296 int32_t ext = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
297 int32_t ext2 = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
301 int32_t msgTypeNC = mFDP->ConsumeIntegral<int32_t>(); in invokeCamera()
302 int64_t timestamp = mFDP->ConsumeIntegral<int64_t>(); in invokeCamera()
306 int64_t timestamp = mFDP->ConsumeIntegral<int64_t>(); in invokeCamera()
318 i < mFDP->ConsumeIntegralInRange<int8_t>(kMinElements, kMaxElements); in invokeCamera()
328 i < mFDP->ConsumeIntegralInRange<int8_t>(kMinElements, kMaxElements); in invokeCamera()
335 i < mFDP->ConsumeIntegralInRange<int8_t>(kMinElements, kMaxElements); in invokeCamera()
337 timestamps.push_back(mFDP->ConsumeIntegral<int64_t>()); in invokeCamera()
347 mFDP = new FuzzedDataProvider(data, size); in process()
349 delete mFDP; in process()