aboutsummaryrefslogtreecommitdiff
path: root/src/com/cyanogenmod/filemanager/commands/shell/FolderUsageCommand.java
Commit message (Collapse)AuthorAgeFilesLines
* Detect text encoding with juniversalchardet.Matt Garnes2015-04-101-2/+3
| | | | | | | | | | - When opening files in the built in editor for display, detect the encoding with juniversalchardet, so that the correct encoding will be used. - Use byte buffers to back ShellConsole instead of StringBuffers Change-Id: I85fa567ef589a82f1c8604f1f215647376c31c9a (cherry picked from commit 55c55835d3bd685dde542b4f5952ce401542ab84)
* Support ambigous file extension mimetypes.Matt Garnes2015-03-261-1/+5
| | | | | | | | | | | | | Previously, CMFileManager operated under the assumption that file extensions map to exactly one mimetype. This is not true in some cases, such as .3gp files, which can have an audio or video mimetype. Add support so that in mime_types.properties we can specify a comma separated list of mimetype info that are matched with a given extension. If an AmbiguousExtensionHelper subclass implementation is provided for one of these extensions, this is used to determine the correct mimetype for the file. Change-Id: Ie73d6ad646692dfeac112ac50c1c6436e6b5559b
* CMFM: fix broken toolbox ls commandJorge Ruesga2013-02-201-7/+18
| | | | | | | toolbox ls -alR is broken (only returns the first folder). Change to busybox ls applet. Change-Id: I5226b3911d0fb2890f7e1cc1cb7a439ea593b1bf Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMFM: Fixes and ImprovementsJorge Ruesga2013-01-051-54/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Some performance improvements: - Use stat instead of ls. This allow improve listing of directories with symlinks. Symlinks are resolved by File.getCanonicalFile. - Simplify ls, fileinfo, find and readlink command - Simplify the parsing of FolderUsage (only type, size and category is required), and avoid to load a lot of on unused objects - Add new file datetime information from stat: access, change and modify - Improve list, find and resolvelink java commands * FadeEffect and symlink handling * Remove context from AIDHelper and add new helpful methods * New getAbsolutePath method * Use file separator for paths and ROOT_DIRECTORY for root directory path * Organize startup - Initialize variables prior to register receivers - Load AID data for improve performance through caching - Load the theme base used by AOSP widgets * Allow Editor to show zero-length files Allow the editor to load zero-length files (like /proc/mounts) and change the buffer type to no editable in binary files. * Invert allowed mount points detection. This change inverts the algorithm for prevent unmount needed rw filesystems. Now uses known restricted filesystems instead of known allowed filesystems. Now filesystems like yaffs2, fuse, and other linux filesystems are allowed by default. * Remove unused xliff namespace * Add flagNoFullscreen to EditText widgets * Fix listview selectors of history and bookmarks * Fix race condition When the command was executed prior to block the execution, the thread wait for the timeout. Add a sync access check to ensure that prior to lock and wait the program executed is not finished. * Fix for async programs When the partial buffer received for an async program is not complete (ends with a EOL), the partial buffer was discarded. Add a new buffer with this lost chars to complete this bytes next time * Fix list command Use -n1 for xargs in list command to prevent "argument line too long" * If parent is null then assume that it is the root folder * Use only name and parent for equals method on FileSystemObject A FileSystemObject is the same if his name and path are the same. * Increase performance of adapters Use argument data when possible to avoid call the adapter methods * Do not clear selection on some actions Actions like create new file/folder, show properties and other actions that explicit requires clear the active selection, shouldn't removed the active selection. * Add a new additional line to dialog messages to fill the dialog * Fix spanish translations * Fix theme roulette on tablets * Clean NLS and Override warnings * Fix parse size data with dots * Add listeners after set the values to avoid raising triggers * Increase performance of adapters. Notify the data changed at the end of the changes, and only to super adapters (the internal structure has already been updated) * Ensure that all the Cursor references were closed after used them. * Remove unused SuppressLint * Clean up Change-Id: I4326e97cbc942c767829f1a0ff6b380ad768cfef Signed-off-by: jruesga <jorge@ruesga.com>
* Change application name to 'File Manager' (issue #20)jruesga2012-10-261-0/+231
Full refactoring of package from explorer to filemanager