Commit Graph

21 Commits

Author SHA1 Message Date
Dave Hylands
59280e28fd Bug 1188796 - Have MTP record modified timestamps when they're passed. r=alchen
Of the 3 popular host platforms, only Windows properly passes in the
modification timestamp of the file.

Under linux, it passes in an empty string, which then gets passed
to beginSendObject as zero. This patch now treats that as the current
date/time.

Under OSX, the Android FIle Transfer program passes in the date modified
and date created, but sets both of these fields to be the current
date/time and not the times from the files being copied.


Hl: Enter commit message.  Lines beginning with 'HG:' are removed.
2015-09-14 17:38:19 -07:00
Nathan Froyd
974d8120f2 Bug 1161627 - part 2 - machine-convert TemporaryRef<T> to already_AddRefed<T>; r=ehsan
This conversion was done with the script:

  find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl' | \
    egrep -v 'cairo-win32-refptr.h|RefPtr.h|TestRefPtr.cpp' | \
    xargs sed -i -e 's/mozilla::TemporaryRef</already_AddRefed</g' \
                 -e 's/TemporaryRef</already_AddRefed</g'

Manual fixups were performed in the following instances:

- We handled mfbt/RefPtr.h manually so as to not convert TemporaryRef itself
  into already_AddRefed.

- The following files had explicit Move() calls added to make up for the lack
  of a copy constructor on already_AddRefed:

  dom/base/ImageEncoder.cpp
  dom/media/MediaTaskQueue.{h,cpp}
  dom/media/webaudio/PannerNode.cpp

- A redundant overload for MediaTaskQueue::Dispatch was deleted.

- A few manual fixups were required in mfbt/tests/TestRefPtr.cpp.

- Comments, using declarations, and forward declarations relating to
  TemporaryRef in dom/canvas/ and gfx/layers/ were changed to refer to
  already_AddRefed.
2015-06-17 10:00:52 -04:00
Dave Hylands
dcb2ffc9b5 Bug 1167090 - Fix MTP date and time queried through getObjectInfo. r=alchen 2015-06-25 23:55:32 -07:00
Nathan Froyd
db188ea282 Bug 1160485 - remove implicit conversion from RefPtr<T> to TemporaryRef<T>; r=ehsan
Having this implicit conversion means that we can silently do extra
refcounting when it's completely unnecessary.  It's also an obstacle to
making RefPtr more nsRefPtr-like, so let's get rid of it.
2015-05-01 09:14:16 -04:00
Ehsan Akhgari
883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Alphan Chen
8c6edc2023 Bug 1107146 - [MTP] Add an UpdateEntryAndNotify for modified event. r=dhylands 2015-01-28 14:35:28 +08:00
Dave Hylands
c0310ea8fb Bug 1085743 - MTP doesn't work on Nexus 4/5. r=alchen 2014-11-13 17:42:38 -08:00
Alphan Chen
434dd2043d Bug 1084180 - Refine RemoveEntry - Don't remove only the entry but also its children if they exist. r=dhylands 2014-10-22 02:43:00 -04:00
Alphan Chen
0b7ce27a01 Bug 1074593 - Add AddEntryAndNotify and RemoveEntryAndNotify for file/folder change when MTP in use. r=dhylands 2014-10-14 19:34:00 +02:00
Alphan Chen
f61e4ee020 Bug 1076715 - Add B2G supported playback formats for device info. r=dhylands 2014-10-08 03:16:00 +02:00
eden-chuang
7bb39e6be8 Bug 1074604 - handle file "modified" event in MozMtpDatabase and MozMtpServer. r=dhylands 2014-10-08 00:12:00 +02:00
Alphan Chen
8ecb6cc282 Bug 1061117 - [MTP] Correct the offset and component in "MozMtpDatabase::CreateEntryForFile", r=dhylands 2014-09-09 10:35:06 +08:00
Dave Hylands
3e96440289 Bug 1049243 - Integrate MTP and Device Storage. r=echou 2014-08-28 13:13:06 -07:00
Dave Hylands
335c278dcf Bug 1049240 - Integrate MTP with the AutoMounter. r=echou 2014-08-19 13:41:35 -07:00
Nigel Babu
f8e931cd71 Backed out changeset 19e59c14b0aa (bug 1049240) for xpshell bustage 2014-08-20 12:19:36 +05:30
Dave Hylands
0ff3e02337 Bug 1049240 - Integrate MTP with the AutoMounter. r=echou
--HG--
extra : rebase_source : a4d8cd8413ef1ea7dddb57fed87c723a923ea0bf
2014-08-19 13:41:35 -07:00
Alphan Chen
fcc934febc Bug 1039939 - [MTP] Enable functionality on Windows 7. r=dhylands 2014-07-30 13:49:02 +08:00
Eric Chou
f834cccf61 Bug 1036862 - [MTP] Support 'Delete files/folders', r=dhylands
With this patch, users can delete files and folders on Firefox OS
devices while using MTP. My host is Ubuntu 13.04.
2014-07-22 11:12:22 +08:00
Eric Chou
1ea472f6ef Bug 1036863 - [MTP] Rename file/folder via MTP, r=dhylands
This patch fixed 'unable to rename file/folder via MTP' by
responding to MTP operation 'setObjectPropertyValue' correctly
2014-07-21 09:57:04 +08:00
Eric Chou
09efb44d84 Bug 1036861 - [MTP] Write file size into the response of getObjectInfo, r=dhylands
In the response of operation GetObjectInfo, there is a field
"ObjectCompressedSize". Currently it's assigned with 0. We need
to put correct file size into it. I also corrected the type of
property value in function getObjectPropertyDesc().
2014-07-21 09:56:58 +08:00
Dave Hylands
a91911e8c6 Bug 1029533 - Initial standup of MTP server. r=echou
Note: This will be off by default. Currently, you need to do:

adb shell setprop sys.usb.config mtp,adb

in order to activate the MTP server.
2014-07-11 14:42:15 -07:00