summaryrefslogtreecommitdiffstats
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
* am 1b98a9e6: am 5219dd8e: Merge "add format parameter to setBufferGeometry" ↵Mathias Agopian2010-10-262-3/+3
|\ | | | | | | into gingerbread
| * add format parameter to setBufferGeometryMathias Agopian2010-10-252-3/+3
| | | | | | | | Change-Id: I7cc2acdc6e65e9468ecfd5b2f22e6b495a383be9
* | am c2f78020: am 23656899: Merge "Fix issue #3126018: No way to specify ↵Dianne Hackborn2010-10-241-2/+30
|\ \ | |/ | | | | | | | | | | | | | | NativeActivity\'s native method" into gingerbread Merge commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e' * commit 'c2f78020d3887539fc90230d96465e4b1dc84d8e': Fix issue #3126018: No way to specify NativeActivity's native method
| * Merge "Fix issue #3126018: No way to specify NativeActivity's native method" ↵Dianne Hackborn2010-10-241-2/+30
| |\ | | | | | | | | | into gingerbread
| | * Fix issue #3126018: No way to specify NativeActivity's native methodDianne Hackborn2010-10-241-2/+30
| | | | | | | | | | | | Change-Id: I59de6a543e7f7f45d963a905829a3f56f32bf8cf
* | | am 2ef36763: am 860c2df4: Merge "Add unit tests for native input and fix ↵Jeff Brown2010-10-241-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | bugs identified." into gingerbread Merge commit '2ef36763700eff5679d6012e7f078c57f1a4c465' * commit '2ef36763700eff5679d6012e7f078c57f1a4c465': Add unit tests for native input and fix bugs identified.
| * | Add unit tests for native input and fix bugs identified.Jeff Brown2010-10-231-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a bug where we would lose the first touch point when swiping out of the virtual key area. Fixed a bug where we would not send an ACTION_MOVE event in cases where individual pointers went down/up and the remaining pointers actually moved. This is important since many applications do not handle pointer movements during ACTION_POINTER_DOWN or ACTION_POINTER_UP. In the case of ACTION_POINTER_UP the movement was completely lost since all pointers were dispatched using their old location rather than the new location. Improved motion event validation to check for duplicate pointer ids. Added an input source constant that was missing from the NDK api but defined in the framework api. Added a timestamp when reporting added/removed devices in EventHub. Bug: 3070082 Change-Id: I3206a030f43b7616e2f48006e5a9d522c4d92e56
* | am 4f734cab: am 7ce276b5: Merge "Update script for copying NDK ↵Dianne Hackborn2010-10-221-5/+5
|\ \ | |/ | | | | headers/library." into gingerbread
| * Update script for copying NDK headers/library.Dianne Hackborn2010-10-211-5/+5
| | | | | | | | Change-Id: Ia441ce37123d5b5cd343f2746671495705501fb5
* | am 86f1b643: am bf5efba2: Merge "Fix issue #3117918: No way to finish a ↵Dianne Hackborn2010-10-212-0/+10
|\ \ | |/ | | | | | | | | | | | | | | native activity" into gingerbread Merge commit '86f1b643d10e0b5b17ae01db3b81020db87b3295' * commit '86f1b643d10e0b5b17ae01db3b81020db87b3295': Fix issue #3117918: No way to finish a native activity
| * Fix issue #3117918: No way to finish a native activityDianne Hackborn2010-10-212-0/+10
| | | | | | | | Change-Id: Ic53e712f7ab5412d72a31b96ecba252344b91644
* | Add keycodes and meta-key modifiers to support external keyboards.Jeff Brown2010-10-152-1/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new key maps for external keyboards. These maps are intended to be shared across devices by inheriting the "keyboards.mk" product makefile as part of the device's product definition. One of the trickier changes here was to unwind some code in MetaKeyKeyListener that assumed that only the low 8 bits of the meta key state were actually used. The new code abandons bitshifts in favor of simple conditionals that are probably easier to read anyways. The special meta key state constants used by MetaKeyKeyListener are now (@hide) defined in KeyEvent now so as to make it clearer that they share the same code space even if those codes are not valid for KeyEvents. The EventHub now takes care of detecting the appropriate key layout map and key character map when the device is added and sets system properties accordingly. This avoids having duplicate code in KeyCharacterMap to probe for the appropriate key character map although the current probing mechanism has been preserved for legacy reasons just in case. Added support for tracking caps lock, num lock and scroll lock and turning their corresponding LEDs on and off as needed. The key character map format will need to be updated to correctly support PC style external keyboard semantics related to modifier keys. That will come in a later change so caps lock doesn't actually do anything right now except turn the shiny LEDs on and off... Added a list of symbolic key names to KeyEvent and improved the toString() output for debug diagnosis. Having this list in a central place in the framework also allows us to remove it from Monkey so there is one less thing to maintain when we add new keycodes. Bug: 2912307 Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4
* | am 2f98a585: am 49ec3dff: Merge "OBB: Change documentation to reflect ↵Kenny Root2010-10-151-4/+4
|\ \ | |/ | | | | | | | | | | | | | | reality" into gingerbread Merge commit '2f98a585cda066689b1b525322c51fcacbc3770b' * commit '2f98a585cda066689b1b525322c51fcacbc3770b': OBB: Change documentation to reflect reality
| * OBB: Change documentation to reflect realityKenny Root2010-10-131-4/+4
| | | | | | | | | | | | | | | | | | We can't reliably detect when the key for an OBB is incorrect, so just remove the mention in the documentation. It still returns an error, but just not the most specific error. Bug: 3091064 Change-Id: I70e506822f2178a0ac5e4617fe545b23ce0026f4
* | resolved conflicts for merge of 8bb7a1df to masterKenny Root2010-10-132-34/+128
|\ \ | |/ | | | | Change-Id: Ieec036f494a54eab74a27b954d1423bf981dd3f9
| * OBB: rearrange to be entirely asynchronousKenny Root2010-10-112-34/+128
| | | | | | | | | | | | | | | | | | | | | | | | | | Rearrange structure of MountService handling of OBBs to be entirely asynchronous so we don't rely on locking as much. We still need the locking to support dumpsys which has been improved to output all the data structures for OBBs. Added more tests to cover more of the error return codes. Oh and fix a logic inversion bug. Change-Id: I34f541192dbbb1903b24825889b8fa8f43e6e2a9
* | am 22cb4ef8: am d577cfd7: Merge "Switch Looper back to using poll() instead ↵Jeff Brown2010-10-101-0/+9
|\ \ | |/ | | | | | | | | | | | | | | of epoll()." into gingerbread Merge commit '22cb4ef8ce9c4d5536ac5cee5c40b82bfa56ccc5' * commit '22cb4ef8ce9c4d5536ac5cee5c40b82bfa56ccc5': Switch Looper back to using poll() instead of epoll().
| * Switch Looper back to using poll() instead of epoll().Jeff Brown2010-10-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Added a couple of micro-optimizations to avoid calling wake() unnecessarily and reduce JNI overhead slightly. Fixed a minor issue where we were not clearing the "next" field of Messages returned by the MessageQueue so the Message would hold on to its successor and potentially prevent the GC from collecting it if the message were leaked somehow. Change-Id: I488d29417ce0cdd7d0e447cda76ec978ef7f811c
* | am c3bc8b7b: am 1bfbf19b: Merge "Fix night/notnight resource folder ↵Dianne Hackborn2010-09-301-2/+2
|\ \ | |/ | | | | | | | | | | | | | | handling." into gingerbread Merge commit 'c3bc8b7b08611c8d86919f4695430990bc6b475d' * commit 'c3bc8b7b08611c8d86919f4695430990bc6b475d': Fix night/notnight resource folder handling.
| * Fix night/notnight resource folder handling.Tobias Haamel2010-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The values for NIGHT_NO / NIGHT_YES are shifted later on in the ResourceTypes header file to match with the ones specified in the Configuration class file. This is basically the same as it's done for the SCREEN_LONG_NO / SCREEN_LONG_YES constants. Since the values are also masked later on by 0x30 (MASK_UI_MODE_NIGHT) the system currently recognizes resources specified in night/notnight folders as if they were resources which can be used for any of both modes. This results in an error saying that the resources are already specified somewhere else. Should fix: http://b/issue?id=3022577 Change-Id: I554b37231ea4c69a8625e519150473fddce7d8ed
* | resolved conflicts for merge of d8e8186c to masterKenny Root2010-09-285-15/+149
|\ \ | |/ | | | | Change-Id: Ica3f6cd958717ea7033cab8b4bf9cd3425c1e1c5
| * Update OBB API to include callbacksKenny Root2010-09-285-15/+149
| | | | | | | | | | | | | | | | | | | | | | | | Add a callback for users of the StorageManager API to be able to receive notifications when the requested operation completes for mountObb and unmountObb. Add NDK API to get to ObbInfo like the Java API has. Also update the docs for the API and remove the "STOPSHIP" comments. Change-Id: I23a4409c7f8b74d3169614beba920b4d667990a4
* | am 61cf67a2: am 24326f72: Merge "Input API review." into gingerbreadJeff Brown2010-09-161-4/+0
|\ \ | |/ | | | | | | | | | | Merge commit '61cf67a220ba3205737c646c1c836a92074220de' * commit '61cf67a220ba3205737c646c1c836a92074220de': Input API review.
| * Input API review.Jeff Brown2010-09-141-4/+0
| | | | | | | | | | | | | | Drop currently unsupported input features. Add documentation comments. Change-Id: I407d2e1dd90c5ee82983a3ccf177430d35ee7592
* | am 14bc6b5d: am 09340a4b: Merge "Replace epoll() with poll() and rename ↵Jeff Brown2010-09-156-110/+168
|\ \ | |/ | | | | | | | | | | | | | | PollLoop to Looper." into gingerbread Merge commit '14bc6b5d0677e5c454a67775c852f90389bb4567' * commit '14bc6b5d0677e5c454a67775c852f90389bb4567': Replace epoll() with poll() and rename PollLoop to Looper.
| * Replace epoll() with poll() and rename PollLoop to Looper.Jeff Brown2010-09-146-110/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of this change, consolidated and cleaned up the Looper API so that there are fewer distinctions between the NDK and non-NDK declarations (no need for two callback types, etc.). Removed the dependence on specific constants from sys/poll.h such as POLLIN. Instead looper.h defines events like LOOPER_EVENT_INPUT for the events that it supports. That should help make any future under-the-hood implementation changes easier. Fixed a couple of compiler warnings along the way. Change-Id: I449a7ec780bf061bdd325452f823673e2b39b6ae
* | resolved conflicts for merge of a05088c1 to masterJeff Brown2010-09-082-0/+23
|\ \ | |/ | | | | Change-Id: I7973f9f28586dec9b9659f8f662f40db7997a521
| * Add support for secure views.Jeff Brown2010-09-082-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | Added the MotionEvent.FLAG_WINDOW_IS_OBSCURED flag which is set by the input manager whenever another visible window is partly or wholly obscured the target of a touch event so that applications can filter touches accordingly. Added a "filterTouchesWhenObscured" attribute to View which can be used to enable filtering of touches when the view's window is obscured. Change-Id: I936d9c85013fd2d77fb296a600528d30a29027d2
* | am a1205f07: am 2d3739d4: Merge "Modify native ALooper to take an explicit ↵Dianne Hackborn2010-09-076-16/+18
|\ \ | |/ | | | | | | | | | | | | | | ident." into gingerbread Merge commit 'a1205f07a6f0c745e8f42f16fe38c06af04143c7' * commit 'a1205f07a6f0c745e8f42f16fe38c06af04143c7': Modify native ALooper to take an explicit ident.
| * Modify native ALooper to take an explicit ident.Dianne Hackborn2010-09-076-16/+18
| | | | | | | | | | | | | | | | The ALooper API now uses an explicit "identifier" for the integer that is returned rather than implicitly using the fd. This allows the APIs that had the fd to be a little more sane. Change-Id: I8507f535ad484c0bdc4a1bd016d87bb09acd7ff0
* | am df02df11: am 307ed31c: Merge "Remove incomplete input device enumeration ↵Jeff Brown2010-08-312-128/+0
|\ \ | |/ | | | | | | | | | | | | | | NDK API." into gingerbread Merge commit 'df02df115a594553b3ebaa95a0a7f7185a8787d3' * commit 'df02df115a594553b3ebaa95a0a7f7185a8787d3': Remove incomplete input device enumeration NDK API.
| * Remove incomplete input device enumeration NDK API.Jeff Brown2010-08-312-128/+0
| | | | | | | | Change-Id: I32de74ff5fcf0e29179a2aee03ddabd22fa485bb
* | am 36f0cb26: am 8d60866e: Input device calibration and capabilities.Jeff Brown2010-08-301-2/+0
|\ \ | |/ | | | | | | | | | | Merge commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030' * commit '36f0cb26cbb4ef62995ff2e5a540cf8814e7f030': Input device calibration and capabilities.
| * Input device calibration and capabilities.Jeff Brown2010-08-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Finished the input device capability API. Added a mechanism for calibrating touch devices to obtain more accurate information about the touch contact area. Improved pointer location to show new coordinates and capabilities. Optimized pointer location display and formatting to avoid allocating large numbers of temporary objects. The GC churn was causing the application to stutter very badly when more than a couple of fingers were down). Added more diagnostics. Change-Id: Ie25380278ed6f16c5b04cd9df848015850383498
* | resolved conflicts for merge of 485de781 to masterKenny Root2010-08-243-1/+215
|\ \ | |/ | | | | Change-Id: I483cb81596f09b024b1aea7fc55960183f38b24f
| * Add AStorageManager API to NDKKenny Root2010-08-203-1/+215
| | | | | | | | | | | | AStorageManager allows users of the NDK to access OBBs for now. Change-Id: I8a25757901a175aa90a9f3e8c2a5db7873e8615e
* | am 679ac09a: am a5ae50cd: Merge "More native work." into gingerbreadDianne Hackborn2010-08-119-12/+638
|\ \ | |/ | | | | | | | | | | Merge commit '679ac09a5c22175354f3a04b28456b323839530e' * commit '679ac09a5c22175354f3a04b28456b323839530e': More native work.
| * More native work.Dianne Hackborn2010-08-119-12/+638
| | | | | | | | | | | | | | Implement save/restore of state, and add native APIs for configuration information. Change-Id: I2a3ddc2ba605db58d7c8b2b31b9215fb323f90b5
* | resolved conflicts for merge of 02513855 to masterMathias Agopian2010-07-292-1/+14
|\ \ | |/ | | | | Change-Id: Ie33d57798d3d5b800edde753dac86de062bc270c
| * Added SensorManager.getMinDelay()Mathias Agopian2010-07-292-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Exposed the new "min delay" sensor property through native and java sensor apis. This allows the caller to know what is the maximum rate at which a sensor can return events, or, if a sensor works in "update" mode (events returned only when the value changes). Also augmented SensorManager.regusterSensorEvent() so that it can accept a value in microsecond in addition to the 4 constants already defined. Change-Id: If425e9979892666df8c989d7de3c362230fa19e0
* | am 31a0b956: am 3de27d5a: Merge "Add stdint.h to fix sim-eng" into gingerbreadKenny Root2010-07-281-0/+1
|\ \ | |/ | | | | | | | | | | Merge commit '31a0b956396e417bdbfee97554afb5b52d68a8ba' * commit '31a0b956396e417bdbfee97554afb5b52d68a8ba': Add stdint.h to fix sim-eng
| * Add stdint.h to fix sim-engKenny Root2010-07-281-0/+1
| | | | | | | | Change-Id: I82cebe3e769aa4db99bd758bd2f182b0d462de6f
* | am 9795a25d: am 6d0fec2d: Refactor input reader to support new device types ↵Jeff Brown2010-07-282-3/+169
|\ \ | |/ | | | | | | | | | | | | | | 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-282-3/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-212-29/+42
|\ \ | |/ | | | | Change-Id: I4245b15b4cda6963d735442c0c6a04a0477ff5e1
| * new SensorServiceMathias Agopian2010-07-192-29/+42
| | | | | | | | | | | | | | remove old sensor service and implement SensorManager on top of the new (native) SensorManger API. Change-Id: Iddb77d498755da3e11646473a44d651f12f40281
* | am 9c37e5ad: am 75a91389: Merge "Implement native key pre-dispatching to ↵Dianne Hackborn2010-07-162-2/+16
|\ \ | |/ | | | | | | | | | | | | | | IMEs." into gingerbread Merge commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961' * commit '9c37e5add9d7678a29b4e0d1e178fe78a13db961': Implement native key pre-dispatching to IMEs.
| * Implement native key pre-dispatching to IMEs.Dianne Hackborn2010-07-152-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This significantly re-works the native key dispatching code to allow events to be pre-dispatched to the current IME before being processed by native code. It introduces one new public API, which must be called after retrieving an event if the app wishes for it to be pre-dispatched. Currently the native code will only do pre-dispatching of system keys, to avoid significant overhead for gaming input. This should be improved to be smarted, filtering for only keys that the IME is interested in. Unfortunately IMEs don't currently provide this information. :p Change-Id: Ic1c7aeec8b348164957f2cd88119eb5bd85c2a9f
* | resolved conflicts for merge of aca672ba to masterJeff Brown2010-07-152-99/+205
|\ \ | |/ | | | | Change-Id: I7ae11fca0acdbf513a4870226d0d3e3cafbe9a08
| * Add support for new input sources.Jeff Brown2010-07-152-99/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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