summaryrefslogtreecommitdiffstats
path: root/services/jni
Commit message (Collapse)AuthorAgeFilesLines
* am f66f8a58: am 95af0c14: Merge "Add support for the PointerLocation ↵Jeff Brown2010-08-111-8/+70
|\ | | | | | | | | | | | | | | | | overlay." into gingerbread Merge commit 'f66f8a58cc4412bd258e1d5b11cac17a617bdc58' * commit 'f66f8a58cc4412bd258e1d5b11cac17a617bdc58': Add support for the PointerLocation overlay.
| * Add support for the PointerLocation overlay.Jeff Brown2010-08-111-8/+70
| | | | | | | | | | | | | | | | | | | | This change involves adding a new method to IWindowManager, monitorInput() that returns an InputChannel to receive a copy of all input that is dispatched to applications. The caller must have the READ_INPUT_STATE permission to make this request (similar to other window manager methods such as getKeycodeState). Change-Id: Icd14d810174a5b2928671ef16de73af88302aea0
| * DO NOT MERGE: Fix input event injection ANRs on UI thread.Jeff Brown2010-07-291-22/+33
| | | | | | | | | | | | | | Added a new asynchronous injection mode and made the existing synchronization mechanism more robust. Change-Id: Ia4aa04fd9b75ea2461a844c5b7933c831c1027e6
* | Fixed StatusBar ANRs due to input event injection on UI thread.Jeff Brown2010-07-291-22/+33
| | | | | | | | | | | | | | Added a new asynchronous injection mode and made the existing synchronization mechanism more robust. Change-Id: I0464f70ff5cbd519dbb02686b2cb5d810fe7dbb2
* | Merge changes I00d6980a,I814221b4,Id88603a5Mike Lockwood2010-07-283-0/+179
|\ \ | | | | | | | | | | | | | | | | | | * changes: CameraBrowser: Launch itself when a camera is attached to USB. Send Intents when PTP compatible devices are connected/disconnected to USB Give system server permission to access USB.
| * | Send Intents when PTP compatible devices are connected/disconnected to USBMike Lockwood2010-07-273-0/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | Usb.ACTION_USB_CAMERA_ATTACHED and Usb.ACTION_USB_CAMERA_DETACHED are sent when cameras are connected and disconnected. The data field of the intent contains a Uri for the camera in the Mtp content provider. Change-Id: I814221b4f0507b309997c71edb5a041e8efc54f7 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am 9795a25d: am 6d0fec2d: Refactor input reader to support new device types ↵Jeff Brown2010-07-281-52/+92
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | more easily. Merge commit '9795a25da060f9a7df87da8ab43fb1086d4322a5' * commit '9795a25da060f9a7df87da8ab43fb1086d4322a5': Refactor input reader to support new device types more easily.
| * Refactor input reader to support new device types more easily.Jeff Brown2010-07-281-52/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the input reader so that each raw input protocol is handled by a separate subclass of the new InputMapper type. This way, behaviors pertaining to keyboard, trackballs, touchscreens, switches and other devices are clearly distinguished for improved maintainability. Added partial support for describing capabilities of input devices (incomplete and untested for now, will be fleshed out in later commits). Simplified EventHub interface somewhat since InputReader is taking over more of the work. Cleaned up some of the interactions between InputManager and WindowManagerService related to reading input state. Fixed swiping finger from screen edge into display area. Added logging of device information to 'dumpsys window'. Change-Id: I17faffc33e3aec3a0f33f0b37e81a70609378612
* | resolved conflicts for merge of bc54e63c to masterMathias Agopian2010-07-213-180/+0
|\ \ | |/ | | | | Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
| * new SensorServiceMathias Agopian2010-07-193-180/+0
| | | | | | | | | | | | | | remove old sensor service and implement SensorManager on top of the new (native) SensorManger API. Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
* | am 7b8df313: am 00ba8844: Fix individual pointer id up/down reporting.Jeff Brown2010-07-161-3/+7
|\ \ | |/ | | | | | | | | | | Merge commit '7b8df313f714d6e8d536e0f8bbe5496fe9a6c26d' * commit '7b8df313f714d6e8d536e0f8bbe5496fe9a6c26d': Fix individual pointer id up/down reporting.
| * Fix individual pointer id up/down reporting.Jeff Brown2010-07-161-3/+7
| | | | | | | | | | | | Fix a minor threading bug in InputManager dump. Change-Id: Ic2eecf7df5a8dc9f40561fcb03ebe58a2c073778
* | resolved conflicts for merge of f7adbe10 to masterJeff Brown2010-07-161-20/+54
|\ \ | |/ | | | | Change-Id: I898a5e53b180adaee2337c0c0b9896c799d056e7
| * Fix bug with phantom input windows.Jeff Brown2010-07-161-20/+54
| | | | | | | | | | | | | | | | | | | | | | Add dumpsys integration for the native input dispatcher. Add some InputDevice API stubs. Add an appendFormat helper method to String8 for printf style string formatting mainly for debugging purposes. Use generic ArrayList<WindowState> everywhere in WindowManagerService to eliminate unnecessary casts all over. Change-Id: I9d1e3bd90eb7222d10620200477f11b7bfd25e44
* | resolved conflicts for merge of aca672ba to masterJeff Brown2010-07-151-51/+73
|\ \ | |/ | | | | Change-Id: I7ae11fca0acdbf513a4870226d0d3e3cafbe9a08
| * Add support for new input sources.Jeff Brown2010-07-151-51/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added several new coordinate values to MotionEvents to capture touch major/minor area, tool major/minor area and orientation. Renamed NDK input constants per convention. Added InputDevice class in Java which will eventually provide useful information about available input devices. Added APIs for manufacturing new MotionEvent objects with multiple pointers and all necessary coordinate data. Fixed a bug in the input dispatcher where it could get stuck with a pointer down forever. Fixed a bug in the WindowManager where the input window list could end up containing stale removed windows. Fixed a bug in the WindowManager where the input channel was being removed only after the final animation transition had taken place which caused spurious WINDOW DIED log messages to be printed. Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
* | am 89ee578b: am fd035829: Add initial gamepad support.Jeff Brown2010-07-131-16/+16
|\ \ | |/ | | | | | | | | | | Merge commit '89ee578b7053d27a50922f82feb94bf6054b330c' * commit '89ee578b7053d27a50922f82feb94bf6054b330c': Add initial gamepad support.
| * Add initial gamepad support.Jeff Brown2010-07-131-16/+16
| | | | | | | | Change-Id: I0439648f6eb5405f200e4223c915eb3a418b32b9
* | resolved conflicts for merge of 167449e5 to masterJeff Brown2010-07-086-447/+265
|\ \ | |/ | | | | Change-Id: Ib448e69a726eb45b5c9099d2574e40b8345eee67
| * More native input dispatch work.Jeff Brown2010-07-036-447/+265
| | | | | | | | | | | | | | | | | | | | Removed old input dispatch code. Refactored the policy callbacks. Pushed a tiny bit of the power manager state down to native. Fixed long press on MENU. Made the virtual key detection and cancelation a bit more precise. Change-Id: I5d8c1062f7ea0ab3b54c6fadb058c4d5f5a9e02e
* | am 0c2df984: am d8ae2885: Merge "Fix injection of specially intercepted keys ↵Jeff Brown2010-06-301-30/+31
|\ \ | |/ | | | | | | | | | | | | | | like HOME." into gingerbread Merge commit '0c2df98425c8fa4ce092eebea80ae197547f6a86' * commit '0c2df98425c8fa4ce092eebea80ae197547f6a86': Fix injection of specially intercepted keys like HOME.
| * Fix injection of specially intercepted keys like HOME.Jeff Brown2010-06-301-30/+31
| | | | | | | | | | | | | | | | This change mainly unwinds a premature optimization in the dispatch pipeline. To test HOME injection, run 'adb shell input keyevent 3'. Change-Id: I1c4b7377c205da7c898014b8b07fc6dc1d46e4dd
* | am 2a28f4b4: am 5b8364a9: GPS: stifle some loggingMike Lockwood2010-06-301-14/+1
|\ \ | |/ | | | | | | | | | | Merge commit '2a28f4b40c36ab3a8a80467eb5781ae6e5811369' * commit '2a28f4b40c36ab3a8a80467eb5781ae6e5811369': GPS: stifle some logging
| * GPS: stifle some loggingMike Lockwood2010-06-301-14/+1
| | | | | | | | | | Change-Id: Ifc68f27a6cb841240db182f4c77ddd8085a8c149 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am af4a2d1f: am ddcb543a: Merge "Fix native input dispatch in the emulator." ↵Chris Tate2010-06-291-1/+1
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit 'af4a2d1f52c7d54408db341781399d2886de72c1' * commit 'af4a2d1f52c7d54408db341781399d2886de72c1': Fix native input dispatch in the emulator.
| * Fix native input dispatch in the emulator.Jeff Brown2010-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | Set a default orientation of ROTATION_0. Added some more careful checks based on whether we have valid absolute axis information from the driver. Reset key repeating during configuration changes since the keyboard device may have been removed. Change-Id: I685960828acffcb17595fc5683309e8064a76714
* | am 96725326: am 31e0ffe8: Merge "Native input event dispatching." into ↵Chris Tate2010-06-281-104/+1264
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '96725326149687168937cf62f75364cf9cc3e96b' * commit '96725326149687168937cf62f75364cf9cc3e96b': Native input event dispatching.
| * Native input event dispatching.Jeff Brown2010-06-281-104/+1264
| | | | | | | | | | | | | | | | | | Target identification is now fully native. Fixed a couple of minor issues related to input injection. Native input enabled by default, can be disabled by setting WindowManagerPolicy.ENABLE_NATIVE_INPUT_DISPATCH to false. Change-Id: I7edf66ed3e987cc9306ad4743ac57a116af452ff
* | am dae19d7c: am aaf39f84: Merge "GPS: remove GpsEventThread from ↵Mike Lockwood2010-06-231-233/+124
|\ \ | |/ | | | | | | | | | | | | | | GpsLocationProvider" into gingerbread Merge commit 'dae19d7c00455e500cc9731071557ea91f162a7d' * commit 'dae19d7c00455e500cc9731071557ea91f162a7d': GPS: remove GpsEventThread from GpsLocationProvider
| * GPS: remove GpsEventThread from GpsLocationProviderMike Lockwood2010-06-221-233/+124
| | | | | | | | | | | | | | | | | | | | | | Rather than polling for events from the native code in an event thread, we now require the GPS HAL libraries to call our callbacks from a thread that is registered with the JVM to call directly into Java. This eliminates a thread from our code and removes one step in the chain of message passing from the GPS to the Location Manager client. Change-Id: I2745a157690310ba9a699a8369f54a7366c6b1ba Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am b1efc3f6: am 7fbdc84e: More native input event dispatching.Jeff Brown2010-06-231-71/+286
|\ \ | |/ | | | | | | | | | | Merge commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe' * commit 'b1efc3f68277a8c38c21e2d2e8ce05287118ecfe': More native input event dispatching.
| * More native input event dispatching.Jeff Brown2010-06-211-71/+286
| | | | | | | | | | | | | | | | | | | | | | Added ANRs handling. Added event injection. Fixed a NPE ActivityManagerServer writing ANRs to the drop box. Fixed HOME key interception. Fixed trackball reporting. Fixed pointer rotation in landscape mode. Change-Id: I50340f559f22899ab924e220a78119ffc79469b7
* | am 42bb545a: am 5c225b16: Even more native input dispatch work in progress.Jeff Brown2010-06-171-10/+20
|\ \ | |/ | | | | | | | | | | Merge commit '42bb545a54d89f0ddbb230d7a01ea4210c0f6c00' * commit '42bb545a54d89f0ddbb230d7a01ea4210c0f6c00': Even more native input dispatch work in progress.
| * Even more native input dispatch work in progress.Jeff Brown2010-06-171-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added more tests. Fixed a regression in Vector. Fixed bugs in pointer tracking. Fixed a starvation issue in PollLoop when setting or removing callbacks. Fixed a couple of policy nits. Modified the internal representation of MotionEvent to be more efficient and more consistent. Added code to skip/cancel virtual key processing when there are multiple pointers down. This helps to better disambiguate virtual key presses from stray touches (such as cheek presses). Change-Id: I2a7d2cce0195afb9125b23378baa94fd2fc6671c
* | am 2dfd2aa4: am 92266a78: Merge "More work in progress on native events." ↵Jeff Brown2010-06-151-408/+508
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '2dfd2aa413a91965c1a247980598c795db9b4c38' * commit '2dfd2aa413a91965c1a247980598c795db9b4c38': More work in progress on native events.
| * More work in progress on native events.Jeff Brown2010-06-151-408/+508
| | | | | | | | | | | | | | | | Refactored the code to eliminate potential deadlocks due to re-entrant calls from the policy into the dispatcher. Also added some plumbing that will be used to notify the framework about ANRs. Change-Id: Iba7a10de0cb3c56cd7520d6ce716db52fdcc94ff
* | resolved conflicts for merge of 9e660c82 to masterJeff Brown2010-06-134-7/+757
|\ \ | |/ | | | | Change-Id: Ic4bd85cbaa5b9a10dcb474a0dad46490bf967e43
| * Native input dispatch rewrite work in progress.Jeff Brown2010-06-134-7/+757
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old dispatch mechanism has been left in place and continues to be used by default for now. To enable native input dispatch, edit the ENABLE_NATIVE_DISPATCH constant in WindowManagerPolicy. Includes part of the new input event NDK API. Some details TBD. To wire up input dispatch, as the ViewRoot adds a window to the window session it receives an InputChannel object as an output argument. The InputChannel encapsulates the file descriptors for a shared memory region and two pipe end-points. The ViewRoot then provides the InputChannel to the InputQueue. Behind the scenes, InputQueue simply attaches handlers to the native PollLoop object that underlies the MessageQueue. This way MessageQueue doesn't need to know anything about input dispatch per-se, it just exposes (in native code) a PollLoop that other components can use to monitor file descriptor state changes. There can be zero or more targets for any given input event. Each input target is specified by its input channel and some parameters including flags, an X/Y coordinate offset, and the dispatch timeout. An input target can request either synchronous dispatch (for foreground apps) or asynchronous dispatch (fire-and-forget for wallpapers and "outside" targets). Currently, finding the appropriate input targets for an event requires a call back into the WindowManagerServer from native code. In the future this will be refactored to avoid most of these callbacks except as required to handle pending focus transitions. End-to-end event dispatch mostly works! To do: event injection, rate limiting, ANRs, testing, optimization, etc. Change-Id: I8c36b2b9e0a2d27392040ecda0f51b636456de25
* | am 04598b67: GPS: Support for GPS HAL managing its own schedulingMike Lockwood2010-04-151-7/+31
|\ \ | |/
| * GPS: Support for GPS HAL managing its own schedulingMike Lockwood2010-04-141-7/+31
| | | | | | | | | | | | | | Also update to support new position mode API. Change-Id: I00acc094d3e85bc5c0cd431af517064bfa8f2b1a Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 56645e26: Merge branch \'kraken\' of ↵Patrick Scott2010-04-151-1/+17
|\ \ | |/ | | | | ssh://android-git:29418/platform/frameworks/base into kraken
| * Add wake lock utility functions for the GPS HAL.Mike Lockwood2010-04-141-1/+17
| | | | | | | | | | Change-Id: I9071f31badee9628126c91cd4ce55acf41ee186f Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Remove GPS privacy support to fix merge problem.Mike Lockwood2010-04-051-13/+0
| | | | | | | | | | Change-Id: Ib00543b339a6358989779828459b120d1c647b72 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am edff6dbe: Merge "Switch from hardware_legacy to new HAL GPS interface." ↵Mike Lockwood2010-04-051-4/+22
|\ \ | |/ | | | | into kraken
| * Switch from hardware_legacy to new HAL GPS interface.Mike Lockwood2010-04-051-4/+22
| | | | | | | | | | Change-Id: I19b299fbcbd44d711a64ece98955d095eb9ffa2b Signed-off-by: Mike Lockwood <lockwood@android.com>
| * Move files internal to LocationManagerService from framework.jar to services.jarMike Lockwood2010-04-043-0/+534
| | | | | | | | | | Change-Id: Iebbfc49b8300ab59730733efdf489ec87ea45a25 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | am 6801cedb: am 6a3e7dfa: am c738783c: Merge "Fix alarms with negative or ↵Jeff Brown2010-03-311-9/+5
|\ \ | |/ | | | | very large wakup times." into froyo
| * Fix alarms with negative or very large wakup times.Jeff Brown2010-03-311-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the wakeup time is negative, the kernel /dev/alarm driver never triggers the alarm. This can cause alarms to back up in the priority queue since an alarm at the head with a negative wakup time will never be triggered. Now we use 0 as the wakup time which causes an immediate triggering. When the wakeup time is very large, it is possible for a numeric overflow to occur when converting the timestamp from milliseconds since epoch to nanoseconds. This has been fixed by avoiding the intermediate conversion in the JNI call so that overflow cannot occur. Bug: b/2558820 Change-Id: I4f5b4646a04090cc749a9fc5d3982a68402954ef
* | Add support for GPS privacy lock.Mike Lockwood2010-03-311-6/+17
| | | | | | | | | | Change-Id: Iddece21179877efae7d04db10fa58b1c6f94b1d1 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Move files internal to LocationManagerService from framework.jar to services.jarMike Lockwood2010-03-263-0/+534
|/ | | | | Change-Id: I3dbb40210d87708e0bff46729f707d4ab8e29e42 Signed-off-by: Mike Lockwood <lockwood@android.com>