| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| |
| |
| |
| |
| | |
Merge commit 'd7cd560af506f75d07034c136bea09b409b4d408'
* commit 'd7cd560af506f75d07034c136bea09b409b4d408':
Use correct size of GAMEPAD_KEYCODES
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Compute the actual number of indices in the GAMEPAD_KEYCODES instead of
the pure size in bytes.
Bug: 3121536
Change-Id: I71edbd8bf6eff2c8cc0ea5c6845362b3d1e06466
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
user activity." into gingerbread
Merge commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e'
* commit 'f2c406030874b355ca9e4e67cc0e3aff6103c23e':
Fix bug where home presses were not poking user activity.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We now poke user activity twice: once upon dequeueing an event
for dispatch and then again just before we dispatch it. The second
poke is to compensate for the fact that it can take a few seconds to
identify the dispatch target (if the application is responding slowly)
but we want to keep the display from going to sleep for X amount of time
after the app gets a chance to actually receive the event. This mirrors
pre-Gingerbread behavior.
Removed some unnecessary code that filters user activity pokes when sending
events to KeyGuard. We don't need this because KeyGuard already tells the
power manager to disable user activity.
Bug: 3101397
Change-Id: I8c3a77601fdef8f584e84cfdd11aa79da0ff51db
|
| | |
| |
| |
| |
| |
| |
| | |
Useful for tweaking touch screen alignment without having to modify the
kernel device driver x/y axis bounds.
Change-Id: I6ca43d3c138548f9dfb76aa33150a0c853698fb6
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
windows are removed." into gingerbread
Merge commit '9e0e054388689fd618c84a283c28ee484477b44d'
* commit '9e0e054388689fd618c84a283c28ee484477b44d':
Fix a native crash in input dispatcher when windows are removed.
|
| | |
| |
| |
| |
| | |
Bug: 3101826
Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.
Bug: 3098519
Change-Id: I8f8398f4fdeb0469e5d71124c21bedf121bd8c07
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
into gingerbread
Merge commit '5f0cbfcecc4db20f897507c826296b3aac70c592'
* commit '5f0cbfcecc4db20f897507c826296b3aac70c592':
Improve input device calibration format.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Added support for calibrating touch size for devices that report
size as an area measurement rather than as a width.
Fixed some bugs.
Bug: 3096045
Change-Id: I30a12e73752883516ed054f8af407204bca45814
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Manual merge from Gingerbread.
This change adds a new window type for secure system overlays
created by the system itself from non-secure system overlays that
might be created by applications that have the system alert permission.
Secure views ignore the presence of secure system overlays.
Bug: 3098519
Change-Id: Id876736fd8bf332ff9a5428bde59f5268aa49c3a
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
devices immediately." into gingerbread
Merge commit '567db07702f851f2e7fb1fb0021ce2871469183e'
* commit '567db07702f851f2e7fb1fb0021ce2871469183e':
Make sure EventHub reports added/removed devices immediately.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Fixed a bug where EventHub would not report changes in devices
until the next event.
Bug: 3096147
Change-Id: Ie4c3e1d14d0ad806cfaa212611ce06034d1b94d4
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
into gingerbread
Merge commit '4b255a23041225103a6870e77a236f78c2816eda'
* commit '4b255a23041225103a6870e77a236f78c2816eda':
Improve the input policy handling a bit.
|
| | |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
for motions." into gingerbread
Merge commit 'b05632aae37ea3a3573aabf10e6868733546de96'
* commit 'b05632aae37ea3a3573aabf10e6868733546de96':
Fix a bug synthesizing cancelation events for motions.
|
| | |
| |
| |
| | |
Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
| |
| |
| |
| |
| |
| | |
Copies the input state to the destination window and sends synthesic
cancelation events to the source window.
Change-Id: Ia75820b0d756ed5d6cd22dce7830251ac85141ed
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
of events." into gingerbread
Merge commit '41aabeb51305d19747687f246080f44fc2a74435'
* commit '41aabeb51305d19747687f246080f44fc2a74435':
Added more robust tracking and cancelation of events.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |\ \ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Register buffers with Gralloc when unflattening a GraphicBuffer (rather than
doing it in the Surface class).
- Add support for a GraphicBuffer that wraps an android_native_window_t*.
Change-Id: I029ac086111bbac800e5ca37eb505f558b718cd8
|
| |\ \ \
| |/ /
|/| /
| |/
| |
| |
| |
| |
| | |
non-touchscreen devices." into gingerbread
Merge commit 'f10929fb350395c21edd2cba7641479afe75e750'
* commit 'f10929fb350395c21edd2cba7641479afe75e750':
Minor fix for InputReader support for non-touchscreen devices.
|
| | |
| |
| |
| | |
Change-Id: I2256e37dd1c6f3836f82786aae14ee5d0c98f4c6
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
into gingerbread
Merge commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7'
* commit '56364bcd0d1a1b064db3e83fdb64f948ce5c2ad7':
Make secure views tolerate IME overlays.
|
| | |
| |
| |
| | |
Change-Id: I3cf09b9d91045f4d9c558b4aace482a7b0bbd3d8
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
before updating config." into gingerbread
Merge commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1'
* commit 'ea58d1bac2960c1794f048bfa5d1a60b1a3d23a1':
Wait for initial device scan to finish before updating config.
|
| | |
| |
| |
| |
| |
| |
| | |
This change narrows the opportunity for a race condition setting the
resource Configuration while devices are being updated.
Change-Id: I58efa563f4129ab0fce7108511d16a99dff7e451
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
to help with debugging." into gingerbread
Merge commit 'e11b76d3efb056edea301d53a354d0730adf3520'
* commit 'e11b76d3efb056edea301d53a354d0730adf3520':
Minor logging changes to input dispatcher to help with debugging.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Added dumpsys reporting to EventHub.
Made the formatting a bit clearer.
Added 'Locked' suffix to some internal methods of EventHub.
Change-Id: Ic449560bcce378f6361895d27c66854e9724abb0
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
defined in key layout." into gingerbread
Merge commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f'
* commit '57fa3e8b4c94125ddb5be015dd7fbde4a458894f':
Support haptic feedback for virtual keys defined in key layout.
|
| | |
| |
| |
| | |
Change-Id: I83e4108a87332692e03791dc066206becbc7941f
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
to dumpsys." into gingerbread
Merge commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe'
* commit '5d3cef8a6d1baec29512764b9e0ba240ccd7fcfe':
Move verbose logging of device capabilities to dumpsys.
|
| | |
| |
| |
| | |
Change-Id: I5d55eaebfdf049bd1ac1e7bab2758886cfefc9d7
|
| | |
| |
| |
| | |
Change-Id: I808c2201a06938f82817058059f4ddcc9b1a9ae2
|
| | |
| |
| |
| |
| |
| | |
Cherry-picked down to master.
Change-Id: I786761bd6aecc021ae22d8c9a022324f3a9980d1
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
pointers." into gingerbread
Merge commit '26d5786fb1a43d82b40fa908e1220a018b748c93'
* commit '26d5786fb1a43d82b40fa908e1220a018b748c93':
Fix pointer index when splitting secondary pointers.
|
| | |
| |
| |
| | |
Change-Id: Ib01e810ea5b64501b1303000bbef0f0a1db2114e
|
| |/
|
|
|
|
| |
Prerequisite for drag and drop.
Change-Id: Iedbe93ed0f3e1c4083130fe66b4ba06d416afce0
|
| |
|
|
|
|
|
|
|
|
| |
This feature is currently used to enable dragging the start and end
selection handles of a TextView at the same time. Could be used for
other things later.
Deleted some dead code in ArrowKeyMovementMethod and CursorControllers.
Change-Id: I930accd97ca1ca1917aab8a807db2c950fc7b409
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Older glibc version do not include BSD htole32 and htole64 which are
present in bionic. This worksaround a sim-eng build issue by only
using htole32/htole64 if the host is not little endian.
Change-Id: Ia8d0d36285f3c34c51a331790458e52a21c2925f
|
| |\ \
| | |
| | |
| | | |
gingerbread
|
| | |/
| |
| |
| | |
Change-Id: I0a42db5f273b9bfe4ab174e4ee65d5d852f9f6bc
|
| |/
|
|
|
|
| |
This optimization was broken due to recent changes in how ANRs are handled.
Change-Id: Ic99248a12755fadac8d4893e7d305b773e038d3d
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| | |
Drop currently unsupported input features.
Add documentation comments.
Change-Id: I407d2e1dd90c5ee82983a3ccf177430d35ee7592
|