aboutsummaryrefslogtreecommitdiffstats
path: root/apps
Commit message (Collapse)AuthorAgeFilesLines
* SdkController: Implementation notesRaphael2012-03-231-0/+85
| | | | Change-Id: I058abb0660d52ae852b8bd4ee47241f1823035aa
* SdkController: Optimize sensor display.Raphael2012-03-214-35/+130
| | | | | | | | | | | | | | | | | | | One issue in SdkController now is that for every single sensor update we compute 2 string.formats, which take about forever (around 2-4 ms each on a GN.) One is used for the UI display so we don't need to do it when updating the sensor, instead we can keep track of the sensor values and defer the UI string format at display time. This also adds code to measure timings in the sensor update loop. It's disabled by default. In a next CL I will replace the string.format(%g) by something else. Using Float.toString and a StringBuilder should be a tad more efficient since we don't need Locale-dependant formatting (and arguably should NOT have any in fact). Change-Id: If9e01e88c76bcd9e433df0f40c7ab28d697655e7
* SdkController: MultiTouch handler+activity.Raphael2012-03-1915-264/+1077
| | | | | | | | | Also refactor some common code from the SensorActivity into the BaseBindingActivity. Also rework the handler-to-UI update mechanism. Change-Id: I0a38b16ae2b2b4adb802298793cefa51b1a73104
* SdkController: fix startup UIRaphael2012-03-1611-124/+279
| | | | | | | | | | | | | | | | | SdkController Lib: - separate new EmulatorConnection() from the actual connection. This makes it easier to construct the object first and then start the connection from a thread. Otherwise the onEmulatorBindResult() callback might be called before the main thread gets the EmulatorConnection reference. SdkController App: - Main activity: Display some usage help on the screen. - Sensor handler: Fix the blocking queue used to send the sensor events to the emulator. Also display a status and report any connection errors. Change-Id: Iea0f9e79256ebd5ecfef573d33efce306a0a5722
* SdkController: javadoc for new interfaces/classes.Raphael2012-03-1611-13/+164
| | | | | | This should explain what's going on. Change-Id: I328abd139c297dad41dd8cbbdaca8e6c977e30c4
* SdkController: async bind result.Raphael2012-03-1614-90/+129
| | | | | | | | | | | | | | | | | | | | | | In SdkControllerLib: - Add an "onEmulatorBindResult" callback to the emulator listener that indicates the result of the bind operation. This makes it easier to create the EmulatorConnection from within a thread and capture the success/error when it happens. In the apps: - Changed to use the new onEmulatorBindResult. - Changed the app names to make them easier to indentify in the home launcher. - Added the missing onPause in the legacy sensors app to close the emulator connection (otherwise trying to restart it fails because the port is still bound by the paused instance) - In fact really the legacy activities should be in singleInstance mode. Change-Id: Ie194a75f9babebe74c899ea9327b3e4dcfe39f41
* SdkController service: sensor handler.Raphael2012-03-1616-159/+1407
| | | | | | | | | | | | This implement sensor control using the service. The service has a number of "handlers" (e.g. multitouch or sensors). The sensor handler is automatically started by the service. The multitouch handler OTOH will just be waiting till the controlling activity connects to it. Change-Id: Ic5f92063916efba2c4f503d2607b58bbbe4e0ccf
* Skeleton for a SdkController app with a sevice.Raphael2012-03-1425-12/+906
| | | | | | | | | | | | | | | | | | This is just a basic app that has a background service and an activity to start/stop the service. The service has a binder interface (so that the activities can control the service) and a listener (so that the service can report to activities.) The service automatically starts with the app and there's a toggle for the user to turn it off/on. The activity also reports errors from the service, if any. There's a notification when the service is running. which brings back to the control activity. Change-Id: I67d37e3d905eb328f4d1f7d13fb118f4c7077b74
* SdkController: Refactor Emulator + Listener namesRaphael2012-03-144-56/+60
| | | | | | | | Simple rename refactoring in the lib: - Emulator => EmulatorConnection - OnEmulatorListener => EmulatorListener Change-Id: I0827b564dd7edec065c634d0860014cb0e15af35
* Properly disconnect the sdk controller when needed.Xavier Ducrohet2012-03-062-3/+33
| | | | | | | | This is a temporary fix before we move to a full service. Also package the MT controller app in the SDK. Change-Id: Ib8a11f3b69d5545c9f428cbf65b27d903699e7b8
* Implements multitouch app supporting framebuffer transferVladimir Chtchetkine2012-03-018-130/+498
| | | | Change-Id: I26061ec191e00bc9da4852080d9e2fd7c7a6fac0
* SDK: verbose log for CommonXmlEditor.Raphael2012-02-061-0/+3
| | | | | | | | | | This just adds a simple printf of the resFolder + type when the CommonXmlEditor can't find a matching delegate. Also a 1-character typo fix in a lint message and ignore bin/gen folders for the sdk controller app. Change-Id: If43877e6c4d4158c475507671993fe29716a7c5e
* Support $BLOB query that transfers an arbitrary array of dataVladimir Chtchetkine2012-01-263-15/+102
| | | | Change-Id: I452287af81c86d6c64e25c6efba368ef826282ed
* Implements an app that captures touch events and transfers them to emulator.Vladimir Chtchetkine2011-12-129-0/+354
| | | | | | This application is intended to provide realistic multi-touch emulation. Change-Id: I7bc477d99eea811a349ecc640f32cb4167d3ce18
* Move sdkController app to new folder.Xavier Ducrohet2011-11-2815-0/+1679
(cherry picked from commit 892b2297a310ebdac4fe39281664ba10963b101e) Change-Id: Icca1826ce777432f635b2c2855f5638cd9bac5cf