OSDN Git Service

android-x86/packages-apps-CMFileManager.git
11 years agoFix TestCases
jruesga [Fri, 12 Oct 2012 11:00:38 +0000 (13:00 +0200)]
Fix TestCases

Still fails ExecCommandTest because we need a command to write content
in a file (the test script to execute). Now, we haven't permissions to
write to /data with standard java routines

11 years agoDon't use -f flag in rm command.
jruesga [Fri, 12 Oct 2012 10:58:47 +0000 (12:58 +0200)]
Don't use -f flag in rm command.

Don't use -f flag in rm command, because we need the exception if rm
is applied over an inexistent file or folder

11 years agoRemove trailing whitespace
jruesga [Fri, 12 Oct 2012 10:57:09 +0000 (12:57 +0200)]
Remove trailing whitespace

11 years agoReplace cancelled by canceled
jruesga [Fri, 12 Oct 2012 10:18:56 +0000 (12:18 +0200)]
Replace cancelled by canceled

11 years agoDon't hardcode the root directory
jruesga [Fri, 12 Oct 2012 09:56:21 +0000 (11:56 +0200)]
Don't hardcode the root directory

11 years agoUse overlay for root directory
jruesga [Fri, 12 Oct 2012 09:52:40 +0000 (11:52 +0200)]
Use overlay for root directory

11 years agoDon't resolve link when apply user preference in sorting
jruesga [Fri, 12 Oct 2012 09:21:21 +0000 (11:21 +0200)]
Don't resolve link when apply user preference in sorting

11 years agoNo show create link if current directory is in storage volume
jruesga [Fri, 12 Oct 2012 09:16:36 +0000 (11:16 +0200)]
No show create link if current directory is in storage volume

11 years agoVarious
jruesga [Fri, 12 Oct 2012 02:04:59 +0000 (04:04 +0200)]
Various

* New fso and global action: Create Link
* Fix bold font in deleting message dialog
* Fix list command:  when ther are only symlinks in a folder the list
doesn't return anything
* InputNameDialog: Allow return fso name
* InputNameDialog: Check name when no pass an fso
* ActionPolicy: Only move (nor rename) command should check current
directory

11 years agoCleanUp
jruesga [Fri, 12 Oct 2012 00:23:35 +0000 (02:23 +0200)]
CleanUp

11 years agoNew command: ExecCommand (for execute commands)
jruesga [Fri, 12 Oct 2012 00:19:52 +0000 (02:19 +0200)]
New command: ExecCommand (for execute commands)

11 years agoNew command: LinkCommand (for create symlinks)
jruesga [Thu, 11 Oct 2012 23:27:12 +0000 (01:27 +0200)]
New command: LinkCommand (for create symlinks)

11 years agoCreate StorageHelper, and redesign BookmarksActivity (II)
jruesga [Thu, 11 Oct 2012 22:52:10 +0000 (00:52 +0200)]
Create StorageHelper, and redesign BookmarksActivity (II)

11 years agoCreate StorageHelper, and redesign BookmarksActivity
jruesga [Thu, 11 Oct 2012 22:51:28 +0000 (00:51 +0200)]
Create StorageHelper, and redesign BookmarksActivity

11 years agoRevert refresh of new fso
jruesga [Thu, 11 Oct 2012 22:21:06 +0000 (00:21 +0200)]
Revert refresh of new fso

11 years agoNew global actions "Paste selection" and "Move selection"
jruesga [Thu, 11 Oct 2012 22:19:17 +0000 (00:19 +0200)]
New global actions "Paste selection" and "Move selection"

11 years agoNew global action "Delete Selection"
jruesga [Thu, 11 Oct 2012 21:56:14 +0000 (23:56 +0200)]
New global action "Delete Selection"

11 years agoDeselect all items on an operation (create folder, delete file, ...)
jruesga [Thu, 11 Oct 2012 21:55:46 +0000 (23:55 +0200)]
Deselect all items on an operation (create folder, delete file, ...)

