diff --git a/.classpath b/.classpath
deleted file mode 100644
index d57ec025..00000000
--- a/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface GlobalConstants
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-LOCAL_ZIP_NAME
-
-- |
-
-static java.lang.String |
-LOG_TAG
-
-- |
-
-static java.lang.String |
-PACKAGE_NAME
-
-- |
-
-static java.lang.String |
-PYTHON_EXTRAS_ZIP_NAME
-
-- |
-
-static java.lang.String |
-PYTHON_MAIN_SCRIPT_NAME
-
-- |
-
-static java.lang.String |
-PYTHON_NICE_NAME
-
-- |
-
-static java.lang.String |
-PYTHON_PROJECT_ZIP_NAME
-
-- |
-
-static java.lang.String |
-PYTHON_ZIP_NAME
-
-- |
-
| -Field Detail | -
|---|
-static final java.lang.String PACKAGE_NAME-
-static final java.lang.String PYTHON_MAIN_SCRIPT_NAME-
-static final java.lang.String PYTHON_PROJECT_ZIP_NAME-
-static final java.lang.String LOCAL_ZIP_NAME-
-static final java.lang.String PYTHON_NICE_NAME-
-static final java.lang.String PYTHON_ZIP_NAME-
-static final java.lang.String PYTHON_EXTRAS_ZIP_NAME-
-static final java.lang.String LOG_TAG-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Interfaces
-
- -GlobalConstants |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| GlobalConstants | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.android.python27.process.Process -
com.android.python27.process.InterpreterProcess -
public class InterpreterProcess
-
| -Field Summary | -
|---|
| Fields inherited from class com.android.python27.process.Process | -
|---|
context |
-
| -Constructor Summary | -|
|---|---|
InterpreterProcess(PyScriptService context,
- MyInterpreter myInterpreter,
- AndroidProxy paramAndroidProxy)
-
-- Creates a new InterpreterProcess. |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-getHost()
-
-- |
-
- Interpreter |
-getInterpreter()
-
-- |
-
- int |
-getPort()
-
-- |
-
- RpcReceiverManagerFactory |
-getRpcReceiverManagerFactory()
-
-- |
-
- java.lang.String |
-getSdcardPackageDirectory()
-
-- |
-
- java.lang.String |
-getSecret()
-
-- |
-
- java.lang.String |
-getWorkingDirectory()
-
-- |
-
- void |
-kill()
-
-- |
-
- void |
-start(java.lang.Runnable paramRunnable,
- java.util.List<java.lang.String> paramList)
-
-- |
-
| Methods inherited from class com.android.python27.process.Process | -
|---|
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getReturnValue, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public InterpreterProcess(PyScriptService context, - MyInterpreter myInterpreter, - AndroidProxy paramAndroidProxy)-
InterpreterProcess.
--
launchScript - the absolute path to a script that should be launched with the interpreterport - the port that the AndroidProxy is listening on| -Method Detail | -
|---|
-public Interpreter getInterpreter()-
-public java.lang.String getHost()-
-public int getPort()-
-public java.lang.String getSecret()-
-public java.lang.String getWorkingDirectory()-
getWorkingDirectory in class Process-public java.lang.String getSdcardPackageDirectory()-
getSdcardPackageDirectory in class Process-public RpcReceiverManagerFactory getRpcReceiverManagerFactory()-
-public void start(java.lang.Runnable paramRunnable, - java.util.List<java.lang.String> paramList)-
-public void kill()-
kill in class Process
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.android.python27.process.Process -
com.android.python27.process.InterpreterProcess -
com.android.python27.process.PythonScriptProcess -
com.android.python27.process.MyScriptProcess -
public class MyScriptProcess
-
| -Field Summary | -
|---|
| Fields inherited from class com.android.python27.process.Process | -
|---|
context |
-
| -Method Summary | -|
|---|---|
- java.lang.String |
-getSdcardPackageDirectory()
-
-- |
-
- java.lang.String |
-getWorkingDirectory()
-
-- |
-
-static MyScriptProcess |
-launchScript(PyScriptService context,
- java.io.File script,
- InterpreterConfiguration configuration,
- AndroidProxy proxy,
- java.lang.Runnable shutdownHook,
- java.lang.String workingDir,
- java.lang.String sdcardPackageDirectory,
- java.util.List<java.lang.String> args,
- java.util.Map<java.lang.String,java.lang.String> envVars,
- java.io.File binary)
-
-- |
-
| Methods inherited from class com.android.python27.process.PythonScriptProcess | -
|---|
getPath |
-
| Methods inherited from class com.android.python27.process.InterpreterProcess | -
|---|
getHost, getInterpreter, getPort, getRpcReceiverManagerFactory, getSecret, kill, start |
-
| Methods inherited from class com.android.python27.process.Process | -
|---|
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getReturnValue, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static MyScriptProcess launchScript(PyScriptService context, - java.io.File script, - InterpreterConfiguration configuration, - AndroidProxy proxy, - java.lang.Runnable shutdownHook, - java.lang.String workingDir, - java.lang.String sdcardPackageDirectory, - java.util.List<java.lang.String> args, - java.util.Map<java.lang.String,java.lang.String> envVars, - java.io.File binary)-
-public java.lang.String getWorkingDirectory()-
getWorkingDirectory in class InterpreterProcess-public java.lang.String getSdcardPackageDirectory()-
getSdcardPackageDirectory in class InterpreterProcess
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.android.python27.process.Process -
public class Process
-
| -Field Summary | -|
|---|---|
- PyScriptService |
-context
-
-- |
-
| -Constructor Summary | -|
|---|---|
Process(PyScriptService context)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addAllArguments(java.util.List<java.lang.String> arguments)
-
-- |
-
- void |
-addArgument(java.lang.String argument)
-
-- |
-
- java.io.OutputStream |
-getErr()
-
-- |
-
- java.io.FileDescriptor |
-getFd()
-
-- |
-
- java.io.InputStream |
-getIn()
-
-- |
-
- java.io.File |
-getLogFile()
-
-- |
-
- java.lang.String |
-getName()
-
-- |
-
- java.io.OutputStream |
-getOut()
-
-- |
-
- java.lang.Integer |
-getPid()
-
-- |
-
- int |
-getReturnValue()
-
-- |
-
- java.lang.String |
-getSdcardPackageDirectory()
-
-- |
-
- java.lang.String |
-getUptime()
-
-- |
-
- java.lang.String |
-getWorkingDirectory()
-
-- |
-
- boolean |
-isAlive()
-
-- |
-
- void |
-kill()
-
-- |
-
- void |
-putAllEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)
-
-- |
-
- void |
-putEnvironmentVariable(java.lang.String key,
- java.lang.String value)
-
-- |
-
- void |
-setBinary(java.io.File binary)
-
-- |
-
- void |
-setName(java.lang.String name)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public PyScriptService context-
| -Constructor Detail | -
|---|
-public Process(PyScriptService context)-
| -Method Detail | -
|---|
-public int getReturnValue()-
-public void addArgument(java.lang.String argument)-
-public void addAllArguments(java.util.List<java.lang.String> arguments)-
-public void putAllEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)-
-public void putEnvironmentVariable(java.lang.String key, - java.lang.String value)-
-public void setBinary(java.io.File binary)-
-public java.lang.Integer getPid()-
-public java.io.FileDescriptor getFd()-
-public java.io.OutputStream getOut()-
-public java.io.OutputStream getErr()-
-public java.io.File getLogFile()-
-public java.io.InputStream getIn()-
-public void kill()-
-public boolean isAlive()-
-public java.lang.String getWorkingDirectory()-
-public java.lang.String getSdcardPackageDirectory()-
-public java.lang.String getUptime()-
-public java.lang.String getName()-
-public void setName(java.lang.String name)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.android.python27.process.Process -
com.android.python27.process.InterpreterProcess -
com.android.python27.process.PythonScriptProcess -
public class PythonScriptProcess
-
| -Field Summary | -
|---|
| Fields inherited from class com.android.python27.process.Process | -
|---|
context |
-
| -Constructor Summary | -|
|---|---|
PythonScriptProcess(PyScriptService context,
- java.io.File paramFile,
- InterpreterConfiguration paramInterpreterConfiguration,
- AndroidProxy paramAndroidProxy)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-getPath()
-
-- |
-
| Methods inherited from class com.android.python27.process.InterpreterProcess | -
|---|
getHost, getInterpreter, getPort, getRpcReceiverManagerFactory, getSdcardPackageDirectory, getSecret, getWorkingDirectory, kill, start |
-
| Methods inherited from class com.android.python27.process.Process | -
|---|
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getReturnValue, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PythonScriptProcess(PyScriptService context, - java.io.File paramFile, - InterpreterConfiguration paramInterpreterConfiguration, - AndroidProxy paramAndroidProxy)-
| -Method Detail | -
|---|
-public java.lang.String getPath()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -InterpreterProcess - -MyScriptProcess - -Process - -PythonScriptProcess |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| InterpreterProcess | -- |
| MyScriptProcess | -- |
| Process | -- |
| PythonScriptProcess | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.android.python27.support.Utils -
public class Utils
-
| -Constructor Summary | -|
|---|---|
Utils()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static void |
-createDirectoryOnExternalStorage(java.lang.String path)
-
-- |
-
-static boolean |
-deleteDir(java.io.File dir)
-
-- |
-
-static java.lang.String |
-getFileExtension(java.lang.String sFileName)
-
-- |
-
-static boolean |
-unzip(java.io.InputStream inputStream,
- java.lang.String dest,
- boolean replaceIfExists)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Utils()-
| -Method Detail | -
|---|
-public static java.lang.String getFileExtension(java.lang.String sFileName)-
-public static boolean unzip(java.io.InputStream inputStream, - java.lang.String dest, - boolean replaceIfExists)-
-public static boolean deleteDir(java.io.File dir)-
-public static void createDirectoryOnExternalStorage(java.lang.String path)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -Utils |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| Utils | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Analytics -
public class Analytics
-
| -Method Summary | -|
|---|---|
-static void |
-start(Context context,
- java.lang.String analyticsAccountId)
-
-- |
-
-static void |
-stop()
-
-- |
-
-static void |
-track(java.lang.String... nameParts)
-
-- |
-
-static void |
-trackActivity(Activity activity)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static void start(Context context, - java.lang.String analyticsAccountId)-
-public static void track(java.lang.String... nameParts)-
-public static void trackActivity(Activity activity)-
-public static void stop()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.AndroidProxy -
public class AndroidProxy
-
| -Constructor Summary | -|
|---|---|
AndroidProxy(Service service,
- Intent intent,
- boolean requiresHandshake)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.net.InetSocketAddress |
-getAddress()
-
-- |
-
- RpcReceiverManagerFactory |
-getRpcReceiverManagerFactory()
-
-- |
-
- java.lang.String |
-getSecret()
-
-- |
-
- void |
-shutdown()
-
-- |
-
- java.net.InetSocketAddress |
-startLocal()
-
-- |
-
- java.net.InetSocketAddress |
-startLocal(int port)
-
-- |
-
- java.net.InetSocketAddress |
-startPublic()
-
-- |
-
- java.net.InetSocketAddress |
-startPublic(int port)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public AndroidProxy(Service service, - Intent intent, - boolean requiresHandshake)-
service - Android service (required to build facades).intent - the intent that launched the proxy/script.requiresHandshake - indicates whether RPC security protocol should be enabled.| -Method Detail | -
|---|
-public java.net.InetSocketAddress getAddress()-
-public java.net.InetSocketAddress startLocal()-
-public java.net.InetSocketAddress startLocal(int port)-
-public java.net.InetSocketAddress startPublic()-
-public java.net.InetSocketAddress startPublic(int port)-
-public void shutdown()-
-public java.lang.String getSecret()-
-public RpcReceiverManagerFactory getRpcReceiverManagerFactory()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Application -
com.googlecode.android_scripting.BaseApplication -
public class BaseApplication
-
| -Constructor Summary | -|
|---|---|
BaseApplication()
-
-- |
-|
| -Method Summary | -|
|---|---|
- InterpreterConfiguration |
-getInterpreterConfiguration()
-
-- |
-
- FutureActivityTaskExecutor |
-getTaskExecutor()
-
-- |
-
- TriggerRepository |
-getTriggerRepository()
-
-- |
-
- void |
-onCreate()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public BaseApplication()-
| -Method Detail | -
|---|
-public FutureActivityTaskExecutor getTaskExecutor()-
-public void onCreate()-
-public InterpreterConfiguration getInterpreterConfiguration()-
-public TriggerRepository getTriggerRepository()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface Constants
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-ACTION_ACTIVITY_RESULT
-
-- |
-
-static java.lang.String |
-ACTION_CANCEL_NOTIFICATION
-
-- |
-
-static java.lang.String |
-ACTION_EDIT_SCRIPT
-
-- |
-
-static java.lang.String |
-ACTION_KILL_ALL
-
-- |
-
-static java.lang.String |
-ACTION_KILL_PROCESS
-
-- |
-
-static java.lang.String |
-ACTION_LAUNCH_BACKGROUND_SCRIPT
-
-- |
-
-static java.lang.String |
-ACTION_LAUNCH_FOREGROUND_SCRIPT
-
-- |
-
-static java.lang.String |
-ACTION_LAUNCH_INTERPRETER
-
-- |
-
-static java.lang.String |
-ACTION_LAUNCH_SCRIPT_FOR_RESULT
-
-- |
-
-static java.lang.String |
-ACTION_LAUNCH_SERVER
-
-- |
-
-static java.lang.String |
-ACTION_SAVE_AND_RUN_SCRIPT
-
-- |
-
-static java.lang.String |
-ACTION_SAVE_SCRIPT
-
-- |
-
-static java.lang.String |
-ACTION_SHOW_RUNNING_SCRIPTS
-
-- |
-
-static ComponentName |
-BLUETOOTH_DEVICE_LIST_COMPONENT_NAME
-
-- |
-
-static java.lang.String |
-EXTRA_API_PROMPT_RPC_NAME
-
-- |
-
-static java.lang.String |
-EXTRA_API_PROMPT_VALUES
-
-- |
-
-static java.lang.String |
-EXTRA_DEVICE_ADDRESS
-
-- |
-
-static java.lang.String |
-EXTRA_INTERPRETER_NAME
-
-- |
-
-static java.lang.String |
-EXTRA_IS_NEW_SCRIPT
-
-- |
-
-static java.lang.String |
-EXTRA_LAUNCH_IN_BACKGROUND
-
-- |
-
-static java.lang.String |
-EXTRA_PROCESS_ID
-
-- |
-
-static java.lang.String |
-EXTRA_PROXY_PORT
-
-- |
-
-static java.lang.String |
-EXTRA_RESULT
-
-- |
-
-static java.lang.String |
-EXTRA_RPC_HELP_TEXT
-
-- |
-
-static java.lang.String |
-EXTRA_SCRIPT_CONTENT
-
-- |
-
-static java.lang.String |
-EXTRA_SCRIPT_PATH
-
-- |
-
-static java.lang.String |
-EXTRA_SCRIPT_TEXT
-
-- |
-
-static java.lang.String |
-EXTRA_TASK_ID
-
-- |
-
-static java.lang.String |
-EXTRA_TRIGGER_ID
-
-- |
-
-static java.lang.String |
-EXTRA_USE_EXTERNAL_IP
-
-- |
-
-static java.lang.String |
-EXTRA_USE_SERVICE_PORT
-
-- |
-
-static java.lang.String |
-FORCE_BROWSER
-
-- |
-
-static java.lang.String |
-HIDE_NOTIFY
-
-- |
-
-static ComponentName |
-SL4A_SERVICE_COMPONENT_NAME
-
-- |
-
-static ComponentName |
-SL4A_SERVICE_LAUNCHER_COMPONENT_NAME
-
-- |
-
-static ComponentName |
-TRIGGER_SERVICE_COMPONENT_NAME
-
-- |
-
| -Field Detail | -
|---|
-static final java.lang.String ACTION_LAUNCH_FOREGROUND_SCRIPT-
-static final java.lang.String ACTION_LAUNCH_BACKGROUND_SCRIPT-
-static final java.lang.String ACTION_LAUNCH_SCRIPT_FOR_RESULT-
-static final java.lang.String ACTION_LAUNCH_INTERPRETER-
-static final java.lang.String ACTION_EDIT_SCRIPT-
-static final java.lang.String ACTION_SAVE_SCRIPT-
-static final java.lang.String ACTION_SAVE_AND_RUN_SCRIPT-
-static final java.lang.String ACTION_KILL_PROCESS-
-static final java.lang.String ACTION_KILL_ALL-
-static final java.lang.String ACTION_SHOW_RUNNING_SCRIPTS-
-static final java.lang.String ACTION_CANCEL_NOTIFICATION-
-static final java.lang.String ACTION_ACTIVITY_RESULT-
-static final java.lang.String ACTION_LAUNCH_SERVER-
-static final java.lang.String EXTRA_RESULT-
-static final java.lang.String EXTRA_SCRIPT_PATH-
-static final java.lang.String EXTRA_SCRIPT_CONTENT-
-static final java.lang.String EXTRA_INTERPRETER_NAME-
-static final java.lang.String EXTRA_USE_EXTERNAL_IP-
-static final java.lang.String EXTRA_USE_SERVICE_PORT-
-static final java.lang.String EXTRA_SCRIPT_TEXT-
-static final java.lang.String EXTRA_RPC_HELP_TEXT-
-static final java.lang.String EXTRA_API_PROMPT_RPC_NAME-
-static final java.lang.String EXTRA_API_PROMPT_VALUES-
-static final java.lang.String EXTRA_PROXY_PORT-
-static final java.lang.String EXTRA_PROCESS_ID-
-static final java.lang.String EXTRA_IS_NEW_SCRIPT-
-static final java.lang.String EXTRA_TRIGGER_ID-
-static final java.lang.String EXTRA_LAUNCH_IN_BACKGROUND-
-static final java.lang.String EXTRA_TASK_ID-
-static final java.lang.String EXTRA_DEVICE_ADDRESS-
-static final ComponentName SL4A_SERVICE_COMPONENT_NAME-
-static final ComponentName SL4A_SERVICE_LAUNCHER_COMPONENT_NAME-
-static final ComponentName BLUETOOTH_DEVICE_LIST_COMPONENT_NAME-
-static final ComponentName TRIGGER_SERVICE_COMPONENT_NAME-
-static final java.lang.String FORCE_BROWSER-
-static final java.lang.String HIDE_NOTIFY-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Exec -
public class Exec
-Tools for executing commands. -
- -
-
| -Constructor Summary | -|
|---|---|
Exec()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static java.io.FileDescriptor |
-createSubprocess(java.lang.String command,
- java.lang.String[] arguments,
- java.lang.String[] environmentVariables,
- java.lang.String workingDirectory)
-
-- |
-
-static java.io.FileDescriptor |
-createSubprocess(java.lang.String command,
- java.lang.String[] arguments,
- java.lang.String[] environmentVariables,
- java.lang.String workingDirectory,
- int[] processId)
-
-- |
-
-static void |
-setPtyWindowSize(java.io.FileDescriptor fd,
- int row,
- int col,
- int xpixel,
- int ypixel)
-
-- |
-
-static int |
-waitFor(int processId)
-
-- Causes the calling thread to wait for the process associated with the receiver to finish - executing. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Exec()-
| -Method Detail | -
|---|
-public static java.io.FileDescriptor createSubprocess(java.lang.String command, - java.lang.String[] arguments, - java.lang.String[] environmentVariables, - java.lang.String workingDirectory)-
cmd - The command to executearg0 - The first argument to the command, may be nullarg1 - the second argument to the command, may be null
--public static java.io.FileDescriptor createSubprocess(java.lang.String command, - java.lang.String[] arguments, - java.lang.String[] environmentVariables, - java.lang.String workingDirectory, - int[] processId)-
cmd - The command to executearguments - Array of arguments, may be nullenvironmentVariables - Array of environment variables, may be nullprocessId - A one-element array to which the process ID of the started process will be written.
--public static void setPtyWindowSize(java.io.FileDescriptor fd, - int row, - int col, - int xpixel, - int ypixel)-
-public static int waitFor(int processId)-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.FeaturedInterpreters -
public class FeaturedInterpreters
-
| -Constructor Summary | -|
|---|---|
FeaturedInterpreters()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static int |
-getInterpreterIcon(Context context,
- java.lang.String key)
-
-- |
-
-static java.lang.String |
-getInterpreterNameForScript(java.lang.String fileName)
-
-- |
-
-static java.util.List<java.lang.String> |
-getList()
-
-- |
-
-static java.net.URL |
-getUrlForName(java.lang.String name)
-
-- |
-
-static boolean |
-isSupported(java.lang.String fileName)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FeaturedInterpreters()-
| -Method Detail | -
|---|
-public static java.util.List<java.lang.String> getList()-
-public static java.net.URL getUrlForName(java.lang.String name)-
-public static java.lang.String getInterpreterNameForScript(java.lang.String fileName)-
-public static boolean isSupported(java.lang.String fileName)-
-public static int getInterpreterIcon(Context context, - java.lang.String key)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.FileUtils -
public class FileUtils
-Utility functions for handling files. -
- -
-
| -Method Summary | -|
|---|---|
-static int |
-chmod(java.io.File path,
- int mode)
-
-- |
-
-static java.io.File |
-copyFromStream(java.lang.String name,
- java.io.InputStream input)
-
-- |
-
-static boolean |
-delete(java.io.File path)
-
-- |
-
-static boolean |
-externalStorageMounted()
-
-- |
-
-static java.io.File |
-getExternalDownload()
-
-- |
-
-static boolean |
-makeDirectories(java.io.File directory,
- int mode)
-
-- |
-
-static java.lang.String |
-readFromAssetsFile(Context context,
- java.lang.String name)
-
-- |
-
-static java.lang.String |
-readToString(java.io.File file)
-
-- |
-
-static boolean |
-recursiveChmod(java.io.File root,
- int mode)
-
-- |
-
-static boolean |
-rename(java.io.File file,
- java.lang.String name)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static boolean externalStorageMounted()-
-public static int chmod(java.io.File path, - int mode) - throws java.lang.Exception-
java.lang.Exception-public static boolean recursiveChmod(java.io.File root, - int mode) - throws java.lang.Exception-
java.lang.Exception-public static boolean delete(java.io.File path)-
-public static java.io.File copyFromStream(java.lang.String name, - java.io.InputStream input)-
-public static boolean makeDirectories(java.io.File directory, - int mode)-
-public static java.io.File getExternalDownload()-
-public static boolean rename(java.io.File file, - java.lang.String name)-
-public static java.lang.String readToString(java.io.File file) - throws java.io.IOException-
java.io.IOException-public static java.lang.String readFromAssetsFile(Context context, - java.lang.String name) - throws java.io.IOException-
java.io.IOException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Service -
com.googlecode.android_scripting.ForegroundService -
public abstract class ForegroundService
-
| -Constructor Summary | -|
|---|---|
ForegroundService(int id)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-onCreate()
-
-- |
-
- void |
-onDestroy()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ForegroundService(int id)-
| -Method Detail | -
|---|
-public void onCreate()-
-public void onDestroy()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.FutureActivityTaskExecutor -
public class FutureActivityTaskExecutor
-
| -Constructor Summary | -|
|---|---|
FutureActivityTaskExecutor(Context context)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-execute(FutureActivityTask<?> task)
-
-- |
-
- FutureActivityTask<?> |
-getTask(int id)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FutureActivityTaskExecutor(Context context)-
| -Method Detail | -
|---|
-public void execute(FutureActivityTask<?> task)-
-public FutureActivityTask<?> getTask(int id)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.IntentBuilders -
public class IntentBuilders
-
| -Method Summary | -|
|---|---|
-static Intent |
-buildBackgroundShortcutIntent(java.io.File script,
- Parcelable iconResource)
-
-- Builds an intent that creates a shortcut to launch the provided script in the background. |
-
-static Intent |
-buildInterpreterShortcutIntent(Interpreter interpreter,
- Parcelable iconResource)
-
-- Builds an intent that creates a shortcut to launch the provided interpreter. |
-
-static Intent |
-buildStartInBackgroundIntent(java.io.File script)
-
-- Builds an intent that will launch a script in the background. |
-
-static Intent |
-buildStartInTerminalIntent(java.io.File script)
-
-- Builds an intent that launches a script in a terminal. |
-
-static Intent |
-buildStartInterpreterIntent(java.lang.String interpreterName)
-
-- Builds an intent that launches an interpreter. |
-
-static Intent |
-buildTerminalShortcutIntent(java.io.File script,
- Parcelable iconResource)
-
-- Builds an intent that creates a shortcut to launch the provided script in a terminal. |
-
-static Intent |
-buildTriggerServiceIntent()
-
-- |
-
-static PendingIntent |
-buildTriggerServicePendingIntent(Context context)
-
-- Creates a pending intent that can be used to start the trigger service. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static Intent buildTriggerServiceIntent()-
-public static Intent buildStartInBackgroundIntent(java.io.File script)-
-
script - the script to launch
--public static Intent buildStartInTerminalIntent(java.io.File script)-
-
script - the script to launch
--public static Intent buildStartInterpreterIntent(java.lang.String interpreterName)-
-
interpreterName - the interpreter to launch
--public static Intent buildInterpreterShortcutIntent(Interpreter interpreter, - Parcelable iconResource)-
-
interpreter - the interpreter to link toiconResource - the icon resource to associate with the shortcut
--public static Intent buildBackgroundShortcutIntent(java.io.File script, - Parcelable iconResource)-
-
script - the script to link toiconResource - the icon resource to associate with the shortcut
--public static Intent buildTerminalShortcutIntent(java.io.File script, - Parcelable iconResource)-
-
script - the script to link toiconResource - the icon resource to associate with the shortcut
--public static PendingIntent buildTriggerServicePendingIntent(Context context)-
-
context - the context under whose authority to launch the intent
-PendingIntent object for running the trigger service
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.IoUtils -
public class IoUtils
-
| -Method Summary | -|
|---|---|
-static int |
-copy(java.io.InputStream input,
- java.io.OutputStream output)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static int copy(java.io.InputStream input, - java.io.OutputStream output) - throws java.lang.Exception, - java.io.IOException-
java.lang.Exception
-java.io.IOException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Log -
public class Log
-
| -Method Summary | -|
|---|---|
-static void |
-d(Context context,
- java.lang.String message)
-
-- |
-
-static void |
-d(Context context,
- java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-d(java.lang.String message)
-
-- |
-
-static void |
-d(java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-e(Context context,
- java.lang.String message)
-
-- |
-
-static void |
-e(Context context,
- java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-e(java.lang.String message)
-
-- |
-
-static void |
-e(java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-e(java.lang.Throwable e)
-
-- |
-
-static void |
-i(Context context,
- java.lang.String message)
-
-- |
-
-static void |
-i(Context context,
- java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-i(java.lang.String message)
-
-- |
-
-static void |
-i(java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-notify(Context context,
- java.lang.String title,
- java.lang.String contentTitle,
- java.lang.String message)
-
-- |
-
-static void |
-showDialog(Context context,
- java.lang.String title,
- java.lang.String message)
-
-- |
-
-static void |
-v(Context context,
- java.lang.String message)
-
-- |
-
-static void |
-v(Context context,
- java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-v(java.lang.String message)
-
-- |
-
-static void |
-v(java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-w(Context context,
- java.lang.String message)
-
-- |
-
-static void |
-w(Context context,
- java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-w(java.lang.String message)
-
-- |
-
-static void |
-w(java.lang.String message,
- java.lang.Throwable e)
-
-- |
-
-static void |
-w(java.lang.Throwable e)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static void notify(Context context, - java.lang.String title, - java.lang.String contentTitle, - java.lang.String message)-
-public static void showDialog(Context context, - java.lang.String title, - java.lang.String message)-
-public static void v(java.lang.String message)-
-public static void v(java.lang.String message, - java.lang.Throwable e)-
-public static void v(Context context, - java.lang.String message)-
-public static void v(Context context, - java.lang.String message, - java.lang.Throwable e)-
-public static void e(java.lang.Throwable e)-
-public static void e(java.lang.String message)-
-public static void e(java.lang.String message, - java.lang.Throwable e)-
-public static void e(Context context, - java.lang.String message)-
-public static void e(Context context, - java.lang.String message, - java.lang.Throwable e)-
-public static void w(java.lang.Throwable e)-
-public static void w(java.lang.String message)-
-public static void w(java.lang.String message, - java.lang.Throwable e)-
-public static void w(Context context, - java.lang.String message)-
-public static void w(Context context, - java.lang.String message, - java.lang.Throwable e)-
-public static void d(java.lang.String message)-
-public static void d(java.lang.String message, - java.lang.Throwable e)-
-public static void d(Context context, - java.lang.String message)-
-public static void d(Context context, - java.lang.String message, - java.lang.Throwable e)-
-public static void i(java.lang.String message)-
-public static void i(java.lang.String message, - java.lang.Throwable e)-
-public static void i(Context context, - java.lang.String message)-
-public static void i(Context context, - java.lang.String message, - java.lang.Throwable e)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.MainThread -
public class MainThread
-
| -Method Summary | -||
|---|---|---|
-static
- |
-run(Context context,
- java.util.concurrent.Callable<T> task)
-
-- Executed in the main thread, returns the result of an execution. |
-|
-static void |
-run(Context context,
- java.lang.Runnable task)
-
-- |
-|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static <T> T run(Context context, - java.util.concurrent.Callable<T> task)-
-
-public static void run(Context context, - java.lang.Runnable task)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.NotificationIdFactory -
public final class NotificationIdFactory
-Creates unique ids to identify the notifications created by the android scripting service and the - trigger service. -
- -
-
| -Method Summary | -|
|---|---|
-static int |
-create()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static int create()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Process -
public class Process
-
| -Constructor Summary | -|
|---|---|
Process()
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addAllArguments(java.util.List<java.lang.String> arguments)
-
-- |
-
- void |
-addArgument(java.lang.String argument)
-
-- |
-
- java.io.OutputStream |
-getErr()
-
-- |
-
- java.io.FileDescriptor |
-getFd()
-
-- |
-
- java.io.InputStream |
-getIn()
-
-- |
-
- java.io.File |
-getLogFile()
-
-- |
-
- java.lang.String |
-getName()
-
-- |
-
- java.io.OutputStream |
-getOut()
-
-- |
-
- java.lang.Integer |
-getPid()
-
-- |
-
- java.lang.String |
-getUptime()
-
-- |
-
- java.lang.String |
-getWorkingDirectory()
-
-- |
-
- boolean |
-isAlive()
-
-- |
-
- void |
-kill()
-
-- |
-
- void |
-putAllEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)
-
-- |
-
- void |
-putEnvironmentVariable(java.lang.String key,
- java.lang.String value)
-
-- |
-
- void |
-setBinary(java.io.File binary)
-
-- |
-
- void |
-setName(java.lang.String name)
-
-- |
-
- void |
-start(java.lang.Runnable shutdownHook)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Process()-
| -Method Detail | -
|---|
-public void addArgument(java.lang.String argument)-
-public void addAllArguments(java.util.List<java.lang.String> arguments)-
-public void putAllEnvironmentVariables(java.util.Map<java.lang.String,java.lang.String> environment)-
-public void putEnvironmentVariable(java.lang.String key, - java.lang.String value)-
-public void setBinary(java.io.File binary)-
-public java.lang.Integer getPid()-
-public java.io.FileDescriptor getFd()-
-public java.io.OutputStream getOut()-
-public java.io.OutputStream getErr()-
-public java.io.File getLogFile()-
-public java.io.InputStream getIn()-
-public void start(java.lang.Runnable shutdownHook)-
-public void kill()-
-public boolean isAlive()-
-public java.lang.String getUptime()-
-public java.lang.String getName()-
-public void setName(java.lang.String name)-
-public java.lang.String getWorkingDirectory()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.ScriptLauncher -
public class ScriptLauncher
-
| -Method Summary | -|
|---|---|
-static HtmlActivityTask |
-launchHtmlScript(java.io.File script,
- Service service,
- Intent intent,
- InterpreterConfiguration config)
-
-- |
-
-static InterpreterProcess |
-launchInterpreter(AndroidProxy proxy,
- Intent intent,
- InterpreterConfiguration config,
- java.lang.Runnable shutdownHook)
-
-- |
-
-static ScriptProcess |
-launchScript(java.io.File script,
- InterpreterConfiguration configuration,
- AndroidProxy proxy,
- java.lang.Runnable shutdownHook)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static HtmlActivityTask launchHtmlScript(java.io.File script, - Service service, - Intent intent, - InterpreterConfiguration config)-
-public static InterpreterProcess launchInterpreter(AndroidProxy proxy, - Intent intent, - InterpreterConfiguration config, - java.lang.Runnable shutdownHook)-
-public static ScriptProcess launchScript(java.io.File script, - InterpreterConfiguration configuration, - AndroidProxy proxy, - java.lang.Runnable shutdownHook)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Process -
com.googlecode.android_scripting.interpreter.InterpreterProcess -
com.googlecode.android_scripting.ScriptProcess -
public class ScriptProcess
-
| -Constructor Summary | -|
|---|---|
ScriptProcess(java.io.File script,
- InterpreterConfiguration configuration,
- AndroidProxy proxy)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-getPath()
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.interpreter.InterpreterProcess | -
|---|
getAddress, getHost, getInterpreter, getPort, getRpcReceiverManagerFactory, getSecret, getWorkingDirectory, kill, start |
-
| Methods inherited from class com.googlecode.android_scripting.Process | -
|---|
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ScriptProcess(java.io.File script, - InterpreterConfiguration configuration, - AndroidProxy proxy)-
| -Method Detail | -
|---|
-public java.lang.String getPath()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.ScriptStorageAdapter -
public class ScriptStorageAdapter
-Manages storage and retrieval of scripts on the file system. -
- -
-
| -Method Summary | -|
|---|---|
-static java.util.List<java.io.File> |
-listAllScripts(java.io.File dir)
-
-- Returns a list of all available script Files. |
-
-static java.util.List<java.io.File> |
-listExecutableScripts(java.io.File directory,
- InterpreterConfiguration config)
-
-- Returns a list of script Files from the given folder for which there is an interpreter
- installed. |
-
-static java.util.List<java.io.File> |
-listExecutableScriptsRecursively(java.io.File directory,
- InterpreterConfiguration config)
-
-- Returns a list of all (including subfolders) script Files for which there is an
- interpreter installed. |
-
-static void |
-writeScript(java.io.File script,
- java.lang.String data)
-
-- Writes data to the script by name and overwrites any existing data. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static void writeScript(java.io.File script, - java.lang.String data)-
-
-public static java.util.List<java.io.File> listAllScripts(java.io.File dir)-
Files.
--
-public static java.util.List<java.io.File> listExecutableScripts(java.io.File directory, - InterpreterConfiguration config)-
Files from the given folder for which there is an interpreter
- installed.
--
-public static java.util.List<java.io.File> listExecutableScriptsRecursively(java.io.File directory, - InterpreterConfiguration config)-
Files for which there is an
- interpreter installed.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface SimpleServer.SimpleServerObserver
-
| -Method Summary | -|
|---|---|
- void |
-onConnect()
-
-- |
-
- void |
-onDisconnect()
-
-- |
-
| -Method Detail | -
|---|
-void onConnect()-
-void onDisconnect()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.SimpleServer -
public abstract class SimpleServer
-A simple server. -
- -
-
| -Nested Class Summary | -|
|---|---|
-static interface |
-SimpleServer.SimpleServerObserver
-
-- |
-
| -Constructor Summary | -|
|---|---|
SimpleServer()
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addObserver(SimpleServer.SimpleServerObserver observer)
-
-- Adds an observer. |
-
- int |
-getNumberOfConnections()
-
-- Returns the number of active connections to this server. |
-
-static java.net.InetAddress |
-getPublicInetAddress()
-
-- |
-
- void |
-removeObserver(SimpleServer.SimpleServerObserver observer)
-
-- Removes an observer. |
-
- void |
-shutdown()
-
-- |
-
- java.net.InetSocketAddress |
-startAllInterfaces(int port)
-
-- data Starts the RPC server bound to all interfaces |
-
- java.net.InetSocketAddress |
-startLocal(int port)
-
-- Starts the RPC server bound to the localhost address. |
-
- java.net.InetSocketAddress |
-startPublic(int port)
-
-- data Starts the RPC server bound to the public facing address. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SimpleServer()-
| -Method Detail | -
|---|
-public void addObserver(SimpleServer.SimpleServerObserver observer)-
-
-public void removeObserver(SimpleServer.SimpleServerObserver observer)-
-
-public int getNumberOfConnections()-
-
-public static java.net.InetAddress getPublicInetAddress() - throws java.net.UnknownHostException, - java.net.SocketException-
java.net.UnknownHostException
-java.net.SocketException-public java.net.InetSocketAddress startLocal(int port)-
-
port - the port to bind to or 0 to pick any unused port
--public java.net.InetSocketAddress startPublic(int port)-
-
port - the port to bind to or 0 to pick any unused port
--public java.net.InetSocketAddress startAllInterfaces(int port)-
-
port - the port to bind to or 0 to pick any unused port
--public void shutdown()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --java.util.concurrent.AbstractExecutorService -
java.util.concurrent.ThreadPoolExecutor -
com.googlecode.android_scripting.SingleThreadExecutor -
public class SingleThreadExecutor
-
| -Nested Class Summary | -
|---|
| Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor | -
|---|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy |
-
| -Constructor Summary | -|
|---|---|
SingleThreadExecutor()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor | -
|---|
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow |
-
| Methods inherited from class java.util.concurrent.AbstractExecutorService | -
|---|
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SingleThreadExecutor()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.StringUtils -
public class StringUtils
-
| -Method Summary | -|
|---|---|
-static java.lang.String |
-join(java.util.Collection<java.lang.String> collection,
- java.lang.String delimiter)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static java.lang.String join(java.util.Collection<java.lang.String> collection, - java.lang.String delimiter)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Version -
public class Version
-
| -Method Summary | -|
|---|---|
-static java.lang.String |
-getVersion(Context context)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static java.lang.String getVersion(Context context)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Activity -
com.googlecode.android_scripting.activity.FutureActivity -
public class FutureActivity
-This Activity is launched by RpcReceivers in order to perform operations that a
- Service is unable to do. For example: start another activity for result, show dialogs,
- etc.
-
- -
-
| -Constructor Summary | -|
|---|---|
FutureActivity()
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-onActivityResult(int requestCode,
- int resultCode,
- Intent data)
-
-- |
-
- void |
-onCreateContextMenu(ContextMenu menu,
- View v,
- ContextMenuInfo menuInfo)
-
-- |
-
- boolean |
-onKeyDown(int keyCode,
- KeyEvent event)
-
-- |
-
- boolean |
-onPrepareOptionsMenu(Menu menu)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FutureActivity()-
| -Method Detail | -
|---|
-public void onCreateContextMenu(ContextMenu menu, - View v, - ContextMenuInfo menuInfo)-
-public boolean onPrepareOptionsMenu(Menu menu)-
-public void onActivityResult(int requestCode, - int resultCode, - Intent data)-
-public boolean onKeyDown(int keyCode, - KeyEvent event)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -FutureActivity |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| FutureActivity | -This Activity is launched by RpcReceivers in order to perform operations that a
- Service is unable to do. |
-
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface BluetoothDiscoveryHelper.BluetoothDiscoveryListener
-
| -Method Summary | -|
|---|---|
- void |
-addBondedDevice(java.lang.String name,
- java.lang.String address)
-
-- |
-
- void |
-addDevice(java.lang.String name,
- java.lang.String address)
-
-- |
-
- void |
-scanDone()
-
-- |
-
| -Method Detail | -
|---|
-void addBondedDevice(java.lang.String name, - java.lang.String address)-
-void addDevice(java.lang.String name, - java.lang.String address)-
-void scanDone()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.bluetooth.BluetoothDiscoveryHelper -
public class BluetoothDiscoveryHelper
-
| -Nested Class Summary | -|
|---|---|
-static interface |
-BluetoothDiscoveryHelper.BluetoothDiscoveryListener
-
-- |
-
| -Constructor Summary | -|
|---|---|
BluetoothDiscoveryHelper(Context context,
- BluetoothDiscoveryHelper.BluetoothDiscoveryListener listener)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-cancel()
-
-- |
-
- void |
-startDiscovery()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public BluetoothDiscoveryHelper(Context context, - BluetoothDiscoveryHelper.BluetoothDiscoveryListener listener)-
| -Method Detail | -
|---|
-public void startDiscovery()-
-public void cancel()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Interfaces
-
- -BluetoothDiscoveryHelper.BluetoothDiscoveryListener |
-
|
-Classes
-
- -BluetoothDiscoveryHelper |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| BluetoothDiscoveryHelper.BluetoothDiscoveryListener | -- |
- -
| -Class Summary | -|
|---|---|
| BluetoothDiscoveryHelper | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.event.Event -
public class Event
-
| -Constructor Summary | -|
|---|---|
Event(java.lang.String name,
- java.lang.Object data)
-
-- |
-|
| -Method Summary | -|
|---|---|
- double |
-getCreationTime()
-
-- |
-
- java.lang.Object |
-getData()
-
-- |
-
- java.lang.String |
-getName()
-
-- |
-
- boolean |
-nameEquals(java.lang.String name)
-
-- |
-
- void |
-setData(java.lang.Object data)
-
-- |
-
- void |
-setName(java.lang.String name)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Event(java.lang.String name, - java.lang.Object data)-
| -Method Detail | -
|---|
-public void setName(java.lang.String name)-
-public java.lang.String getName()-
-public void setData(java.lang.Object data)-
-public java.lang.Object getData()-
-public double getCreationTime()-
-public boolean nameEquals(java.lang.String name)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -Event |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| Event | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --java.lang.Throwable -
java.lang.Exception -
com.googlecode.android_scripting.exception.Sl4aException -
public class Sl4aException
-
| -Constructor Summary | -|
|---|---|
Sl4aException(java.lang.Exception e)
-
-- |
-|
Sl4aException(java.lang.String message)
-
-- |
-|
Sl4aException(java.lang.String message,
- java.lang.Exception e)
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Throwable | -
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Sl4aException(java.lang.Exception e)-
-public Sl4aException(java.lang.String message)-
-public Sl4aException(java.lang.String message, - java.lang.Exception e)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Exceptions
-
- -Sl4aException |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Exception Summary | -|
|---|---|
| Sl4aException | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.ActivityResultFacade -
public class ActivityResultFacade
-Allows you to return results to a startActivityForResult call. -
- -
-
| -Constructor Summary | -|
|---|---|
ActivityResultFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-setActivity(Activity activity)
-
-- |
-
- void |
-setResultBoolean(java.lang.Integer resultCode,
- java.lang.Boolean resultValue)
-
-- |
-
- void |
-setResultBooleanArray(java.lang.Integer resultCode,
- java.lang.Boolean[] resultValue)
-
-- |
-
- void |
-setResultByte(java.lang.Integer resultCode,
- java.lang.Byte resultValue)
-
-- |
-
- void |
-setResultByteArray(java.lang.Integer resultCode,
- java.lang.Byte[] resultValue)
-
-- |
-
- void |
-setResultChar(java.lang.Integer resultCode,
- java.lang.Character resultValue)
-
-- |
-
- void |
-setResultCharArray(java.lang.Integer resultCode,
- java.lang.Character[] resultValue)
-
-- |
-
- void |
-setResultDouble(java.lang.Integer resultCode,
- java.lang.Double resultValue)
-
-- |
-
- void |
-setResultDoubleArray(java.lang.Integer resultCode,
- java.lang.Double[] resultValue)
-
-- |
-
- void |
-setResultFloat(java.lang.Integer resultCode,
- java.lang.Float resultValue)
-
-- |
-
- void |
-setResultFloatArray(java.lang.Integer resultCode,
- java.lang.Float[] resultValue)
-
-- |
-
- void |
-setResultInteger(java.lang.Integer resultCode,
- java.lang.Integer resultValue)
-
-- |
-
- void |
-setResultIntegerArray(java.lang.Integer resultCode,
- java.lang.Integer[] resultValue)
-
-- |
-
- void |
-setResultLong(java.lang.Integer resultCode,
- java.lang.Long resultValue)
-
-- |
-
- void |
-setResultLongArray(java.lang.Integer resultCode,
- java.lang.Long[] resultValue)
-
-- |
-
- void |
-setResultSerializable(java.lang.Integer resultCode,
- java.io.Serializable resultValue)
-
-- |
-
- void |
-setResultShort(java.lang.Integer resultCode,
- java.lang.Short resultValue)
-
-- |
-
- void |
-setResultShortArray(java.lang.Integer resultCode,
- java.lang.Short[] resultValue)
-
-- |
-
- void |
-setResultString(java.lang.Integer resultCode,
- java.lang.String resultValue)
-
-- |
-
- void |
-setResultStringArray(java.lang.Integer resultCode,
- java.lang.String[] resultValue)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ActivityResultFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultBoolean(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Boolean resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultByte(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Byte resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultShort(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Short resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultChar(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Character resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultInteger(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Integer resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultLong(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Long resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultFloat(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Float resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultDouble(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Double resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultString(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.String resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultBooleanArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Boolean[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultByteArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Byte[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultShortArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Short[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultCharArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Character[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultIntegerArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Integer[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultLongArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Long[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultFloatArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Float[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultDoubleArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.Double[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultStringArray(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.lang.String[] resultValue)-
-@Rpc(description="Sets the result of a script execution. Whenever the script APK is called via startActivityForResult(), the resulting intent will contain SCRIPT_RESULT extra with the given value.") -public void setResultSerializable(@RpcParameter(name="resultCode",description="The result code to propagate back to the originating activity, often RESULT_CANCELED (0) or RESULT_OK (-1)") - java.lang.Integer resultCode, - @RpcParameter(name="resultValue") - java.io.Serializable resultValue)-
-public void setActivity(Activity activity)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface AndroidFacade.Resources
-An instance of this interface is passed to the facade. From this object, the resource IDs can - be obtained. -
- -
-
| -Method Summary | -|
|---|---|
- int |
-getLogo48()
-
-- |
-
| -Method Detail | -
|---|
-int getLogo48()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.AndroidFacade -
public class AndroidFacade
-Some general purpose Android routines.
-
makeIntent(java.lang.String, java.lang.String, java.lang.String, JSONObject, JSONArray, java.lang.String, java.lang.String, java.lang.Integer) call, but can also be constructed exterally.
-- -
-
| -Nested Class Summary | -|
|---|---|
-static interface |
-AndroidFacade.Resources
-
-- An instance of this interface is passed to the facade. |
-
| -Constructor Summary | -|
|---|---|
AndroidFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- java.util.Map<java.lang.String,java.lang.Object> |
-environment()
-
-- -
-AndroidFacade--public AndroidFacade(FacadeManager manager)-
-shutdown--public void shutdown()-
- - -setClipboard--@Rpc(description="Put text in the clipboard.") -public void setClipboard(@RpcParameter(name="text") - java.lang.String text)-
- - -getClipboard--@Rpc(description="Read text from the clipboard.", - returns="The text in the clipboard.") -public java.lang.String getClipboard()-
- - -putExtrasFromJsonObject--public static void putExtrasFromJsonObject(JSONObject extras, - Intent intent) - throws JSONException-
- - -startActivityForResult--@Rpc(description="Starts an activity and returns the result.", - returns="A Map representation of the result Intent.") -public Intent startActivityForResult(@RpcParameter(name="action") - java.lang.String action, - @RpcParameter(name="uri")@RpcOptional - java.lang.String uri, - @RpcParameter(name="type",description="MIME type/subtype of the URI")@RpcOptional - java.lang.String type, - @RpcParameter(name="extras",description="a Map of extras to add to the Intent")@RpcOptional - JSONObject extras, - @RpcParameter(name="packagename",description="name of package. If used, requires classname to be useful")@RpcOptional - java.lang.String packagename, - @RpcParameter(name="classname",description="name of class. If used, requires packagename to be useful")@RpcOptional - java.lang.String classname) - throws JSONException-
- - -startActivityForResultIntent--@Rpc(description="Starts an activity and returns the result.", - returns="A Map representation of the result Intent.") -public Intent startActivityForResultIntent(@RpcParameter(name="intent",description="Intent in the format as returned from makeIntent") - Intent intent)-
- - -startActivity--@Rpc(description="Starts an activity.") -public void startActivity(@RpcParameter(name="action") - java.lang.String action, - @RpcParameter(name="uri")@RpcOptional - java.lang.String uri, - @RpcParameter(name="type",description="MIME type/subtype of the URI")@RpcOptional - java.lang.String type, - @RpcParameter(name="extras",description="a Map of extras to add to the Intent")@RpcOptional - JSONObject extras, - @RpcParameter(name="wait",description="block until the user exits the started activity")@RpcOptional - java.lang.Boolean wait, - @RpcParameter(name="packagename",description="name of package. If used, requires classname to be useful")@RpcOptional - java.lang.String packagename, - @RpcParameter(name="classname",description="name of class. If used, requires packagename to be useful")@RpcOptional - java.lang.String classname) - throws java.lang.Exception-
- - -sendBroadcast--@Rpc(description="Send a broadcast.") -public void sendBroadcast(@RpcParameter(name="action") - java.lang.String action, - @RpcParameter(name="uri")@RpcOptional - java.lang.String uri, - @RpcParameter(name="type",description="MIME type/subtype of the URI")@RpcOptional - java.lang.String type, - @RpcParameter(name="extras",description="a Map of extras to add to the Intent")@RpcOptional - JSONObject extras, - @RpcParameter(name="packagename",description="name of package. If used, requires classname to be useful")@RpcOptional - java.lang.String packagename, - @RpcParameter(name="classname",description="name of class. If used, requires packagename to be useful")@RpcOptional - java.lang.String classname) - throws JSONException-
- - -makeIntent--@Rpc(description="Create an Intent.", - returns="An object representing an Intent") -public Intent makeIntent(@RpcParameter(name="action") - java.lang.String action, - @RpcParameter(name="uri")@RpcOptional - java.lang.String uri, - @RpcParameter(name="type",description="MIME type/subtype of the URI")@RpcOptional - java.lang.String type, - @RpcParameter(name="extras",description="a Map of extras to add to the Intent")@RpcOptional - JSONObject extras, - @RpcParameter(name="categories",description="a List of categories to add to the Intent")@RpcOptional - JSONArray categories, - @RpcParameter(name="packagename",description="name of package. If used, requires classname to be useful")@RpcOptional - java.lang.String packagename, - @RpcParameter(name="classname",description="name of class. If used, requires packagename to be useful")@RpcOptional - java.lang.String classname, - @RpcParameter(name="flags",description="Intent flags")@RpcOptional - java.lang.Integer flags) - throws JSONException-
- - -startActivityIntent--@Rpc(description="Start Activity using Intent") -public void startActivityIntent(@RpcParameter(name="intent",description="Intent in the format as returned from makeIntent") - Intent intent, - @RpcParameter(name="wait",description="block until the user exits the started activity")@RpcOptional - java.lang.Boolean wait) - throws java.lang.Exception-
- - -sendBroadcastIntent--@Rpc(description="Send Broadcast Intent") -public void sendBroadcastIntent(@RpcParameter(name="intent",description="Intent in the format as returned from makeIntent") - Intent intent) - throws java.lang.Exception-
- - -vibrate--@Rpc(description="Vibrates the phone or a specified duration in milliseconds.") -public void vibrate(@RpcParameter(name="duration",description="duration in milliseconds")@RpcDefault(value="300") - java.lang.Integer duration)-
- - -makeToast--@Rpc(description="Displays a short-duration Toast notification.") -public void makeToast(@RpcParameter(name="message") - java.lang.String message)-
- - -getInput--@Rpc(description="Queries the user for a text input.") -@RpcDeprecated(value="dialogGetInput", - release="r3") -public java.lang.String getInput(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="SL4A Input") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter value:") - java.lang.String message)-
- - -getPassword--@Rpc(description="Queries the user for a password.") -@RpcDeprecated(value="dialogGetPassword", - release="r3") -public java.lang.String getPassword(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="SL4A Password Input") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter password:") - java.lang.String message)-
- - -notify--@Rpc(description="Displays a notification that will be canceled when the user clicks on it.") -public void notify(@RpcParameter(name="title",description="title") - java.lang.String title, - @RpcParameter(name="message") - java.lang.String message)-
- - -getIntent--@Rpc(description="Returns the intent that launched the script.") -public java.lang.Object getIntent()-
- - -sendEmail--@Rpc(description="Launches an activity that sends an e-mail message to a given recipient.") -public void sendEmail(@RpcParameter(name="to",description="A comma separated list of recipients.") - java.lang.String to, - @RpcParameter(name="subject") - java.lang.String subject, - @RpcParameter(name="body") - java.lang.String body, - @RpcParameter(name="attachmentUri")@RpcOptional - java.lang.String attachmentUri)-
- - -getPackageVersionCode--@Rpc(description="Returns package version code.") -public int getPackageVersionCode(@RpcParameter(name="packageName") - java.lang.String packageName)-
- - -getPackageVersion--@Rpc(description="Returns package version name.") -public java.lang.String getPackageVersion(@RpcParameter(name="packageName") - java.lang.String packageName)-
- - -requiredVersion--@Rpc(description="Checks if version of SL4A is greater than or equal to the specified version.") -public boolean requiredVersion(@RpcParameter(name="requiredVersion") - java.lang.Integer version)-
- - -log--@Rpc(description="Writes message to logcat.") -public void log(@RpcParameter(name="message") - java.lang.String message)-
- - -environment-- - TZ = Timezone - id = Timezone ID - display = Timezone display name - offset = Offset from UTC (in ms) - SDK = SDK Version - download = default download path - appcache = Location of application cache - sdcard = Space on sdcard - availblocks = Available blocks - blockcount = Total Blocks - blocksize = size of block. -- -
- - -getConstants--@Rpc(description="Get list of constants (static final fields) for a class") -public Bundle getConstants(@RpcParameter(name="classname",description="Class to get constants from") - java.lang.String classname) - throws java.lang.Exception-
- - - - - -
- - - diff --git a/doc/com/googlecode/android_scripting/facade/ApplicationManagerFacade.html b/doc/com/googlecode/android_scripting/facade/ApplicationManagerFacade.html deleted file mode 100644 index 941aed3b..00000000 --- a/doc/com/googlecode/android_scripting/facade/ApplicationManagerFacade.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - - - - - - - - -
- -
-
-com.googlecode.android_scripting.facade
-
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -Constructor Summary | -|
|---|---|
ApplicationManagerFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-forceStopPackage(java.lang.String packageName)
-
-- |
-
- java.util.Map<java.lang.String,java.lang.String> |
-getLaunchableApplications()
-
-- |
-
- java.util.List<java.lang.String> |
-getRunningPackages()
-
-- |
-
- void |
-launch(java.lang.String className)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ApplicationManagerFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Returns a list of all launchable application class names.") -public java.util.Map<java.lang.String,java.lang.String> getLaunchableApplications()-
-@Rpc(description="Start activity with the given class name.") -public void launch(@RpcParameter(name="className") - java.lang.String className)-
-@Rpc(description="Returns a list of packages running activities or services.", - returns="List of packages running activities.") -public java.util.List<java.lang.String> getRunningPackages()-
-@Rpc(description="Force stops a package.") -public void forceStopPackage(@RpcParameter(name="packageName",description="name of package") - java.lang.String packageName)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.BatteryManagerFacade -
public class BatteryManagerFacade
-Exposes Batterymanager API. Note that in order to use any of the batteryGet* functions, you need - to batteryStartMonitoring, and then wait for a "battery" event. Sleeping for a second will - usually work just as well. -
- -
-
| -Field Summary | -|
|---|---|
-static int |
-BATTERY_PLUGGED_AC
-
-- Power source is an AC charger. |
-
-static int |
-BATTERY_PLUGGED_USB
-
-- Power source is a USB port. |
-
| -Constructor Summary | -|
|---|---|
BatteryManagerFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.Boolean |
-batteryCheckPresent()
-
-- |
-
- java.lang.Integer |
-batteryGetHealth()
-
-- |
-
- java.lang.Integer |
-batteryGetLevel()
-
-- |
-
- java.lang.Integer |
-batteryGetPlugType()
-
-- |
-
- java.lang.Integer |
-batteryGetStatus()
-
-- |
-
- java.lang.String |
-batteryGetTechnology()
-
-- |
-
- java.lang.Integer |
-batteryGetTemperature()
-
-- |
-
- java.lang.Integer |
-batteryGetVoltage()
-
-- |
-
- void |
-batteryStartMonitoring()
-
-- throws "battery" events |
-
- void |
-batteryStopMonitoring()
-
-- |
-
- Bundle |
-readBatteryData()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static final int BATTERY_PLUGGED_AC-
-
-public static final int BATTERY_PLUGGED_USB-
-
| -Constructor Detail | -
|---|
-public BatteryManagerFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Returns the most recently recorded battery data.") -public Bundle readBatteryData()-
-@Rpc(description="Starts tracking battery state.") -@RpcStartEvent(value="battery") -public void batteryStartMonitoring()-
-
-@Rpc(description="Stops tracking battery state.") -@RpcStopEvent(value="battery") -public void batteryStopMonitoring()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Returns the most recently received battery status data:\n1 - unknown;\n2 - charging;\n3 - discharging;\n4 - not charging;\n5 - full;") -public java.lang.Integer batteryGetStatus()-
-@Rpc(description="Returns the most recently received battery health data:\n1 - unknown;\n2 - good;\n3 - overheat;\n4 - dead;\n5 - over voltage;\n6 - unspecified failure;") -public java.lang.Integer batteryGetHealth()-
-@Rpc(description="Returns the most recently received plug type data:\n-1 - unknown\n0 - unplugged;\n1 - power source is an AC charger\n2 - power source is a USB port") -public java.lang.Integer batteryGetPlugType()-
-@Rpc(description="Returns the most recently received battery presence data.") -@RpcMinSdk(value=5) -public java.lang.Boolean batteryCheckPresent()-
-@Rpc(description="Returns the most recently received battery level (percentage).") -@RpcMinSdk(value=5) -public java.lang.Integer batteryGetLevel()-
-@Rpc(description="Returns the most recently received battery voltage.") -@RpcMinSdk(value=5) -public java.lang.Integer batteryGetVoltage()-
-@Rpc(description="Returns the most recently received battery temperature.") -@RpcMinSdk(value=5) -public java.lang.Integer batteryGetTemperature()-
-@Rpc(description="Returns the most recently received battery technology data.") -@RpcMinSdk(value=5) -public java.lang.String batteryGetTechnology()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.BluetoothFacade -
@RpcMinSdk(value=5) -public class BluetoothFacade
-Bluetooth functions. -
- -
-
| -Constructor Summary | -|
|---|---|
BluetoothFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-bluetoothAccept(java.lang.String uuid,
- java.lang.Integer timeout)
-
-- |
-
- java.util.Map<java.lang.String,java.lang.String> |
-bluetoothActiveConnections()
-
-- |
-
- java.lang.String |
-bluetoothConnect(java.lang.String uuid,
- java.lang.String address)
-
-- |
-
- java.lang.Boolean |
-bluetoothDiscoveryCancel()
-
-- |
-
- java.lang.Boolean |
-bluetoothDiscoveryStart()
-
-- |
-
- java.lang.String |
-bluetoothGetConnectedDeviceName(java.lang.String connID)
-
-- |
-
- java.lang.String |
-bluetoothGetLocalAddress()
-
-- |
-
- java.lang.String |
-bluetoothGetLocalName()
-
-- |
-
- java.lang.String |
-bluetoothGetRemoteDeviceName(java.lang.String address)
-
-- |
-
- int |
-bluetoothGetScanMode()
-
-- |
-
- java.lang.Boolean |
-bluetoothIsDiscovering()
-
-- |
-
- void |
-bluetoothMakeDiscoverable(java.lang.Integer duration)
-
-- |
-
- java.lang.String |
-bluetoothRead(java.lang.Integer bufferSize,
- java.lang.String connID)
-
-- |
-
- java.lang.String |
-bluetoothReadBinary(java.lang.Integer bufferSize,
- java.lang.String connID)
-
-- |
-
- java.lang.String |
-bluetoothReadLine(java.lang.String connID)
-
-- |
-
- java.lang.Boolean |
-bluetoothReadReady(java.lang.String connID)
-
-- |
-
- boolean |
-bluetoothSetLocalName(java.lang.String name)
-
-- |
-
- void |
-bluetoothStop(java.lang.String connID)
-
-- |
-
- void |
-bluetoothWrite(java.lang.String ascii,
- java.lang.String connID)
-
-- |
-
- void |
-bluetoothWriteBinary(java.lang.String base64,
- java.lang.String connID)
-
-- |
-
- java.lang.Boolean |
-checkBluetoothState()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- java.lang.Boolean |
-toggleBluetoothState(java.lang.Boolean enabled,
- java.lang.Boolean prompt)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public BluetoothFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Returns active Bluetooth connections.") -public java.util.Map<java.lang.String,java.lang.String> bluetoothActiveConnections()-
-@Rpc(description="Send bytes over the currently open Bluetooth connection.") -public void bluetoothWriteBinary(@RpcParameter(name="base64",description="A base64 encoded String of the bytes to be sent.") - java.lang.String base64, - @RpcParameter(name="connID",description="Connection id")@RpcDefault(value="")@RpcOptional - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Read up to bufferSize bytes and return a chunked, base64 encoded string.") -public java.lang.String bluetoothReadBinary(@RpcParameter(name="bufferSize")@RpcDefault(value="4096") - java.lang.Integer bufferSize, - @RpcParameter(name="connID",description="Connection id")@RpcDefault(value="")@RpcOptional - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Connect to a device over Bluetooth. Blocks until the connection is established or fails.", - returns="True if the connection was established successfully.") -public java.lang.String bluetoothConnect(@RpcParameter(name="uuid",description="The UUID passed here must match the UUID used by the server device.")@RpcDefault(value="457807c0-4897-11df-9879-0800200c9a66") - java.lang.String uuid, - @RpcParameter(name="address",description="The user will be presented with a list of discovered devices to choose from if an address is not provided.")@RpcOptional - java.lang.String address) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Listens for and accepts a Bluetooth connection. Blocks until the connection is established or fails.") -public java.lang.String bluetoothAccept(@RpcParameter(name="uuid")@RpcDefault(value="457807c0-4897-11df-9879-0800200c9a66") - java.lang.String uuid, - @RpcParameter(name="timeout",description="How long to wait for a new connection, 0 is wait for ever")@RpcDefault(value="0") - java.lang.Integer timeout) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Requests that the device be discoverable for Bluetooth connections.") -public void bluetoothMakeDiscoverable(@RpcParameter(name="duration",description="period of time, in seconds, during which the device should be discoverable")@RpcDefault(value="300") - java.lang.Integer duration)-
-@Rpc(description="Sends ASCII characters over the currently open Bluetooth connection.") -public void bluetoothWrite(@RpcParameter(name="ascii") - java.lang.String ascii, - @RpcParameter(name="connID",description="Connection id")@RpcDefault(value="") - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Returns True if the next read is guaranteed not to block.") -public java.lang.Boolean bluetoothReadReady(@RpcParameter(name="connID",description="Connection id")@RpcDefault(value="")@RpcOptional - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Read up to bufferSize ASCII characters.") -public java.lang.String bluetoothRead(@RpcParameter(name="bufferSize")@RpcDefault(value="4096") - java.lang.Integer bufferSize, - @RpcParameter(name="connID",description="Connection id")@RpcOptional@RpcDefault(value="") - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Read the next line.") -public java.lang.String bluetoothReadLine(@RpcParameter(name="connID",description="Connection id")@RpcOptional@RpcDefault(value="") - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Queries a remote device for it\'s name or null if it can\'t be resolved") -public java.lang.String bluetoothGetRemoteDeviceName(@RpcParameter(name="address",description="Bluetooth Address For Target Device") - java.lang.String address)-
-@Rpc(description="Gets the Bluetooth Visible device name") -public java.lang.String bluetoothGetLocalName()-
-@Rpc(description="Sets the Bluetooth Visible device name, returns True on success") -public boolean bluetoothSetLocalName(@RpcParameter(name="name",description="New local name") - java.lang.String name)-
-@Rpc(description="Gets the scan mode for the local dongle.\r\nReturn values:\r\n\t-1 when Bluetooth is disabled.\r\n\t0 if non discoverable and non connectable.\r\n\r1 connectable non discoverable.\r3 connectable and discoverable.") -public int bluetoothGetScanMode()-
-@Rpc(description="Returns the name of the connected device.") -public java.lang.String bluetoothGetConnectedDeviceName(@RpcParameter(name="connID",description="Connection id")@RpcOptional@RpcDefault(value="") - java.lang.String connID) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Checks Bluetooth state.", - returns="True if Bluetooth is enabled.") -public java.lang.Boolean checkBluetoothState()-
-@Rpc(description="Toggle Bluetooth on and off.", - returns="True if Bluetooth is enabled.") -public java.lang.Boolean toggleBluetoothState(@RpcParameter(name="enabled")@RpcOptional - java.lang.Boolean enabled, - @RpcParameter(name="prompt",description="Prompt the user to confirm changing the Bluetooth state.")@RpcDefault(value="true") - java.lang.Boolean prompt)-
-@Rpc(description="Stops Bluetooth connection.") -public void bluetoothStop(@RpcParameter(name="connID",description="Connection id")@RpcOptional@RpcDefault(value="") - java.lang.String connID)-
-@Rpc(description="Returns the hardware address of the local Bluetooth adapter. ") -public java.lang.String bluetoothGetLocalAddress()-
-@Rpc(description="Start the remote device discovery process. ", - returns="true on success, false on error") -public java.lang.Boolean bluetoothDiscoveryStart()-
-@Rpc(description="Cancel the current device discovery process.", - returns="true on success, false on error") -public java.lang.Boolean bluetoothDiscoveryCancel()-
-@Rpc(description="Return true if the local Bluetooth adapter is currently in the device discovery process. ") -public java.lang.Boolean bluetoothIsDiscovering()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.CameraFacade -
public class CameraFacade
-Access Camera functions. -
- -
-
| -Constructor Summary | -|
|---|---|
CameraFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- Bundle |
-cameraCapturePicture(java.lang.String targetPath,
- java.lang.Boolean useAutoFocus)
-
-- |
-
- void |
-cameraInteractiveCapturePicture(java.lang.String targetPath)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public CameraFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Take a picture and save it to the specified path.", - returns="A map of Booleans autoFocus and takePicture where True indicates success.") -public Bundle cameraCapturePicture(@RpcParameter(name="targetPath") - java.lang.String targetPath, - @RpcParameter(name="useAutoFocus")@RpcDefault(value="true") - java.lang.Boolean useAutoFocus) - throws java.lang.InterruptedException-
java.lang.InterruptedException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Starts the image capture application to take a picture and saves it to the specified path.") -public void cameraInteractiveCapturePicture(@RpcParameter(name="targetPath") - java.lang.String targetPath)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.CommonIntentsFacade -
public class CommonIntentsFacade
-A selection of commonly used intents.
-
- These can be used to trigger some common tasks.
-
- -
-
| -Constructor Summary | -|
|---|---|
CommonIntentsFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- Intent |
-pick(java.lang.String uri)
-
-- |
-
- Intent |
-scanBarcode()
-
-- |
-
- void |
-search(java.lang.String query)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-view(java.lang.String uri,
- java.lang.String type,
- JSONObject extras)
-
-- |
-
- void |
-viewContacts()
-
-- |
-
- void |
-viewHtml(java.lang.String path)
-
-- |
-
- void |
-viewMap(java.lang.String query)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public CommonIntentsFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Display content to be picked by URI (e.g. contacts)", - returns="A map of result values.") -public Intent pick(@RpcParameter(name="uri") - java.lang.String uri) - throws JSONException-
JSONException-@Rpc(description="Starts the barcode scanner.", - returns="A Map representation of the result Intent.") -public Intent scanBarcode() - throws JSONException-
JSONException-@Rpc(description="Start activity with view action by URI (i.e. browser, contacts, etc.).") -public void view(@RpcParameter(name="uri") - java.lang.String uri, - @RpcParameter(name="type",description="MIME type/subtype of the URI")@RpcOptional - java.lang.String type, - @RpcParameter(name="extras",description="a Map of extras to add to the Intent")@RpcOptional - JSONObject extras) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Opens a map search for query (e.g. pizza, 123 My Street).") -public void viewMap(@RpcParameter(name="query, e.g. pizza, 123 My Street") - java.lang.String query) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Opens the list of contacts.") -public void viewContacts() - throws JSONException-
JSONException-@Rpc(description="Opens the browser to display a local HTML file.") -public void viewHtml(@RpcParameter(name="path",description="the path to the HTML file") - java.lang.String path) - throws JSONException-
JSONException-@Rpc(description="Starts a search for the given query.") -public void search(@RpcParameter(name="query") - java.lang.String query)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.ContactsFacade -
public class ContactsFacade
-Provides access to contacts related functionality. -
- -
-
| -Field Summary | -|
|---|---|
- java.lang.String |
-mContactId
-
-- |
-
- java.lang.String |
-mHasPhoneNumber
-
-- |
-
- Uri |
-mPhoneContent
-
-- |
-
- java.lang.String |
-mPhoneNumber
-
-- |
-
- java.lang.String |
-mPrimary
-
-- |
-
| -Constructor Summary | -|
|---|---|
ContactsFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.util.List<JSONObject> |
-contactsGet(JSONArray attributes)
-
-- |
-
- java.util.List<java.lang.String> |
-contactsGetAttributes()
-
-- |
-
- JSONObject |
-contactsGetById(java.lang.Integer id,
- JSONArray attributes)
-
-- |
-
- java.lang.Integer |
-contactsGetCount()
-
-- |
-
- java.util.List<java.lang.Integer> |
-contactsGetIds()
-
-- |
-
- Intent |
-pickContact()
-
-- |
-
- java.lang.String |
-pickPhone()
-
-- |
-
- JSONArray |
-queryAttributes(java.lang.String uri)
-
-- |
-
- java.util.List<JSONObject> |
-queryContent(java.lang.String uri,
- JSONArray attributes,
- java.lang.String selection,
- JSONArray selectionArgs,
- java.lang.String order)
-
-- Exactly as per ContentResolver.query |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public Uri mPhoneContent-
-public java.lang.String mContactId-
-public java.lang.String mPrimary-
-public java.lang.String mPhoneNumber-
-public java.lang.String mHasPhoneNumber-
| -Constructor Detail | -
|---|
-public ContactsFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Displays a list of contacts to pick from.", - returns="A map of result values.") -public Intent pickContact() - throws JSONException-
JSONException-@Rpc(description="Displays a list of phone numbers to pick from.", - returns="The selected phone number.") -public java.lang.String pickPhone() - throws JSONException-
JSONException-@Rpc(description="Returns a List of all possible attributes for contacts.") -public java.util.List<java.lang.String> contactsGetAttributes()-
-@Rpc(description="Returns a List of all contact IDs.") -public java.util.List<java.lang.Integer> contactsGetIds()-
-@Rpc(description="Returns a List of all contacts.", - returns="a List of contacts as Maps") -public java.util.List<JSONObject> contactsGet(@RpcParameter(name="attributes")@RpcOptional - JSONArray attributes) - throws JSONException-
JSONException-@Rpc(description="Returns contacts by ID.") -public JSONObject contactsGetById(@RpcParameter(name="id") - java.lang.Integer id, - @RpcParameter(name="attributes")@RpcOptional - JSONArray attributes) - throws JSONException-
JSONException-@Rpc(description="Returns the number of contacts.") -public java.lang.Integer contactsGetCount()-
-@Rpc(description="Content Resolver Query", - returns="result of query as Maps") -public java.util.List<JSONObject> queryContent(@RpcParameter(name="uri",description="The URI, using the content:// scheme, for the content to retrieve.") - java.lang.String uri, - @RpcParameter(name="attributes",description="A list of which columns to return. Passing null will return all columns")@RpcOptional - JSONArray attributes, - @RpcParameter(name="selection",description="A filter declaring which rows to return")@RpcOptional - java.lang.String selection, - @RpcParameter(name="selectionArgs",description="You may include ?s in selection, which will be replaced by the values from selectionArgs")@RpcOptional - JSONArray selectionArgs, - @RpcParameter(name="order",description="How to order the rows")@RpcOptional - java.lang.String order) - throws JSONException-
-
JSONException-@Rpc(description="Content Resolver Query Attributes", - returns="a list of available columns for a given content uri") -public JSONArray queryAttributes(@RpcParameter(name="uri",description="The URI, using the content:// scheme, for the content to retrieve.") - java.lang.String uri) - throws JSONException-
JSONException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --android.content.BroadcastReceiver -
com.googlecode.android_scripting.facade.EventFacade.BroadcastListener -
public class EventFacade.BroadcastListener
-
| -Constructor Summary | -|
|---|---|
EventFacade.BroadcastListener(EventFacade parent,
- boolean enqueue)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-onReceive(Context context,
- Intent intent)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public EventFacade.BroadcastListener(EventFacade parent, - boolean enqueue)-
| -Method Detail | -
|---|
-public void onReceive(Context context, - Intent intent)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface EventFacade.EventObserver
-
| -Method Summary | -|
|---|---|
- void |
-onEventReceived(Event event)
-
-- |
-
| -Method Detail | -
|---|
-void onEventReceived(Event event)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.EventFacade -
public class EventFacade
-Manage the event queue.
-
- Usage Notes:
- EventFacade APIs interact with the Event Queue (a data buffer containing up to 1024 event
- entries).
- Events are automatically entered into the Event Queue following API calls such as startSensing()
- and startLocating().
- The Event Facade provides control over how events are entered into (and removed from) the Event
- Queue.
- The Event Queue provides a useful means of recording background events (such as sensor data) when
- the phone is busy with foreground activities.
-
- -
-
| -Nested Class Summary | -|
|---|---|
- class |
-EventFacade.BroadcastListener
-
-- |
-
-static interface |
-EventFacade.EventObserver
-
-- |
-
| -Constructor Summary | -|
|---|---|
EventFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addGlobalEventObserver(EventFacade.EventObserver observer)
-
-- |
-
- void |
-addNamedEventObserver(java.lang.String eventName,
- EventFacade.EventObserver observer)
-
-- |
-
- void |
-eventClearBuffer()
-
-- Example (python): droid.eventClearBuffer() |
-
- java.util.Set<java.lang.String> |
-eventGetBrodcastCategories()
-
-- |
-
- java.util.List<Event> |
-eventPoll(java.lang.Integer number_of_events)
-
-- Actual data returned in the map will depend on the type of event. |
-
- void |
-eventPost(java.lang.String name,
- java.lang.String data,
- java.lang.Boolean enqueue)
-
-- - Example: - import android - from datetime import datetime - droid = android.Android() - t = datetime.now() - droid.eventPost('Some Event', t) |
-
- boolean |
-eventRegisterForBroadcast(java.lang.String category,
- java.lang.Boolean enqueue)
-
-- Registers a listener for a new broadcast signal |
-
- void |
-eventUnregisterForBroadcast(java.lang.String category)
-
-- |
-
- Event |
-eventWait(java.lang.Integer timeout)
-
-- |
-
- Event |
-eventWaitFor(java.lang.String eventName,
- java.lang.Integer timeout)
-
-- |
-
- void |
-postEvent(java.lang.String name,
- java.lang.Object data)
-
-- Post an event and queue it |
-
- void |
-postEvent(java.lang.String name,
- java.lang.Object data,
- boolean enqueue)
-
-- Posts an event with to the event queue. |
-
- Event |
-receiveEvent()
-
-- |
-
- void |
-removeEventObserver(EventFacade.EventObserver observer)
-
-- |
-
- void |
-rpcPostEvent(java.lang.String name,
- java.lang.String data)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- int |
-startEventDispatcher(java.lang.Integer port)
-
-- |
-
- void |
-stopEventDispatcher()
-
-- |
-
- Event |
-waitForEvent(java.lang.String eventName,
- java.lang.Integer timeout)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public EventFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Clears all events from the event buffer.") -public void eventClearBuffer()-
-
-@Rpc(description="Registers a listener for a new broadcast signal") -public boolean eventRegisterForBroadcast(@RpcParameter(name="category") - java.lang.String category, - @RpcParameter(name="enqueue",description="Should this events be added to the event queue or only dispatched")@RpcDefault(value="true") - java.lang.Boolean enqueue)-
-
-@Rpc(description="Stop listening for a broadcast signal") -public void eventUnregisterForBroadcast(@RpcParameter(name="category") - java.lang.String category)-
-@Rpc(description="Lists all the broadcast signals we are listening for") -public java.util.Set<java.lang.String> eventGetBrodcastCategories()-
-@Rpc(description="Returns and removes the oldest n events (i.e. location or sensor update, etc.) from the event buffer.", - returns="A List of Maps of event properties.") -public java.util.List<Event> eventPoll(@RpcParameter(name="number_of_events")@RpcDefault(value="1") - java.lang.Integer number_of_events)-
- Example (python): - import android, time - droid = android.Android() - droid.startSensing() - time.sleep(1) - droid.eventClearBuffer() - time.sleep(1) - e = eventPoll(1).result - event_entry_number = 0 - x = e[event_entry_ number]['data']['xforce'] -- - e has the format:
-
-@Rpc(description="Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.", - returns="Map of event properties.") -public Event eventWaitFor(@RpcParameter(name="eventName") - java.lang.String eventName, - @RpcParameter(name="timeout",description="the maximum time to wait (in ms)")@RpcOptional - java.lang.Integer timeout) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Blocks until an event occurs. The returned event is removed from the buffer.", - returns="Map of event properties.") -public Event eventWait(@RpcParameter(name="timeout",description="the maximum time to wait")@RpcOptional - java.lang.Integer timeout) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Post an event to the event queue.") -public void eventPost(@RpcParameter(name="name",description="Name of event") - java.lang.String name, - @RpcParameter(name="data",description="Data contained in event.") - java.lang.String data, - @RpcParameter(name="enqueue",description="Set to False if you don\'t want your events to be added to the event queue, just dispatched.")@RpcOptional@RpcDefault(value="false") - java.lang.Boolean enqueue)-
- Example:
- import android
- from datetime import datetime
- droid = android.Android()
- t = datetime.now()
- droid.eventPost('Some Event', t)
-
--
-public void postEvent(java.lang.String name, - java.lang.Object data)-
-
-public void postEvent(java.lang.String name, - java.lang.Object data, - boolean enqueue)-
-
-@RpcDeprecated(value="eventPost", - release="r4") -@Rpc(description="Post an event to the event queue.") -@RpcName(name="postEvent") -public void rpcPostEvent(@RpcParameter(name="name") - java.lang.String name, - @RpcParameter(name="data") - java.lang.String data)-
-@RpcDeprecated(value="eventPoll", - release="r4") -@Rpc(description="Returns and removes the oldest event (i.e. location or sensor update, etc.) from the event buffer.", - returns="Map of event properties.") -public Event receiveEvent()-
-@RpcDeprecated(value="eventWaitFor", - release="r4") -@Rpc(description="Blocks until an event with the supplied name occurs. The returned event is not removed from the buffer.", - returns="Map of event properties.") -public Event waitForEvent(@RpcParameter(name="eventName") - java.lang.String eventName, - @RpcParameter(name="timeout",description="the maximum time to wait")@RpcOptional - java.lang.Integer timeout) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Opens up a socket where you can read for events posted") -public int startEventDispatcher(@RpcParameter(name="port",description="Port to use")@RpcDefault(value="0")@RpcOptional - java.lang.Integer port)-
-@Rpc(description="Stops the event server, you can\'t read in the port anymore") -public void stopEventDispatcher() - throws java.lang.RuntimeException-
java.lang.RuntimeException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-public void addNamedEventObserver(java.lang.String eventName, - EventFacade.EventObserver observer)-
-public void addGlobalEventObserver(EventFacade.EventObserver observer)-
-public void removeEventObserver(EventFacade.EventObserver observer)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.SimpleServer -
com.googlecode.android_scripting.facade.EventServer -
public class EventServer
-An Event Forwarding server that forwards events from the rpc queue in realtime to listener - clients. -
- -
-
SimpleServer| -Nested Class Summary | -
|---|
| Nested classes/interfaces inherited from class com.googlecode.android_scripting.SimpleServer | -
|---|
SimpleServer.SimpleServerObserver |
-
| -Constructor Summary | -|
|---|---|
EventServer()
-
-- |
-|
EventServer(int port)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.net.InetSocketAddress |
-getAddress()
-
-- |
-
- void |
-onEventReceived(Event event)
-
-- |
-
- void |
-shutdown()
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.SimpleServer | -
|---|
addObserver, getNumberOfConnections, getPublicInetAddress, removeObserver, startAllInterfaces, startLocal, startPublic |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public EventServer()-
-public EventServer(int port)-
| -Method Detail | -
|---|
-public java.net.InetSocketAddress getAddress()-
-public void shutdown()-
shutdown in class SimpleServer-public void onEventReceived(Event event)-
onEventReceived in interface EventFacade.EventObserver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.EyesFreeFacade -
public class EyesFreeFacade
-Provides Text To Speech services for API 3 or less. -
- -
-
| -Constructor Summary | -|
|---|---|
EyesFreeFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-ttsSpeak(java.lang.String message)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public EyesFreeFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Speaks the provided message via TTS.") -public void ttsSpeak(@RpcParameter(name="message") - java.lang.String message)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.facade.FacadeConfiguration -
public class FacadeConfiguration
-Encapsulates the list of supported facades and their construction. -
- -
-
| -Method Summary | -|
|---|---|
-static java.util.List<MethodDescriptor> |
-collectMethodDescriptors()
-
-- Returns a list of MethodDescriptor objects for all facades. |
-
-static java.util.Map<java.lang.String,MethodDescriptor> |
-collectStartEventMethodDescriptors()
-
-- |
-
-static java.util.Map<java.lang.String,MethodDescriptor> |
-collectStopEventMethodDescriptors()
-
-- |
-
-static java.util.List<MethodDescriptor> |
-collectSupportedMethodDescriptors()
-
-- Returns a list of not deprecated MethodDescriptor objects for facades supported by the
- current SDK version. |
-
-static java.util.Collection<java.lang.Class<? extends RpcReceiver>> |
-getFacadeClasses()
-
-- |
-
-static MethodDescriptor |
-getMethodDescriptor(java.lang.String name)
-
-- Returns a method by name. |
-
-static int |
-getSdkLevel()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static int getSdkLevel()-
-public static java.util.List<MethodDescriptor> collectMethodDescriptors()-
MethodDescriptor objects for all facades.
--
-public static java.util.List<MethodDescriptor> collectSupportedMethodDescriptors()-
MethodDescriptor objects for facades supported by the
- current SDK version.
--
-public static java.util.Map<java.lang.String,MethodDescriptor> collectStartEventMethodDescriptors()-
-public static java.util.Map<java.lang.String,MethodDescriptor> collectStopEventMethodDescriptors()-
-public static MethodDescriptor getMethodDescriptor(java.lang.String name)-
-
-public static java.util.Collection<java.lang.Class<? extends RpcReceiver>> getFacadeClasses()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiverManager -
com.googlecode.android_scripting.facade.FacadeManager -
public class FacadeManager
-
| -Constructor Summary | -|
|---|---|
FacadeManager(int sdkLevel,
- Service service,
- Intent intent,
- java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)
-
-- |
-|
| -Method Summary | -|
|---|---|
- AndroidFacade.Resources |
-getAndroidFacadeResources()
-
-- |
-
- Intent |
-getIntent()
-
-- |
-
- int |
-getSdkLevel()
-
-- |
-
- Service |
-getService()
-
-- |
-
- java.lang.Object |
-invoke(java.lang.Class<? extends RpcReceiver> clazz,
- java.lang.reflect.Method method,
- java.lang.Object[] args)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.jsonrpc.RpcReceiverManager | -
|---|
getMethodDescriptor, getReceiver, getRpcReceiverClasses, shutdown |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FacadeManager(int sdkLevel, - Service service, - Intent intent, - java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)-
| -Method Detail | -
|---|
-public int getSdkLevel()-
-public Service getService()-
-public Intent getIntent()-
-public java.lang.Object invoke(java.lang.Class<? extends RpcReceiver> clazz, - java.lang.reflect.Method method, - java.lang.Object[] args) - throws java.lang.Exception-
invoke in class RpcReceiverManagerjava.lang.Exception-public AndroidFacade.Resources getAndroidFacadeResources()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.facade.FacadeManagerFactory -
public class FacadeManagerFactory
-
| -Constructor Summary | -|
|---|---|
FacadeManagerFactory(int sdkLevel,
- Service service,
- Intent intent,
- java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)
-
-- |
-|
| -Method Summary | -|
|---|---|
- FacadeManager |
-create()
-
-- |
-
- java.util.List<RpcReceiverManager> |
-getRpcReceiverManagers()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FacadeManagerFactory(int sdkLevel, - Service service, - Intent intent, - java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)-
| -Method Detail | -
|---|
-public FacadeManager create()-
create in interface RpcReceiverManagerFactory-public java.util.List<RpcReceiverManager> getRpcReceiverManagers()-
getRpcReceiverManagers in interface RpcReceiverManagerFactory
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.LocationFacade -
public class LocationFacade
-This facade exposes the LocationManager related functionality.
-
- Overview
- Once activated by 'startLocating' the LocationFacade attempts to return location data collected
- via GPS or the cell network. If neither are available the last known location may be retrieved.
- If both are available the format of the returned data is:
- {u'network': {u'altitude': 0, u'provider': u'network', u'longitude': -0.38509020000000002,
- u'time': 1297079691231L, u'latitude': 52.410557300000001, u'speed': 0, u'accuracy': 75}, u'gps':
- {u'altitude': 51, u'provider': u'gps', u'longitude': -0.38537094593048096, u'time':
- 1297079709000L, u'latitude': 52.41076922416687, u'speed': 0, u'accuracy': 24}}
- If neither are available {} is returned.
- Example (python):
-
-
- import android, time
- droid = android.Android()
- droid.startLocating()
- time.sleep(15)
- loc = droid.readLocation().result
- if loc = {}:
- loc = getLastKnownLocation().result
- if loc != {}:
- try:
- n = loc['gps']
- except KeyError:
- n = loc['network']
- la = n['latitude']
- lo = n['longitude']
- address = droid.geocode(la, lo).result
- droid.stopLocating()
-
-
- The address format is:- -
-
| -Constructor Summary | -|
|---|---|
LocationFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.util.List<Address> |
-geocode(java.lang.Double latitude,
- java.lang.Double longitude,
- java.lang.Integer maxResults)
-
-- |
-
- java.util.Map<java.lang.String,Location> |
-getLastKnownLocation()
-
-- |
-
- boolean |
-locationProviderEnabled(java.lang.String provider)
-
-- |
-
- java.util.List<java.lang.String> |
-locationProviders()
-
-- |
-
- java.util.Map<java.lang.String,Location> |
-readLocation()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-startLocating(java.lang.Integer minUpdateTime,
- java.lang.Integer minUpdateDistance)
-
-- |
-
- void |
-stopLocating()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public LocationFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Returns availables providers on the phone") -public java.util.List<java.lang.String> locationProviders()-
-@Rpc(description="Ask if provider is enabled") -public boolean locationProviderEnabled(@RpcParameter(name="provider",description="Name of location provider") - java.lang.String provider)-
-@Rpc(description="Starts collecting location data.") -@RpcStartEvent(value="location") -public void startLocating(@RpcParameter(name="minDistance",description="minimum time between updates in milliseconds")@RpcDefault(value="60000") - java.lang.Integer minUpdateTime, - @RpcParameter(name="minUpdateDistance",description="minimum distance between updates in meters")@RpcDefault(value="30") - java.lang.Integer minUpdateDistance)-
-@Rpc(description="Returns the current location as indicated by all available providers.", - returns="A map of location information by provider.") -public java.util.Map<java.lang.String,Location> readLocation()-
-@Rpc(description="Stops collecting location data.") -@RpcStopEvent(value="location") -public void stopLocating()-
-@Rpc(description="Returns the last known location of the device.", - returns="A map of location information by provider.") -public java.util.Map<java.lang.String,Location> getLastKnownLocation()-
-@Rpc(description="Returns a list of addresses for the given latitude and longitude.", - returns="A list of addresses.") -public java.util.List<Address> geocode(@RpcParameter(name="latitude") - java.lang.Double latitude, - @RpcParameter(name="longitude") - java.lang.Double longitude, - @RpcParameter(name="maxResults",description="maximum number of results")@RpcDefault(value="1") - java.lang.Integer maxResults) - throws java.io.IOException-
java.io.IOException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.MediaPlayerFacade -
public class MediaPlayerFacade
-This facade exposes basic mediaPlayer functionality.
-
-
-
- Usage Notes:
- mediaPlayerFacade maintains a list of media streams, identified by a user supplied tag. If the
- tag is null or blank, this tag defaults to "default"
- Basic operation is: mediaPlayOpen("file:///sdcard/MP3/sample.mp3","mytag",true)
- This will look for a media file at /sdcard/MP3/sample.mp3. Other urls should work. If the file
- exists and is playable, this will return a true otherwise it will return a false.
-
-
- If play=true, then the media file will play immediately, otherwise it will wait for a
- mediaPlayerStart command.
-
-
- When done with the resource, use mediaPlayClose
-
-
- You can get information about the loaded media with mediaPlayInfo This
- returns a map with the following elements:
-
mediaPlaySeek
- mediaPlayPause and mediaPlayStart
- mediaPlaySetLooping
- mediaPlayList to get a list of the loaded tags. mediaIsPlaying will return true if the media is playing.mediaPlayClose event is called.
-- -
-
| -Constructor Summary | -|
|---|---|
MediaPlayerFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- boolean |
-mediaIsPlaying(java.lang.String tag)
-
-- |
-
- boolean |
-mediaPlay(java.lang.String url,
- java.lang.String tag,
- java.lang.Boolean play)
-
-- |
-
- boolean |
-mediaPlayClose(java.lang.String tag)
-
-- |
-
- java.util.Map<java.lang.String,java.lang.Object> |
-mediaPlayInfo(java.lang.String tag)
-
-- |
-
- java.util.Set<java.lang.String> |
-mediaPlayList()
-
-- |
-
- boolean |
-mediaPlayPause(java.lang.String tag)
-
-- |
-
- int |
-mediaPlaySeek(java.lang.Integer msec,
- java.lang.String tag)
-
-- |
-
- boolean |
-mediaPlaySetLooping(java.lang.Boolean enabled,
- java.lang.String tag)
-
-- |
-
- boolean |
-mediaPlayStart(java.lang.String tag)
-
-- |
-
- void |
-onCompletion(MediaPlayer player)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public MediaPlayerFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Open a media file", - returns="true if play successful") -public boolean mediaPlay(@RpcParameter(name="url",description="url of media resource") - java.lang.String url, - @RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag, - @RpcParameter(name="play",description="start playing immediately")@RpcDefault(value="true") - java.lang.Boolean play)-
-@Rpc(description="pause playing media file", - returns="true if successful") -public boolean mediaPlayPause(@RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="start playing media file", - returns="true if successful") -public boolean mediaPlayStart(@RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="Close media file", - returns="true if successful") -public boolean mediaPlayClose(@RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="Checks if media file is playing.", - returns="true if playing") -public boolean mediaIsPlaying(@RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="Information on current media", - returns="Media Information") -public java.util.Map<java.lang.String,java.lang.Object> mediaPlayInfo(@RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="Lists currently loaded media", - returns="List of Media Tags") -public java.util.Set<java.lang.String> mediaPlayList()-
-@Rpc(description="Set Looping", - returns="True if successful") -public boolean mediaPlaySetLooping(@RpcParameter(name="enabled")@RpcDefault(value="true") - java.lang.Boolean enabled, - @RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-@Rpc(description="Seek To Position", - returns="New Position (in ms)") -public int mediaPlaySeek(@RpcParameter(name="msec",description="Position in millseconds") - java.lang.Integer msec, - @RpcParameter(name="tag",description="string identifying resource")@RpcDefault(value="default") - java.lang.String tag)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-public void onCompletion(MediaPlayer player)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.MediaRecorderFacade -
public class MediaRecorderFacade
-A facade for recording media. - - Guidance notes: Use e.g. '/sdcard/file.ext' for your media destination file. A file extension of - mpg will use the default settings for format and codec (often h263 which won't work with common - PC media players). A file extension of mp4 or 3gp will use the appropriate format with the (more - common) h264 codec. A video player such as QQPlayer (from the android market) plays both codecs - and uses the composition matrix (embedded in the video file) to correct for image rotation. Many - PC based media players ignore this matrix. Standard video sizes may be specified. -
- -
-
| -Constructor Summary | -|
|---|---|
MediaRecorderFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-recorderCaptureVideo(java.lang.String targetPath,
- java.lang.Integer duration,
- java.lang.Boolean recordAudio)
-
-- |
-
- void |
-recorderStartMicrophone(java.lang.String targetPath)
-
-- |
-
- void |
-recorderStartVideo(java.lang.String targetPath,
- java.lang.Integer duration,
- java.lang.Integer videoSize)
-
-- |
-
- void |
-recorderStop()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-startInteractiveVideoRecording(java.lang.String path)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public MediaRecorderFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Records audio from the microphone and saves it to the given location.") -public void recorderStartMicrophone(@RpcParameter(name="targetPath") - java.lang.String targetPath) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Records video from the camera and saves it to the given location. \nDuration specifies the maximum duration of the recording session. \nIf duration is 0 this method will return and the recording will only be stopped \nwhen recorderStop is called or when a scripts exits. \nOtherwise it will block for the time period equal to the duration argument.\nvideoSize: 0=160x120, 1=320x240, 2=352x288, 3=640x480, 4=800x480.") -public void recorderStartVideo(@RpcParameter(name="targetPath") - java.lang.String targetPath, - @RpcParameter(name="duration")@RpcDefault(value="0") - java.lang.Integer duration, - @RpcParameter(name="videoSize")@RpcDefault(value="1") - java.lang.Integer videoSize) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Records video (and optionally audio) from the camera and saves it to the given location. \nDuration specifies the maximum duration of the recording session. \nIf duration is not provided this method will return immediately and the recording will only be stopped \nwhen recorderStop is called or when a scripts exits. \nOtherwise it will block for the time period equal to the duration argument.") -public void recorderCaptureVideo(@RpcParameter(name="targetPath") - java.lang.String targetPath, - @RpcParameter(name="duration")@RpcOptional - java.lang.Integer duration, - @RpcParameter(name="recordAudio")@RpcDefault(value="true") - java.lang.Boolean recordAudio) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Stops a previously started recording.") -public void recorderStop()-
-@Rpc(description="Starts the video capture application to record a video and saves it to the specified path.") -public void startInteractiveVideoRecording(@RpcParameter(name="path") - java.lang.String path)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.PhoneFacade -
public class PhoneFacade
-Exposes TelephonyManager functionality. -
- -
-
| -Constructor Summary | -|
|---|---|
PhoneFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.Boolean |
-checkNetworkRoaming()
-
-- |
-
- CellLocation |
-getCellLocation()
-
-- |
-
- java.lang.String |
-getDeviceId()
-
-- |
-
- java.lang.String |
-getDeviceSoftwareVersion()
-
-- |
-
- java.lang.String |
-getLine1Number()
-
-- |
-
- java.util.List<NeighboringCellInfo> |
-getNeighboringCellInfo()
-
-- |
-
- java.lang.String |
-getNetworkOperator()
-
-- |
-
- java.lang.String |
-getNetworkOperatorName()
-
-- |
-
- java.lang.String |
-getNetworkType()
-
-- |
-
- java.lang.String |
-getPhoneType()
-
-- |
-
- java.lang.String |
-getSimCountryIso()
-
-- |
-
- java.lang.String |
-getSimOperator()
-
-- |
-
- java.lang.String |
-getSimOperatorName()
-
-- |
-
- java.lang.String |
-getSimSerialNumber()
-
-- |
-
- java.lang.String |
-getSimState()
-
-- |
-
- java.lang.String |
-getSubscriberId()
-
-- |
-
- java.lang.String |
-getVoiceMailAlphaTag()
-
-- |
-
- java.lang.String |
-getVoiceMailNumber()
-
-- |
-
- void |
-phoneCall(java.lang.String uriString)
-
-- |
-
- void |
-phoneCallNumber(java.lang.String number)
-
-- |
-
- void |
-phoneDial(java.lang.String uri)
-
-- |
-
- void |
-phoneDialNumber(java.lang.String number)
-
-- |
-
- Bundle |
-readPhoneState()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-startTrackingPhoneState()
-
-- |
-
- void |
-stopTrackingPhoneState()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PhoneFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Starts tracking phone state.") -@RpcStartEvent(value="phone") -public void startTrackingPhoneState()-
-@Rpc(description="Returns the current phone state and incoming number.", - returns="A Map of \"state\" and \"incomingNumber\"") -public Bundle readPhoneState()-
-@Rpc(description="Stops tracking phone state.") -@RpcStopEvent(value="phone") -public void stopTrackingPhoneState()-
-@Rpc(description="Calls a contact/phone number by URI.") -public void phoneCall(@RpcParameter(name="uri") - java.lang.String uriString) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Calls a phone number.") -public void phoneCallNumber(@RpcParameter(name="phone number") - java.lang.String number) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Dials a contact/phone number by URI.") -public void phoneDial(@RpcParameter(name="uri") - java.lang.String uri) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Dials a phone number.") -public void phoneDialNumber(@RpcParameter(name="phone number") - java.lang.String number) - throws java.lang.Exception, - java.io.UnsupportedEncodingException-
java.lang.Exception
-java.io.UnsupportedEncodingException-@Rpc(description="Returns the current cell location.") -public CellLocation getCellLocation()-
-@Rpc(description="Returns the numeric name (MCC+MNC) of current registered operator.") -public java.lang.String getNetworkOperator()-
-@Rpc(description="Returns the alphabetic name of current registered operator.") -public java.lang.String getNetworkOperatorName()-
-@Rpc(description="Returns a the radio technology (network type) currently in use on the device.") -public java.lang.String getNetworkType()-
-@Rpc(description="Returns the device phone type.") -public java.lang.String getPhoneType()-
-@Rpc(description="Returns the ISO country code equivalent for the SIM provider\'s country code.") -public java.lang.String getSimCountryIso()-
-@Rpc(description="Returns the MCC+MNC (mobile country code + mobile network code) of the provider of the SIM. 5 or 6 decimal digits.") -public java.lang.String getSimOperator()-
-@Rpc(description="Returns the Service Provider Name (SPN).") -public java.lang.String getSimOperatorName()-
-@Rpc(description="Returns the serial number of the SIM, if applicable. Return null if it is unavailable.") -public java.lang.String getSimSerialNumber()-
-@Rpc(description="Returns the state of the device SIM card.") -public java.lang.String getSimState()-
-@Rpc(description="Returns the unique subscriber ID, for example, the IMSI for a GSM phone. Return null if it is unavailable.") -public java.lang.String getSubscriberId()-
-@Rpc(description="Retrieves the alphabetic identifier associated with the voice mail number.") -public java.lang.String getVoiceMailAlphaTag()-
-@Rpc(description="Returns the voice mail number. Return null if it is unavailable.") -public java.lang.String getVoiceMailNumber()-
-@Rpc(description="Returns true if the device is considered roaming on the current network, for GSM purposes.") -public java.lang.Boolean checkNetworkRoaming()-
-@Rpc(description="Returns the unique device ID, for example, the IMEI for GSM and the MEID for CDMA phones. Return null if device ID is not available.") -public java.lang.String getDeviceId()-
-@Rpc(description="Returns the software version number for the device, for example, the IMEI/SV for GSM phones. Return null if the software version is not available.") -public java.lang.String getDeviceSoftwareVersion()-
-@Rpc(description="Returns the phone number string for line 1, for example, the MSISDN for a GSM phone. Return null if it is unavailable.") -public java.lang.String getLine1Number()-
-@Rpc(description="Returns the neighboring cell information of the device.") -public java.util.List<NeighboringCellInfo> getNeighboringCellInfo()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.PreferencesFacade -
public class PreferencesFacade
-This facade allows access to the Preferences interface.
-
-
- Notes:
- filename - Filename indicates which preference file to refer to. If no filename is
- supplied (the default) then the SharedPreferences uses is the default for the SL4A application.
- prefPutValue - uses "MODE_PRIVATE" when writing to preferences. Save values to the default
- shared preferences is explicitly disallowed.
-
- See Preferences and
- Shared
- Preferences in the android documentation on how preferences work.
-
- -
-
| -Constructor Summary | -|
|---|---|
PreferencesFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.util.Map<java.lang.String,?> |
-prefGetAll(java.lang.String filename)
-
-- |
-
- java.lang.Object |
-prefGetValue(java.lang.String key,
- java.lang.String filename)
-
-- |
-
- void |
-prefPutValue(java.lang.String key,
- java.lang.Object value,
- java.lang.String filename)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PreferencesFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Read a value from shared preferences") -public java.lang.Object prefGetValue(@RpcParameter(name="key") - java.lang.String key, - @RpcParameter(name="filename",description="Desired preferences file. If not defined, uses the default Shared Preferences.")@RpcOptional - java.lang.String filename)-
-@Rpc(description="Write a value to shared preferences") -public void prefPutValue(@RpcParameter(name="key") - java.lang.String key, - @RpcParameter(name="value") - java.lang.Object value, - @RpcParameter(name="filename",description="Desired preferences file. If not defined, uses the default Shared Preferences.")@RpcOptional - java.lang.String filename) - throws java.io.IOException-
java.io.IOException-@Rpc(description="Get list of Shared Preference Values", - returns="Map of key,value") -public java.util.Map<java.lang.String,?> prefGetAll(@RpcParameter(name="filename",description="Desired preferences file. If not defined, uses the default Shared Preferences.")@RpcOptional - java.lang.String filename)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.SensorManagerFacade -
public class SensorManagerFacade
-Exposes the SensorManager related functionality.
-
- Guidance notes
- For reasons of economy the sensors on smart phones are usually low cost and, therefore, low
- accuracy (usually represented by 10 bit data). The floating point data values obtained from
- sensor readings have up to 16 decimal places, the majority of which are noise. On many phones the
- accelerometer is limited (by the phone manufacturer) to a maximum reading of 2g. The magnetometer
- (which also provides orientation readings) is strongly affected by the presence of ferrous metals
- and can give large errors in vehicles, on board ship etc.
-
- Following a startSensingTimed(A,B) api call sensor events are entered into the Event Queue (see
- EventFacade). For the A parameter: 1 = All Sensors, 2 = Accelerometer, 3 = Magnetometer and 4 =
- Light. The B parameter is the minimum delay between recordings in milliseconds. To avoid
- duplicate readings the minimum delay should be 20 milliseconds. The light sensor will probably be
- much slower (taking about 1 second to register a change in light level). Note that if the light
- level is constant no sensor events will be registered by the light sensor.
-
- Following a startSensingThreshold(A,B,C) api call sensor events greater than a given threshold
- are entered into the Event Queue. For the A parameter: 1 = Orientation, 2 = Accelerometer, 3 =
- Magnetometer and 4 = Light. The B parameter is the integer value of the required threshold level.
- For orientation sensing the integer threshold value is in milliradians. Since orientation events
- can exceed the threshold value for long periods only crossing and return events are recorded. The
- C parameter is the required axis (XYZ) of the sensor: 0 = No axis, 1 = X, 2 = Y, 3 = X+Y, 4 = Z,
- 5= X+Z, 6 = Y+Z, 7 = X+Y+Z. For orientation X = azimuth, Y = pitch and Z = roll.
-
-
- Example (python)
-
-
- import android, time - droid = android.Android() - droid.startSensingTimed(1, 250) - time.sleep(1) - s1 = droid.readSensors().result - s2 = droid.sensorsGetAccuracy().result - s3 = droid.sensorsGetLight().result - s4 = droid.sensorsReadAccelerometer().result - s5 = droid.sensorsReadMagnetometer().result - s6 = droid.sensorsReadOrientation().result - droid.stopSensing() -- - Returns:
- -
-
| -Constructor Summary | -|
|---|---|
SensorManagerFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- Bundle |
-readSensors()
-
-- |
-
- java.lang.Integer |
-sensorsGetAccuracy()
-
-- |
-
- java.lang.Float |
-sensorsGetLight()
-
-- |
-
- java.util.List<java.lang.Float> |
-sensorsReadAccelerometer()
-
-- |
-
- java.util.List<java.lang.Float> |
-sensorsReadMagnetometer()
-
-- |
-
- java.util.List<java.lang.Double> |
-sensorsReadOrientation()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-startSensing(java.lang.Integer sampleSize)
-
-- |
-
- void |
-startSensingThreshold(java.lang.Integer sensorNumber,
- java.lang.Integer threshold,
- java.lang.Integer axis)
-
-- |
-
- void |
-startSensingTimed(java.lang.Integer sensorNumber,
- java.lang.Integer delayTime)
-
-- |
-
- void |
-stopSensing()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SensorManagerFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Starts recording sensor data to be available for polling.") -@RpcStartEvent(value="sensors") -public void startSensingTimed(@RpcParameter(name="sensorNumber",description="1 = All, 2 = Accelerometer, 3 = Magnetometer and 4 = Light") - java.lang.Integer sensorNumber, - @RpcParameter(name="delayTime",description="Minimum time between readings in milliseconds") - java.lang.Integer delayTime)-
-@Rpc(description="Records to the Event Queue sensor data exceeding a chosen threshold.") -@RpcStartEvent(value="threshold") -public void startSensingThreshold(@RpcParameter(name="sensorNumber",description="1 = Orientation, 2 = Accelerometer, 3 = Magnetometer and 4 = Light") - java.lang.Integer sensorNumber, - @RpcParameter(name="threshold",description="Threshold level for chosen sensor (integer)") - java.lang.Integer threshold, - @RpcParameter(name="axis",description="0 = No axis, 1 = X, 2 = Y, 3 = X+Y, 4 = Z, 5= X+Z, 6 = Y+Z, 7 = X+Y+Z") - java.lang.Integer axis)-
-@Rpc(description="Returns the most recently recorded sensor data.") -public Bundle readSensors()-
-@Rpc(description="Stops collecting sensor data.") -@RpcStopEvent(value="sensors") -public void stopSensing()-
-@Rpc(description="Returns the most recently received accuracy value.") -public java.lang.Integer sensorsGetAccuracy()-
-@Rpc(description="Returns the most recently received light value.") -public java.lang.Float sensorsGetLight()-
-@Rpc(description="Returns the most recently received accelerometer values.", - returns="a List of Floats [(acceleration on the) X axis, Y axis, Z axis].") -public java.util.List<java.lang.Float> sensorsReadAccelerometer()-
-@Rpc(description="Returns the most recently received magnetic field values.", - returns="a List of Floats [(magnetic field value for) X axis, Y axis, Z axis].") -public java.util.List<java.lang.Float> sensorsReadMagnetometer()-
-@Rpc(description="Returns the most recently received orientation values.", - returns="a List of Doubles [azimuth, pitch, roll].") -public java.util.List<java.lang.Double> sensorsReadOrientation()-
-@Rpc(description="Starts recording sensor data to be available for polling.") -@RpcDeprecated(value="startSensingTimed or startSensingThreshhold", - release="4") -public void startSensing(@RpcParameter(name="sampleSize",description="number of samples for calculating average readings")@RpcDefault(value="5") - java.lang.Integer sampleSize)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.SettingsFacade -
public class SettingsFacade
-Exposes phone settings functionality. -
- -
-
| -Field Summary | -|
|---|---|
-static int |
-AIRPLANE_MODE_OFF
-
-- |
-
-static int |
-AIRPLANE_MODE_ON
-
-- |
-
| -Constructor Summary | -|
|---|---|
SettingsFacade(FacadeManager manager)
-
-- Creates a new SettingsFacade. |
-|
| -Method Summary | -|
|---|---|
- java.lang.Boolean |
-checkAirplaneMode()
-
-- |
-
- java.lang.Boolean |
-checkRingerSilentMode()
-
-- |
-
- java.lang.Boolean |
-checkScreenOn()
-
-- |
-
- int |
-getMaxMediaVolume()
-
-- |
-
- int |
-getMaxRingerVolume()
-
-- |
-
- int |
-getMediaVolume()
-
-- |
-
- int |
-getRingerVolume()
-
-- |
-
- java.lang.Integer |
-getScreenBrightness()
-
-- |
-
- java.lang.Integer |
-getScreenTimeout()
-
-- |
-
- java.lang.Boolean |
-getVibrateMode(java.lang.Boolean ringer)
-
-- |
-
- void |
-setMediaVolume(java.lang.Integer volume)
-
-- |
-
- void |
-setRingerVolume(java.lang.Integer volume)
-
-- |
-
- java.lang.Integer |
-setScreenBrightness(java.lang.Integer value)
-
-- |
-
- java.lang.Integer |
-setScreenTimeout(java.lang.Integer value)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- java.lang.Boolean |
-toggleAirplaneMode(java.lang.Boolean enabled)
-
-- |
-
- java.lang.Boolean |
-toggleRingerSilentMode(java.lang.Boolean enabled)
-
-- |
-
- java.lang.Boolean |
-toggleVibrateMode(java.lang.Boolean enabled,
- java.lang.Boolean ringer)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static int AIRPLANE_MODE_OFF-
-public static int AIRPLANE_MODE_ON-
| -Constructor Detail | -
|---|
-public SettingsFacade(FacadeManager manager)-
-
service - is the Context the APIs will run under| -Method Detail | -
|---|
-@Rpc(description="Sets the screen timeout to this number of seconds.", - returns="The original screen timeout.") -public java.lang.Integer setScreenTimeout(@RpcParameter(name="value") - java.lang.Integer value)-
-@Rpc(description="Returns the current screen timeout in seconds.", - returns="the current screen timeout in seconds.") -public java.lang.Integer getScreenTimeout()-
-@Rpc(description="Checks the airplane mode setting.", - returns="True if airplane mode is enabled.") -public java.lang.Boolean checkAirplaneMode()-
-@Rpc(description="Toggles airplane mode on and off.", - returns="True if airplane mode is enabled.") -public java.lang.Boolean toggleAirplaneMode(@RpcParameter(name="enabled")@RpcOptional - java.lang.Boolean enabled)-
-@Rpc(description="Checks the ringer silent mode setting.", - returns="True if ringer silent mode is enabled.") -public java.lang.Boolean checkRingerSilentMode()-
-@Rpc(description="Toggles ringer silent mode on and off.", - returns="True if ringer silent mode is enabled.") -public java.lang.Boolean toggleRingerSilentMode(@RpcParameter(name="enabled")@RpcOptional - java.lang.Boolean enabled)-
-@Rpc(description="Toggles vibrate mode on and off. If ringer=true then set Ringer setting, else set Notification setting", - returns="True if vibrate mode is enabled.") -public java.lang.Boolean toggleVibrateMode(@RpcParameter(name="enabled")@RpcOptional - java.lang.Boolean enabled, - @RpcParameter(name="ringer")@RpcOptional - java.lang.Boolean ringer)-
-@Rpc(description="Checks Vibration setting. If ringer=true then query Ringer setting, else query Notification setting", - returns="True if vibrate mode is enabled.") -public java.lang.Boolean getVibrateMode(@RpcParameter(name="ringer")@RpcOptional - java.lang.Boolean ringer)-
-@Rpc(description="Returns the maximum ringer volume.") -public int getMaxRingerVolume()-
-@Rpc(description="Returns the current ringer volume.") -public int getRingerVolume()-
-@Rpc(description="Sets the ringer volume.") -public void setRingerVolume(@RpcParameter(name="volume") - java.lang.Integer volume)-
-@Rpc(description="Returns the maximum media volume.") -public int getMaxMediaVolume()-
-@Rpc(description="Returns the current media volume.") -public int getMediaVolume()-
-@Rpc(description="Sets the media volume.") -public void setMediaVolume(@RpcParameter(name="volume") - java.lang.Integer volume)-
-@Rpc(description="Returns the screen backlight brightness.", - returns="the current screen brightness between 0 and 255") -public java.lang.Integer getScreenBrightness()-
-@Rpc(description="Sets the the screen backlight brightness.", - returns="the original screen brightness.") -public java.lang.Integer setScreenBrightness(@RpcParameter(name="value",description="brightness value between 0 and 255") - java.lang.Integer value)-
-@Rpc(description="Checks if the screen is on or off (requires API level 7).", - returns="True if the screen is currently on.") -public java.lang.Boolean checkScreenOn() - throws java.lang.Exception-
java.lang.Exception-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.SignalStrengthFacade -
@RpcMinSdk(value=7) -public class SignalStrengthFacade
-Exposes SignalStrength functionality. -
- -
-
| -Constructor Summary | -|
|---|---|
SignalStrengthFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- Bundle |
-readSignalStrengths()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-startTrackingSignalStrengths()
-
-- |
-
- void |
-stopTrackingSignalStrengths()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SignalStrengthFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Starts tracking signal strengths.") -@RpcStartEvent(value="signal_strengths") -public void startTrackingSignalStrengths()-
-@Rpc(description="Returns the current signal strengths.", - returns="A map of \"gsm_signal_strength\"") -public Bundle readSignalStrengths()-
-@Rpc(description="Stops tracking signal strength.") -@RpcStopEvent(value="signal_strengths") -public void stopTrackingSignalStrengths()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.SmsFacade -
public class SmsFacade
-Provides access to SMS related functionality. -
- -
-
| -Constructor Summary | -|
|---|---|
SmsFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- java.lang.Boolean |
-smsDeleteMessage(java.lang.Integer id)
-
-- |
-
- java.util.List<java.lang.String> |
-smsGetAttributes()
-
-- |
-
- JSONObject |
-smsGetMessageById(java.lang.Integer id,
- JSONArray attributes)
-
-- |
-
- java.lang.Integer |
-smsGetMessageCount(java.lang.Boolean unreadOnly,
- java.lang.String folder)
-
-- |
-
- java.util.List<java.lang.Integer> |
-smsGetMessageIds(java.lang.Boolean unreadOnly,
- java.lang.String folder)
-
-- |
-
- java.util.List<JSONObject> |
-smsGetMessages(java.lang.Boolean unreadOnly,
- java.lang.String folder,
- JSONArray attributes)
-
-- |
-
- java.lang.Integer |
-smsMarkMessageRead(JSONArray ids,
- java.lang.Boolean read)
-
-- |
-
- void |
-smsSend(java.lang.String destinationAddress,
- java.lang.String text)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SmsFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Sends an SMS.") -public void smsSend(@RpcParameter(name="destinationAddress",description="typically a phone number") - java.lang.String destinationAddress, - @RpcParameter(name="text") - java.lang.String text)-
-@Rpc(description="Returns the number of messages.") -public java.lang.Integer smsGetMessageCount(@RpcParameter(name="unreadOnly") - java.lang.Boolean unreadOnly, - @RpcParameter(name="folder")@RpcDefault(value="inbox") - java.lang.String folder)-
-@Rpc(description="Returns a List of all message IDs.") -public java.util.List<java.lang.Integer> smsGetMessageIds(@RpcParameter(name="unreadOnly") - java.lang.Boolean unreadOnly, - @RpcParameter(name="folder")@RpcDefault(value="inbox") - java.lang.String folder)-
-@Rpc(description="Returns a List of all messages.", - returns="a List of messages as Maps") -public java.util.List<JSONObject> smsGetMessages(@RpcParameter(name="unreadOnly") - java.lang.Boolean unreadOnly, - @RpcParameter(name="folder")@RpcDefault(value="inbox") - java.lang.String folder, - @RpcParameter(name="attributes")@RpcOptional - JSONArray attributes) - throws JSONException-
JSONException-@Rpc(description="Returns message attributes.") -public JSONObject smsGetMessageById(@RpcParameter(name="id",description="message ID") - java.lang.Integer id, - @RpcParameter(name="attributes")@RpcOptional - JSONArray attributes) - throws JSONException-
JSONException-@Rpc(description="Returns a List of all possible message attributes.") -public java.util.List<java.lang.String> smsGetAttributes()-
-@Rpc(description="Deletes a message.", - returns="True if the message was deleted") -public java.lang.Boolean smsDeleteMessage(@RpcParameter(name="id") - java.lang.Integer id)-
-@Rpc(description="Marks messages as read.", - returns="number of messages marked read") -public java.lang.Integer smsMarkMessageRead(@RpcParameter(name="ids",description="List of message IDs to mark as read.") - JSONArray ids, - @RpcParameter(name="read") - java.lang.Boolean read) - throws JSONException-
JSONException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.SpeechRecognitionFacade -
public class SpeechRecognitionFacade
-A facade containing RPC implementations related to the speech-to-text functionality of Android. -
- -
-
| -Constructor Summary | -|
|---|---|
SpeechRecognitionFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-recognizeSpeech(java.lang.String prompt,
- java.lang.String language,
- java.lang.String languageModel)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SpeechRecognitionFacade(FacadeManager manager)-
activityLauncher - a helper object that launches activities in a blocking manner| -Method Detail | -
|---|
-@Rpc(description="Recognizes user\'s speech and returns the most likely result.", - returns="An empty string in case the speech cannot be recongnized.") -public java.lang.String recognizeSpeech(@RpcParameter(name="prompt",description="text prompt to show to the user when asking them to speak")@RpcOptional - java.lang.String prompt, - @RpcParameter(name="language",description="language override to inform the recognizer that it should expect speech in a language different than the one set in the java.util.Locale.getDefault()")@RpcOptional - java.lang.String language, - @RpcParameter(name="languageModel",description="informs the recognizer which speech model to prefer (see android.speech.RecognizeIntent)")@RpcOptional - java.lang.String languageModel)-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.TextToSpeechFacade -
@RpcMinSdk(value=4) -public class TextToSpeechFacade
-Provides Text To Speech services for API 4 or more. -
- -
-
| -Constructor Summary | -|
|---|---|
TextToSpeechFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- java.lang.Boolean |
-ttsIsSpeaking()
-
-- |
-
- void |
-ttsSpeak(java.lang.String message)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public TextToSpeechFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver-@Rpc(description="Speaks the provided message via TTS.") -public void ttsSpeak(@RpcParameter(name="message") - java.lang.String message) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Returns True if speech is currently in progress.") -public java.lang.Boolean ttsIsSpeaking() - throws java.lang.InterruptedException-
java.lang.InterruptedException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.ToneGeneratorFacade -
public class ToneGeneratorFacade
-Generate DTMF tones. -
- -
-
| -Constructor Summary | -|
|---|---|
ToneGeneratorFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-generateDtmfTones(java.lang.String phoneNumber,
- java.lang.Integer toneDuration)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ToneGeneratorFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Generate DTMF tones for the given phone number.") -public void generateDtmfTones(@RpcParameter(name="phoneNumber") - java.lang.String phoneNumber, - @RpcParameter(name="toneDuration",description="duration of each tone in milliseconds")@RpcDefault(value="100") - java.lang.Integer toneDuration) - throws java.lang.InterruptedException-
java.lang.InterruptedException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.WakeLockFacade -
public class WakeLockFacade
-A facade exposing some of the functionality of the PowerManager, in particular wake locks. -
- -
-
| -Constructor Summary | -|
|---|---|
WakeLockFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-wakeLockAcquireBright()
-
-- |
-
- void |
-wakeLockAcquireDim()
-
-- |
-
- void |
-wakeLockAcquireFull()
-
-- |
-
- void |
-wakeLockAcquirePartial()
-
-- |
-
- void |
-wakeLockRelease()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public WakeLockFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Acquires a full wake lock (CPU on, screen bright, keyboard bright).") -public void wakeLockAcquireFull()-
-@Rpc(description="Acquires a partial wake lock (CPU on).") -public void wakeLockAcquirePartial()-
-@Rpc(description="Acquires a bright wake lock (CPU on, screen bright).") -public void wakeLockAcquireBright()-
-@Rpc(description="Acquires a dim wake lock (CPU on, screen dim).") -public void wakeLockAcquireDim()-
-@Rpc(description="Releases the wake lock.") -public void wakeLockRelease()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.WebCamFacade -
@RpcMinSdk(value=8) -public class WebCamFacade
-Manages access to camera streaming.
-
-
- -
-
| -Constructor Summary | -|
|---|---|
WebCamFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- boolean |
-cameraStartPreview(java.lang.Integer resolutionLevel,
- java.lang.Integer jpegQuality,
- java.lang.String filepath)
-
-- |
-
- void |
-cameraStopPreview()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-webcamAdjustQuality(java.lang.Integer resolutionLevel,
- java.lang.Integer jpegQuality)
-
-- |
-
- java.net.InetSocketAddress |
-webcamStart(java.lang.Integer resolutionLevel,
- java.lang.Integer jpegQuality,
- java.lang.Integer port)
-
-- |
-
- void |
-webcamStop()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public WebCamFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Starts an MJPEG stream and returns a Tuple of address and port for the stream.") -public java.net.InetSocketAddress webcamStart(@RpcParameter(name="resolutionLevel",description="increasing this number provides higher resolution")@RpcDefault(value="0") - java.lang.Integer resolutionLevel, - @RpcParameter(name="jpegQuality",description="a number from 0-100")@RpcDefault(value="20") - java.lang.Integer jpegQuality, - @RpcParameter(name="port",description="If port is specified, the webcam service will bind to port, otherwise it will pick any available port.")@RpcDefault(value="0") - java.lang.Integer port) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Adjusts the quality of the webcam stream while it is running.") -public void webcamAdjustQuality(@RpcParameter(name="resolutionLevel",description="increasing this number provides higher resolution")@RpcDefault(value="0") - java.lang.Integer resolutionLevel, - @RpcParameter(name="jpegQuality",description="a number from 0-100")@RpcDefault(value="20") - java.lang.Integer jpegQuality) - throws java.lang.Exception-
java.lang.Exception-@Rpc(description="Stops the webcam stream.") -public void webcamStop()-
-@Rpc(description="Start Preview Mode. Throws \'preview\' events.", - returns="True if successful") -public boolean cameraStartPreview(@RpcParameter(name="resolutionLevel",description="increasing this number provides higher resolution")@RpcDefault(value="0") - java.lang.Integer resolutionLevel, - @RpcParameter(name="jpegQuality",description="a number from 0-100")@RpcDefault(value="20") - java.lang.Integer jpegQuality, - @RpcParameter(name="filepath",description="Path to store jpeg files.")@RpcOptional - java.lang.String filepath) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Stop the preview mode.") -public void cameraStopPreview()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.WifiFacade -
public class WifiFacade
-Wifi functions. -
- -
-
| -Constructor Summary | -|
|---|---|
WifiFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.Boolean |
-checkWifiState()
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- java.lang.Boolean |
-toggleWifiState(java.lang.Boolean enabled)
-
-- |
-
- java.lang.Boolean |
-wifiDisconnect()
-
-- |
-
- WifiInfo |
-wifiGetConnectionInfo()
-
-- |
-
- java.util.List<ScanResult> |
-wifiGetScanResults()
-
-- |
-
- void |
-wifiLockAcquireFull()
-
-- |
-
- void |
-wifiLockAcquireScanOnly()
-
-- |
-
- void |
-wifiLockRelease()
-
-- |
-
- java.lang.Boolean |
-wifiReassociate()
-
-- |
-
- java.lang.Boolean |
-wifiReconnect()
-
-- |
-
- java.lang.Boolean |
-wifiStartScan()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public WifiFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Returns the list of access points found during the most recent Wifi scan.") -public java.util.List<ScanResult> wifiGetScanResults()-
-@Rpc(description="Acquires a full Wifi lock.") -public void wifiLockAcquireFull()-
-@Rpc(description="Acquires a scan only Wifi lock.") -public void wifiLockAcquireScanOnly()-
-@Rpc(description="Releases a previously acquired Wifi lock.") -public void wifiLockRelease()-
-@Rpc(description="Starts a scan for Wifi access points.", - returns="True if the scan was initiated successfully.") -public java.lang.Boolean wifiStartScan()-
-@Rpc(description="Checks Wifi state.", - returns="True if Wifi is enabled.") -public java.lang.Boolean checkWifiState()-
-@Rpc(description="Toggle Wifi on and off.", - returns="True if Wifi is enabled.") -public java.lang.Boolean toggleWifiState(@RpcParameter(name="enabled")@RpcOptional - java.lang.Boolean enabled)-
-@Rpc(description="Disconnects from the currently active access point.", - returns="True if the operation succeeded.") -public java.lang.Boolean wifiDisconnect()-
-@Rpc(description="Returns information about the currently active access point.") -public WifiInfo wifiGetConnectionInfo()-
-@Rpc(description="Reassociates with the currently active access point.", - returns="True if the operation succeeded.") -public java.lang.Boolean wifiReassociate()-
-@Rpc(description="Reconnects to the currently active access point.", - returns="True if the operation succeeded.") -public java.lang.Boolean wifiReconnect()-
-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Interfaces
-
- -AndroidFacade.Resources - -EventFacade.EventObserver |
-
|
-Classes
-
- -ActivityResultFacade - -AndroidFacade - -ApplicationManagerFacade - -BatteryManagerFacade - -BluetoothFacade - -CameraFacade - -CommonIntentsFacade - -ContactsFacade - -EventFacade - -EventServer - -EyesFreeFacade - -FacadeConfiguration - -FacadeManager - -FacadeManagerFactory - -LocationFacade - -MediaPlayerFacade - -MediaRecorderFacade - -PhoneFacade - -PreferencesFacade - -SensorManagerFacade - -SettingsFacade - -SignalStrengthFacade - -SmsFacade - -SpeechRecognitionFacade - -TextToSpeechFacade - -ToneGeneratorFacade - -WakeLockFacade - -WebCamFacade - -WifiFacade |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| AndroidFacade.Resources | -An instance of this interface is passed to the facade. | -
| EventFacade.EventObserver | -- |
- -
| -Class Summary | -|
|---|---|
| ActivityResultFacade | -Allows you to return results to a startActivityForResult call. | -
| AndroidFacade | -Some general purpose Android routines. |
-
| ApplicationManagerFacade | -Facade for managing Applications. | -
| BatteryManagerFacade | -Exposes Batterymanager API. | -
| BluetoothFacade | -Bluetooth functions. | -
| CameraFacade | -Access Camera functions. | -
| CommonIntentsFacade | -A selection of commonly used intents. | -
| ContactsFacade | -Provides access to contacts related functionality. | -
| EventFacade | -Manage the event queue. | -
| EventServer | -An Event Forwarding server that forwards events from the rpc queue in realtime to listener - clients. | -
| EyesFreeFacade | -Provides Text To Speech services for API 3 or less. | -
| FacadeConfiguration | -Encapsulates the list of supported facades and their construction. | -
| FacadeManager | -- |
| FacadeManagerFactory | -- |
| LocationFacade | -This facade exposes the LocationManager related functionality. - - Overview - Once activated by 'startLocating' the LocationFacade attempts to return location data collected - via GPS or the cell network. |
-
| MediaPlayerFacade | -This facade exposes basic mediaPlayer functionality. | -
| MediaRecorderFacade | -A facade for recording media. | -
| PhoneFacade | -Exposes TelephonyManager functionality. | -
| PreferencesFacade | -This facade allows access to the Preferences interface. | -
| SensorManagerFacade | -Exposes the SensorManager related functionality. | -
| SettingsFacade | -Exposes phone settings functionality. | -
| SignalStrengthFacade | -Exposes SignalStrength functionality. | -
| SmsFacade | -Provides access to SMS related functionality. | -
| SpeechRecognitionFacade | -A facade containing RPC implementations related to the speech-to-text functionality of Android. | -
| TextToSpeechFacade | -Provides Text To Speech services for API 4 or more. | -
| ToneGeneratorFacade | -Generate DTMF tones. | -
| WakeLockFacade | -A facade exposing some of the functionality of the PowerManager, in particular wake locks. | -
| WebCamFacade | -Manages access to camera streaming. | -
| WifiFacade | -Wifi functions. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureActivityTask<java.lang.Object> -
com.googlecode.android_scripting.facade.ui.DatePickerDialogTask -
public class DatePickerDialogTask
-Wrapper class for date picker dialog running in separate thread. -
- -
-
| -Field Summary | -|
|---|---|
-static int |
-mDay
-
-- |
-
-static int |
-mMonth
-
-- |
-
-static int |
-mYear
-
-- |
-
| -Constructor Summary | -|
|---|---|
DatePickerDialogTask(int year,
- int month,
- int day)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-dismissDialog()
-
-- Dismiss the Dialog and close Sl4aActivity. |
-
- Dialog |
-getDialog()
-
-- Returns the wrapped Dialog. |
-
- EventFacade |
-getEventFacade()
-
-- |
-
- java.util.concurrent.CountDownLatch |
-getShowLatch()
-
-- Returns the CountDownLatch that is counted down when the dialog is shown. |
-
- void |
-onCreate()
-
-- |
-
- void |
-setEventFacade(EventFacade mEventFacade)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.future.FutureActivityTask | -
|---|
finish, getActivity, getResult, onActivityResult, onCreateContextMenu, onDestroy, onKeyDown, onNewIntent, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, setActivity, startActivity, startActivityForResult |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static int mYear-
-public static int mMonth-
-public static int mDay-
| -Constructor Detail | -
|---|
-public DatePickerDialogTask(int year, - int month, - int day)-
| -Method Detail | -
|---|
-public void onCreate()-
onCreate in class FutureActivityTask<java.lang.Object>-public EventFacade getEventFacade()-
-public void setEventFacade(EventFacade mEventFacade)-
-public Dialog getDialog()-
Dialog.
--
-public void dismissDialog()-
Dialog and close Sl4aActivity.
--
-public java.util.concurrent.CountDownLatch getShowLatch()-
CountDownLatch that is counted down when the dialog is shown.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureActivityTask<java.lang.Object> -
com.googlecode.android_scripting.facade.ui.FullScreenTask -
public class FullScreenTask
-
| -Field Summary | -|
|---|---|
- View |
-mView
-
-- |
-
| -Constructor Summary | -|
|---|---|
FullScreenTask(java.lang.String layout)
-
-- |
-|
| -Method Summary | -|
|---|---|
- EventFacade |
-getEventFacade()
-
-- |
-
- java.util.concurrent.CountDownLatch |
-getShowLatch()
-
-- |
-
- java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
-getViewAsMap()
-
-- |
-
- java.util.Map<java.lang.String,java.lang.String> |
-getViewDetail(java.lang.String idName)
-
-- |
-
- void |
-onClick(View view)
-
-- |
-
- void |
-onCreate()
-
-- |
-
- void |
-onDestroy()
-
-- |
-
- void |
-onItemClick(
-
-- |
-
- boolean |
-onKeyDown(int keyCode,
- KeyEvent event)
-
-- |
-
- boolean |
-onPrepareOptionsMenu(Menu menu)
-
-- |
-
- void |
-setEventFacade(EventFacade eventFacade)
-
-- |
-
- java.lang.String |
-setList(java.lang.String id,
- JSONArray items)
-
-- |
-
- void |
-setOverrideKeys(java.util.List<java.lang.Integer> overrideKeys)
-
-- |
-
- void |
-setUiFacade(UiFacade uiFacade)
-
-- |
-
- java.lang.String |
-setViewProperty(java.lang.String idName,
- java.lang.String property,
- java.lang.String value)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.future.FutureActivityTask | -
|---|
finish, getActivity, getResult, onActivityResult, onCreateContextMenu, onNewIntent, onPause, onResume, onStart, onStop, setActivity, startActivity, startActivityForResult |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public View mView-
| -Constructor Detail | -
|---|
-public FullScreenTask(java.lang.String layout)-
| -Method Detail | -
|---|
-public void onCreate()-
onCreate in class FutureActivityTask<java.lang.Object>-public void onDestroy()-
onDestroy in class FutureActivityTask<java.lang.Object>-public EventFacade getEventFacade()-
-public void setEventFacade(EventFacade eventFacade)-
-public void setUiFacade(UiFacade uiFacade)-
-public java.util.concurrent.CountDownLatch getShowLatch()-
-public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getViewAsMap()-
-public java.util.Map<java.lang.String,java.lang.String> getViewDetail(java.lang.String idName)-
-public java.lang.String setViewProperty(java.lang.String idName, - java.lang.String property, - java.lang.String value)-
-public java.lang.String setList(java.lang.String id, - JSONArray items)-
-public void onClick(View view)-
-public boolean onKeyDown(int keyCode, - KeyEvent event)-
onKeyDown in class FutureActivityTask<java.lang.Object>-public boolean onPrepareOptionsMenu(Menu menu)-
onPrepareOptionsMenu in class FutureActivityTask<java.lang.Object>-public void onItemClick(-aview, - View aitem, - int position, - long id)
-public void setOverrideKeys(java.util.List<java.lang.Integer> overrideKeys)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureActivityTask<java.lang.Object> -
com.googlecode.android_scripting.facade.ui.SeekBarDialogTask -
public class SeekBarDialogTask
-Wrapper class for dialog box with seek bar. -
- -
-
| -Constructor Summary | -|
|---|---|
SeekBarDialogTask(int progress,
- int max,
- java.lang.String title,
- java.lang.String message)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-dismissDialog()
-
-- Dismiss the Dialog and close Sl4aActivity. |
-
- Dialog |
-getDialog()
-
-- Returns the wrapped Dialog. |
-
- EventFacade |
-getEventFacade()
-
-- |
-
- java.util.concurrent.CountDownLatch |
-getShowLatch()
-
-- Returns the CountDownLatch that is counted down when the dialog is shown. |
-
- void |
-onCreate()
-
-- |
-
- void |
-setEventFacade(EventFacade mEventFacade)
-
-- |
-
- void |
-setNegativeButtonText(java.lang.String text)
-
-- |
-
- void |
-setPositiveButtonText(java.lang.String text)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.future.FutureActivityTask | -
|---|
finish, getActivity, getResult, onActivityResult, onCreateContextMenu, onDestroy, onKeyDown, onNewIntent, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, setActivity, startActivity, startActivityForResult |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SeekBarDialogTask(int progress, - int max, - java.lang.String title, - java.lang.String message)-
| -Method Detail | -
|---|
-public void setPositiveButtonText(java.lang.String text)-
-public void setNegativeButtonText(java.lang.String text)-
-public void onCreate()-
onCreate in class FutureActivityTask<java.lang.Object>-public EventFacade getEventFacade()-
-public void setEventFacade(EventFacade mEventFacade)-
-public Dialog getDialog()-
Dialog.
--
-public void dismissDialog()-
Dialog and close Sl4aActivity.
--
-public java.util.concurrent.CountDownLatch getShowLatch()-
CountDownLatch that is counted down when the dialog is shown.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureActivityTask<java.lang.Object> -
com.googlecode.android_scripting.facade.ui.TimePickerDialogTask -
public class TimePickerDialogTask
-Wrapper class for time picker dialog running in separate thread. -
- -
-
| -Constructor Summary | -|
|---|---|
TimePickerDialogTask(int hour,
- int minute,
- boolean is24hour)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-dismissDialog()
-
-- Dismiss the Dialog and close Sl4aActivity. |
-
- Dialog |
-getDialog()
-
-- Returns the wrapped Dialog. |
-
- EventFacade |
-getEventFacade()
-
-- |
-
- java.util.concurrent.CountDownLatch |
-getShowLatch()
-
-- Returns the CountDownLatch that is counted down when the dialog is shown. |
-
- void |
-onCreate()
-
-- |
-
- void |
-setEventFacade(EventFacade mEventFacade)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.future.FutureActivityTask | -
|---|
finish, getActivity, getResult, onActivityResult, onCreateContextMenu, onDestroy, onKeyDown, onNewIntent, onPause, onPrepareOptionsMenu, onResume, onStart, onStop, setActivity, startActivity, startActivityForResult |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public TimePickerDialogTask(int hour, - int minute, - boolean is24hour)-
| -Method Detail | -
|---|
-public void onCreate()-
onCreate in class FutureActivityTask<java.lang.Object>-public EventFacade getEventFacade()-
-public void setEventFacade(EventFacade mEventFacade)-
-public Dialog getDialog()-
Dialog.
--
-public void dismissDialog()-
Dialog and close Sl4aActivity.
--
-public java.util.concurrent.CountDownLatch getShowLatch()-
CountDownLatch that is counted down when the dialog is shown.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
com.googlecode.android_scripting.facade.ui.UiFacade -
public class UiFacade
-User Interface Facade.
-
- Usage Notes
-
- The UI facade provides access to a selection of dialog boxes for general user interaction, and
- also hosts the webViewShow(java.lang.String, java.lang.Boolean) call which allows interactive use of html pages.
- The general use of the dialog functions is as follows:
-
dialogCreateInput(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
- dialogCreateAlert(java.lang.String, java.lang.String)
- dialogCreateDatePicker(java.lang.Integer, java.lang.Integer, java.lang.Integer)
- dialogCreateHorizontalProgress(java.lang.String, java.lang.String, java.lang.Integer)
- dialogCreatePassword(java.lang.String, java.lang.String)
- dialogCreateSeekBar(java.lang.Integer, java.lang.Integer, java.lang.String, java.lang.String)
- dialogCreateSpinnerProgress(java.lang.String, java.lang.String, java.lang.Integer)
- dialogSetItems(JSONArray) Set a list of items. Used like a menu.
- dialogSetMultiChoiceItems(JSONArray, JSONArray) Set a multichoice list of items.
- dialogSetSingleChoiceItems(JSONArray, java.lang.Integer) Set a single choice list of items.
- dialogSetPositiveButtonText(java.lang.String)
- dialogSetNeutralButtonText(java.lang.String)
- dialogSetNegativeButtonText(java.lang.String)
- dialogSetMaxProgress(java.lang.Integer) Set max progress for your progress bar.
- dialogShow()
- dialogGetResponse(), which will wait until the user performs an action to close
- the dialog box, or
- dialogGetSelectedItems(), which
- returns an array of numeric indices to your list. For a single choice list, there will only ever
- be one of these.
- dialogDismiss() to remove the dialog.
- dialogShow()
- and fullShow(java.lang.String).
- clearOptionsMenu()
- addOptionsMenuItem(java.lang.String, java.lang.String, java.lang.Object, java.lang.String)
- dialogGetInput(java.lang.String, java.lang.String, java.lang.String) and dialogGetPassword(java.lang.String, java.lang.String) are
- convenience functions that create, display and return the relevant dialogs in one call.- -
-
| -Constructor Summary | -|
|---|---|
UiFacade(FacadeManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addContextMenuItem(java.lang.String label,
- java.lang.String event,
- java.lang.Object data)
-
-- Context menus are used primarily with webViewShow(java.lang.String, java.lang.Boolean) |
-
- void |
-addOptionsMenuItem(java.lang.String label,
- java.lang.String event,
- java.lang.Object data,
- java.lang.String iconName)
-
-- Example (python) |
-
- void |
-clearContextMenu()
-
-- |
-
- void |
-clearOptionsMenu()
-
-- |
-
- void |
-dialogCreateAlert(java.lang.String title,
- java.lang.String message)
-
-- Example (python) |
-
- void |
-dialogCreateDatePicker(java.lang.Integer year,
- java.lang.Integer month,
- java.lang.Integer day)
-
-- |
-
- void |
-dialogCreateHorizontalProgress(java.lang.String title,
- java.lang.String message,
- java.lang.Integer max)
-
-- |
-
- void |
-dialogCreateInput(java.lang.String title,
- java.lang.String message,
- java.lang.String text,
- java.lang.String inputType)
-
-- For inputType, see InputTypes. |
-
- java.lang.String |
-dialogCreateNFCBeamMaster(java.lang.String title,
- java.lang.String message,
- java.lang.String inputType)
-
-- |
-
- java.lang.String |
-dialogCreateNFCBeamSlave(java.lang.String title,
- java.lang.String message)
-
-- |
-
- void |
-dialogCreatePassword(java.lang.String title,
- java.lang.String message)
-
-- |
-
- void |
-dialogCreateSeekBar(java.lang.Integer progress,
- java.lang.Integer max,
- java.lang.String title,
- java.lang.String message)
-
-- Will produce "dialog" events on change, containing: - - "progress" - Position chosen, between 0 and max - "which" = "seekbar" - "fromuser" = true/false change is from user input - - Response will contain a "progress" element. |
-
- void |
-dialogCreateSpinnerProgress(java.lang.String title,
- java.lang.String message,
- java.lang.Integer max)
-
-- |
-
- void |
-dialogCreateTimePicker(java.lang.Integer hour,
- java.lang.Integer minute,
- java.lang.Boolean is24hour)
-
-- |
-
- void |
-dialogDismiss()
-
-- |
-
- java.lang.String |
-dialogGetInput(java.lang.String title,
- java.lang.String message,
- java.lang.String text)
-
-- The result is the user's input, or None (null) if cancel was hit. |
-
- java.lang.String |
-dialogGetPassword(java.lang.String title,
- java.lang.String message)
-
-- |
-
- java.lang.Object |
-dialogGetResponse()
-
-- |
-
- java.util.Set<java.lang.Integer> |
-dialogGetSelectedItems()
-
-- |
-
- void |
-dialogSetCurrentProgress(java.lang.Integer current)
-
-- |
-
- void |
-dialogSetItems(JSONArray items)
-
-- This effectively creates list of options. |
-
- void |
-dialogSetMaxProgress(java.lang.Integer max)
-
-- |
-
- void |
-dialogSetMultiChoiceItems(JSONArray items,
- JSONArray selected)
-
-- This creates a list of check boxes. |
-
- void |
-dialogSetNegativeButtonText(java.lang.String text)
-
-- |
-
- void |
-dialogSetNeutralButtonText(java.lang.String text)
-
-- |
-
- void |
-dialogSetPositiveButtonText(java.lang.String text)
-
-- |
-
- void |
-dialogSetSingleChoiceItems(JSONArray items,
- java.lang.Integer selected)
-
-- This creates a list of radio buttons. |
-
- void |
-dialogShow()
-
-- |
-
- void |
-fullDismiss()
-
-- |
-
- JSONArray |
-fullKeyOverride(JSONArray keycodes,
- java.lang.Boolean enable)
-
-- This will override the default behaviour of keys while in the fullscreen mode. |
-
- java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
-fullQuery()
-
-- |
-
- java.util.Map<java.lang.String,java.lang.String> |
-fullQueryDetail(java.lang.String id)
-
-- |
-
- java.lang.String |
-fullSetList(java.lang.String id,
- JSONArray items)
-
-- |
-
- java.lang.String |
-fullSetProperty(java.lang.String id,
- java.lang.String property,
- java.lang.String value)
-
-- |
-
- java.util.List<java.lang.String> |
-fullShow(java.lang.String layout)
-
-- See wiki page for more - detail. |
-
- java.lang.String |
-NFCBeamMessage(java.lang.String content,
- java.lang.String title,
- java.lang.String message)
-
-- |
-
- void |
-onCreateContextMenu(ContextMenu menu,
- View v,
- ContextMenuInfo menuInfo)
-
-- |
-
- boolean |
-onPrepareOptionsMenu(Menu menu)
-
-- |
-
- void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
- void |
-webViewShow(java.lang.String url,
- java.lang.Boolean wait)
-
-- See wiki page for more - detail. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public UiFacade(FacadeManager manager)-
| -Method Detail | -
|---|
-@Rpc(description="Create a text input dialog.") -public void dialogCreateInput(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="Value") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter value:") - java.lang.String message, - @RpcParameter(name="defaultText",description="text to insert into the input box")@RpcOptional - java.lang.String text, - @RpcParameter(name="inputType",description="type of input data, ie number or text")@RpcOptional - java.lang.String inputType) - throws java.lang.InterruptedException-
-
java.lang.InterruptedException-@Rpc(description="Create a password input dialog.") -public void dialogCreatePassword(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="Password") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter password:") - java.lang.String message)-
-@Rpc(description="Queries the user for a text input.") -public java.lang.String dialogGetInput(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="Value") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter value:") - java.lang.String message, - @RpcParameter(name="defaultText",description="text to insert into the input box")@RpcOptional - java.lang.String text) - throws java.lang.InterruptedException-
- import android
- droid=android.Android()
-
- print droid.dialogGetInput("Title","Message","Default").result
-
--
java.lang.InterruptedException-@Rpc(description="Queries the user for a password.") -public java.lang.String dialogGetPassword(@RpcParameter(name="title",description="title of the password box")@RpcDefault(value="Password") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Please enter password:") - java.lang.String message) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Create a qpython beam master.") -public java.lang.String dialogCreateNFCBeamMaster(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="QPython BEAM With NFC") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Input message and Beam") - java.lang.String message, - @RpcParameter(name="inputType",description="type of input data, ie number or text")@RpcOptional - java.lang.String inputType) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Create a qpython beam master to send directory message.") -public java.lang.String NFCBeamMessage(@RpcParameter(name="content",description="message you want to sent")@RpcDefault(value="Message you want to beam") - java.lang.String content, - @RpcParameter(name="title",description="title of the input box")@RpcDefault(value="QPython Beam With NFC") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Beam Message") - java.lang.String message) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Create a qpython beam slave.") -public java.lang.String dialogCreateNFCBeamSlave(@RpcParameter(name="title",description="title of the input box")@RpcDefault(value="QPython Beam With NFC") - java.lang.String title, - @RpcParameter(name="message",description="message to display above the input box")@RpcDefault(value="Wait for beam message") - java.lang.String message) - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Create a spinner progress dialog.") -public void dialogCreateSpinnerProgress(@RpcParameter(name="title")@RpcOptional - java.lang.String title, - @RpcParameter(name="message")@RpcOptional - java.lang.String message, - @RpcParameter(name="maximum progress")@RpcDefault(value="100") - java.lang.Integer max)-
-@Rpc(description="Create a horizontal progress dialog.") -public void dialogCreateHorizontalProgress(@RpcParameter(name="title")@RpcOptional - java.lang.String title, - @RpcParameter(name="message")@RpcOptional - java.lang.String message, - @RpcParameter(name="maximum progress")@RpcDefault(value="100") - java.lang.Integer max)-
-@Rpc(description="Create alert dialog.") -public void dialogCreateAlert(@RpcParameter(name="title")@RpcOptional - java.lang.String title, - @RpcParameter(name="message")@RpcOptional - java.lang.String message)-
- import android
- droid=android.Android()
- droid.dialogCreateAlert("I like swords.","Do you like swords?")
- droid.dialogSetPositiveButtonText("Yes")
- droid.dialogSetNegativeButtonText("No")
- droid.dialogShow()
- response=droid.dialogGetResponse().result
- droid.dialogDismiss()
- if response.has_key("which"):
- result=response["which"]
- if result=="positive":
- print "Yay! I like swords too!"
- elif result=="negative":
- print "Oh. How sad."
- elif response.has_key("canceled"): # Yes, I know it's mispelled.
- print "You can't even make up your mind?"
- else:
- print "Unknown response=",response
-
- print "Done"
-
--
-@Rpc(description="Create seek bar dialog.") -public void dialogCreateSeekBar(@RpcParameter(name="starting value")@RpcDefault(value="50") - java.lang.Integer progress, - @RpcParameter(name="maximum value")@RpcDefault(value="100") - java.lang.Integer max, - @RpcParameter(name="title") - java.lang.String title, - @RpcParameter(name="message") - java.lang.String message)-
-
-@Rpc(description="Create time picker dialog.") -public void dialogCreateTimePicker(@RpcParameter(name="hour")@RpcDefault(value="0") - java.lang.Integer hour, - @RpcParameter(name="minute")@RpcDefault(value="0") - java.lang.Integer minute, - @RpcParameter(name="is24hour",description="Use 24 hour clock")@RpcDefault(value="false") - java.lang.Boolean is24hour)-
-@Rpc(description="Create date picker dialog.") -public void dialogCreateDatePicker(@RpcParameter(name="year")@RpcDefault(value="1970") - java.lang.Integer year, - @RpcParameter(name="month")@RpcDefault(value="1") - java.lang.Integer month, - @RpcParameter(name="day")@RpcDefault(value="1") - java.lang.Integer day)-
-@Rpc(description="Dismiss dialog.") -public void dialogDismiss()-
-@Rpc(description="Show dialog.") -public void dialogShow() - throws java.lang.InterruptedException-
java.lang.InterruptedException-@Rpc(description="Set progress dialog current value.") -public void dialogSetCurrentProgress(@RpcParameter(name="current") - java.lang.Integer current)-
-@Rpc(description="Set progress dialog maximum value.") -public void dialogSetMaxProgress(@RpcParameter(name="max") - java.lang.Integer max)-
-@Rpc(description="Set alert dialog positive button text.") -public void dialogSetPositiveButtonText(@RpcParameter(name="text") - java.lang.String text)-
-@Rpc(description="Set alert dialog button text.") -public void dialogSetNegativeButtonText(@RpcParameter(name="text") - java.lang.String text)-
-@Rpc(description="Set alert dialog button text.") -public void dialogSetNeutralButtonText(@RpcParameter(name="text") - java.lang.String text)-
-@Rpc(description="Set alert dialog list items.") -public void dialogSetItems(@RpcParameter(name="items") - JSONArray items)-
-
-@Rpc(description="Set dialog single choice items and selected item.") -public void dialogSetSingleChoiceItems(@RpcParameter(name="items") - JSONArray items, - @RpcParameter(name="selected",description="selected item index")@RpcDefault(value="0") - java.lang.Integer selected)-
dialogGetSelectedItems() to find out what was
- selected.
--
-@Rpc(description="Set dialog multiple choice items and selection.") -public void dialogSetMultiChoiceItems(@RpcParameter(name="items") - JSONArray items, - @RpcParameter(name="selected",description="list of selected items")@RpcOptional - JSONArray selected) - throws JSONException-
dialogGetSelectedItems() to find out what was
- selected.
--
JSONException-@Rpc(description="Returns dialog response.") -public java.lang.Object dialogGetResponse()-
-@Rpc(description="This method provides list of items user selected.", - returns="Selected items") -public java.util.Set<java.lang.Integer> dialogGetSelectedItems()-
-@Rpc(description="Display a WebView with the given URL.") -public void webViewShow(@RpcParameter(name="url") - java.lang.String url, - @RpcParameter(name="wait",description="block until the user exits the WebView")@RpcOptional - java.lang.Boolean wait) - throws java.io.IOException-
-
java.io.IOException-@Rpc(description="Adds a new item to context menu.") -public void addContextMenuItem(@RpcParameter(name="label",description="label for this menu item") - java.lang.String label, - @RpcParameter(name="event",description="event that will be generated on menu item click") - java.lang.String event, - @RpcParameter(name="eventData")@RpcOptional - java.lang.Object data)-
webViewShow(java.lang.String, java.lang.Boolean)
--
-@Rpc(description="Adds a new item to options menu.") -public void addOptionsMenuItem(@RpcParameter(name="label",description="label for this menu item") - java.lang.String label, - @RpcParameter(name="event",description="event that will be generated on menu item click") - java.lang.String event, - @RpcParameter(name="eventData")@RpcOptional - java.lang.Object data, - @RpcParameter(name="iconName",description="Android system menu icon, see http://developer.android.com/reference/android/R.drawable.html")@RpcOptional - java.lang.String iconName)-
- import android
- droid=android.Android()
-
- droid.addOptionsMenuItem("Silly","silly",None,"star_on")
- droid.addOptionsMenuItem("Sensible","sensible","I bet.","star_off")
- droid.addOptionsMenuItem("Off","off",None,"ic_menu_revert")
-
- print "Hit menu to see extra options."
- print "Will timeout in 10 seconds if you hit nothing."
-
- while True: # Wait for events from the menu.
- response=droid.eventWait(10000).result
- if response==None:
- break
- print response
- if response["name"]=="off":
- break
- print "And done."
-
-
--
-@Rpc(description="Removes all items previously added to context menu.") -public void clearContextMenu()-
-@Rpc(description="Removes all items previously added to options menu.") -public void clearOptionsMenu()-
-public void onCreateContextMenu(ContextMenu menu, - View v, - ContextMenuInfo menuInfo)-
-public boolean onPrepareOptionsMenu(Menu menu)-
-@Rpc(description="Show Full Screen.") -public java.util.List<java.lang.String> fullShow(@RpcParameter(name="layout",description="String containing View layout") - java.lang.String layout) - throws java.lang.InterruptedException-
-
java.lang.InterruptedException-@Rpc(description="Dismiss Full Screen.") -public void fullDismiss()-
-@Rpc(description="Get Fullscreen Properties") -public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> fullQuery()-
-@Rpc(description="Get fullscreen properties for a specific widget") -public java.util.Map<java.lang.String,java.lang.String> fullQueryDetail(@RpcParameter(name="id",description="id of layout widget") - java.lang.String id)-
-@Rpc(description="Set fullscreen widget property") -public java.lang.String fullSetProperty(@RpcParameter(name="id",description="id of layout widget") - java.lang.String id, - @RpcParameter(name="property",description="name of property to set") - java.lang.String property, - @RpcParameter(name="value",description="value to set property to") - java.lang.String value)-
-@Rpc(description="Attach a list to a fullscreen widget") -public java.lang.String fullSetList(@RpcParameter(name="id",description="id of layout widget") - java.lang.String id, - @RpcParameter(name="list",description="List to set") - JSONArray items)-
-@Rpc(description="Override default key actions") -public JSONArray fullKeyOverride(@RpcParameter(name="keycodes",description="List of keycodes to override") - JSONArray keycodes, - @RpcParameter(name="enable",description="Turn overriding or off")@RpcDefault(value="true") - java.lang.Boolean enable) - throws JSONException-
- droid.fullKeyOverride([24,25],True) -- - This will override the default behaviour of the volume keys (codes 24 and 25) so that they do - not actually adjust the volume.
-
JSONException-public void shutdown()-
RpcReceiver-
shutdown in class RpcReceiver
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.facade.ui.ViewInflater -
public class ViewInflater
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-ANDROID
-
-- |
-
-static int |
-BASESEQ
-
-- |
-
-static java.util.Map<java.lang.String,java.lang.String> |
-mColorNames
-
-- |
-
-static java.util.Map<java.lang.String,java.lang.Integer> |
-mRelative
-
-- |
-
| -Constructor Summary | -|
|---|---|
ViewInflater()
-
-- |
-|
| -Method Summary | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- java.lang.String |
-camelCase(java.lang.String s)
-
-- -
-ANDROID--public static final java.lang.String ANDROID-
- - -BASESEQ--public static final int BASESEQ-
- - -mColorNames--public static final java.util.Map<java.lang.String,java.lang.String> mColorNames-
- - -mRelative--public static final java.util.Map<java.lang.String,java.lang.Integer> mRelative-
-ViewInflater--public ViewInflater()-
-getFactory--public static XmlPullParserFactory getFactory() - throws XmlPullParserException-
- - -getXml--public static XmlPullParser getXml() - throws XmlPullParserException-
- - -getXml--public static XmlPullParser getXml(java.io.InputStream is) - throws XmlPullParserException-
- - -getXml--public static XmlPullParser getXml(java.io.Reader ir) - throws XmlPullParserException-
- - -inflate--public View inflate(Activity context, - XmlPullParser xml) - throws XmlPullParserException, - java.io.IOException, - java.lang.IllegalArgumentException, - java.lang.IllegalAccessException, - java.lang.reflect.InvocationTargetException-
- - -setClickListener--public void setClickListener(View v, - android.view.View.OnClickListener listener, - OnItemClickListener itemListener)-
- - -setProperty--public void setProperty(View view, - java.lang.String attr, - java.lang.String value)-
- - -camelCase--
- - -getIdList--public java.util.Map<java.lang.String,java.lang.Integer> getIdList()-
- - -getErrors--public java.util.List<java.lang.String> getErrors()-
- - -getIdName--public java.lang.String getIdName(int id)-
- - -getId--public int getId(java.lang.String name)-
- - -getViewAsMap--public java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getViewAsMap(View v)-
- - -getViewInfo--public java.util.Map<java.lang.String,java.lang.String> getViewInfo(View v)-
- - -getInputTypes--public static java.util.Map<java.lang.String,java.lang.Integer> getInputTypes()-
- - -setIdList--public void setIdList(java.lang.Class<?> idClass)-
- - -setListAdapter--public void setListAdapter(View view, - JSONArray items)-
- - - - - -
- - - diff --git a/doc/com/googlecode/android_scripting/facade/ui/package-frame.html b/doc/com/googlecode/android_scripting/facade/ui/package-frame.html deleted file mode 100644 index afd1e398..00000000 --- a/doc/com/googlecode/android_scripting/facade/ui/package-frame.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - -
- - - - - -
- -Package com.googlecode.android_scripting.facade.ui -- -
-
- - - - - -
- - - diff --git a/doc/com/googlecode/android_scripting/facade/ui/package-tree.html b/doc/com/googlecode/android_scripting/facade/ui/package-tree.html deleted file mode 100644 index cf29fb6d..00000000 --- a/doc/com/googlecode/android_scripting/facade/ui/package-tree.html +++ /dev/null @@ -1,157 +0,0 @@ - - - - - - - - - - - -
- -Hierarchy For Package com.googlecode.android_scripting.facade.ui --
- -Class Hierarchy --
- - - - - -
- - - diff --git a/doc/com/googlecode/android_scripting/future/FutureActivityTask.html b/doc/com/googlecode/android_scripting/future/FutureActivityTask.html deleted file mode 100644 index 0f425873..00000000 --- a/doc/com/googlecode/android_scripting/future/FutureActivityTask.html +++ /dev/null @@ -1,582 +0,0 @@ - - - - - - - - - - - -
- -
-
-com.googlecode.android_scripting.future
-
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -Constructor Summary | -|
|---|---|
FutureActivityTask()
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-finish()
-
-- |
-
- Activity |
-getActivity()
-
-- |
-
- T |
-getResult()
-
-- |
-
- void |
-onActivityResult(int requestCode,
- int resultCode,
- Intent data)
-
-- |
-
- void |
-onCreate()
-
-- |
-
- void |
-onCreateContextMenu(ContextMenu menu,
- View v,
- ContextMenuInfo menuInfo)
-
-- |
-
- void |
-onDestroy()
-
-- |
-
- boolean |
-onKeyDown(int keyCode,
- KeyEvent event)
-
-- |
-
- void |
-onNewIntent(Intent intent)
-
-- |
-
- void |
-onPause()
-
-- |
-
- boolean |
-onPrepareOptionsMenu(Menu menu)
-
-- |
-
- void |
-onResume()
-
-- |
-
- void |
-onStart()
-
-- |
-
- void |
-onStop()
-
-- |
-
- void |
-setActivity(Activity activity)
-
-- |
-
- void |
-startActivity(Intent intent)
-
-- |
-
- void |
-startActivityForResult(Intent intent,
- int requestCode)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FutureActivityTask()-
| -Method Detail | -
|---|
-public void setActivity(Activity activity)-
-public Activity getActivity()-
-public void onCreate()-
-public void onStart()-
-public void onResume()-
-public void onPause()-
-public void onStop()-
-public void onDestroy()-
-public void onNewIntent(Intent intent)-
-public void onCreateContextMenu(ContextMenu menu, - View v, - ContextMenuInfo menuInfo)-
-public boolean onPrepareOptionsMenu(Menu menu)-
-public void onActivityResult(int requestCode, - int resultCode, - Intent data)-
-public T getResult() - throws java.lang.InterruptedException-
java.lang.InterruptedException-public void finish()-
-public void startActivity(Intent intent)-
-public void startActivityForResult(Intent intent, - int requestCode)-
-public boolean onKeyDown(int keyCode, - KeyEvent event)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureResult<T> -
public class FutureResult<T>
-FutureResult represents an eventual execution result for asynchronous operations. -
- -
-
| -Constructor Summary | -|
|---|---|
FutureResult()
-
-- |
-|
| -Method Summary | -|
|---|---|
- boolean |
-cancel(boolean mayInterruptIfRunning)
-
-- |
-
- T |
-get()
-
-- |
-
- T |
-get(long timeout,
- java.util.concurrent.TimeUnit unit)
-
-- |
-
- boolean |
-isCancelled()
-
-- |
-
- boolean |
-isDone()
-
-- |
-
- void |
-set(T result)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public FutureResult()-
| -Method Detail | -
|---|
-public void set(T result)-
-public boolean cancel(boolean mayInterruptIfRunning)-
cancel in interface java.util.concurrent.Future<T>-public T get() - throws java.lang.InterruptedException-
get in interface java.util.concurrent.Future<T>java.lang.InterruptedException-public T get(long timeout, - java.util.concurrent.TimeUnit unit) - throws java.lang.InterruptedException-
get in interface java.util.concurrent.Future<T>java.lang.InterruptedException-public boolean isCancelled()-
isCancelled in interface java.util.concurrent.Future<T>-public boolean isDone()-
isDone in interface java.util.concurrent.Future<T>
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -FutureActivityTask - -FutureResult |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| FutureActivityTask<T> | -Encapsulates an Activity and a FutureObject. |
-
| FutureResult<T> | -FutureResult represents an eventual execution result for asynchronous operations. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.ExternalClassLoader -
public class ExternalClassLoader
-
| -Constructor Summary | -|
|---|---|
ExternalClassLoader()
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.Object |
-load(java.util.Collection<java.lang.String> dexPaths,
- java.util.Collection<java.lang.String> nativePaths,
- java.lang.String className)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ExternalClassLoader()-
| -Method Detail | -
|---|
-public java.lang.Object load(java.util.Collection<java.lang.String> dexPaths, - java.util.Collection<java.lang.String> nativePaths, - java.lang.String className) - throws java.lang.Exception-
java.lang.Exception
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface InProcessInterpreter
-
| -Method Summary | -|
|---|---|
- java.io.FileDescriptor |
-getStdIn()
-
-- |
-
- java.io.FileDescriptor |
-getStdOut()
-
-- |
-
- boolean |
-runInteractive()
-
-- |
-
- void |
-runScript(java.lang.String filename)
-
-- |
-
| -Method Detail | -
|---|
-java.io.FileDescriptor getStdOut()-
-java.io.FileDescriptor getStdIn()-
-boolean runInteractive()-
-void runScript(java.lang.String filename)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.Interpreter -
public class Interpreter
-Combines all the execution-related specs of a particular interpreter installed in the system. - This class is instantiated through a map received from a concrete InterpreterProfider. -
- -
-
| -Field Summary | -
|---|
| Fields inherited from interface com.googlecode.android_scripting.interpreter.InterpreterPropertyNames | -
|---|
BINARY, EXTENSION, HAS_INTERACTIVE_MODE, INTERACTIVE_COMMAND, NAME, NICE_NAME, SCRIPT_COMMAND |
-
| -Constructor Summary | -|
|---|---|
Interpreter()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static Interpreter |
-buildFromMaps(java.util.Map<java.lang.String,java.lang.String> data,
- java.util.Map<java.lang.String,java.lang.String> environment_variables,
- java.util.Map<java.lang.String,java.lang.String> arguments)
-
-- |
-
- java.io.File |
-getBinary()
-
-- |
-
- java.lang.String |
-getContentTemplate()
-
-- |
-
- java.util.Map<java.lang.String,java.lang.String> |
-getEnvironmentVariables()
-
-- |
-
- java.lang.String |
-getExtension()
-
-- |
-
- java.lang.String |
-getInteractiveCommand()
-
-- |
-
- Language |
-getLanguage()
-
-- |
-
- java.lang.String |
-getName()
-
-- |
-
- java.lang.String |
-getNiceName()
-
-- |
-
- java.lang.String |
-getRpcText(java.lang.String content,
- MethodDescriptor rpc,
- java.lang.String[] values)
-
-- |
-
- java.lang.String |
-getScriptCommand()
-
-- |
-
- boolean |
-hasInteractiveMode()
-
-- |
-
- boolean |
-isInstalled()
-
-- |
-
- boolean |
-isUninstallable()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Interpreter()-
| -Method Detail | -
|---|
-public static Interpreter buildFromMaps(java.util.Map<java.lang.String,java.lang.String> data, - java.util.Map<java.lang.String,java.lang.String> environment_variables, - java.util.Map<java.lang.String,java.lang.String> arguments)-
-public java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables()-
-public java.lang.String getScriptCommand()-
-public java.lang.String getInteractiveCommand()-
-public java.io.File getBinary()-
-public boolean hasInteractiveMode()-
-public java.lang.String getExtension()-
-public java.lang.String getName()-
-public java.lang.String getNiceName()-
-public java.lang.String getContentTemplate()-
-public Language getLanguage()-
-public java.lang.String getRpcText(java.lang.String content, - MethodDescriptor rpc, - java.lang.String[] values)-
-public boolean isInstalled()-
-public boolean isUninstallable()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface InterpreterConfiguration.ConfigurationObserver
-
| -Method Summary | -|
|---|---|
- void |
-onConfigurationChanged()
-
-- |
-
| -Method Detail | -
|---|
-void onConfigurationChanged()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.InterpreterConfiguration -
public class InterpreterConfiguration
-Manages and provides access to the set of available interpreters. -
- -
-
| -Nested Class Summary | -|
|---|---|
-static interface |
-InterpreterConfiguration.ConfigurationObserver
-
-- |
-
| -Constructor Summary | -|
|---|---|
InterpreterConfiguration(Context context)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.util.List<Interpreter> |
-getInstalledInterpreters()
-
-- Returns the list of all installed interpreters. |
-
- java.util.List<Interpreter> |
-getInteractiveInterpreters()
-
-- Returns the list of interpreters that support interactive mode execution. |
-
- Interpreter |
-getInterpreterByName(java.lang.String interpreterName)
-
-- Returns the interpreter matching the provided name or null if no interpreter was found. |
-
- Interpreter |
-getInterpreterForScript(java.lang.String scriptName)
-
-- Returns the correct interpreter for the provided script name based on the script's extension or - null if no interpreter was found. |
-
- java.util.List<? extends Interpreter> |
-getSupportedInterpreters()
-
-- Returns the list of all known interpreters. |
-
- boolean |
-isDiscoveryComplete()
-
-- |
-
- void |
-registerObserver(InterpreterConfiguration.ConfigurationObserver observer)
-
-- |
-
- void |
-startDiscovering()
-
-- |
-
- void |
-startDiscovering(java.lang.String mime)
-
-- |
-
- void |
-unregisterObserver(InterpreterConfiguration.ConfigurationObserver observer)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public InterpreterConfiguration(Context context)-
| -Method Detail | -
|---|
-public void startDiscovering()-
-public void startDiscovering(java.lang.String mime)-
-public boolean isDiscoveryComplete()-
-public void registerObserver(InterpreterConfiguration.ConfigurationObserver observer)-
-public void unregisterObserver(InterpreterConfiguration.ConfigurationObserver observer)-
-public java.util.List<? extends Interpreter> getSupportedInterpreters()-
-
-public java.util.List<Interpreter> getInstalledInterpreters()-
-
-public java.util.List<Interpreter> getInteractiveInterpreters()-
-
-public Interpreter getInterpreterByName(java.lang.String interpreterName)-
-
-public Interpreter getInterpreterForScript(java.lang.String scriptName)-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface InterpreterConstants
-A collection of constants required for installation/removal of an interpreter. -
- -
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-ACTION_DISCOVER_INTERPRETERS
-
-- |
-
-static java.lang.String |
-ACTION_INTERPRETER_ADDED
-
-- |
-
-static java.lang.String |
-ACTION_INTERPRETER_REMOVED
-
-- |
-
-static java.lang.String |
-INSTALLED_PREFERENCE_KEY
-
-- |
-
-static java.lang.String |
-INTERPRETER_EXTRAS_ROOT
-
-- |
-
-static java.lang.String |
-MIME
-
-- |
-
-static java.lang.String |
-PROVIDER_ARGUMENTS
-
-- |
-
-static java.lang.String |
-PROVIDER_ENVIRONMENT_VARIABLES
-
-- |
-
-static java.lang.String |
-PROVIDER_PROPERTIES
-
-- |
-
-static java.lang.String |
-SCRIPTS_ROOT
-
-- |
-
-static java.lang.String |
-SDCARD_ROOT
-
-- |
-
-static java.lang.String |
-SDCARD_SL4A_DOC
-
-- |
-
-static java.lang.String |
-SDCARD_SL4A_ROOT
-
-- |
-
-static java.lang.String |
-SL4A_DALVIK_CACHE_ROOT
-
-- |
-
| -Field Detail | -
|---|
-static final java.lang.String SDCARD_ROOT-
-static final java.lang.String SDCARD_SL4A_ROOT-
-static final java.lang.String SCRIPTS_ROOT-
-static final java.lang.String SDCARD_SL4A_DOC-
-static final java.lang.String SL4A_DALVIK_CACHE_ROOT-
-static final java.lang.String INTERPRETER_EXTRAS_ROOT-
-static final java.lang.String ACTION_DISCOVER_INTERPRETERS-
-static final java.lang.String ACTION_INTERPRETER_ADDED-
-static final java.lang.String ACTION_INTERPRETER_REMOVED-
-static final java.lang.String PROVIDER_PROPERTIES-
-static final java.lang.String PROVIDER_ENVIRONMENT_VARIABLES-
-static final java.lang.String PROVIDER_ARGUMENTS-
-static final java.lang.String INSTALLED_PREFERENCE_KEY-
-static final java.lang.String MIME-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface InterpreterDescriptor
-Provides interpreter-specific info for execution/installation/removal purposes. -
- -
-
| -Method Summary | -|
|---|---|
- java.util.List<java.lang.String> |
-getArguments(Context context)
-
-- Returns an array of command line arguments required to execute the interpreter (it's essential - that the order in the array is consistent with order of arguments in the command line). |
-
- java.io.File |
-getBinary(Context context)
-
-- Returns the binary as a File object. |
-
- java.util.Map<java.lang.String,java.lang.String> |
-getEnvironmentVariables(Context context)
-
-- Should return a map of environment variables names and their values (or null if interpreter - does not require any environment variables). |
-
- java.lang.String |
-getExtension()
-
-- Returns supported script-file extension. |
-
- java.lang.String |
-getExtrasArchiveName()
-
-- Returns file name of the extras archive. |
-
- java.lang.String |
-getExtrasArchiveUrl()
-
-- Returns URL location of the extras archive. |
-
- java.lang.String |
-getInteractiveCommand(Context context)
-
-- Returns execution parameters in case when script name is not provided (when interpreter is - started in a shell mode); |
-
- java.lang.String |
-getInterpreterArchiveName()
-
-- Returns file name of the interpreter archive. |
-
- java.lang.String |
-getInterpreterArchiveUrl()
-
-- Returns URL location of the interpreter archive. |
-
- java.lang.String |
-getName()
-
-- Returns unique name of the interpreter. |
-
- java.lang.String |
-getNiceName()
-
-- Returns display name of the interpreter. |
-
- java.lang.String |
-getScriptCommand(Context context)
-
-- Returns command line arguments to execute a with a given script (format string with one - argument). |
-
- java.lang.String |
-getScriptsArchiveName()
-
-- Returns file name of the scripts archive. |
-
- java.lang.String |
-getScriptsArchiveUrl()
-
-- Returns URL location of the scripts archive. |
-
- int |
-getVersion()
-
-- Returns interpreter version number. |
-
- boolean |
-hasExtrasArchive()
-
-- Returns true if interpreter has an extras archive. |
-
- boolean |
-hasInteractiveMode()
-
-- Returns true if interpreter can be executed in interactive mode. |
-
- boolean |
-hasInterpreterArchive()
-
-- Returns true if interpreter has an archive. |
-
- boolean |
-hasScriptsArchive()
-
-- Returns true if interpreter comes with a scripts archive. |
-
| -Method Detail | -
|---|
-java.lang.String getName()-
-
-java.lang.String getNiceName()-
-
-java.lang.String getExtension()-
-
-int getVersion()-
-
-java.io.File getBinary(Context context)-
Context and
- is provided to find the interpreter installation directory.
--
-java.lang.String getInteractiveCommand(Context context)-
-
-java.lang.String getScriptCommand(Context context)-
-
-java.util.List<java.lang.String> getArguments(Context context)-
-
-java.util.Map<java.lang.String,java.lang.String> getEnvironmentVariables(Context context)-
-
-boolean hasInterpreterArchive()-
-
-boolean hasExtrasArchive()-
-
-boolean hasScriptsArchive()-
-
-java.lang.String getInterpreterArchiveName()-
-
-java.lang.String getExtrasArchiveName()-
-
-java.lang.String getScriptsArchiveName()-
-
-java.lang.String getInterpreterArchiveUrl()-
-
-java.lang.String getScriptsArchiveUrl()-
-
-java.lang.String getExtrasArchiveUrl()-
-
-boolean hasInteractiveMode()-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.Process -
com.googlecode.android_scripting.interpreter.InterpreterProcess -
public class InterpreterProcess
-This is a skeletal implementation of an interpreter process. -
- -
-
| -Constructor Summary | -|
|---|---|
InterpreterProcess(Interpreter interpreter,
- AndroidProxy proxy)
-
-- Creates a new InterpreterProcess. |
-|
| -Method Summary | -|
|---|---|
- java.net.InetSocketAddress |
-getAddress()
-
-- |
-
- java.lang.String |
-getHost()
-
-- |
-
- Interpreter |
-getInterpreter()
-
-- |
-
- int |
-getPort()
-
-- |
-
- RpcReceiverManagerFactory |
-getRpcReceiverManagerFactory()
-
-- |
-
- java.lang.String |
-getSecret()
-
-- |
-
- java.lang.String |
-getWorkingDirectory()
-
-- |
-
- void |
-kill()
-
-- |
-
- void |
-start(java.lang.Runnable shutdownHook)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.Process | -
|---|
addAllArguments, addArgument, getErr, getFd, getIn, getLogFile, getName, getOut, getPid, getUptime, isAlive, putAllEnvironmentVariables, putEnvironmentVariable, setBinary, setName |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public InterpreterProcess(Interpreter interpreter, - AndroidProxy proxy)-
InterpreterProcess.
--
launchScript - the absolute path to a script that should be launched with the interpreterport - the port that the AndroidProxy is listening on| -Method Detail | -
|---|
-public Interpreter getInterpreter()-
-public java.lang.String getHost()-
-public int getPort()-
-public java.net.InetSocketAddress getAddress()-
-public java.lang.String getSecret()-
-public RpcReceiverManagerFactory getRpcReceiverManagerFactory()-
-public void start(java.lang.Runnable shutdownHook)- -
-public void kill()- -
-public java.lang.String getWorkingDirectory()-
getWorkingDirectory in class Process
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface InterpreterPropertyNames
-A collection of String keys for querying an InterpreterProvider.
-
- -
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-BINARY
-
-- Absolute path of the interpreter executable. |
-
-static java.lang.String |
-EXTENSION
-
-- Supported script file extension. |
-
-static java.lang.String |
-HAS_INTERACTIVE_MODE
-
-- Interpreter interactive mode flag. |
-
-static java.lang.String |
-INTERACTIVE_COMMAND
-
-- Final argument to interpreter binary when running the interpreter interactively. |
-
-static java.lang.String |
-NAME
-
-- Unique name of the interpreter. |
-
-static java.lang.String |
-NICE_NAME
-
-- Display name of the interpreter. |
-
-static java.lang.String |
-SCRIPT_COMMAND
-
-- Final argument to interpreter binary when running a script. |
-
| -Field Detail | -
|---|
-static final java.lang.String NAME-
-
-static final java.lang.String NICE_NAME-
-
-static final java.lang.String EXTENSION-
-
-static final java.lang.String BINARY-
-
-static final java.lang.String INTERACTIVE_COMMAND-
-
-static final java.lang.String SCRIPT_COMMAND-
-
-static final java.lang.String HAS_INTERACTIVE_MODE-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.InterpreterUtils -
public class InterpreterUtils
-
| -Method Summary | -|
|---|---|
-static java.io.File |
-getInterpreterRoot(Context context)
-
-- |
-
-static java.io.File |
-getInterpreterRoot(Context context,
- java.lang.String interpreterName)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static java.io.File getInterpreterRoot(Context context)-
-public static java.io.File getInterpreterRoot(Context context, - java.lang.String interpreterName)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.MyInterpreter -
public class MyInterpreter
-Wrapper for the Interpreter class. - - Workaround for the default access modifier on the getArguments() method - in the Interpreter class -
- -
-
| -Constructor Summary | -|
|---|---|
MyInterpreter(Interpreter interpreter)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.util.List<java.lang.String> |
-getArguments()
-
-- |
-
- Interpreter |
-getInterpreter()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public MyInterpreter(Interpreter interpreter)-
| -Method Detail | -
|---|
-public Interpreter getInterpreter()-
-public java.util.List<java.lang.String> getArguments()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.future.FutureActivityTask<java.lang.Void> -
com.googlecode.android_scripting.interpreter.html.HtmlActivityTask -
public class HtmlActivityTask
-
| -Constructor Summary | -|
|---|---|
HtmlActivityTask(RpcReceiverManager manager,
- java.lang.String androidJsSource,
- java.lang.String jsonSource,
- java.lang.String url,
- boolean destroyManager)
-
-- |
-|
| -Method Summary | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- RpcReceiverManager |
-getRpcReceiverManager()
-
-- |
-||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- void |
-onCreate()
-
-- -
-HtmlActivityTask--public HtmlActivityTask(RpcReceiverManager manager, - java.lang.String androidJsSource, - java.lang.String jsonSource, - java.lang.String url, - boolean destroyManager)-
-getRpcReceiverManager--public RpcReceiverManager getRpcReceiverManager()-
- - -onCreate--
- - -onDestroy--public void onDestroy()-
- - -shutdown--public static void shutdown()-
- - -onCreateContextMenu--public void onCreateContextMenu(ContextMenu menu, - View v, - ContextMenuInfo menuInfo)-
- - -onPrepareOptionsMenu--public boolean onPrepareOptionsMenu(Menu menu)-
- - - - - -
- - - diff --git a/doc/com/googlecode/android_scripting/interpreter/html/HtmlInterpreter.html b/doc/com/googlecode/android_scripting/interpreter/html/HtmlInterpreter.html deleted file mode 100644 index 0f49d441..00000000 --- a/doc/com/googlecode/android_scripting/interpreter/html/HtmlInterpreter.html +++ /dev/null @@ -1,526 +0,0 @@ - - - - - - - - - - - -
- -
-
-com.googlecode.android_scripting.interpreter.html
-
- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| -Field Summary | -|
|---|---|
-static java.lang.String |
-ANDROID_JS_FILE
-
-- |
-
-static java.lang.String |
-HTML
-
-- |
-
-static java.lang.String |
-HTML_EXTENSION
-
-- |
-
-static java.lang.String |
-HTML_NICE_NAME
-
-- |
-
-static java.lang.String |
-JSON_FILE
-
-- |
-
| Fields inherited from interface com.googlecode.android_scripting.interpreter.InterpreterPropertyNames | -
|---|
BINARY, EXTENSION, HAS_INTERACTIVE_MODE, INTERACTIVE_COMMAND, NAME, NICE_NAME, SCRIPT_COMMAND |
-
| -Constructor Summary | -|
|---|---|
HtmlInterpreter(Context context)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-getAndroidJsSource()
-
-- |
-
- java.lang.String |
-getJsonSource()
-
-- |
-
- int |
-getVersion()
-
-- |
-
- boolean |
-hasExtrasArchive()
-
-- |
-
- boolean |
-hasInterpreterArchive()
-
-- |
-
- boolean |
-hasScriptsArchive()
-
-- |
-
- boolean |
-isInstalled()
-
-- |
-
- boolean |
-isUninstallable()
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.interpreter.Interpreter | -
|---|
buildFromMaps, getBinary, getContentTemplate, getEnvironmentVariables, getExtension, getInteractiveCommand, getLanguage, getName, getNiceName, getRpcText, getScriptCommand, hasInteractiveMode |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static final java.lang.String HTML-
-public static final java.lang.String HTML_EXTENSION-
-public static final java.lang.String JSON_FILE-
-public static final java.lang.String ANDROID_JS_FILE-
-public static final java.lang.String HTML_NICE_NAME-
| -Constructor Detail | -
|---|
-public HtmlInterpreter(Context context) - throws java.io.IOException-
java.io.IOException| -Method Detail | -
|---|
-public boolean hasInterpreterArchive()-
-public boolean hasExtrasArchive()-
-public boolean hasScriptsArchive()-
-public int getVersion()-
-public boolean isUninstallable()-
isUninstallable in class Interpreter-public boolean isInstalled()-
isInstalled in class Interpreter-public java.lang.String getJsonSource()-
-public java.lang.String getAndroidJsSource()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -HtmlActivityTask - -HtmlInterpreter |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| HtmlActivityTask | -- |
| HtmlInterpreter | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
|
-Interfaces
-
- -InProcessInterpreter - -InterpreterConfiguration.ConfigurationObserver - -InterpreterConstants - -InterpreterDescriptor - -InterpreterPropertyNames |
-
|
-Classes
-
- -ExternalClassLoader - -Interpreter - -InterpreterConfiguration - -InterpreterProcess - -InterpreterUtils - -MyInterpreter |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| InProcessInterpreter | -- |
| InterpreterConfiguration.ConfigurationObserver | -- |
| InterpreterConstants | -A collection of constants required for installation/removal of an interpreter. | -
| InterpreterDescriptor | -Provides interpreter-specific info for execution/installation/removal purposes. | -
| InterpreterPropertyNames | -A collection of String keys for querying an InterpreterProvider. |
-
- -
| -Class Summary | -|
|---|---|
| ExternalClassLoader | -- |
| Interpreter | -Combines all the execution-related specs of a particular interpreter installed in the system. | -
| InterpreterConfiguration | -Manages and provides access to the set of available interpreters. | -
| InterpreterProcess | -This is a skeletal implementation of an interpreter process. | -
| InterpreterUtils | -- |
| MyInterpreter | -Wrapper for the Interpreter class. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.interpreter.Interpreter -
com.googlecode.android_scripting.interpreter.shell.ShellInterpreter -
public class ShellInterpreter
-Represents the shell. -
- -
-
| -Field Summary | -
|---|
| Fields inherited from interface com.googlecode.android_scripting.interpreter.InterpreterPropertyNames | -
|---|
BINARY, EXTENSION, HAS_INTERACTIVE_MODE, INTERACTIVE_COMMAND, NAME, NICE_NAME, SCRIPT_COMMAND |
-
| -Constructor Summary | -|
|---|---|
ShellInterpreter()
-
-- |
-|
| -Method Summary | -|
|---|---|
- int |
-getVersion()
-
-- |
-
- boolean |
-hasExtrasArchive()
-
-- |
-
- boolean |
-hasInterpreterArchive()
-
-- |
-
- boolean |
-hasScriptsArchive()
-
-- |
-
- boolean |
-isInstalled()
-
-- |
-
- boolean |
-isUninstallable()
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.interpreter.Interpreter | -
|---|
buildFromMaps, getBinary, getContentTemplate, getEnvironmentVariables, getExtension, getInteractiveCommand, getLanguage, getName, getNiceName, getRpcText, getScriptCommand, hasInteractiveMode |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ShellInterpreter()-
| -Method Detail | -
|---|
-public boolean hasInterpreterArchive()-
-public boolean hasExtrasArchive()-
-public boolean hasScriptsArchive()-
-public int getVersion()-
-public boolean isUninstallable()-
isUninstallable in class Interpreter-public boolean isInstalled()-
isInstalled in class Interpreter
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -ShellInterpreter |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| ShellInterpreter | -Represents the shell. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.JsonBuilder -
public class JsonBuilder
-
| -Method Summary | -|
|---|---|
-static java.lang.Object |
-build(java.lang.Object data)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static java.lang.Object build(java.lang.Object data) - throws JSONException-
JSONException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.JsonRpcResult -
public class JsonRpcResult
-Represents a JSON RPC result. -
- -
-
http://json-rpc.org/wiki/specification| -Method Summary | -|
|---|---|
-static JSONObject |
-empty(int id)
-
-- |
-
-static JSONObject |
-error(int id,
- java.lang.Throwable t)
-
-- |
-
-static JSONObject |
-result(int id,
- java.lang.Object data)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Method Detail | -
|---|
-public static JSONObject empty(int id) - throws JSONException-
JSONException-public static JSONObject result(int id, - java.lang.Object data) - throws JSONException-
JSONException-public static JSONObject error(int id, - java.lang.Throwable t) - throws JSONException-
JSONException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.SimpleServer -
com.googlecode.android_scripting.jsonrpc.JsonRpcServer -
public class JsonRpcServer
-A JSON RPC server that forwards RPC calls to a specified receiver object. -
- -
-
| -Nested Class Summary | -
|---|
| Nested classes/interfaces inherited from class com.googlecode.android_scripting.SimpleServer | -
|---|
SimpleServer.SimpleServerObserver |
-
| -Constructor Summary | -|
|---|---|
JsonRpcServer(RpcReceiverManagerFactory managerFactory,
- java.lang.String handshake)
-
-- Construct a JsonRpcServer connected to the provided RpcReceiverManager. |
-|
| -Method Summary | -|
|---|---|
- void |
-shutdown()
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.SimpleServer | -
|---|
addObserver, getNumberOfConnections, getPublicInetAddress, removeObserver, startAllInterfaces, startLocal, startPublic |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public JsonRpcServer(RpcReceiverManagerFactory managerFactory, - java.lang.String handshake)-
JsonRpcServer connected to the provided RpcReceiverManager.
--
managerFactory - the RpcReceiverManager to register with the serverhandshake - the secret handshake required for authorization to use this server| -Method Detail | -
|---|
-public void shutdown()-
shutdown in class SimpleServer
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiver -
public abstract class RpcReceiver
-
| -Constructor Summary | -|
|---|---|
RpcReceiver(RpcReceiverManager manager)
-
-- |
-|
| -Method Summary | -|
|---|---|
-abstract void |
-shutdown()
-
-- Invoked when the receiver is shut down. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public RpcReceiver(RpcReceiverManager manager)-
| -Method Detail | -
|---|
-public abstract void shutdown()-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.jsonrpc.RpcReceiverManager -
public abstract class RpcReceiverManager
-
| -Constructor Summary | -|
|---|---|
RpcReceiverManager(java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)
-
-- |
-|
| -Method Summary | -||
|---|---|---|
- MethodDescriptor |
-getMethodDescriptor(java.lang.String methodName)
-
-- |
-|
-
- |
-getReceiver(java.lang.Class<T> clazz)
-
-- |
-|
- java.util.Collection<java.lang.Class<? extends RpcReceiver>> |
-getRpcReceiverClasses()
-
-- |
-|
- java.lang.Object |
-invoke(java.lang.Class<? extends RpcReceiver> clazz,
- java.lang.reflect.Method method,
- java.lang.Object[] args)
-
-- |
-|
- void |
-shutdown()
-
-- |
-|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public RpcReceiverManager(java.util.Collection<java.lang.Class<? extends RpcReceiver>> classList)-
| -Method Detail | -
|---|
-public java.util.Collection<java.lang.Class<? extends RpcReceiver>> getRpcReceiverClasses()-
-public <T extends RpcReceiver> T getReceiver(java.lang.Class<T> clazz)-
-public MethodDescriptor getMethodDescriptor(java.lang.String methodName)-
-public java.lang.Object invoke(java.lang.Class<? extends RpcReceiver> clazz, - java.lang.reflect.Method method, - java.lang.Object[] args) - throws java.lang.Exception-
java.lang.Exception-public void shutdown()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface RpcReceiverManagerFactory
-
| -Method Summary | -|
|---|---|
- RpcReceiverManager |
-create()
-
-- |
-
- java.util.List<RpcReceiverManager> |
-getRpcReceiverManagers()
-
-- |
-
| -Method Detail | -
|---|
-RpcReceiverManager create()-
-java.util.List<RpcReceiverManager> getRpcReceiverManagers()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Interfaces
-
- -RpcReceiverManagerFactory |
-
|
-Classes
-
- -JsonBuilder - -JsonRpcResult - -JsonRpcServer - -RpcReceiver - -RpcReceiverManager |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| RpcReceiverManagerFactory | -- |
- -
| -Class Summary | -|
|---|---|
| JsonBuilder | -- |
| JsonRpcResult | -Represents a JSON RPC result. | -
| JsonRpcServer | -A JSON RPC server that forwards RPC calls to a specified receiver object. | -
| RpcReceiver | -- |
| RpcReceiverManager | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.BeanShellLanguage -
public class BeanShellLanguage
-Represents the BeanShell programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
BeanShellLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public BeanShellLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.HtmlLanguage -
public class HtmlLanguage
-
| -Constructor Summary | -|
|---|---|
HtmlLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public HtmlLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.JavaScriptLanguage -
public class JavaScriptLanguage
-Represents the JavaScript programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
JavaScriptLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public JavaScriptLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
public class Language
-Represents the programming language supported by the SL4A. -
- -
-
| -Constructor Summary | -|
|---|---|
Language()
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-autoClose(char token)
-
-- Returns the string containing opening and closing tokens if the input is an opening token. |
-
- java.lang.String |
-getContentTemplate()
-
-- Returns the initial template for newly created script. |
-
- java.lang.String |
-getRpcText(java.lang.String content,
- MethodDescriptor rpc,
- java.lang.String[] values)
-
-- Returns the RPC call text with given parameter values. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public Language()-
| -Method Detail | -
|---|
-public java.lang.String getContentTemplate()-
-
-public java.lang.String autoClose(char token)-
null otherwise.
--
-public final java.lang.String getRpcText(java.lang.String content, - MethodDescriptor rpc, - java.lang.String[] values)-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.LuaLanguage -
public class LuaLanguage
-Represents the Lua programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
LuaLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public LuaLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.PerlLanguage -
public class PerlLanguage
-Represents the Perl programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
PerlLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PerlLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.PhpLanguage -
public class PhpLanguage
-Represents the PHP programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
PhpLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PhpLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.PythonLanguage -
public class PythonLanguage
-Represents the Python programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
PythonLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PythonLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.RubyLanguage -
public class RubyLanguage
-Represents the Ruby programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
RubyLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public RubyLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.ShellLanguage -
public class ShellLanguage
-Represents the Shell programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
ShellLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ShellLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.SleepLanguage -
public class SleepLanguage
-Represents the Sleep programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
SleepLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SleepLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.SquirrelLanguage -
public class SquirrelLanguage
-Represents the Squirrel programming language, by Alberto Demichelis - this file adapted by Andy Tai, atai@atai.org - based on the Python version by -
- -
-
| -Constructor Summary | -|
|---|---|
SquirrelLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SquirrelLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.SupportedLanguages -
public class SupportedLanguages
-
| -Constructor Summary | -|
|---|---|
SupportedLanguages()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static boolean |
-checkLanguageSupported(java.lang.String name)
-
-- |
-
-static Language |
-getLanguageByExtension(java.lang.String extension)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SupportedLanguages()-
| -Method Detail | -
|---|
-public static Language getLanguageByExtension(java.lang.String extension)-
-public static boolean checkLanguageSupported(java.lang.String name)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.language.Language -
com.googlecode.android_scripting.language.TclLanguage -
public class TclLanguage
-Represents the Tcl programming language. -
- -
-
| -Constructor Summary | -|
|---|---|
TclLanguage()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.googlecode.android_scripting.language.Language | -
|---|
autoClose, getContentTemplate, getRpcText |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public TclLanguage()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -BeanShellLanguage - -HtmlLanguage - -JavaScriptLanguage - -Language - -LuaLanguage - -PerlLanguage - -PhpLanguage - -PythonLanguage - -RubyLanguage - -ShellLanguage - -SleepLanguage - -SquirrelLanguage - -SupportedLanguages - -TclLanguage |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| BeanShellLanguage | -Represents the BeanShell programming language. | -
| HtmlLanguage | -- |
| JavaScriptLanguage | -Represents the JavaScript programming language. | -
| Language | -Represents the programming language supported by the SL4A. | -
| LuaLanguage | -Represents the Lua programming language. | -
| PerlLanguage | -Represents the Perl programming language. | -
| PhpLanguage | -Represents the PHP programming language. | -
| PythonLanguage | -Represents the Python programming language. | -
| RubyLanguage | -Represents the Ruby programming language. | -
| ShellLanguage | -Represents the Shell programming language. | -
| SleepLanguage | -Represents the Sleep programming language. | -
| SquirrelLanguage | -Represents the Squirrel programming language, by Alberto Demichelis - this file adapted by Andy Tai, atai@atai.org - based on the Python version by | -
| SupportedLanguages | -- |
| TclLanguage | -Represents the Tcl programming language. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
|
-Interfaces
-
- -Constants - -SimpleServer.SimpleServerObserver |
-
|
-Classes
-
- -Analytics - -AndroidProxy - -BaseApplication - -Exec - -FeaturedInterpreters - -FileUtils - -ForegroundService - -FutureActivityTaskExecutor - -IntentBuilders - -IoUtils - -Log - -MainThread - -NotificationIdFactory - -Process - -ScriptLauncher - -ScriptProcess - -ScriptStorageAdapter - -SimpleServer - -SingleThreadExecutor - -StringUtils - -Version |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| Constants | -- |
| SimpleServer.SimpleServerObserver | -- |
- -
| -Class Summary | -|
|---|---|
| Analytics | -- |
| AndroidProxy | -- |
| BaseApplication | -- |
| Exec | -Tools for executing commands. | -
| FeaturedInterpreters | -- |
| FileUtils | -Utility functions for handling files. | -
| ForegroundService | -- |
| FutureActivityTaskExecutor | -- |
| IntentBuilders | -- |
| IoUtils | -- |
| Log | -- |
| MainThread | -- |
| NotificationIdFactory | -Creates unique ids to identify the notifications created by the android scripting service and the - trigger service. | -
| Process | -- |
| ScriptLauncher | -- |
| ScriptProcess | -- |
| ScriptStorageAdapter | -Manages storage and retrieval of scripts on the file system. | -
| SimpleServer | -A simple server. | -
| SingleThreadExecutor | -- |
| StringUtils | -- |
| Version | -- |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface Converter<T>
-A converter can take a String and turn it into an instance of type T (the type parameter to the - converter). -
- -
-
| -Method Summary | -|
|---|---|
- T |
-convert(java.lang.String value)
-
-- Convert a string into type T. |
-
| -Method Detail | -
|---|
-T convert(java.lang.String value)-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.rpc.MethodDescriptor -
public final class MethodDescriptor
-An adapter that wraps Method.
-
- -
-
| -Constructor Summary | -|
|---|---|
MethodDescriptor(java.lang.Class<? extends RpcReceiver> clazz,
- java.lang.reflect.Method method)
-
-- |
-|
| -Method Summary | -|
|---|---|
-static java.lang.Object |
-buildIntent(JSONObject jsonObject)
-
-- |
-
-static java.util.Collection<MethodDescriptor> |
-collectFrom(java.lang.Class<? extends RpcReceiver> clazz)
-
-- Collects all methods with RPC annotation from given class. |
-
- java.lang.Class<? extends RpcReceiver> |
-getDeclaringClass()
-
-- |
-
-static java.lang.Object |
-getDefaultValue(java.lang.reflect.Type parameterType,
- java.lang.annotation.Annotation[] annotations)
-
-- Returns the default value for a specific parameter. |
-
- java.lang.reflect.Type[] |
-getGenericParameterTypes()
-
-- |
-
- java.lang.String |
-getHelp()
-
-- Returns a human-readable help text for this RPC, based on annotations in the source code. |
-
- java.lang.reflect.Method |
-getMethod()
-
-- |
-
- java.lang.String |
-getName()
-
-- |
-
- java.lang.annotation.Annotation[][] |
-getParameterAnnotations()
-
-- |
-
- java.lang.String[] |
-getParameterHints()
-
-- Returns parameter hints. |
-
- ParameterDescriptor[] |
-getParameterValues(java.lang.String[] values)
-
-- Returns parameter descriptors suitable for the RPC call text representation. |
-
-static boolean |
-hasDefaultValue(java.lang.annotation.Annotation[] annotations)
-
-- Determines whether or not this parameter has default value. |
-
- java.lang.Object |
-invoke(RpcReceiverManager manager,
- JSONArray parameters)
-
-- Invokes the call that belongs to this object with the given parameters. |
-
- java.lang.String |
-toString()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public MethodDescriptor(java.lang.Class<? extends RpcReceiver> clazz, - java.lang.reflect.Method method)-
| -Method Detail | -
|---|
-public java.lang.String toString()-
toString in class java.lang.Object-public static java.util.Collection<MethodDescriptor> collectFrom(java.lang.Class<? extends RpcReceiver> clazz)-
RPC annotation from given class.
--
-public java.lang.Object invoke(RpcReceiverManager manager, - JSONArray parameters) - throws java.lang.Throwable-
-
parameters - JSONArray containing the parameters
-java.lang.Throwable-public static java.lang.Object buildIntent(JSONObject jsonObject) - throws JSONException-
JSONException-public java.lang.reflect.Method getMethod()-
-public java.lang.Class<? extends RpcReceiver> getDeclaringClass()-
-public java.lang.String getName()-
-public java.lang.reflect.Type[] getGenericParameterTypes()-
-public java.lang.annotation.Annotation[][] getParameterAnnotations()-
-public java.lang.String getHelp()-
-
-public ParameterDescriptor[] getParameterValues(java.lang.String[] values)-
- Uses parameter value, default value or name, whatever is available first. -
-
-public java.lang.String[] getParameterHints()-
-
-public static java.lang.Object getDefaultValue(java.lang.reflect.Type parameterType, - java.lang.annotation.Annotation[] annotations)-
-
parameterType - parameterTypeannotations - annotations of the parameter-public static boolean hasDefaultValue(java.lang.annotation.Annotation[] annotations)-
-
annotations - annotations of the parameter
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.rpc.ParameterDescriptor -
public final class ParameterDescriptor
-RPC parameter description. -
- -
-
| -Constructor Summary | -|
|---|---|
ParameterDescriptor(java.lang.String value,
- java.lang.reflect.Type type)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.reflect.Type |
-getType()
-
-- |
-
- java.lang.String |
-getValue()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ParameterDescriptor(java.lang.String value, - java.lang.reflect.Type type)-
| -Method Detail | -
|---|
-public java.lang.String getValue()-
-public java.lang.reflect.Type getType()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=METHOD) -@Documented -public @interface Rpc
-The Rpc annotation is used to annotate server-side implementations of RPCs. It describes
- meta-information (currently a brief documentation of the function), and marks a function as the
- implementation of an RPC.
-
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-description
-
-- Returns brief description of the function. |
-
| -Optional Element Summary | -|
|---|---|
- java.lang.String |
-returns
-
-- Gives a brief description of the functions return value (and the underlying data structure). |
-
| -Element Detail | -
|---|
-public abstract java.lang.String description-
-
-public abstract java.lang.String returns-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=PARAMETER) -@Documented -public @interface RpcDefault
-Use this annotation to mark an RPC parameter that have a default value. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-value
-
-- The default value of the RPC parameter. |
-
| -Optional Element Summary | -|
|---|---|
- java.lang.Class<? extends Converter> |
-converter
-
-- |
-
| -Element Detail | -
|---|
-public abstract java.lang.String value-
-
-public abstract java.lang.Class<? extends Converter> converter-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=METHOD) -@Documented -public @interface RpcDeprecated
-Use this annotation to mark RPC method as deprecated. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-value
-
-- The method that replaced this one. |
-
| -Optional Element Summary | -|
|---|---|
- java.lang.String |
-release
-
-- Release of SL4A when deprecation occurred. |
-
| -Element Detail | -
|---|
-public abstract java.lang.String value-
-
-public abstract java.lang.String release-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --java.lang.Throwable -
java.lang.Exception -
com.googlecode.android_scripting.rpc.RpcError -
public class RpcError
-
| -Constructor Summary | -|
|---|---|
RpcError(java.lang.String message)
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Throwable | -
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public RpcError(java.lang.String message)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Documented -public @interface RpcMinSdk
-Use this annotation to specify minimum SDK level (if higher than 3). -
- -
-
| -Required Element Summary | -|
|---|---|
- int |
-value
-
-- Minimum SDK Level. |
-
| -Element Detail | -
|---|
-public abstract int value-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=METHOD) -@Documented -public @interface RpcName
-Use this annotation to mark an RPC parameter that have a default value. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-name
-
-- The default value of the RPC parameter. |
-
| -Element Detail | -
|---|
-public abstract java.lang.String name-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=PARAMETER) -@Documented -public @interface RpcOptional
-Use this annotation to mark RPC parameter as optional. - -
- The parameter marked as optional has no explicit default value. null is used as default
- value.
-
- -
-
- -
- -
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=PARAMETER) -@Documented -public @interface RpcParameter
-An annotation that is used to document the parameters of an RPC. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-name
-
-- The name of the formal parameter. |
-
| -Optional Element Summary | -|
|---|---|
- java.lang.String |
-description
-
-- Description of the RPC. |
-
| -Element Detail | -
|---|
-public abstract java.lang.String name-
-
-public abstract java.lang.String description-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=METHOD) -@Documented -public @interface RpcStartEvent
-Use this annotation to mark an RPC as one that starts generating events. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-value
-
-- The name of the event that is generated. |
-
| -Element Detail | -
|---|
-public abstract java.lang.String value-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
@Retention(value=RUNTIME) -@Target(value=METHOD) -@Documented -public @interface RpcStopEvent
-Use this annotation to mark an RPC as one that stops generating events. -
- -
-
| -Required Element Summary | -|
|---|---|
- java.lang.String |
-value
-
-- The name of the event that stops being generated. |
-
| -Element Detail | -
|---|
-public abstract java.lang.String value-
-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
|
-Interfaces
-
- -Converter |
-
|
-Classes
-
- -MethodDescriptor - -ParameterDescriptor |
-
|
-Exceptions
-
- -RpcError |
-
|
-Annotation Types
-
- -Rpc - -RpcDefault - -RpcDeprecated - -RpcMinSdk - -RpcName - -RpcOptional - -RpcParameter - -RpcStartEvent - -RpcStopEvent |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| Converter<T> | -A converter can take a String and turn it into an instance of type T (the type parameter to the - converter). | -
- -
| -Class Summary | -|
|---|---|
| MethodDescriptor | -An adapter that wraps Method. |
-
| ParameterDescriptor | -RPC parameter description. | -
- -
| -Exception Summary | -|
|---|---|
| RpcError | -- |
- -
| -Annotation Types Summary | -|
|---|---|
| Rpc | -The Rpc annotation is used to annotate server-side implementations of RPCs. |
-
| RpcDefault | -Use this annotation to mark an RPC parameter that have a default value. | -
| RpcDeprecated | -Use this annotation to mark RPC method as deprecated. | -
| RpcMinSdk | -Use this annotation to specify minimum SDK level (if higher than 3). | -
| RpcName | -Use this annotation to mark an RPC parameter that have a default value. | -
| RpcOptional | -Use this annotation to mark RPC parameter as optional. | -
| RpcParameter | -An annotation that is used to document the parameters of an RPC. | -
| RpcStartEvent | -Use this annotation to mark an RPC as one that starts generating events. | -
| RpcStopEvent | -Use this annotation to mark an RPC as one that stops generating events. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.trigger.EventGenerationControllingObserver -
public class EventGenerationControllingObserver
-A TriggerRepository.TriggerRepositoryObserver that starts and stops the monitoring of events depending on
- whether or not triggers for the event exist.
-
- -
-
| -Constructor Summary | -|
|---|---|
EventGenerationControllingObserver(FacadeManager facadeManager)
-
-- Creates a new StartEventMonitoringObserver for the given trigger repository. |
-|
| -Method Summary | -|
|---|---|
- void |
-onPut(Trigger trigger)
-
-- Invoked just before the trigger is added to the repository. |
-
- void |
-onRemove(Trigger trigger)
-
-- Invoked just after the trigger has been removed from the repository. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public EventGenerationControllingObserver(FacadeManager facadeManager)-
-
facadeManager - triggerRepository - | -Method Detail | -
|---|
-public void onPut(Trigger trigger)-
TriggerRepository.TriggerRepositoryObserver-
onPut in interface TriggerRepository.TriggerRepositoryObservertrigger - The trigger about to be added to the repository.-public void onRemove(Trigger trigger)-
TriggerRepository.TriggerRepositoryObserver-
onRemove in interface TriggerRepository.TriggerRepositoryObservertrigger - The trigger that has just been removed from the repository.
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.trigger.ScriptTrigger -
public class ScriptTrigger
-A trigger implementation that launches a given script when the event occurs. -
- -
-
| -Constructor Summary | -|
|---|---|
ScriptTrigger(java.lang.String eventName,
- java.io.File script)
-
-- |
-|
| -Method Summary | -|
|---|---|
- java.lang.String |
-getEventName()
-
-- Returns the event name that this Trigger is interested in. |
-
- java.io.File |
-getScript()
-
-- |
-
- void |
-handleEvent(Event event,
- Context context)
-
-- Handles an event from the event queue. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public ScriptTrigger(java.lang.String eventName, - java.io.File script)-
| -Method Detail | -
|---|
-public void handleEvent(Event event, - Context context)-
Trigger-
handleEvent in interface Triggerevent - Event to handlecontext - TODO-public java.lang.String getEventName()-
TriggerTrigger is interested in.
--
getEventName in interface Trigger-public java.io.File getScript()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public interface Trigger
-Interface implemented by objects listening to events on the event queue inside of the
- SerivceManager.
-
- -
-
| -Method Summary | -|
|---|---|
- java.lang.String |
-getEventName()
-
-- Returns the event name that this Trigger is interested in. |
-
- void |
-handleEvent(Event event,
- Context context)
-
-- Handles an event from the event queue. |
-
| -Method Detail | -
|---|
-void handleEvent(Event event, - Context context)-
-
event - Event to handlecontext - TODO-java.lang.String getEventName()-
Trigger is interested in.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
public static interface TriggerRepository.TriggerRepositoryObserver
-An interface for objects that are notified when a trigger is added to the repository. -
- -
-
| -Method Summary | -|
|---|---|
- void |
-onPut(Trigger trigger)
-
-- Invoked just before the trigger is added to the repository. |
-
- void |
-onRemove(Trigger trigger)
-
-- Invoked just after the trigger has been removed from the repository. |
-
| -Method Detail | -
|---|
-void onPut(Trigger trigger)-
-
trigger - The trigger about to be added to the repository.-void onRemove(Trigger trigger)-
-
trigger - The trigger that has just been removed from the repository.
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.googlecode.android_scripting.trigger.TriggerRepository -
public class TriggerRepository
-A repository maintaining all currently scheduled triggers. This includes, for example, alarms or - observers of arriving text messages etc. This class is responsible for serializing the list of - triggers to the shared preferences store, and retrieving it from there. -
- -
-
| -Nested Class Summary | -|
|---|---|
-static interface |
-TriggerRepository.TriggerRepositoryObserver
-
-- An interface for objects that are notified when a trigger is added to the repository. |
-
| -Constructor Summary | -|
|---|---|
TriggerRepository(Context context)
-
-- |
-|
| -Method Summary | -|
|---|---|
- void |
-addObserver(TriggerRepository.TriggerRepositoryObserver observer)
-
-- Adds a TriggerRepository.TriggerRepositoryObserver. |
-
- void |
-bootstrapObserver(TriggerRepository.TriggerRepositoryObserver observer)
-
-- Adds the given TriggerRepository.TriggerRepositoryObserver and invokes
- TriggerRepository.TriggerRepositoryObserver.onPut(com.googlecode.android_scripting.trigger.Trigger) for all existing triggers. |
-
- com.google.common.collect.Multimap<java.lang.String,Trigger> |
-getAllTriggers()
-
-- Returns a list of all triggers. |
-
- boolean |
-isEmpty()
-
-- Returns true iff the list of triggers is empty. |
-
- void |
-put(Trigger trigger)
-
-- Adds a new trigger to the repository. |
-
- void |
-remove(Trigger trigger)
-
-- Removes a specific Trigger. |
-
- void |
-removeObserver(TriggerRepository.TriggerRepositoryObserver observer)
-
-- Removes a TriggerRepository.TriggerRepositoryObserver. |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public TriggerRepository(Context context)-
| -Method Detail | -
|---|
-public com.google.common.collect.Multimap<java.lang.String,Trigger> getAllTriggers()-
-
-public void put(Trigger trigger)-
-
trigger - the Trigger to add-public void remove(Trigger trigger)-
Trigger.
--
-public boolean isEmpty()-
true iff the list of triggers is empty.
--
-public void addObserver(TriggerRepository.TriggerRepositoryObserver observer)-
TriggerRepository.TriggerRepositoryObserver.
--
-public void bootstrapObserver(TriggerRepository.TriggerRepositoryObserver observer)-
TriggerRepository.TriggerRepositoryObserver and invokes
- TriggerRepository.TriggerRepositoryObserver.onPut(com.googlecode.android_scripting.trigger.Trigger) for all existing triggers.
--
observer - The observer to add.-public void removeObserver(TriggerRepository.TriggerRepositoryObserver observer)-
TriggerRepository.TriggerRepositoryObserver.
--
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Interfaces
-
- -Trigger - -TriggerRepository.TriggerRepositoryObserver |
-
|
-Classes
-
- -EventGenerationControllingObserver - -ScriptTrigger - -TriggerRepository |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Interface Summary | -|
|---|---|
| Trigger | -Interface implemented by objects listening to events on the event queue inside of the
- SerivceManager. |
-
| TriggerRepository.TriggerRepositoryObserver | -An interface for objects that are notified when a trigger is added to the repository. | -
- -
| -Class Summary | -|
|---|---|
| EventGenerationControllingObserver | -A TriggerRepository.TriggerRepositoryObserver that starts and stops the monitoring of events depending on
- whether or not triggers for the event exist. |
-
| ScriptTrigger | -A trigger implementation that launches a given script when the event occurs. | -
| TriggerRepository | -A repository maintaining all currently scheduled triggers. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
public @interface VisibleForTesting
-An annotation that indicates that the visibility of a type or member has been relaxed from - private to package to make the code testable. -
- -
-
- -
- -
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: REQUIRED | OPTIONAL | --DETAIL: ELEMENT | -|||||||||
|
-Annotation Types
-
- -VisibleForTesting |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Annotation Types Summary | -|
|---|---|
| VisibleForTesting | -An annotation that indicates that the visibility of a type or member has been relaxed from - private to package to make the code testable. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.zuowuxuxi.config.CONF -
com.hipipal.sl4alib.CONF -
public class CONF
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-API_SCRIPT
-
-- |
-
-static java.lang.String |
-BASE_PATH
-
-- |
-
-static java.lang.String |
-DFROM_QPY
-
-- |
-
-static java.lang.String |
-GOOGLE_TRACKER_ID
-
-- |
-
-static int |
-PY_NOTI_FLAG
-
-- |
-
-static java.lang.String |
-QR_APP
-
-- |
-
-static java.lang.String |
-QR_WH
-
-- |
-
-static java.lang.String |
-SCRIPT_SITE
-
-- |
-
| -Constructor Summary | -|
|---|---|
CONF()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static final java.lang.String BASE_PATH-
-public static final java.lang.String DFROM_QPY-
-public static final java.lang.String SCRIPT_SITE-
-public static final java.lang.String QR_APP-
-public static final java.lang.String QR_WH-
-public static final java.lang.String GOOGLE_TRACKER_ID-
-public static final int PY_NOTI_FLAG-
-public static final java.lang.String API_SCRIPT-
| -Constructor Detail | -
|---|
-public CONF()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --GDApplication -
com.hipipal.sl4alib.MNApp -
public class MNApp
-
| -Constructor Summary | -|
|---|---|
MNApp()
-
-- |
-|
| -Method Summary | -|
|---|---|
- InterpreterConfiguration |
-getInterpreterConfiguration()
-
-- |
-
- Intent |
-getMainApplicationIntent()
-
-- |
-
- FutureActivityTaskExecutor |
-getTaskExecutor()
-
-- |
-
- TriggerRepository |
-getTriggerRepository()
-
-- |
-
- void |
-logout(Context context)
-
-- |
-
- void |
-onConfigurationChanged()
-
-- |
-
- void |
-onCreate()
-
-- |
-
- boolean |
-readyToStart()
-
-- |
-
- void |
-stopTraker()
-
-- |
-
- void |
-trackPageView(java.lang.String page)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public MNApp()-
| -Method Detail | -
|---|
-public void onCreate()-
-public void trackPageView(java.lang.String page)-
-public void stopTraker()-
-public Intent getMainApplicationIntent()-
-public void logout(Context context)-
-public FutureActivityTaskExecutor getTaskExecutor()-
-public InterpreterConfiguration getInterpreterConfiguration()-
-public TriggerRepository getTriggerRepository()-
-public void onConfigurationChanged()-
onConfigurationChanged in interface InterpreterConfiguration.ConfigurationObserver-public boolean readyToStart()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Binder -
com.hipipal.sl4alib.PyScriptService.LocalBinder -
public class PyScriptService.LocalBinder
-
| -Constructor Summary | -|
|---|---|
PyScriptService.LocalBinder()
-
-- |
-|
| -Method Summary | -|
|---|---|
- PyScriptService |
-getService()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PyScriptService.LocalBinder()-
| -Method Detail | -
|---|
-public PyScriptService getService()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Service -
com.hipipal.sl4alib.PyScriptService -
public class PyScriptService
-
| -Nested Class Summary | -|
|---|---|
- class |
-PyScriptService.LocalBinder
-
-- |
-
- class |
-PyScriptService.startMyAsyncTask
-
-- |
-
| -Field Summary | -|
|---|---|
-static java.lang.String |
-scriptName
-
-- |
-
| -Constructor Summary | -|
|---|---|
PyScriptService()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static Context |
-getAppContext()
-
-- |
-
- IBinder |
-onBind(Intent intent)
-
-- |
-
- void |
-onCreate()
-
-- |
-
- void |
-onDestroy()
-
-- |
-
- void |
-onStart(Intent intent,
- int startId)
-
-- |
-
- void |
-updateNotify(Message msg)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static java.lang.String scriptName-
| -Constructor Detail | -
|---|
-public PyScriptService()-
| -Method Detail | -
|---|
-public void onDestroy()-
-public IBinder onBind(Intent intent)-
-public static Context getAppContext()-
-public void onCreate()-
-public void onStart(Intent intent, - int startId)-
-public void updateNotify(Message msg)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --- com.hipipal.sl4alib.PyScriptService.startMyAsyncTask -
public class PyScriptService.startMyAsyncTask
-
| -Constructor Summary | -|
|---|---|
PyScriptService.startMyAsyncTask()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PyScriptService.startMyAsyncTask()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Service -
com.hipipal.sl4alib.PyScriptService -
com.hipipal.sl4alib.PyScriptService2 -
public class PyScriptService2
-
| -Nested Class Summary | -
|---|
| Nested classes/interfaces inherited from class com.hipipal.sl4alib.PyScriptService | -
|---|
PyScriptService.LocalBinder, PyScriptService.startMyAsyncTask |
-
| -Field Summary | -
|---|
| Fields inherited from class com.hipipal.sl4alib.PyScriptService | -
|---|
scriptName |
-
| -Constructor Summary | -|
|---|---|
PyScriptService2()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class com.hipipal.sl4alib.PyScriptService | -
|---|
getAppContext, onBind, onCreate, onDestroy, onStart, updateNotify |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public PyScriptService2()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Activity -
com.hipipal.sl4alib.SL4ADialogActivity -
public class SL4ADialogActivity
-
| -Constructor Summary | -|
|---|---|
SL4ADialogActivity()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SL4ADialogActivity()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --com.hipipal.sl4alib.SL4AScript -
public class SL4AScript
-
| -Field Summary | -|
|---|---|
-static int |
-ID
-
-- |
-
-static java.lang.String |
-sFileName
-
-- |
-
| -Constructor Summary | -|
|---|---|
SL4AScript()
-
-- |
-|
| -Method Summary | -|
|---|---|
-static java.lang.String |
-getFileExtension(Context context)
-
-- |
-
-static java.lang.String |
-getFileName(Context context)
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Field Detail | -
|---|
-public static final int ID-
-public static java.lang.String sFileName-
| -Constructor Detail | -
|---|
-public SL4AScript()-
| -Method Detail | -
|---|
-public static java.lang.String getFileName(Context context)-
-public static java.lang.String getFileExtension(Context context)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Activity -
com.hipipal.sl4alib.SL4AScriptActivity -
public class SL4AScriptActivity
-
| -Constructor Summary | -|
|---|---|
SL4AScriptActivity()
-
-- |
-|
| -Method Summary | -
|---|
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SL4AScriptActivity()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Binder -
com.hipipal.sl4alib.SL4AScriptService.LocalBinder -
public class SL4AScriptService.LocalBinder
-
| -Constructor Summary | -|
|---|---|
SL4AScriptService.LocalBinder()
-
-- |
-|
| -Method Summary | -|
|---|---|
- SL4AScriptService |
-getService()
-
-- |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SL4AScriptService.LocalBinder()-
| -Method Detail | -
|---|
-public SL4AScriptService getService()-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --Service -
com.googlecode.android_scripting.ForegroundService -
com.hipipal.sl4alib.SL4AScriptService -
public class SL4AScriptService
-A service that allows scripts and the RPC server to run in the background. -
- -
-
| -Nested Class Summary | -|
|---|---|
- class |
-SL4AScriptService.LocalBinder
-
-- |
-
| -Constructor Summary | -|
|---|---|
SL4AScriptService()
-
-- |
-|
| -Method Summary | -|
|---|---|
- IBinder |
-onBind(Intent intent)
-
-- |
-
- void |
-onCreate()
-
-- |
-
- void |
-onStart(Intent intent,
- int startId)
-
-- |
-
| Methods inherited from class com.googlecode.android_scripting.ForegroundService | -
|---|
onDestroy |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public SL4AScriptService()-
| -Method Detail | -
|---|
-public IBinder onBind(Intent intent)-
-public void onCreate()-
onCreate in class ForegroundService-public void onStart(Intent intent, - int startId)-
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -CONF - -MNApp - -PyScriptService - -PyScriptService2 - -SL4ADialogActivity - -SL4AScript - -SL4AScriptActivity - -SL4AScriptService |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| CONF | -- |
| MNApp | -- |
| PyScriptService | -- |
| PyScriptService2 | -- |
| SL4ADialogActivity | -- |
| SL4AScript | -- |
| SL4AScriptActivity | -- |
| SL4AScriptService | -A service that allows scripts and the RPC server to run in the background. | -
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
-java.lang.Object --java.io.InputStream -
com.trilead.ssh2.StreamGobbler -
public class StreamGobbler
-A StreamGobbler is an InputStream that uses an internal worker thread to constantly
- consume input from another InputStream. It uses a buffer to store the consumed data. The buffer
- size is automatically adjusted, if needed.
-
- This class is sometimes very convenient - if you wrap a session's STDOUT and STDERR InputStreams - with instances of this class, then you don't have to bother about the shared window of STDOUT and - STDERR in the low level SSH-2 protocol, since all arriving data will be immediatelly consumed by - the worker threads. Also, as a side effect, the streams will be buffered (e.g., single byte - read() operations are faster). -
- Other SSH for Java libraries include this functionality by default in their STDOUT and STDERR - InputStream implementations, however, please be aware that this approach has also a downside: -
- If you do not call the StreamGobbler's read() method often enough and the peer is
- constantly sending huge amounts of data, then you will sooner or later encounter a low memory
- situation due to the aggregated data (well, it also depends on the Java heap size). Joe Average
- will like this class anyway - a paranoid programmer would never use such an approach.
-
- The term "StreamGobbler" was taken from an article called "When Runtime.exec() won't", see - http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html. -
- -
-
| -Constructor Summary | -|
|---|---|
StreamGobbler(java.io.InputStream is,
- java.io.File log,
- int buffer_size)
-
-- |
-|
| -Method Summary | -|
|---|---|
- int |
-available()
-
-- |
-
- void |
-close()
-
-- |
-
- int |
-read()
-
-- |
-
- int |
-read(byte[] b)
-
-- |
-
- int |
-read(byte[] b,
- int off,
- int len)
-
-- |
-
- void |
-writeToFile(byte[] buffer)
-
-- |
-
| Methods inherited from class java.io.InputStream | -
|---|
mark, markSupported, reset, skip |
-
| Methods inherited from class java.lang.Object | -
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
-
| -Constructor Detail | -
|---|
-public StreamGobbler(java.io.InputStream is, - java.io.File log, - int buffer_size)-
| -Method Detail | -
|---|
-public void writeToFile(byte[] buffer)-
-public int read() - throws java.io.IOException-
read in class java.io.InputStreamjava.io.IOException-public int available() - throws java.io.IOException-
available in class java.io.InputStreamjava.io.IOException-public int read(byte[] b) - throws java.io.IOException-
read in class java.io.InputStreamjava.io.IOException-public void close() - throws java.io.IOException-
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException-public int read(byte[] b, - int off, - int len) - throws java.io.IOException-
read in class java.io.InputStreamjava.io.IOException
-
-
|
-- - | -|||||||||
| - PREV CLASS - NEXT CLASS | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - SUMMARY: NESTED | FIELD | CONSTR | METHOD | --DETAIL: FIELD | CONSTR | METHOD | -|||||||||
|
-Classes
-
- -StreamGobbler |
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Class Summary | -|
|---|---|
| StreamGobbler | -A StreamGobbler is an InputStream that uses an internal worker thread to constantly
- consume input from another InputStream. |
-
-
-
-
|
-- - | -|||||||||
| - PREV PACKAGE - NEXT PACKAGE | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -com.android.* | -
|---|
- -
| com.android.python27.config.GlobalConstants | -||
|---|---|---|
-public static final java.lang.String |
-LOCAL_ZIP_NAME |
-"my_local.zip" |
-
-public static final java.lang.String |
-LOG_TAG |
-"PythonAPK" |
-
-public static final java.lang.String |
-PACKAGE_NAME |
-"com.hipipal.mi" |
-
-public static final java.lang.String |
-PYTHON_EXTRAS_ZIP_NAME |
-"python_extras_27.zip" |
-
-public static final java.lang.String |
-PYTHON_MAIN_SCRIPT_NAME |
-"hello.py" |
-
-public static final java.lang.String |
-PYTHON_NICE_NAME |
-"Python 2.7.2" |
-
-public static final java.lang.String |
-PYTHON_PROJECT_ZIP_NAME |
-"my_python_project.zip" |
-
-public static final java.lang.String |
-PYTHON_ZIP_NAME |
-"python_27.zip" |
-
- -
| -com.googlecode.* | -
|---|
- -
| com.googlecode.android_scripting.Constants | -||
|---|---|---|
-public static final java.lang.String |
-ACTION_ACTIVITY_RESULT |
-"com.googlecode.android_scripting.action.ACTIVITY_RESULT" |
-
-public static final java.lang.String |
-ACTION_CANCEL_NOTIFICATION |
-"com.googlecode.android_scripting.action.CANCEL_NOTIFICAITON" |
-
-public static final java.lang.String |
-ACTION_EDIT_SCRIPT |
-"com.googlecode.android_scripting.action.EDIT_SCRIPT" |
-
-public static final java.lang.String |
-ACTION_KILL_ALL |
-"com.googlecode.android_scripting.action.KILL_ALL" |
-
-public static final java.lang.String |
-ACTION_KILL_PROCESS |
-"com.googlecode.android_scripting.action.KILL_PROCESS" |
-
-public static final java.lang.String |
-ACTION_LAUNCH_BACKGROUND_SCRIPT |
-"com.googlecode.android_scripting.action.LAUNCH_BACKGROUND_SCRIPT" |
-
-public static final java.lang.String |
-ACTION_LAUNCH_FOREGROUND_SCRIPT |
-"com.googlecode.android_scripting.action.LAUNCH_FOREGROUND_SCRIPT" |
-
-public static final java.lang.String |
-ACTION_LAUNCH_INTERPRETER |
-"com.googlecode.android_scripting.action.LAUNCH_INTERPRETER" |
-
-public static final java.lang.String |
-ACTION_LAUNCH_SCRIPT_FOR_RESULT |
-"com.googlecode.android_scripting.action.ACTION_LAUNCH_SCRIPT_FOR_RESULT" |
-
-public static final java.lang.String |
-ACTION_LAUNCH_SERVER |
-"com.googlecode.android_scripting.action.LAUNCH_SERVER" |
-
-public static final java.lang.String |
-ACTION_SAVE_AND_RUN_SCRIPT |
-"com.googlecode.android_scripting.action.SAVE_AND_RUN_SCRIPT" |
-
-public static final java.lang.String |
-ACTION_SAVE_SCRIPT |
-"com.googlecode.android_scripting.action.SAVE_SCRIPT" |
-
-public static final java.lang.String |
-ACTION_SHOW_RUNNING_SCRIPTS |
-"com.googlecode.android_scripting.action.SHOW_RUNNING_SCRIPTS" |
-
-public static final java.lang.String |
-EXTRA_API_PROMPT_RPC_NAME |
-"com.googlecode.android_scripting.extra.API_PROMPT_RPC_NAME" |
-
-public static final java.lang.String |
-EXTRA_API_PROMPT_VALUES |
-"com.googlecode.android_scripting.extra.API_PROMPT_VALUES" |
-
-public static final java.lang.String |
-EXTRA_DEVICE_ADDRESS |
-"com.googlecode.android_scripting.extra.device_address" |
-
-public static final java.lang.String |
-EXTRA_INTERPRETER_NAME |
-"com.googlecode.android_scripting.extra.INTERPRETER_NAME" |
-
-public static final java.lang.String |
-EXTRA_IS_NEW_SCRIPT |
-"com.googlecode.android_scripting.extra.IS_NEW_SCRIPT" |
-
-public static final java.lang.String |
-EXTRA_LAUNCH_IN_BACKGROUND |
-"com.googlecode.android_scripting.extra.EXTRA_LAUNCH_IN_BACKGROUND" |
-
-public static final java.lang.String |
-EXTRA_PROCESS_ID |
-"com.googlecode.android_scripting.extra.SCRIPT_PROCESS_ID" |
-
-public static final java.lang.String |
-EXTRA_PROXY_PORT |
-"com.googlecode.android_scripting.extra.PROXY_PORT" |
-
-public static final java.lang.String |
-EXTRA_RESULT |
-"SCRIPT_RESULT" |
-
-public static final java.lang.String |
-EXTRA_RPC_HELP_TEXT |
-"com.googlecode.android_scripting.extra.RPC_HELP_TEXT" |
-
-public static final java.lang.String |
-EXTRA_SCRIPT_CONTENT |
-"com.googlecode.android_scripting.extra.SCRIPT_CONTENT" |
-
-public static final java.lang.String |
-EXTRA_SCRIPT_PATH |
-"com.googlecode.android_scripting.extra.SCRIPT_PATH" |
-
-public static final java.lang.String |
-EXTRA_SCRIPT_TEXT |
-"com.googlecode.android_scripting.extra.SCRIPT_TEXT" |
-
-public static final java.lang.String |
-EXTRA_TASK_ID |
-"com.googlecode.android_scripting.extra.EXTRA_TASK_ID" |
-
-public static final java.lang.String |
-EXTRA_TRIGGER_ID |
-"com.googlecode.android_scripting.extra.EXTRA_TRIGGER_ID" |
-
-public static final java.lang.String |
-EXTRA_USE_EXTERNAL_IP |
-"com.googlecode.android_scripting.extra.USE_PUBLIC_IP" |
-
-public static final java.lang.String |
-EXTRA_USE_SERVICE_PORT |
-"com.googlecode.android_scripting.extra.USE_SERVICE_PORT" |
-
-public static final java.lang.String |
-FORCE_BROWSER |
-"helpForceBrowser" |
-
-public static final java.lang.String |
-HIDE_NOTIFY |
-"hideServiceNotifications" |
-
- -
- -
| com.googlecode.android_scripting.facade.BatteryManagerFacade | -||
|---|---|---|
-public static final int |
-BATTERY_PLUGGED_AC |
-1 |
-
-public static final int |
-BATTERY_PLUGGED_USB |
-2 |
-
- -
- -
| com.googlecode.android_scripting.facade.ui.ViewInflater | -||
|---|---|---|
-public static final java.lang.String |
-ANDROID |
-"http://schemas.android.com/apk/res/android" |
-
-public static final int |
-BASESEQ |
-2131689472 |
-
- -
- -
| com.googlecode.android_scripting.interpreter.InterpreterConstants | -||
|---|---|---|
-public static final java.lang.String |
-ACTION_DISCOVER_INTERPRETERS |
-"com.googlecode.android_scripting.DISCOVER_INTERPRETERS" |
-
-public static final java.lang.String |
-ACTION_INTERPRETER_ADDED |
-"com.googlecode.android_scripting.INTERPRETER_ADDED" |
-
-public static final java.lang.String |
-ACTION_INTERPRETER_REMOVED |
-"com.googlecode.android_scripting.INTERPRETER_REMOVED" |
-
-public static final java.lang.String |
-INSTALLED_PREFERENCE_KEY |
-"SL4A.interpreter.installed" |
-
-public static final java.lang.String |
-INTERPRETER_EXTRAS_ROOT |
-"/extras/" |
-
-public static final java.lang.String |
-MIME |
-"script/" |
-
-public static final java.lang.String |
-PROVIDER_ARGUMENTS |
-"com.googlecode.android_scripting.args" |
-
-public static final java.lang.String |
-PROVIDER_ENVIRONMENT_VARIABLES |
-"com.googlecode.android_scripting.env" |
-
-public static final java.lang.String |
-PROVIDER_PROPERTIES |
-"com.googlecode.android_scripting.base" |
-
-public static final java.lang.String |
-SL4A_DALVIK_CACHE_ROOT |
-"/dalvik-cache/" |
-
- -
- -
| com.googlecode.android_scripting.interpreter.InterpreterPropertyNames | -||
|---|---|---|
-public static final java.lang.String |
-BINARY |
-"binary" |
-
-public static final java.lang.String |
-EXTENSION |
-"extension" |
-
-public static final java.lang.String |
-HAS_INTERACTIVE_MODE |
-"hasInteractiveMode" |
-
-public static final java.lang.String |
-INTERACTIVE_COMMAND |
-"interactiveCommand" |
-
-public static final java.lang.String |
-NAME |
-"name" |
-
-public static final java.lang.String |
-NICE_NAME |
-"niceName" |
-
-public static final java.lang.String |
-SCRIPT_COMMAND |
-"scriptCommand" |
-
- -
- -
| com.googlecode.android_scripting.interpreter.html.HtmlInterpreter | -||
|---|---|---|
-public static final java.lang.String |
-ANDROID_JS_FILE |
-"android.js" |
-
-public static final java.lang.String |
-HTML |
-"html" |
-
-public static final java.lang.String |
-HTML_EXTENSION |
-".html" |
-
-public static final java.lang.String |
-HTML_NICE_NAME |
-"HTML and JavaScript" |
-
-public static final java.lang.String |
-JSON_FILE |
-"json2.js" |
-
- -
| -com.hipipal.* | -
|---|
- -
| com.hipipal.sl4alib.CONF | -||
|---|---|---|
-public static final java.lang.String |
-API_SCRIPT |
-".last_api.py" |
-
-public static final java.lang.String |
-BASE_PATH |
-"com.hipipal.qpyplus" |
-
-public static final java.lang.String |
-DFROM_QPY |
-"scripts" |
-
-public static final java.lang.String |
-GOOGLE_TRACKER_ID |
-"UA-34788925-1" |
-
-public static final int |
-PY_NOTI_FLAG |
-123400 |
-
-public static final java.lang.String |
-QR_APP |
-"http://qpython.com/" |
-
-public static final java.lang.String |
-QR_WH |
-"250" |
-
-public static final java.lang.String |
-SCRIPT_SITE |
-"http://qpython.org/" |
-
- -
-
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| - | -
|---|
- - - diff --git a/doc/package-list b/doc/package-list deleted file mode 100644 index ec881145..00000000 --- a/doc/package-list +++ /dev/null @@ -1,21 +0,0 @@ -com.android.python27.config -com.android.python27.process -com.android.python27.support -com.googlecode.android_scripting -com.googlecode.android_scripting.activity -com.googlecode.android_scripting.bluetooth -com.googlecode.android_scripting.event -com.googlecode.android_scripting.exception -com.googlecode.android_scripting.facade -com.googlecode.android_scripting.facade.ui -com.googlecode.android_scripting.future -com.googlecode.android_scripting.interpreter -com.googlecode.android_scripting.interpreter.html -com.googlecode.android_scripting.interpreter.shell -com.googlecode.android_scripting.jsonrpc -com.googlecode.android_scripting.language -com.googlecode.android_scripting.rpc -com.googlecode.android_scripting.trigger -com.googlecode.android_scripting.util -com.hipipal.sl4alib -com.trilead.ssh2 diff --git a/doc/resources/inherit.gif b/doc/resources/inherit.gif deleted file mode 100644 index c814867a..00000000 Binary files a/doc/resources/inherit.gif and /dev/null differ diff --git a/doc/serialized-form.html b/doc/serialized-form.html deleted file mode 100644 index 0e6b0c82..00000000 --- a/doc/serialized-form.html +++ /dev/null @@ -1,229 +0,0 @@ - - - -
- -
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||
| -Package com.googlecode.android_scripting.exception | -
|---|
| -Class com.googlecode.android_scripting.exception.Sl4aException extends java.lang.Exception implements Serializable | -
|---|
-
| -Package com.googlecode.android_scripting.rpc | -
|---|
| -Class com.googlecode.android_scripting.rpc.RpcError extends java.lang.Exception implements Serializable | -
|---|
-
| -Package com.googlecode.android_scripting.trigger | -
|---|
| -Class com.googlecode.android_scripting.trigger.ScriptTrigger extends java.lang.Object implements Serializable | -
|---|
-serialVersionUID: 1804599219214041409L - -
| -Serialized Fields | -
|---|
-java.io.File mScript-
-java.lang.String mEventName-
-
-
-
|
-- - | -|||||||||
| - PREV - NEXT | -- FRAMES - NO FRAMES - - - - - | -|||||||||