Public Member Functions | |
void | onLowMemory () |
final int | onStartCommand (final Intent intent, final int flags, final int startId) |
final void | onCreate () |
final void | onDestroy () |
final void | doDisconnect (final Connection c) |
final void | dispatchXMLError (final String error) throws RemoteException |
void | dispatchSaveError (String error) throws RemoteException |
void | dispatchPluginSaveError (String plugin, String error) throws RemoteException |
final void | enableWifiKeepAlive () |
final void | doVibrateBell () |
final void | doNotifyBell (final String display, final String host, final int port) |
final void | doDisplayBell () |
final void | disableWifiKeepAlive () |
final void | dispatchToast (final String message, final boolean longtime) |
final void | dispatchDialog (final String message) |
final void | showConnectionNotification (final String display, final String host, final int port) |
final void | removeConnectionNotification (final String display) |
final void | doShutdown () |
final IBinder | onBind (final Intent arg0) |
final void | setClutch (final String connection) |
final void | switchTo (final String display) |
final void | reloadWindows () |
final void | sendRawDataToWindow (final byte[] data) |
final boolean | isWindowConnected () |
final void | doClearAllButtons () |
final void | doExecuteColorDebug (final Integer iarg) |
final void | doDirtyExit () |
final void | doExecuteFullscreen (final boolean set) |
final void | doShowKeyboard (final String text, final boolean dopopup, final boolean doadd, final boolean doflush, final boolean doclear, final boolean doclose) |
final void | markWindowsDirty () |
final void | markSettingsDirty () |
final void | dispatchKeepLast (final Boolean value) |
final void | dispatchShowRegexWarning (final Boolean value) |
final void | doExecuteSetOrientation (final Integer value) |
final void | doExecuteKeepScreenOn (final Boolean value) |
final void | doExecuteFullscreenEditor (final Boolean value) |
final void | doExecuteUseSuggestions (final Boolean value) |
final void | doExecuteCompatibilityMode (final Boolean value) |
Static Public Member Functions | |
static int | getNotificationId () |
Static Protected Attributes | |
static final int | MESSAGE_STARTUP = 0 |
static final int | MESSAGE_NEWCONENCTION = 1 |
static final int | MESSAGE_SWITCH = 2 |
static final int | MESSAGE_RELOADSETTINGS = 3 |
static final int | MESSAGE_STOPANR = 4 |
The implementation of the background Service handler.
This class mostly just holds Connection objects and proxys commands made from the foreground window to the appropriate connection.
final void com.offsetnull.bt.service.StellarService.disableWifiKeepAlive | ( | ) |
Disables the wifi keep alive.
final void com.offsetnull.bt.service.StellarService.dispatchDialog | ( | final String | message | ) |
Utility method for dispatching a generic error looking dialog on the foreground window.
message | The message to display. |
final void com.offsetnull.bt.service.StellarService.dispatchKeepLast | ( | final Boolean | value | ) |
Implementation of the working method that sets the foreground window input bar's keep last setting.
value | True for keeplast, false for clear when command is sent. |
void com.offsetnull.bt.service.StellarService.dispatchPluginSaveError | ( | String | plugin, |
String | error | ||
) | throws RemoteException |
void com.offsetnull.bt.service.StellarService.dispatchSaveError | ( | String | error | ) | throws RemoteException |
final void com.offsetnull.bt.service.StellarService.dispatchShowRegexWarning | ( | final Boolean | value | ) |
Implementation of the working method that sets the foreground window trigger editor regex warning message state.
value | True for show warning, false for no warning. |
final void com.offsetnull.bt.service.StellarService.dispatchToast | ( | final String | message, |
final boolean | longtime | ||
) |
Utility method for dispatching a toast message to be displayed by the foreground window.
message | The message to show. |
longtime | true for Toast.LONG, false for Toast.SHORT |
final void com.offsetnull.bt.service.StellarService.dispatchXMLError | ( | final String | error | ) | throws RemoteException |
Dispatches an error dialog in the foreground window.
error | The error message to show. |
RemoteException | Thrown when something has gone wrong with the aidl bridge. |
final void com.offsetnull.bt.service.StellarService.doClearAllButtons | ( | ) |
The utility method to clear all buttons. I don't think that this is actually used, as this code has been folded into the plugin.
final void com.offsetnull.bt.service.StellarService.doDirtyExit | ( | ) |
Working implementation of the dirty exit. That is to close the app without closing the connections first.
final void com.offsetnull.bt.service.StellarService.doDisconnect | ( | final Connection | c | ) |
The top level disconnect function.
This method is initated by a connection when it has disconnected. This method interfaces with the foreground window if appropriate to show the disconnection message.
c | The connection that disconnected. |
final void com.offsetnull.bt.service.StellarService.doDisplayBell | ( | ) |
Implementation of the visual bell callback. Called from a Connection.
final void com.offsetnull.bt.service.StellarService.doExecuteColorDebug | ( | final Integer | iarg | ) |
Implementation of the working code to set the current color debug mode for the foreground window.
iarg | The color debug mode to enter. |
final void com.offsetnull.bt.service.StellarService.doExecuteCompatibilityMode | ( | final Boolean | value | ) |
Implementation of the method that sets the compatibility mode preference for the foreground window's editor.
value | True to use compatibility mode, false to not. |
final void com.offsetnull.bt.service.StellarService.doExecuteFullscreen | ( | final boolean | set | ) |
Working implementation of the method that sets the fullscreen option in the foreground window.
set | True for fullscreen, false for not fullscreen. |
final void com.offsetnull.bt.service.StellarService.doExecuteFullscreenEditor | ( | final Boolean | value | ) |
Implementation of the method that sets the option for a fullscreen editor in the foreground window.
value | True to use fullscreen editor, false to not. |
final void com.offsetnull.bt.service.StellarService.doExecuteKeepScreenOn | ( | final Boolean | value | ) |
Implementation of the method that sets the keep screen on in the foreground window.
value | True, screen stays on, false screen does not stay on. |
final void com.offsetnull.bt.service.StellarService.doExecuteSetOrientation | ( | final Integer | value | ) |
Implementation of the method that sets the preferred orientation for the foreground window.
value | Integer value, 1= portrait, 2=landscape, 3=auto |
final void com.offsetnull.bt.service.StellarService.doExecuteUseSuggestions | ( | final Boolean | value | ) |
Implementation of the method that sets the preference for weather or not to use suggestions in the foreground window editor.
value | True to use suggestions, false to not. |
final void com.offsetnull.bt.service.StellarService.doNotifyBell | ( | final String | display, |
final String | host, | ||
final int | port | ||
) |
The implementation ofthe bell notifier. Connections will call this.
display | The display name of the calling connection. |
host | The host name of the calling connection. |
port | The port number for the calling connection. |
final void com.offsetnull.bt.service.StellarService.doShowKeyboard | ( | final String | text, |
final boolean | dopopup, | ||
final boolean | doadd, | ||
final boolean | doflush, | ||
final boolean | doclear, | ||
final boolean | doclose | ||
) |
Working implementation of the method that pops up the keyboard in the foreground window.
text | The text to add to the input bar. |
dopopup | True to pop up the keyboard. |
doadd | True to apppend text to the input bar. |
doflush | True to flush the input bar. |
doclear | True to clear the input bar. |
doclose | True to close the keyboard. |
final void com.offsetnull.bt.service.StellarService.doShutdown | ( | ) |
The generic top level shutdown routine. Attempts to gracefully shut down all active connections.
final void com.offsetnull.bt.service.StellarService.doVibrateBell | ( | ) |
The implementation of the bell vibrator. Connections will call this.
final void com.offsetnull.bt.service.StellarService.enableWifiKeepAlive | ( | ) |
Enables Wifi KeepAlive.
|
static |
Gets a new unique id for notifications. Always increments the value so it will be unique with each call.
final boolean com.offsetnull.bt.service.StellarService.isWindowConnected | ( | ) |
Utility method for checking weather or not the window is showing.
final void com.offsetnull.bt.service.StellarService.markSettingsDirty | ( | ) |
Utility method to mark the foreground window (non-window) settings as dirty so they are reloaded.
final void com.offsetnull.bt.service.StellarService.markWindowsDirty | ( | ) |
Utility method to mark the foreground window settings as dirty, so they are reloaded at next opportunity.
final IBinder com.offsetnull.bt.service.StellarService.onBind | ( | final Intent | arg0 | ) |
The implementation of Service.onBind().
arg0 | the Intent that was used to start this service. |
final void com.offsetnull.bt.service.StellarService.onCreate | ( | ) |
The implementation of the onCreate() Service method.
final void com.offsetnull.bt.service.StellarService.onDestroy | ( | ) |
Implementation of the Service.onDestroy() method.
void com.offsetnull.bt.service.StellarService.onLowMemory | ( | ) |
final int com.offsetnull.bt.service.StellarService.onStartCommand | ( | final Intent | intent, |
final int | flags, | ||
final int | startId | ||
) |
Implementation of onStartCommand(...) Service function.
intent | see docs |
flags | see docs |
startId | see docs |
final void com.offsetnull.bt.service.StellarService.reloadWindows | ( | ) |
Generic method to make the currently active connection reload its windows.
final void com.offsetnull.bt.service.StellarService.removeConnectionNotification | ( | final String | display | ) |
Called by a connection when disconnected to remove the associated notification.
display | The display name of the disconnected connection. |
final void com.offsetnull.bt.service.StellarService.sendRawDataToWindow | ( | final byte[] | data | ) |
Dispatches data to the foreground window.
data | the data to send. |
final void com.offsetnull.bt.service.StellarService.setClutch | ( | final String | connection | ) |
Setter method for mConnectionClutch.
connection | The new connection to make active. |
final void com.offsetnull.bt.service.StellarService.showConnectionNotification | ( | final String | display, |
final String | host, | ||
final int | port | ||
) |
Method called when a connection has connected successfully.
This method coordinates with the multi-connection system to ensure that at least one notification is used for the startForeground(...) method.
display | The display name of the connection. |
host | The host name of the connection. |
port | The port number of the connection. |
final void com.offsetnull.bt.service.StellarService.switchTo | ( | final String | display | ) |
Utility method to switch the active connection.
display | The display name of the connection to switch to. |
|
staticprotected |
Message constant indicating a new connection launch.
|
staticprotected |
Message constant indicating that the active connection should reload its settings.
|
staticprotected |
Message constant indicating system startup.
|
staticprotected |
Not really sure what this is for but I think it had something to do with debugging an ANR in the service.
|
staticprotected |
Message constant indicating that the active connection should switch to a different connection.