Home
last modified time | relevance | path

Searched refs:mUsbRequest (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_data_packet_fuzzer.cpp244 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
247 mtpDataPacket.readData(&mUsbRequest, data.data(), data.size()); in process()
248 usb_device_close(mUsbRequest.dev); in process()
254 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
256 &mUsbRequest, in process()
259 usb_device_close(mUsbRequest.dev); in process()
265 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
266 mtpDataPacket.read(&mUsbRequest); in process()
267 usb_device_close(mUsbRequest.dev); in process()
273 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
[all …]
DMtpPacketFuzzerUtils.h35 struct usb_request mUsbRequest; variable
76 mUsbRequest.buffer = static_cast<void*>(buffer.data()); in fillUsbRequest()
77 mUsbRequest.buffer_length = buffer.size(); in fillUsbRequest()
78 mUsbRequest.actual_length = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
79 mUsbRequest.max_packet_size = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
80 mUsbRequest.private_data = static_cast<void*>(mUsbDevFsUrb); in fillUsbRequest()
81 mUsbRequest.endpoint = fdp->ConsumeIntegralInRange<size_t>(kMinSize, kMaxSize); in fillUsbRequest()
84 mUsbRequest.client_data = static_cast<void*>(clientBuffer.data()); in fillUsbRequest()
Dmtp_response_packet_fuzzer.cpp52 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
53 mtpResponsePacket.read(&mUsbRequest); in process()
54 usb_device_close(mUsbRequest.dev); in process()
Dmtp_event_packet_fuzzer.cpp49 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
50 mtpEventPacket.sendRequest(&mUsbRequest); in process()
51 usb_device_close(mUsbRequest.dev); in process()
Dmtp_packet_fuzzer.cpp78 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
79 mtpPacket.transfer(&mUsbRequest); in process()
80 usb_device_close(mUsbRequest.dev); in process()
Dmtp_request_packet_fuzzer.cpp66 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
67 mtpRequestPacket.write(&mUsbRequest); in process()
68 usb_device_close(mUsbRequest.dev); in process()
Dmtp_property_fuzzer.cpp83 mUsbRequest.dev = usb_device_new(mPath.c_str(), fd); in process()
84 mtpDataPacket.write(&mUsbRequest, in process()
89 usb_device_close(mUsbRequest.dev); in process()