aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJorge Ruesga <jorge@ruesga.com>2014-10-28 03:26:42 +0100
committerJorge Ruesga <jorge@ruesga.com>2014-11-10 23:16:25 +0000
commit877d4660622ebcaa992f05396237169c289470c4 (patch)
treeb254cb04803096aa9695f42e1bcc914ba09e12fd /tests
parentfcb4908c2c949f55ec966e09a0a91210dff2ca3f (diff)
downloadandroid_packages_apps_CMFileManager-877d4660622ebcaa992f05396237169c289470c4.tar.gz
android_packages_apps_CMFileManager-877d4660622ebcaa992f05396237169c289470c4.tar.bz2
android_packages_apps_CMFileManager-877d4660622ebcaa992f05396237169c289470c4.zip
cmfm: secure storage and other improvements
This patch adds support for virtual filesystems and implements a SecureStorage filesystem (a password protected area) mounted in /storage or /sdcard/storage (in chrooted environments). Also includes a better print support and a cleanup of the code and design of the menu drawer. Bump version to 2.0.0 Required: https://github.com/jruesga/android_external_libtruezip located in external/libtruezip Patchset 4: Fix selection of unmounted virtual storages. Fix actions on virtual mount points folders. Fix strings and typos. Change drop for delete secure storage. Patchset 5: Move actionbar buttons to navigation drawer Remove history position Patchset 6: Update theme preview images Fix filesystem status image on theme change Patchset 7: Fix binary file detection in editor (including unicode files) Patchset 8: Fix unsafe operations in virtual mountpoint logic Patchset 9: Rebase Change-Id: I65511352ca649dcbf238c8b07cf8c22465296e8e Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/cyanogenmod/filemanager/commands/shell/FindCommandTest.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/src/com/cyanogenmod/filemanager/commands/shell/FindCommandTest.java b/tests/src/com/cyanogenmod/filemanager/commands/shell/FindCommandTest.java
index d12b69e4..b8257cd1 100644
--- a/tests/src/com/cyanogenmod/filemanager/commands/shell/FindCommandTest.java
+++ b/tests/src/com/cyanogenmod/filemanager/commands/shell/FindCommandTest.java
@@ -20,7 +20,7 @@ import android.os.Environment;
import android.test.suitebuilder.annotation.LargeTest;
import com.cyanogenmod.filemanager.commands.AsyncResultExecutable;
-import com.cyanogenmod.filemanager.commands.AsyncResultListener;
+import com.cyanogenmod.filemanager.commands.ConcurrentAsyncResultListener;
import com.cyanogenmod.filemanager.model.FileSystemObject;
import com.cyanogenmod.filemanager.model.Query;
import com.cyanogenmod.filemanager.util.CommandHelper;
@@ -77,29 +77,31 @@ public class FindCommandTest extends AbstractConsoleTest {
Query query = new Query().setSlot(FIND_TERM_PARTIAL, 0);
final List<FileSystemObject> files = new ArrayList<FileSystemObject>();
AsyncResultExecutable cmd =
- CommandHelper.findFiles(getContext(), FIND_PATH, query, new AsyncResultListener() {
+ CommandHelper.findFiles(getContext(), FIND_PATH,
+ query, new ConcurrentAsyncResultListener() {
+
@Override
- public void onAsyncStart() {
+ public void onConcurrentAsyncStart() {
/**NON BLOCK**/
}
@Override
- public void onAsyncEnd(boolean cancelled) {
+ public void onConcurrentAsyncEnd(boolean cancelled) {
synchronized (FindCommandTest.this.mSync) {
FindCommandTest.this.mNormalEnd = true;
FindCommandTest.this.mSync.notify();
}
}
@Override
- public void onAsyncExitCode(int exitCode) {
+ public void onConcurrentAsyncExitCode(int exitCode) {
/**NON BLOCK**/
}
@Override
- public void onException(Exception cause) {
+ public void onConcurrentException(Exception cause) {
fail(String.valueOf(cause));
}
@Override
@SuppressWarnings("unchecked")
- public void onPartialResult(Object results) {
+ public void onConcurrentPartialResult(Object results) {
FindCommandTest.this.mNewPartialData = true;
files.addAll((List<FileSystemObject>)results);
}