summaryrefslogtreecommitdiff
path: root/altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java
Commit message (Collapse)AuthorAge
...
* Fix Latin-1 encoded copyright symbols in AltosDroid java codeKeith Packard2012-09-11
| | | | | | Otherwise, we get complaints when compiling these files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: complete frequency change dialogMike Beattie2012-08-31
| | | | | | Also implement Service IPC to action request. Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: add timer to stop serviceMike Beattie2012-08-28
| | | | | | * Stops when no UI clients, and no bluetooth connection remains Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: stop sending device name, just send config dataMike Beattie2012-08-28
| | | | | | | | * Kinda complicated, but ultimately more sensible * Just send the config data as an arg to MSG_CONNECTED * keep retrying connection till we actually get config data Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: whitespaceMike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: fix a connection retry having a null pointerMike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: fix double call of stopAltosBluetooth()Mike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Miscellaneous comments/debug/etc cleanupMike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: miscellaneous cleanupMike Beattie2012-08-28
| | | | | | | | | * Copyright info * whitespace * comments * unused imports Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Add passing of Device Config at connectMike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Add new "TelemetryReader" class to handle TelemetryMike Beattie2012-08-28
| | | | | | | | | | | | | * Add MSG_TELEMETRY messages to both AltosDroid and TelemetryService to handle passing of AltosState object all the way back to the UI. * Remove linkedblockinglist from TelemetryService * (MSG_TELEMETRY is a rename of MSG_INCOMING_TELEM in AltosDroid) * commented code in case statement inside AltosDroind - won't work with the objects it is currently passed. * Add new "MSG_DEVCONFIG" message to AltosDroid - allows TelemetryService to pass information about the connected device back to the UI. Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: create connected() methodMike Beattie2012-08-28
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Let a freshly connected client know what the device name is!Mike Beattie2012-08-27
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Add Connected/Connect_failed messagesMike Beattie2012-08-27
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: don't need keys for Bundles anymoreMike Beattie2012-08-27
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: really don't need to store a local copy of the device nameMike Beattie2012-08-27
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: remove complexity around message passingMike Beattie2012-08-27
| | | | | | | * Don't really need to use bundles * TelemetryService: Use a local variable to store the bluetooth device object Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: remove old commented codeMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: add handling when restarting BT. delay start after stop.Mike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: set devicename and pass on to clientsMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Send current state to client on connectMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: lots of debugging statementsMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: need sendMessageToClients() for setState().. oops!Mike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Need access to handler inside AltosBluetoothMike Beattie2012-08-26
| | | | | | * Also move add_monitor() call Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: begin adding state supportMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Rename Connect message, add connected messageMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: init telem blocking list.. oops!Mike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: disable NotificationManager stuff for nowMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Convert handlers to use weakreferencesMike Beattie2012-08-26
| | | | | | * Also renamed bluetooth start/stop methods Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Remove Binder import from TelemetryServiceMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Add State constants for future usageMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: begin adding IPC to TelemetryServiceMike Beattie2012-08-26
| | | | | | * And add imports for LinkedBlockingQueue... oops! Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: remove old Binder from TelemetryServiceMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Clean up imports in TelemetryServiceMike Beattie2012-08-26
| | | | | | * Begin adding AltosLib usage Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: remove TelemetryService activitiesMike Beattie2012-08-26
| | | | | | service start/stop will be handled by AltosDroid/itself now. Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: whitespace (spaces to tabs) (part2)Mike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: whitespace (spaces to tabs) (part1)Mike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* altosdroid: Update copyrightsMike Beattie2012-08-26
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Adjust service to be persistent.Mike Beattie2012-08-06
| | | | | | | | | * Run as a foreground service -> high priority * Notification set to display as "Ongoing". Changed logo to be in colour at keithp's request. Greyscale logos still present as *_g.png Signed-off-by: Mike Beattie <mike@ethernal.org>
* Add TelemetryService.java and associated filesMike Beattie2012-06-02
Signed-off-by: Mike Beattie <mike@ethernal.org>