/**
* Method that returns the exit code of the executed program
- *
+ *
* @return int The exit code
*/
public int getExitCode();
/**
* @hide
*/
- static final Byte STDERR = new Byte((byte)1);
+ static final Byte STDERR = new Byte((byte)1);
private final AsyncResultListener mAsyncResultListener;
private AsyncResultProgramThread mWorkerThread;
this.mSync.notify();
}
}
-
+
/**
* Method that parse the error result of a program invocation.
*
* @param partialIn A partial standard input buffer (incremental buffer)
*/
void onParsePartialResult(String partialIn);
-
+
/**
* Method invoked when a parse of new error results are needed.
*
@Override
public void checkExitCode(int exitCode)
throws InsufficientPermissionsException, CommandNotFoundException, ExecutionException {
- // Not raise insufficient permissions if the link is in
+ // Not raise insufficient permissions if the link is in
if (exitCode != 0) {
throw new ExecutionException("exitcode != 0"); //$NON-NLS-1$
}
if (!ShellConsole.this.mCancelled) {
ShellConsole.this.mSbErr.append((char)r);
sb.append((char)r);
-
+
//Notify asynchronous partial data
if (ShellConsole.this.mStarted &&
ShellConsole.this.mActiveCommand != null &&
case R.id.mnu_actions_send:
ActionsPolicy.sendFileSystemObject(this.mContext, this.mFso);
break;
-
+
// Paste selection
case R.id.mnu_actions_paste_selection:
/**
* Method that creates a {@link LinkedResource} for the list of object to the
* destination directory
- *
+ *
* @param items The list of the source items
* @param directory The destination directory
*/
if (this.mFso instanceof Symlink && ((Symlink) this.mFso).getLinkRef() != null) {
this.mFolderUsageExecutable =
CommandHelper.getFolderUsage(
- this.mContext,
+ this.mContext,
((Symlink) this.mFso).getLinkRef().getFullPath(), this, null);
} else {
this.mFolderUsageExecutable =
* Method that returns the storage volumes defined in the system. This method uses
* reflection to retrieve the method because CM10 has a {@link Context}
* as first parameter, that AOSP hasn't.
- *
+ *
* @param ctx The current context
* @return StorageVolume[] The storage volumes defined in the system
*/
/**
* Method that returns if the path is in a volume storage
- *
+ *
* @param path The path
* @return boolean If the path is in a volume storage
*/
}
/**
- * Method that performs a test over known search results.
+ * Method that performs a test over known executable program.
*
* @throws Exception If test failed
*/
- public void testFindWithPartialResult() throws Exception {
+ public void testExecWithPartialResult() throws Exception {
try {
// Create the test program
FileWriter fw = new FileWriter(new File(EXEC_CMD));
ExecCommandTest.this.mSync.wait(15000L);
}
assertTrue("no new partial data", this.mNewPartialData); //$NON-NLS-1$
-
+
} finally {
try {
CommandHelper.deleteFile(getContext(), EXEC_CMD, getConsole());