7 Commits

Author SHA1 Message Date
Daichi Hirono
2965776ba4 Add error message for locked device.
If the remote MTP device is a smartphone, it does not provide files
until a user unlocks the device. The CL adds specific error message for
the situation.

BUG=26318917

Change-Id: Ic4c34609c55ec9c99b7b8a9143d6dae3835784e3
2016-02-11 18:45:30 -08:00
Daichi Hirono
c18f8076eb Show specific error message for busy device.
When MTP device is busy (e.g. used by other application),
MtpDocumentsProvider cannot open the device. The CL introduces specific
error message for the case.

BUG=26694828

Change-Id: Iffee2e1c554e4089601186469ff0eac2fd04decd
2016-02-11 12:45:55 -08:00
Daichi Hirono
e6bffff9d9 Update "accessing files" notification resources.
* Replace tentative resources with real ones.
 * Show the notification for each device as per request from UX.

BUG=26625702

Change-Id: Ibcfe7075e4827d5aee216ce5c0007f6dd4572efe
2016-01-25 16:27:19 +09:00
Daichi Hirono
39795da4c9 Add storage icon for MTP roots.
BUG=22545807

Change-Id: I714b26d52e00b0f9a5c95dea1508be0d617482e3
2015-12-02 11:08:40 +09:00
Daichi Hirono
17c8d8bcda Add device model name to MtpDocumentsProvider's roots.
BUG=24813180

Change-Id: I548c553978357dd9619cf66622ec9c0f61886f33
2015-10-13 14:46:59 -07:00
Daichi Hirono
df3f2e6fdd Add ReceiverActivity to MtpDocumentsProvider.
To show the application chooser for the UsbManager.ACTION_USB_DEVICE_ATTACHED
intent, the intent should be received by activity. The activity has NoDisplay
theme and immediately terminate after routing intent to MtpDocumentsService.

BUG=20274999

Change-Id: I2080ea433b1657dd68640681664adbf92d1d30e9
2015-07-28 13:06:17 +09:00
Daichi Hirono
c00d5d4d82 Create package directory for MtpDocumentProvider.
BUG=20274999

Change-Id: I7e0727e28b8e0ef2909d86f7ba6eddc2bec8911d
2015-06-11 17:35:14 +09:00