11 years agoFix statistics computation for symlinks
jruesga [Wed, 10 Oct 2012 23:01:53 +0000 (01:01 +0200)]
Fix statistics computation for symlinks

11 years agoBetter resolve of symlinks in list command
jruesga [Wed, 10 Oct 2012 22:57:07 +0000 (00:57 +0200)]
Better resolve of symlinks in list command

11 years agoBetter history search drawable
jruesga [Wed, 10 Oct 2012 22:53:24 +0000 (00:53 +0200)]
Better history search drawable

11 years agoFix a bug in back of navigation activity when there is a search element
jruesga [Wed, 10 Oct 2012 20:03:11 +0000 (22:03 +0200)]
Fix a bug in back of navigation activity when there is a search element

11 years agoBetter symlinks handle
jruesga [Wed, 10 Oct 2012 00:59:21 +0000 (02:59 +0200)]
Better symlinks handle

Resolve symlinks with -> symbols in any of the names (link or real).

11 years agoSort the items by path to avoid delete parents fso prior to child fso
jruesga [Tue, 9 Oct 2012 21:51:05 +0000 (23:51 +0200)]
Sort the items by path to avoid delete parents fso prior to child fso

11 years agoWhen no console available, ask the user prior to exit
jruesga [Mon, 8 Oct 2012 23:44:07 +0000 (01:44 +0200)]
When no console available, ask the user prior to exit

When advanced console selection is disabled and a can't create a
console, the only way is restore to non-privileged console, which
includes reverts the superuser and advanced selection modes.

11 years agoRestructure ActionsPolicy and other changes
jruesga [Mon, 8 Oct 2012 23:18:51 +0000 (01:18 +0200)]
Restructure ActionsPolicy and other changes

* Restructure ActionsPolicy to allow doing operation in background and
with a progress dialog
* New rename, create copy, copy, move, and remove methods
* Fix add and remove commands to have force and recursive flags when
apply
* Fix readlink command because it exceeds the maximum arguments allowed
* Redesign MessageProgressDialog for a multipurpose use
* On refresh of navigation view, try to scroll to last position if
possible
* New dialog in DialogHelper
* ExceptionUtil now passed the cause in onFailed in
OnRelaunchCommandResult listener
* New helper methods
* Clean up

11 years agoNot restrict MessageProgressDialog to number progress
jruesga [Sun, 7 Oct 2012 14:52:05 +0000 (16:52 +0200)]
Not restrict MessageProgressDialog to number progress

This allow use the MessageProgressDialog as a message progress (xe. for
use on copy or move operations with filename progress)

11 years agoUse -a flag in copy operations
jruesga [Sun, 7 Oct 2012 14:50:00 +0000 (16:50 +0200)]
Use -a flag in copy operations

11 years agoFix slash in paths for ListCommand
jruesga [Sat, 6 Oct 2012 23:34:18 +0000 (01:34 +0200)]
Fix slash in paths for ListCommand

11 years agoFix InputNameDialog actions
jruesga [Sat, 6 Oct 2012 23:33:52 +0000 (01:33 +0200)]
Fix InputNameDialog actions

* Fix Pass the files no selection
* New action: rename

11 years agoAvoid read stdin when is null
jruesga [Sat, 6 Oct 2012 22:31:51 +0000 (00:31 +0200)]
Avoid read stdin when is null

11 years agoDon't the method onSaveInstanceState and onRestoreInstanceState
jruesga [Sat, 6 Oct 2012 22:31:10 +0000 (00:31 +0200)]
Don't the method onSaveInstanceState and onRestoreInstanceState

NavigationActivity is singleTop, so when it is displayed no
other activities exists in the stack. This cause an issue with the saved
instance of this class, because if another activity is displayed, and
the process is killed, NavigationActivity is started and the saved
instance gets corrupted. For this reason the methods onSaveInstanceState
and onRestoreInstanceState are not implemented, and every time the app
is killed, is restarted from his initial state.

