Home
last modified time | relevance | path

Searched refs:mtpDevice (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/mtp/tests/MtpFuzzer/
Dmtp_device_fuzzer.cpp81 MtpDevice mtpDevice(device, fdp.ConsumeIntegral<int32_t>(), &descriptor.ep[0], in LLVMFuzzerTestOneInput() local
85 {[&]() { mtpDevice.getStorageIDs(); }, in LLVMFuzzerTestOneInput()
87 mtpDevice.getStorageInfo(fdp.ConsumeIntegral<int32_t>() /* storageID */); in LLVMFuzzerTestOneInput()
90 mtpDevice.getObjectHandles(fdp.ConsumeIntegral<uint32_t>() /* storageID */, in LLVMFuzzerTestOneInput()
94 [&]() { mtpDevice.initialize(); }, in LLVMFuzzerTestOneInput()
97 mtpDevice.getThumbnail(fdp.ConsumeIntegral<uint32_t>() /* handle */, in LLVMFuzzerTestOneInput()
106 mtpDevice.sendObjectInfo(&mtpObjectInfo); in LLVMFuzzerTestOneInput()
109 mtpDevice.sendObject(fdp.ConsumeIntegral<uint32_t>() /* handle */, in LLVMFuzzerTestOneInput()
112 [&]() { mtpDevice.deleteObject(fdp.ConsumeIntegral<uint32_t>() /* handle */); }, in LLVMFuzzerTestOneInput()
114 mtpDevice.getObjectPropsSupported( in LLVMFuzzerTestOneInput()
[all …]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java71 MtpDevice mtpDevice = mDevices.get(deviceName);
74 if (mtpDevice == null) {
75 mtpDevice = openDeviceLocked(usbDevice);
77 if (mtpDevice != null) {
79 listener.deviceAdded(mtpDevice);
83 if (mtpDevice != null) {
86 listener.deviceRemoved(mtpDevice);
94 if (mtpDevice == null) {
95 mtpDevice = openDeviceLocked(usbDevice);
97 if (mtpDevice != null) {
[all …]
/frameworks/av/media/mtp/
DMtpDevice.cpp207 MtpDevice* mtpDevice = new MtpDevice(device, interface->bInterfaceNumber, in open() local
209 mtpDevice->initialize(); in open()
210 return mtpDevice; in open()