summaryrefslogtreecommitdiffstats
path: root/native
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | am 078ccbdb: am 2c40582a: Merge "Add native C APIs for working with the ↵Christopher Tate2010-07-154-0/+366
|\ \ | |/ | | | | | | | | | | | | | | Asset Manager" into gingerbread Merge commit '078ccbdbb98c118aa87cab2fef61ff90dd128358' * commit '078ccbdbb98c118aa87cab2fef61ff90dd128358': Add native C APIs for working with the Asset Manager
| * Add native C APIs for working with the Asset ManagerChristopher Tate2010-07-154-0/+366
| | | | | | | | Change-Id: I493b142c4b35e5cc1a1e85283bb5dfb306a6d261
* | am 7417ae93: am ccc77328: Merge "Remove old glue code." into gingerbreadDianne Hackborn2010-07-143-553/+0
|\ \ | |/ | | | | | | | | | | Merge commit '7417ae9354e10971c0b5d41dc9194fab17b80ea1' * commit '7417ae9354e10971c0b5d41dc9194fab17b80ea1': Remove old glue code.
| * Merge "Remove old glue code." into gingerbreadDianne Hackborn2010-07-143-553/+0
| |\
| | * Remove old glue code.Dianne Hackborn2010-07-143-553/+0
| | | | | | | | | | | | Change-Id: Ic4a9c1f09d9bd4258d9766d546b0999b79997635
* | | am db386f2c: am c9a11088: Merge "first step at implementing the native ↵Mathias Agopian2010-07-142-1/+153
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | sensor support" into gingerbread Merge commit 'db386f2c263c6e9e4b825d4c9a320849f8f2c916' * commit 'db386f2c263c6e9e4b825d4c9a320849f8f2c916': first step at implementing the native sensor support
| * | Merge "first step at implementing the native sensor support" into gingerbreadMathias Agopian2010-07-142-1/+153
| |\ \ | | |/ | |/|
| | * first step at implementing the native sensor supportMathias Agopian2010-07-132-1/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in this commit: - implemented the C stub - implemented the binder interfaces involved - implemented most of the C++ client side missing: - SensorManager cannot connect to the SensorServer yet (because there is no SensorServer yet) Change-Id: I75010cbeef31c98d6fa62fd5d388dcef87c2636b
* | | Adding the old legacy method for getTtsEngine for Froyo compatibility.Charles Chen2010-07-141-0/+5
| | | | | | | | | | | | Change-Id: I1f29f1b670137daff0c153e9f7ecdb7bfb2b5ff6
* | | am e69204a0: am 36ff93aa: Merge "NDK sensor API" into gingerbreadMathias Agopian2010-07-131-0/+235
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'e69204a02a9d2babd5352180fb541e7295db911a' * commit 'e69204a02a9d2babd5352180fb541e7295db911a': NDK sensor API
| * | Merge "NDK sensor API" into gingerbreadMathias Agopian2010-07-131-0/+235
| |\ \ | | |/
| | * NDK sensor APIMathias Agopian2010-07-131-0/+235
| | | | | | | | | | | | Change-Id: Ie07afc349ca3331e065725ba9d7ebe9722959653
* | | am f8d9379b: am d76b67c3: IME events are now dispatched to native applications.Dianne Hackborn2010-07-135-53/+152
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'f8d9379bd834573feca085284970cf686993c330' * commit 'f8d9379bd834573feca085284970cf686993c330': IME events are now dispatched to native applications.
| * | IME events are now dispatched to native applications.Dianne Hackborn2010-07-135-53/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And also: - APIs to show and hide the IME, and control its interaction with the app. - APIs to tell the app when its window resizes and needs to be redrawn. - API to tell the app the content rectangle of its window (to layout around the IME or status bar). There is still a problem with IME interaction -- we need a way for the app to deliver events to the IME before it handles them, so that for example the back key will close the IME instead of finishing the app. Change-Id: I37b75fc2ec533750ef36ca3aedd2f0cc0b5813cd
* | | am 89ee578b: am fd035829: Add initial gamepad support.Jeff Brown2010-07-132-106/+117
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit '89ee578b7053d27a50922f82feb94bf6054b330c' * commit '89ee578b7053d27a50922f82feb94bf6054b330c': Add initial gamepad support.
| * | Add initial gamepad support.Jeff Brown2010-07-132-106/+117
| |/ | | | | | | Change-Id: I0439648f6eb5405f200e4223c915eb3a418b32b9
* | am bbf0bde5: am faccac76: Make a stupid thing about the glue less stupid.Dianne Hackborn2010-07-092-18/+14
|\ \ | |/ | | | | | | | | | | Merge commit 'bbf0bde5d8311f84b6f0a8d018d78a78429602b7' * commit 'bbf0bde5d8311f84b6f0a8d018d78a78429602b7': Make a stupid thing about the glue less stupid.
| * Make a stupid thing about the glue less stupid.Dianne Hackborn2010-07-092-18/+14
| | | | | | | | | | | | | | There is no reason to make the app developer delete the glue. Seriously. Change-Id: Ic6a93ba17b44889783b35a2a0a2b67ffcd647f47
* | am b14f325a: am 289b9b62: Add ANativeWindow API for directly drawing to the ↵Dianne Hackborn2010-07-0911-19/+276
|\ \ | |/ | | | | | | | | | | | | | | surface bits. Merge commit 'b14f325a0118ffce286155caaabaae149653462c' * commit 'b14f325a0118ffce286155caaabaae149653462c': Add ANativeWindow API for directly drawing to the surface bits.
| * Add ANativeWindow API for directly drawing to the surface bits.Dianne Hackborn2010-07-0911-19/+276
| | | | | | | | | | | | | | | | | | | | | | Also other cleanup and fixes: - We now properly set the default window format to 565. - New APIs to set the window format and flags from native code. - Tweaked glue for simpler handling of the "destroy" message. - Um, other stuff. Change-Id: Id7790a21a2fa9a19b91854d225324a7c1e7c6ade
* | am 49159f07: am 74bf59b4: Merge "Add new glue code for writing native apps." ↵Dianne Hackborn2010-07-087-14/+621
|\ \ | |/ | | | | | | | | | | | | | | into gingerbread Merge commit '49159f0748c704e53a7bd754f26113d9ab844a97' * commit '49159f0748c704e53a7bd754f26113d9ab844a97': Add new glue code for writing native apps.