11 years agoImplemented Allow Console Selection setting
jruesga [Sat, 6 Oct 2012 19:45:15 +0000 (21:45 +0200)]
Implemented Allow Console Selection setting

This setting allow use the menu "Select Console" or deactivate the menu
using only a privileged console, without additional privileged messages,
but require su to run the app.
By default, allow not privileged console to avoid startup problems

11 years agoRefresh the navigation view after back from the search view
jruesga [Sat, 6 Oct 2012 18:14:56 +0000 (20:14 +0200)]
Refresh the navigation view after back from the search view

* Refresh the navigation view after back from the search view
* Clean up

11 years agoRedesign of some mime/type drawables
jruesga [Sat, 6 Oct 2012 17:53:41 +0000 (19:53 +0200)]
Redesign of some mime/type drawables

11 years agoRedesign of bookmarks drawables
jruesga [Sat, 6 Oct 2012 17:04:22 +0000 (19:04 +0200)]
Redesign of bookmarks drawables

11 years agoA bunch of changes.
jruesga [Sat, 6 Oct 2012 16:16:14 +0000 (18:16 +0200)]
A bunch of changes.

* Add send action for file
* Add handler for open action on click in navigation, search and
bookmarks
* Allow file bookmarks
* Upload AssociationsDialog
* Fix root directory name in history
* Add controls to navigation and history for deleted folders
* Remove history of delete folders
* Add open with action for onLongClickListener handler

11 years agoOpen and Open with actions
jruesga [Sat, 6 Oct 2012 10:23:03 +0000 (12:23 +0200)]
Open and Open with actions

Implementation of Open and Open with actions. This create a custom
dialog that allow show all registered application even when only one
application exists or has a preferred application.
This change requires a platform signature to allow use
addPreferredActivity or removePreferredActivity.
For this is not working. Need be tested and checked inside CM.

11 years agoRevert Association Provider. Instead, use AOSP PreferredActivity api.
jruesga [Fri, 5 Oct 2012 23:34:55 +0000 (01:34 +0200)]
Revert Association Provider. Instead, use AOSP PreferredActivity api.

11 years agoAllow dialogs with no icon
jruesga [Fri, 5 Oct 2012 23:14:34 +0000 (01:14 +0200)]
Allow dialogs with no icon

11 years agoLint warnings
jruesga [Fri, 5 Oct 2012 23:14:09 +0000 (01:14 +0200)]
Lint warnings

11 years agoUse new ObjectStringIdentifier to default preference
jruesga [Fri, 5 Oct 2012 16:18:31 +0000 (18:18 +0200)]
Use new ObjectStringIdentifier to default preference

11 years agoImprove DiskUsageGraph layout
jruesga [Tue, 2 Oct 2012 23:42:50 +0000 (01:42 +0200)]
Improve DiskUsageGraph layout

11 years agoImprove dialog layouts
jruesga [Tue, 2 Oct 2012 23:03:20 +0000 (01:03 +0200)]
Improve dialog layouts

11 years agoProvider and model for associations (file, intents, ...)
jruesga [Tue, 2 Oct 2012 22:31:11 +0000 (00:31 +0200)]
Provider and model for associations (file, intents, ...)

11 years agofor code style
jruesga [Mon, 1 Oct 2012 23:31:30 +0000 (01:31 +0200)]
for code style

11 years agoUse hand-written counted loop for increase performance
jruesga [Mon, 1 Oct 2012 23:29:18 +0000 (01:29 +0200)]
Use hand-written counted loop for increase performance

http://developer.android.com/guide/practices/performance.html#foreach

11 years agoAvoid use of internals getters and setters
jruesga [Mon, 1 Oct 2012 23:10:51 +0000 (01:10 +0200)]
Avoid use of internals getters and setters

http://developer.android.com/guide/practices/performance.html#internal_get_set

11 years agoRemove synthetic-access for better access performance
jruesga [Mon, 1 Oct 2012 23:07:25 +0000 (01:07 +0200)]
Remove synthetic-access for better access performance

http://developer.android.com/guide/practices/performance.html#package_inner

