• Home
  • History
  • Annotate
  • only in /external/qemu/android/base/files/
History log of /external/qemu/android/base/files/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
97502faffa2e99bf717749a2d249ba3e57d7da4d 28-Apr-2014 David 'Digit' Turner <digit@google.com> Add misc android/base/ helper classes.

This patch adds a few new helper classes under android/base/ that
will be used by future patches.

- Add a 'clear' method to String class.

- Add StringFormat() function to generated String instances
from formatted string input, and StringAppendFormat() to
append some to an existing instance.

- Add ScopedFd to implement a scoped file descriptor wrapper.

- Add ScopedHandle to implement a scoped Win32 HANDLE wrapper.

Change-Id: I0ae2a1de1123586b23e4faca8f394c6b4dff622e
copedFd.h
copedFd_unittest.cpp
copedHandle.h
copedHandle_unittest.cpp
c005246ed03de874fdc432073ba8e5e8ebfed922 25-Feb-2014 David 'Digit' Turner <digit@google.com> Remove trailing spaces in misc sources.

Change-Id: I573d4e816112b7401b3c824fbe773b85a8601531
athUtils.cpp
athUtils_unittest.cpp
d3f2c27ff9f611e5047a35cb20ed53f548214fed 19-Feb-2014 David 'Digit' Turner <digit@google.com> New C++ helper classes.

This adds a few useful C++ helper classes to android/base/
that will be used in the future by other patches.

+ Add android/base/String.h, a slightly more efficient version
of std::string.

+ Add android/base/containers/StringVector.h, an optimized
vector of strings that is much more efficient than
std::vector<std::string> and should use less memory.

+ Add android/base/containers/PodVector.h which defines
an efficient std::vector<> equivalent for POD-struct
compatible types.

+ Modify PathUtils.h to use StringVector instead of
std::vector<std::string>.

+ Modify android/utils/file_data.c to get rid of valgrind
complaints when running the unit test suite.

+ Add android/base/Limits.h to get reliable integer
limit macros in C++.

Change-Id: Id9374aec658383c29be70a798ba17867664f69d3
athUtils.cpp
athUtils.h
athUtils_unittest.cpp
890f46464b0a35cbee882a5d62bd86a49879cabc 24-Feb-2014 David 'Digit' Turner <digit@google.com> Fix Ext4 filesystem support.

This patch fixes the way the emulator handles Ext4 partition images.

Before the patch:

- The hardware property 'hw.useext4' was used to determine whether
the partition images use yaffs2 (for 'no') or ext4 (for 'yes').
The default value was based on the API level, since ext4 is
used since Android 4.4 (API level 19), but it was easy to get
confused, resulting in the inability to properly boot the
AVD. The symptom was not trivial, i.e.:

- Mounting /system with the disk image failed, so the
system kept using the ramdisk mount.

- Later, logcat contained plenty of complaints that some
stuff couldn't be found under /system/bin/

After the patch:

- The partition format is simply auto-detected by probing the
start of the disk image. The hardware property has not been
removed because doing this breaks snapshots, but it is now
tagged as deprecated.

+ Move the ext4 probing code from android/avd/util.* to
android/filesystems/ext4_utils.* and add proper unit tests.

Change-Id: Iab24191e491d4cb8589dd13408618a0d13efeb76
copedStdioFile.h
copedStdioFile_unittest.cpp
11823980b127b345cac5fdf1e2ef0a3bb6c951cb 11-Feb-2014 David 'Digit' Turner <digit@google.com> android/base/files/PathUtils.h: add new header.

This patch adds a new header containing utility routines used
to manage file system paths in a consistent way.

Change-Id: I77bac2ca1834ab08a500d0f786fb800d0cd97b93
athUtils.cpp
athUtils.h
athUtils_unittest.cpp