HomeSort by relevance Sort by last modified time
    Searched full:mtpdevice (Results 1 - 20 of 20) sorted by null

  /frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
MtpClient.java 29 import android.mtp.MtpDevice;
59 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>();
71 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)
    [all...]
CameraBrowser.java 23 import android.mtp.MtpDevice;
45 private List<MtpDevice> mDeviceList;
83 MtpDevice device = mDeviceList.get(position);
127 public void deviceAdded(MtpDevice device) {
133 public void deviceRemoved(MtpDevice device) {
StorageBrowser.java 22 import android.mtp.MtpDevice;
ObjectBrowser.java 26 import android.mtp.MtpDevice;
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
MtpClient.java 29 import android.mtp.MtpDevice;
59 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>();
78 MtpDevice mtpDevice = mDevices.get(deviceName);
81 if (mtpDevice == null) {
82 mtpDevice = openDeviceLocked(usbDevice);
84 if (mtpDevice != null) {
86 listener.deviceAdded(mtpDevice);
90 if (mtpDevice != null)
    [all...]
MtpDeviceSet.java 31 // MtpDeviceSet -- MtpDevice -- MtpImage
53 List<android.mtp.MtpDevice> devices = mMtpContext.getMtpClient().getDeviceList();
55 for (android.mtp.MtpDevice mtpDevice : devices) {
56 int deviceId = mtpDevice.getDeviceId();
58 MtpDevice device = (MtpDevice) dataManager.peekMediaObject(childPath);
60 device = new MtpDevice(childPath, mApplication, deviceId, mMtpContext);
73 android.mtp.MtpDevice device = mtpContext.getMtpClient().getDevice(deviceId);
MtpDevice.java 31 public class MtpDevice extends MediaSet {
32 private static final String TAG = "MtpDevice";
44 public MtpDevice(Path path, GalleryApp application, int deviceId,
58 public MtpDevice(Path path, GalleryApp application, int deviceId,
MtpContext.java 83 public void deviceAdded(android.mtp.MtpDevice device) {
88 public void deviceRemoved(android.mtp.MtpDevice device) {
MtpSource.java 50 return new MtpDevice(path, mApplication, deviceId, mMtpContext);
MtpImage.java 68 this(path, app, deviceId, MtpDevice.getObjectInfo(mtpContext, deviceId, objectId),
  /frameworks/base/media/mtp/
MtpDevice.cpp 17 #define LOG_TAG "MtpDevice"
20 #include "MtpDevice.h"
53 MtpDevice* MtpDevice::open(const char* deviceName, int fd) {
163 MtpDevice* mtpDevice = new MtpDevice(device, interface->bInterfaceNumber,
165 mtpDevice->initialize();
166 return mtpDevice;
175 MtpDevice::MtpDevice(struct usb_device* device, int interface
    [all...]
MtpDevice.h 37 class MtpDevice {
63 MtpDevice(struct usb_device* device, int interface,
68 static MtpDevice* open(const char* deviceName, int fd);
70 virtual ~MtpDevice();
Android.mk 24 MtpDevice.cpp \
53 MtpDevice.cpp \
MtpTypes.h 51 class MtpDevice;
55 typedef Vector<MtpDevice*> MtpDeviceList;
  /frameworks/base/media/jni/
android_mtp_MtpDevice.cpp 34 #include "MtpDevice.h"
88 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice)
90 return (MtpDevice*)env->GetIntField(javaDevice, field_context);
111 MtpDevice* device = MtpDevice::open(deviceNameStr, fd);
122 MtpDevice* device = get_device_from_object(env, thiz);
133 MtpDevice* device = get_device_from_object(env, thiz);
170 MtpDevice* device = get_device_from_object(env, thiz);
189 MtpDevice* device = get_device_from_object(env, thiz);
224 MtpDevice* device = get_device_from_object(env, thiz)
    [all...]
android_media_MediaPlayer.cpp 875 LOGE("ERROR: MtpDevice native registration failed");
  /frameworks/base/media/java/android/mtp/
MtpDevice.java 30 public final class MtpDevice {
32 private static final String TAG = "MtpDevice";
45 public MtpDevice(UsbDevice device) {
67 * Closes all resources related to the MtpDevice object.
  /packages/apps/Gallery2/src/com/android/gallery3d/app/
AlbumPage.java 40 import com.android.gallery3d.data.MtpDevice;
461 if (mMediaSet instanceof MtpDevice) {
PhotoPage.java 25 import com.android.gallery3d.data.MtpDevice;
393 mMediaSet != null && !(mMediaSet instanceof MtpDevice));
  /frameworks/base/docs/html/sdk/
android-3.1.jd 259 <li>The {@link android.mtp.MtpDevice} encapsulates an MTP device that is
265 <li>{@link android.mtp.MtpDevice#getObjectHandles(int, int, int)
268 application can pass a handle to {@link android.mtp.MtpDevice#getObjectInfo(int)
270 <li>{@link android.mtp.MtpDevice#importFile(int, java.lang.String)
276 android.mtp.MtpDevice#open(android.hardware.usb.UsbDeviceConnection) open()}
278 <li>{@link android.mtp.MtpDevice#getThumbnail(int) getThumbnail()} returns
    [all...]

Completed in 807 milliseconds