11 years agoShell improvements
jruesga [Mon, 1 Oct 2012 22:40:06 +0000 (00:40 +0200)]
Shell improvements

* Change the shell console to better detect the cancel of a async
program
* Create start control command to clean buffer before start a new
command
* Add device specific buffer size
* Improve ListCommand, using Java to get the parent folder.
* Compute folder is disabled by default.
* Correct some bugs when using root directory

11 years agoSome providers + Some actions
jruesga [Sun, 30 Sep 2012 23:27:58 +0000 (01:27 +0200)]
Some providers + Some actions

* Create new Bookmarks provider (database + providers). Replace old
shared preferences based.
* New actions "Add to bookmarks" (global + fso).
* Initial support for "open" and "open with" actions.
* Clean up

11 years agoGlobal actions: Properties and Refresh
jruesga [Sun, 30 Sep 2012 17:35:56 +0000 (19:35 +0200)]
Global actions: Properties and Refresh

New global actions for show properties of the current folder and refresh
the current folder

11 years agoAdd refresh listener to SearchActivity
jruesga [Sun, 30 Sep 2012 16:28:00 +0000 (18:28 +0200)]
Add refresh listener to SearchActivity

11 years agoDelete file/folder action
jruesga [Sun, 30 Sep 2012 16:09:06 +0000 (18:09 +0200)]
Delete file/folder action

11 years agoClean up
jruesga [Sun, 30 Sep 2012 16:08:46 +0000 (18:08 +0200)]
Clean up

11 years agoReload fso prior to show actions dialog
jruesga [Sun, 30 Sep 2012 15:22:07 +0000 (17:22 +0200)]
Reload fso prior to show actions dialog

Reload the fso reference prior to display the actions dialog of the
item, and remove from the listview if the item not exists.

11 years agoListCommand: Prevent to raise exception
jruesga [Sun, 30 Sep 2012 14:56:00 +0000 (16:56 +0200)]
ListCommand: Prevent to raise exception

Prevent to raise an exception if the absolute path can't be retrieved
from console. Instead of, use Java functions to try to resolve parent
path prior to raise the exception.

11 years ago/etc menu is showing open and open with actions
jruesga [Sun, 30 Sep 2012 14:20:37 +0000 (16:20 +0200)]
/etc menu is showing open and open with actions

Show open and open with only when the fso is not a directory, system
file or symlink to one of this. Apply to mime/type also.

11 years agoMore mime/types and drawables
jruesga [Sun, 30 Sep 2012 14:09:24 +0000 (16:09 +0200)]
More mime/types and drawables

11 years agoMore polished "Document" drawables
jruesga [Sun, 30 Sep 2012 09:23:46 +0000 (11:23 +0200)]
More polished "Document" drawables

11 years agoNew setting for "compute folder statistics" option
jruesga [Sun, 30 Sep 2012 00:02:22 +0000 (02:02 +0200)]
New setting for "compute folder statistics" option

11 years agoFix commands
jruesga [Sat, 29 Sep 2012 23:39:06 +0000 (01:39 +0200)]
Fix commands

* Fix cancelable commands
* New pid_shell and pid_cmd command
* New FolderUsage command
* New compute folder statistics in fso properties
* Add overlay file for device specific stuff
* Fix invalid executable drawable
* Clean up

11 years agoAdd category to mime/type raw file
jruesga [Sat, 29 Sep 2012 16:17:43 +0000 (18:17 +0200)]
Add category to mime/type raw file

11 years agoRename certificate drawable to security
jruesga [Sat, 29 Sep 2012 16:16:20 +0000 (18:16 +0200)]
Rename certificate drawable to security

11 years agoUse a timeout to release the exit status
jruesga [Sat, 29 Sep 2012 09:36:42 +0000 (11:36 +0200)]
Use a timeout to release the exit status

Release the exit flag after 3500 millis, so after this timeout the
exit flag is reseted and the toast is shown again to the user

