Home
last modified time | relevance | path

Searched refs:MtpDevice (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java29 import android.mtp.MtpDevice;
59 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>();
71 MtpDevice mtpDevice = mDevices.get(deviceName);
118 public void deviceAdded(MtpDevice device); in deviceAdded()
125 public void deviceRemoved(MtpDevice device); in deviceRemoved()
171 private MtpDevice openDeviceLocked(UsbDevice usbDevice) { in openDeviceLocked()
178 MtpDevice mtpDevice = new MtpDevice(usbDevice); in openDeviceLocked()
228 public MtpDevice getDevice(String deviceName) { in getDevice()
241 public MtpDevice getDevice(int id) { in getDevice()
252 public List<MtpDevice> getDeviceList() { in getDeviceList()
[all …]
DCameraBrowser.java23 import android.mtp.MtpDevice;
45 private List<MtpDevice> mDeviceList;
83 MtpDevice device = mDeviceList.get(position); in getView()
127 public void deviceAdded(MtpDevice device) { in deviceAdded()
133 public void deviceRemoved(MtpDevice device) { in deviceRemoved()
DStorageBrowser.java22 import android.mtp.MtpDevice;
DObjectBrowser.java26 import android.mtp.MtpDevice;
/frameworks/av/media/mtp/
DMtpDevice.cpp53 MtpDevice* MtpDevice::open(const char* deviceName, int fd) { in open()
163 MtpDevice* mtpDevice = new MtpDevice(device, interface->bInterfaceNumber, in open()
175 MtpDevice::MtpDevice(struct usb_device* device, int interface, in MtpDevice() function in android::MtpDevice
196 MtpDevice::~MtpDevice() { in ~MtpDevice()
206 void MtpDevice::initialize() { in initialize()
222 void MtpDevice::close() { in close()
230 void MtpDevice::print() { in print()
272 const char* MtpDevice::getDeviceName() { in getDeviceName()
279 bool MtpDevice::openSession() { in openSession()
300 bool MtpDevice::closeSession() { in closeSession()
[all …]
DMtpDevice.h37 class MtpDevice {
63 MtpDevice(struct usb_device* device, int interface,
68 static MtpDevice* open(const char* deviceName, int fd);
70 virtual ~MtpDevice();
DMtpTypes.h51 class MtpDevice; variable
55 typedef Vector<MtpDevice*> MtpDeviceList;
DAndroid.mk24 MtpDevice.cpp \
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp88 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) in get_device_from_object()
90 return (MtpDevice*)env->GetIntField(javaDevice, field_context); in get_device_from_object()
111 MtpDevice* device = MtpDevice::open(deviceNameStr, fd); in android_mtp_MtpDevice_open()
122 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_close()
133 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_device_info()
170 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_storage_ids()
189 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_storage_info()
224 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object_handles()
243 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object_info()
317 MtpDevice* device = get_device_from_object(env, thiz); in android_mtp_MtpDevice_get_object()
[all …]
/frameworks/base/media/java/android/mtp/
DMtpDevice.java30 public final class MtpDevice { class
45 public MtpDevice(UsbDevice device) { in MtpDevice() method in MtpDevice
/frameworks/base/docs/html/about/versions/
Dandroid-3.1.jd155 <li>The {@link android.mtp.MtpDevice} encapsulates an MTP device that is
161 <li>{@link android.mtp.MtpDevice#getObjectHandles(int, int, int)
164 application can pass a handle to {@link android.mtp.MtpDevice#getObjectInfo(int)
166 <li>{@link android.mtp.MtpDevice#importFile(int, java.lang.String)
172 android.mtp.MtpDevice#open(android.hardware.usb.UsbDeviceConnection) open()}
174 <li>{@link android.mtp.MtpDevice#getThumbnail(int) getThumbnail()} returns
/frameworks/base/
Dpreloaded-classes609 android.mtp.MtpDevice
/frameworks/base/docs/html/
Dsitemap.txt4028 http://developer.android.com/reference/android/mtp/MtpDevice.html
/frameworks/base/api/
Dcurrent.txt13005 public final class MtpDevice {
13006 ctor public MtpDevice(android.hardware.usb.UsbDevice);