summaryrefslogtreecommitdiffstats
path: root/services/jni
Commit message (Collapse)AuthorAgeFilesLines
* Support non-orientation aware keyboards and other devices.Jeff Brown2010-11-301-67/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Fixed a bug with dpad keys on external keyboards being rotated according to the display orientation by adding a new input device configuration property called "keyboard.orientationAware". Added a mechanism for overriding the key layout and key character map in the input device configuration file using the new "keyboard.layout" and "keyboard.characterMap" properties. Also added "trackball.orientationAware", "touch.orientationAware" and "touch.deviceType" configuration properties. Rewrote the configuration property reading code in native code so that it can be used by EventHub and other components. Added basic support for installable idc, kl, and kcm files in /data/system/devices. However, there is no provision for copying files there yet. Disabled long-press character pickers on full keyboards so that key repeating works as expected. Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
* Tell system server whether the app handled input events.Jeff Brown2010-11-081-0/+29
| | | | | | | | | | Refactored ViewRoot, NativeActivity and related classes to tell the dispatcher whether an input event was actually handled by the application. This will be used to move more of the global default key processing into the system server instead of the application. Change-Id: If06b98b6f45c543e5ac5b1eae2b3baf9371fba28
* Add API to find out if there is a vibrator.Dianne Hackborn2010-11-041-0/+6
| | | | Change-Id: If29f6ee19448222433cad9fad325d0095a8e5737
* Fix policy issues when screen is off.Jeff Brown2010-11-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrote interceptKeyBeforeQueueing to make the handling more systematic. Behavior should be identical except: - We never pass keys to applications when the screen is off and the keyguard is not showing (the proximity sensor turned off the screen). Previously we passed all non-wake keys through in this case which caused a bug on Crespo where the screen would come back on if a soft key was held at the time of power off because the resulting key up event would sneak in just before the keyguard was shown. It would then be passed through to the dispatcher which would poke user activity and wake up the screen. - We propagate the key flags when broadcasting media keys which ensures that recipients can tell when the key is canceled. - We ignore endcall or power if canceled (shouldn't happen anyways). Changed the input dispatcher to not poke user activity for canceled events since they are synthetic and should not wake the device. Changed the lock screen so that it does not poke the wake lock when the grab handle is released. This fixes a bug where the screen would come back on immediately if the power went off while the user was holding one of the grab handles because the sliding tab would receive an up event after screen turned off and release the grab handles. Fixed a couple of issues where media keys were being handled inconsistently or not at all, particularly in the case of the new PAUSE, PLAY and RECORD keys. Bug: 3144874 Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
* am faebca7f: am c9fa90f9: Merge "GPS: remove some logging" into gingerbreadMike Lockwood2010-10-281-4/+0
|\ | | | | | | | | * commit 'faebca7f4319950927759163a703dd12f2727460': GPS: remove some logging
| * am c9fa90f9: Merge "GPS: remove some logging" into gingerbreadMike Lockwood2010-10-281-4/+0
| |\ | | | | | | | | | | | | * commit 'c9fa90f94b664589d584bb433e748e2b01b368c9': GPS: remove some logging
| | * GPS: remove some loggingMike Lockwood2010-10-281-4/+0
| | | | | | | | | | | | | | | Change-Id: Ib2dca53364c9da207a87f2664b54d2ec1d1bd8d9 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | am c20f205d: am 5bfef1ba: Merge "BatteryService: Set bool to true if sysfs ↵Jean-Baptiste Queru2010-10-211-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | entry is not 0" Merge commit 'c20f205d1059ff71b21d9c44ea147e209c364d2f' * commit 'c20f205d1059ff71b21d9c44ea147e209c364d2f': BatteryService: Set bool to true if sysfs entry is not 0
| * | am 5bfef1ba: Merge "BatteryService: Set bool to true if sysfs entry is not 0"Jean-Baptiste Queru2010-10-201-1/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '5bfef1ba0501e237b3a0fa1abe98e5348d8c5b04' into gingerbread-plus-aosp * commit '5bfef1ba0501e237b3a0fa1abe98e5348d8c5b04': BatteryService: Set bool to true if sysfs entry is not 0
| | * | BatteryService: Set bool to true if sysfs entry is not 0Axel Haslam2010-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For the musb to recognized as online, the musbOnline value has to be set. The battery driver sets the online property of the sysfs as "3" when the charger type is USB. The way the current code is, if the value is not 1, musbOnline would be false and the menu to mount the sdcard on the pc would not pop-up. Since the linux driver returns 0 if the cable is not connected, and 3 if the cable is connected, we should set the boolean variable to 0 only if the sysfs value is 0, otherwise we set it to true. Change-Id: I538d8de446e7ea4f620ffcce156a57cf56b5a4e5 Signed-off-by: Axel Haslam <axelhaslam@ti.com>
* | | | am 8333d591: am 5d5a9db5: Merge "GPS: Enable some more logging" into gingerbreadMike Lockwood2010-10-191-1/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | Merge commit '8333d59133da8e56cfb5465c767e89c61ede28bc' * commit '8333d59133da8e56cfb5465c767e89c61ede28bc': GPS: Enable some more logging
| * | | am 5d5a9db5: Merge "GPS: Enable some more logging" into gingerbreadMike Lockwood2010-10-181-1/+2
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | Merge commit '5d5a9db514a9cf42fbc189fc3af6da602d89b747' into gingerbread-plus-aosp * commit '5d5a9db514a9cf42fbc189fc3af6da602d89b747': GPS: Enable some more logging
| | * | GPS: Enable some more loggingMike Lockwood2010-10-181-1/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I7d13c859002fa96fa8c361c0c709931c6b12eb99 Signed-off-by: Mike Lockwood <lockwood@google.com>
* | | | am 258d0e80: am 0d65a3fc: Merge "Screen on/off animation tweaks" into ↵Joe Onorato2010-10-161-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '258d0e805ee63685b807b5dae43efc5ecc97179e' * commit '258d0e805ee63685b807b5dae43efc5ecc97179e': Screen on/off animation tweaks
| * | | am 0d65a3fc: Merge "Screen on/off animation tweaks" into gingerbreadJoe Onorato2010-10-141-3/+3
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Merge commit '0d65a3fc075b7dbdbfaba6b570217d87e307d75f' into gingerbread-plus-aosp * commit '0d65a3fc075b7dbdbfaba6b570217d87e307d75f': Screen on/off animation tweaks
| | * | Screen on/off animation tweaksJoe Onorato2010-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Pass to surface flinger whether we want animations or not. - Don't use the animation when the screen goes off because of the prox sensor. - Turn the screen-on animation back off - Also, now the animation setting controls whether or not we do the animation. Bug: 3097475 Bug: 3098508 Change-Id: I205d5564d6668b33a8dc1c40d8cc06c4aad305cf
* | | | am 1442818a: am c792c2e9: Merge "GPS: Remove unnecessary and broken test in ↵Mike Lockwood2010-10-141-3/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | AgpsRilInterface updateNetworkState glue" into gingerbread Merge commit '1442818a10988cc011f55104e997474b5d3d2468' * commit '1442818a10988cc011f55104e997474b5d3d2468': GPS: Remove unnecessary and broken test in AgpsRilInterface updateNetworkState glue
| * | | am c792c2e9: Merge "GPS: Remove unnecessary and broken test in ↵Mike Lockwood2010-10-131-3/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | AgpsRilInterface updateNetworkState glue" into gingerbread Merge commit 'c792c2e9edb3c785208560b6961ac6ed5b07eb4e' into gingerbread-plus-aosp * commit 'c792c2e9edb3c785208560b6961ac6ed5b07eb4e': GPS: Remove unnecessary and broken test in AgpsRilInterface updateNetworkState glue
| | * | Merge "GPS: Remove unnecessary and broken test in AgpsRilInterface ↵Mike Lockwood2010-10-131-3/+1
| | |\ \ | | | | | | | | | | | | | | | updateNetworkState glue" into gingerbread
| | | * | GPS: Remove unnecessary and broken test in AgpsRilInterface ↵Mike Lockwood2010-10-111-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updateNetworkState glue Change-Id: Ic934c478f0eb6c6d368caaf41aec8235d329ef34 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | am 9a12a3c8: am ba799098: Merge changes I76513387,I335fb671 into gingerbreadJoe Onorato2010-10-132-1/+15
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96' * commit '9a12a3c8d4bb20042cf69e07d268e3a04ac71f96': Remove dead code, and make the animation a setting. turn off the electron beam
| * | | | am ba799098: Merge changes I76513387,I335fb671 into gingerbreadJoe Onorato2010-10-122-1/+15
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e' into gingerbread-plus-aosp * commit 'ba799098608c7be8ff1e18adfa7dc1f452205a7e': Remove dead code, and make the animation a setting. turn off the electron beam
| | * | | Remove dead code, and make the animation a setting.Joe Onorato2010-10-122-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we don't do the brightness fade, turn off the electron beam instead. Change-Id: I76513387c4fb420a67e59e005f6e8c3bc72f7f08
* | | | | am 4b255a23: am 03aa28fb: Merge "Improve the input policy handling a bit." ↵Jeff Brown2010-10-131-44/+64
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit '4b255a23041225103a6870e77a236f78c2816eda' * commit '4b255a23041225103a6870e77a236f78c2816eda': Improve the input policy handling a bit.
| * | | | am 03aa28fb: Merge "Improve the input policy handling a bit." into gingerbreadJeff Brown2010-10-121-44/+64
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '03aa28fb36589a3d601be08e75c08a24c4344d6f' into gingerbread-plus-aosp * commit '03aa28fb36589a3d601be08e75c08a24c4344d6f': Improve the input policy handling a bit.
| | * | | Improve the input policy handling a bit.Jeff Brown2010-10-121-44/+64
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Fixed some issues with Monkeys turning off their own screens. Ook ook! Added some more comments to explain what's going on. Change-Id: Id2bc0466161a642a73ef7ef97725d1c81e984b12
| * | | am 1da8d4d1: Merge "Fix an event injection bug when the policy is bypassed." ↵Jeff Brown2010-10-111-151/+99
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit '1da8d4d1697cec871dea8c30dad67e90db10bde6' into gingerbread-plus-aosp * commit '1da8d4d1697cec871dea8c30dad67e90db10bde6': Fix an event injection bug when the policy is bypassed.
| | * | Merge "Fix an event injection bug when the policy is bypassed." into gingerbreadJeff Brown2010-10-111-151/+99
| | |\ \
| | | * | Fix an event injection bug when the policy is bypassed.Jeff Brown2010-10-111-151/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the concept of a "trusted" event to distinguish between events from attached input devices or trusted injectors vs. other applications. This change enables us to move certain policy decisions out of the dispatcher and into the policy itself where they can be handled more systematically. Change-Id: I4d56fdcdd31aaa675d452088af39a70c4e039970
* | | | | am 431dd3b1: am 86564dc6: Merge "GPS: Add update_network_state call to ↵Mike Lockwood2010-10-121-0/+18
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AGpsRillInterface" into gingerbread Merge commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398' * commit '431dd3b1bc8f2acf7cbcf08463649b5629baf398': GPS: Add update_network_state call to AGpsRillInterface
| * | | | am 86564dc6: Merge "GPS: Add update_network_state call to AGpsRillInterface" ↵Mike Lockwood2010-10-111-0/+18
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into gingerbread Merge commit '86564dc673db6dd752c326e53404677a3db43bec' into gingerbread-plus-aosp * commit '86564dc673db6dd752c326e53404677a3db43bec': GPS: Add update_network_state call to AGpsRillInterface
| | * | | GPS: Add update_network_state call to AGpsRillInterfaceMike Lockwood2010-10-111-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I404a7a45773f592de7dfe75a8287fef15515ea8b Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | | Merge "Track input state when transferring touch focus."Jeff Brown2010-10-111-2/+0
|\ \ \ \ \
| * | | | | Track input state when transferring touch focus.Jeff Brown2010-10-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copies the input state to the destination window and sends synthesic cancelation events to the source window. Change-Id: Ia75820b0d756ed5d6cd22dce7830251ac85141ed
* | | | | | Merge "Fix an event injection bug when the policy is bypassed."Jeff Brown2010-10-111-151/+99
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Fix an event injection bug when the policy is bypassed.Jeff Brown2010-10-111-151/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the concept of a "trusted" event to distinguish between events from attached input devices or trusted injectors vs. other applications. This change enables us to move certain policy decisions out of the dispatcher and into the policy itself where they can be handled more systematically. Cherry pick of b931a1b4 from gingerbread into master. Change-Id: I700a5f07b8b227878cea9437a289a45a245c0424
* | | | | | am 89fbcd72: resolved conflicts for merge of c2894474 to gingerbread-plus-aospJean-Baptiste Queru2010-10-111-0/+5
|\ \ \ \ \ \ | | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '89fbcd72fbe6ef26ea2703f8e338fd198c958ecc' * commit '89fbcd72fbe6ef26ea2703f8e338fd198c958ecc': Support showing "Cold" battery health.
| * | | | | resolved conflicts for merge of c2894474 to gingerbread-plus-aospJean-Baptiste Queru2010-10-101-0/+5
| |\ \ \ \ \ | | |_|/ / / | |/| | | / | | | |_|/ | | |/| | Change-Id: Ie00785e37809b677d6e8ab44c47e1f26037793d2
| | * | | Support showing "Cold" battery health.Imre Sunyi2010-10-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Linux kernel supports reporting "cold" battery health to sysfs. Android framework has not implemented this and it defaults to "unknown" This adds handling the cold battery health. Change-Id: Idcc156aae6aabce73391081143f79d052edf332e
* | | | | am 1bdba9fa: am 2f77c3e4: Merge "GPS: Fix another race condition in GPS HAL ↵Mike Lockwood2010-10-111-28/+28
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | | | | | | | | | | | | | | | | | | initialization" into gingerbread Merge commit '1bdba9fa3178d00a03dcbc3ede1818f7bff07e61' * commit '1bdba9fa3178d00a03dcbc3ede1818f7bff07e61': GPS: Fix another race condition in GPS HAL initialization
| * | | GPS: Fix another race condition in GPS HAL initializationMike Lockwood2010-10-101-28/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 3082940 Change-Id: I0953882cb768aec608f754c3bc9ab41418eded97 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | | am 41aabeb5: am 1e6a3a53: Merge "Added more robust tracking and cancelation ↵Jeff Brown2010-10-111-32/+33
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | of events." into gingerbread Merge commit '41aabeb51305d19747687f246080f44fc2a74435' * commit '41aabeb51305d19747687f246080f44fc2a74435': Added more robust tracking and cancelation of events.
| * | | Merge "Added more robust tracking and cancelation of events." into gingerbreadJeff Brown2010-10-101-32/+33
| |\ \ \ | | | |/ | | |/|
| | * | Added more robust tracking and cancelation of events.Jeff Brown2010-10-101-32/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes several issues where events would be dropped in the input dispatch pipeline in such a way that the dispatcher could not accurately track the state of the input device. Given more robust tracking, we can now also provide robust cancelation of input events in cases where an application might otherwise become out of sync with the event stream due to ANR, app switch, policy decisions, or forced focus transitions. Pruned some of the input dispatcher log output. Moved the responsibility for calling intercept*BeforeQueueing into the input dispatcher instead of the input reader and added support for early interception of injected events for events coming from trusted sources. This enables behaviors like injection of media keys while the screen is off, haptic feedback of injected virtual keys, so injected events become more "first class" in a way. Change-Id: Iec6ff1dd21e5f3c7feb80ea4feb5382bd090dbd9
* | | | am 2d39374f: am 66e60604: Merge "GPS: More HAL initialization cleanup" into ↵Mike Lockwood2010-10-111-9/+32
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '2d39374f081031871a15c4532242afe9a8738f9f' * commit '2d39374f081031871a15c4532242afe9a8738f9f': GPS: More HAL initialization cleanup
| * | | GPS: More HAL initialization cleanupMike Lockwood2010-10-101-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 3082940 Change-Id: Idd584ab8fe4512aae0769ecd1274c55d6ea2e5e7 Signed-off-by: Mike Lockwood <lockwood@google.com>
* | | | am 748b413e: am 1c3ef787: Merge "GPS: Do not call sGpsInterface->init() ↵Mike Lockwood2010-10-111-19/+24
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | multiple times" into gingerbread Merge commit '748b413e94c73b760c63a03126df2c4712a1ae05' * commit '748b413e94c73b760c63a03126df2c4712a1ae05': GPS: Do not call sGpsInterface->init() multiple times
| * | | GPS: Do not call sGpsInterface->init() multiple timesMike Lockwood2010-10-091-19/+24
| |/ / | | | | | | | | | | | | Change-Id: I5f2b55959bd67864168690c1fe619e55edc18268 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | resolved conflicts for merge of 6327a9fe to masterMike Lockwood2010-10-071-50/+178
|\ \ \ | |/ / | | | | | | Change-Id: I1a398a7100abf75d8df7ae9a3d6110829645ae64
| * | GPS: Clean up GPS API extension initialization in JNI code.Mike Lockwood2010-10-051-73/+107
| | | | | | | | | | | | | | | Change-Id: Ic5551c94bfb4e2c31cdc3ed92d938f00f46785d6 Signed-off-by: Mike Lockwood <lockwood@android.com>