11 years agoMime types and drawables
jruesga [Fri, 28 Sep 2012 23:24:32 +0000 (01:24 +0200)]
Mime types and drawables

11 years agoUse a highlighted text for overflow menu
jruesga [Fri, 28 Sep 2012 14:10:16 +0000 (16:10 +0200)]
Use a highlighted text for overflow menu

11 years agoAdd show actions to list of default long-click actions
jruesga [Fri, 28 Sep 2012 13:50:21 +0000 (15:50 +0200)]
Add show actions to list of default long-click actions

11 years agoNo register long-click listener if not needed
jruesga [Fri, 28 Sep 2012 12:14:01 +0000 (14:14 +0200)]
No register long-click listener if not needed

When long-click action is set to none, the long-click listener shouldn't
be registered because it's not needed

11 years agoUse uids instead of names on chown operation
jruesga [Fri, 28 Sep 2012 11:58:58 +0000 (13:58 +0200)]
Use uids instead of names on chown operation

11 years agoFix default value of disk usage warning to 95
jruesga [Fri, 28 Sep 2012 11:48:45 +0000 (13:48 +0200)]
Fix default value of disk usage warning to 95

11 years agoInitial mime types and drawables
jruesga [Fri, 28 Sep 2012 00:16:14 +0000 (02:16 +0200)]
Initial mime types and drawables

Initial commit for mime type, extensions and drawables for commons file
types.

11 years agoUse unicode symbols for ascending and descending sort type menus
jruesga [Thu, 27 Sep 2012 21:51:49 +0000 (23:51 +0200)]
Use unicode symbols for ascending and descending sort type menus

11 years agoNew refined launcher icons
jruesga [Thu, 27 Sep 2012 21:50:59 +0000 (23:50 +0200)]
New refined launcher icons

11 years agoMove ActionsPolicy to ui/policy
jruesga [Thu, 27 Sep 2012 21:11:43 +0000 (23:11 +0200)]
Move ActionsPolicy to ui/policy

11 years agoFix InlineAutocompleteTextView algorithm
jruesga [Wed, 26 Sep 2012 23:04:40 +0000 (01:04 +0200)]
Fix InlineAutocompleteTextView algorithm

The actual implementation of InlineAutocompleteTextView had some
incorrect matches. xe: in /, only shows sys, but system exists also.
This change review the algorithm for found this kind of entries.

11 years agoFix select/deselect of items
jruesga [Wed, 26 Sep 2012 22:07:39 +0000 (00:07 +0200)]
Fix select/deselect of items

When there is a selection of items in various folders, the done button
for deselect all items, only deselect the visible items.
Create convenient methods for select/deselect visible items and deselect
all items

11 years agoMore settings and ActionPolicy
jruesga [Tue, 25 Sep 2012 23:23:58 +0000 (01:23 +0200)]
More settings and ActionPolicy

* Added case sensitive sort setting
* Default action implemented
* Allow console selection (only setting)
* Move actions from ActionsDialog to ActionPolicy so they can be used
from the rest of the code

11 years agoChange Free Disk Space setting for more policy Disk Usage
jruesga [Tue, 25 Sep 2012 20:04:09 +0000 (22:04 +0200)]
Change Free Disk Space setting for more policy Disk Usage

Change reference to free_disk_space setting to disk_usage (settings,
labels, arrays, ...)

11 years agoRemove old classes
jruesga [Tue, 25 Sep 2012 19:57:15 +0000 (21:57 +0200)]
Remove old classes

11 years agoPut correct values for free disk space warning
jruesga [Tue, 25 Sep 2012 19:56:21 +0000 (21:56 +0200)]
Put correct values for free disk space warning

11 years agoNew general settings
jruesga [Tue, 25 Sep 2012 00:03:13 +0000 (02:03 +0200)]
New general settings

Default long-click action (only setting)
Free disk space warning level

11 years agoNew: Sort Search mode
jruesga [Sun, 23 Sep 2012 23:52:04 +0000 (01:52 +0200)]
New: Sort Search mode

Sort Search mode preference

11 years agoClean up
jruesga [Sun, 23 Sep 2012 22:28:38 +0000 (00:28 +0200)]
Clean up

11 years agoResolve symbolic links in search results
jruesga [Sun, 23 Sep 2012 22:25:52 +0000 (00:25 +0200)]
Resolve symbolic links in search results

Resolve symbolic links references for search results that doesn't have
this references, prior to return the result to users

11 years agoDon't return the folder of the search
jruesga [Sun, 23 Sep 2012 20:08:13 +0000 (22:08 +0200)]
Don't return the folder of the search

Don't return as result the folder of the search

11 years agoAdd CleanSpec.mk
jruesga [Sun, 23 Sep 2012 19:24:19 +0000 (21:24 +0200)]
Add CleanSpec.mk

11 years agoNew: Setting preferences
jruesga [Sun, 23 Sep 2012 19:20:31 +0000 (21:20 +0200)]
New: Setting preferences

Initial development of settings preferences

11 years agoMake selection small than status bar
jruesga [Sun, 23 Sep 2012 09:58:16 +0000 (11:58 +0200)]
Make selection small than status bar

11 years agoSet selection view visible for display animation effect
jruesga [Sun, 23 Sep 2012 00:08:02 +0000 (02:08 +0200)]
Set selection view visible for display animation effect

Set the visibility of selection view prior to start animation effect.
Otherwise, the effect is not shown.

11 years agoNew: Selection View
jruesga [Sat, 22 Sep 2012 23:58:56 +0000 (01:58 +0200)]
New: Selection View

Selection view with animation effect
Clean up

11 years agoAdvise of few space in DiskUsageGraph
jruesga [Sat, 22 Sep 2012 19:44:02 +0000 (21:44 +0200)]
Advise of few space in DiskUsageGraph

Advise of few space in DiskUsageGraph when free space is lower than 95%

11 years agoAdvise on mount points with < 5% of free space
jruesga [Sat, 22 Sep 2012 18:10:08 +0000 (20:10 +0200)]
Advise on mount points with < 5% of free space

Advise in breadcrumb with other color, when the filesystem has less
than 5% of free space

11 years agoSome renames
jruesga [Sat, 22 Sep 2012 17:08:23 +0000 (19:08 +0200)]
Some renames

11 years agoVarious
jruesga [Sat, 22 Sep 2012 16:57:28 +0000 (18:57 +0200)]
Various

Various changes:
* New: Fso properties dialog
* Changed SID to AID. Added a list of supported AIDs
* Improve Filesystem Dialog
* Minor changes in model
* Improve ExceptionUtil for a better detection and support of
RelaunchableException
* Fixed bugs in ListCommand: ls and readlink

11 years agoRename Identifiable to ObjectIndentifier
jruesga [Sun, 16 Sep 2012 00:04:54 +0000 (02:04 +0200)]
Rename Identifiable to ObjectIndentifier

11 years agoSynchronize actions menu dialog
jruesga [Sat, 15 Sep 2012 19:44:11 +0000 (21:44 +0200)]
Synchronize actions menu dialog

This patch allows to use the same ActionDialog class from NavigationView
and SearchActivity, to share the same functionality.

11 years agoInlineAutocompleteTextView improvements
jruesga [Sat, 15 Sep 2012 11:45:44 +0000 (13:45 +0200)]
InlineAutocompleteTextView improvements

Some improvements for InlineAutocompleteTextView widget (IME, tab,
enter, ..)

11 years agoFix Code Style
jruesga [Fri, 14 Sep 2012 21:14:13 +0000 (23:14 +0200)]
Fix Code Style

Remove trailing whitespaces of Bookmarks

11 years agoUse valueOf as ADT recommends
jruesga [Fri, 14 Sep 2012 21:11:03 +0000 (23:11 +0200)]
Use valueOf as ADT recommends

Use Boolean.valueOf, Long.valueOf, Integer.valueOf, ... instead of new
Boolean(), new Long(), ..., as ADT recommends