56828 Commits

Author SHA1 Message Date
Svetoslav Ganov
8bd69610aa Intra-process view hierarchy interrogation does not work.
The content retrieval APIs are synchronous from a client's
perspective but internally they are asynchronous. The client thread
calls into the system requesting an action and providing a callback
to receive the result after which it waits up to a timeout for that
result. The system enforces security and then delegates the request
to a given view hierarchy where a message is posted (from a binder
thread) describing what to be performed by the main UI thread the
result of which it delivered via the mentioned callback. However,
the blocked client thread and the main UI thread of the target view
hierarchy can be the same one, for example an accessibility service
and an activity run in the same process, thus they are executed on the
same main thread. In such a case the retrieval will fail since the UI
thread that has to process the message describing the work to be done
is blocked waiting for a result is has to compute! To avoid this scenario
when making a call the client also passes its process and thread ids so
the accessed view hierarchy can detect if the client making the request
is running in its main UI thread. In such a case the view hierarchy,
specifically the binder thread performing the IPC to it, does not post a
message to be run on the UI thread but passes it to the singleton
interaction client through which all interactions occur and the latter is
responsible to execute the message before starting to wait for the
asynchronous result delivered via the callback. In this case the expected
result is already received so no waiting is performed.

bug:5138933

Change-Id: I382e2d8689f5189110226613c2387f553df98bd3
2011-08-24 16:26:43 -07:00
Daniel Sandler
69314e7294 Fix NPE.
Bug: 5192200
Change-Id: Ifd869f92969016ea9c3ff9c5fa0a2a0f197c6cbf
2011-08-20 00:31:08 -04:00
Jeff Brown
86c471db06 Merge "Fix tap gesture on touch pads." 2011-08-19 17:38:09 -07:00
Wei Hua
7526a6d923 Merge "Added additional Face attributes." 2011-08-19 17:20:54 -07:00
Romain Guy
bb41daadf9 Merge "Minor fixes to SurfaceTexture transform matrix." 2011-08-19 16:57:32 -07:00
Alexandre Elias
c01391fb4e Minor fixes to SurfaceTexture transform matrix.
- Sometimes, the applyUpdate was applied through draw() and the
  underlying matrix was not updated in time, causing "jitter".  Add a
  matrix update call in draw().

- Switch to invalidateParentIfNeeded() in setTransform().

Change-Id: I1cf9cdfe78f9d989821cdc9600984fc826430211
2011-08-19 16:53:42 -07:00
Jim Miller
6d97842849 Merge "Fix 5021968: Add input method switcher button to lock screen." 2011-08-19 16:30:13 -07:00
repo sync
53ec3ff77b Merge "Fix device address and interface address usage" 2011-08-19 16:08:50 -07:00
Jeff Brown
a66cee134e Fix tap gesture on touch pads.
Change-Id: I92b23e5971d4b98b173aacd64fe03ce9f0755c88
2011-08-19 16:04:30 -07:00
Mathias Agopian
e74f83a5f8 Merge "Fix occasional fusion divergence by detecting it and resetting the fusion." 2011-08-19 15:54:09 -07:00
Jim Miller
858f8eaac7 Fix 5021968: Add input method switcher button to lock screen.
This adds an IME switcher button to lock screen.  It is only
shown if the user has more than one applicable and enabled IME installed.

Change-Id: I5f9503a205c2edb27170825539ba4a6ef25418ed
2011-08-19 15:46:03 -07:00
Jeff Brown
30867d8bdf Merge "Input system bug fixes, particularly for stylus. Bug: 5049148" 2011-08-19 15:26:13 -07:00
Christopher Tate
d6a2be3ef7 Merge "Allow Instrumentation to kill even persistent processes" 2011-08-19 15:21:43 -07:00
Jeff Brown
65fd251c39 Input system bug fixes, particularly for stylus.
Bug: 5049148

Finished stylus support, including support for indirect stylus
and mouse tools.

Added TILT axis.  When stylus tilt X/Y is available, it is transformed
into an orientation and tilt inclination which is a more convenient
representation and a simpler extension to the exiting API.

Touch devices now only report touch data using a single input
source.  Previously touch devices in pointer mode would report
both absolute touch pad data and cooked pointer gestures.
Now we just pick one.  The touch device switches modes as needed
when the focused application enables/disables pointer gestures.
This change greatly simplifies the code and reduces the load
on the input dispatcher.

Fixed an incorrect assumption that the value of ABS_(MT_)DISTANCE
would be zero whenever the stylus was in direct contact.  It appears
that the correct way to determine whether the stylus is in direct
contact (rather than hovering) is by checking for a non-zero
reported pressure.

Added code to read the initial state of tool buttons and axis values
when the input devices are initialized or reset.  This fixes
problems where the input mapper state might have the wrong initial
state.

Moved responsibility for cancelling pending inputs (keys down,
touches, etc.) to the InputDispatcher by sending it a device reset
notification.  This frees the InputReader from having to synthesize
events during reset, which was cumbersome and somewhat brittle
to begin with.

Consolidated more of the common accumulator logic from
SingleTouchInputMapper and MultiTouchInputMapper into
TouchInputMapper.

Improved the PointerLocation output.

Change-Id: I595d3647f7fd7cb1e3eff8b3c76b85043b5fe2f0
2011-08-19 15:02:26 -07:00
Rajneesh Chowdury
c0a2222552 Merge "Fix for 4142219 Don't hard code platform-specific limitations (Jni/ Java)" 2011-08-19 15:01:11 -07:00
Christopher Tate
3dacd8470a Allow Instrumentation to kill even persistent processes
Fixes bug 5117630

Change-Id: Iff40145fbbdc1d81a60cf2ecc5b24321162f7897
2011-08-19 14:57:57 -07:00
Dianne Hackborn
ace0be25d8 Merge "Fix issue #5187844: Query is misrouted to wrong content provider" 2011-08-19 14:49:39 -07:00
Dianne Hackborn
cd94303e8a Merge "Fix issue #5186318: Can't take multiple screenshots" 2011-08-19 14:48:40 -07:00
repo sync
8c57bcdbc6 Fix device address and interface address usage
After a p2p group is formed, STA connect and disconnects come over
interface address. Figure out device address from interface address
and fix the device comparison

Bug: 5002384
Change-Id: I7d3aa4f0616e000550cd2b057adbac71cfd2adb4
2011-08-19 14:41:03 -07:00
Fabrice Di Meglio
067bb3b443 Merge "Update TextLayout logging" 2011-08-19 14:39:15 -07:00
Jamie Gennis
c0ce60774c Merge "Stagefright: fix a compiler warning" 2011-08-19 14:36:10 -07:00
Rajneesh Chowdury
3ced044154 Fix for 4142219 Don't hard code platform-specific limitations (Jni/ Java)
Also fixes 5118207 add other video codec support for video editor export.

Change-Id: If72427173bd8ff684af07ba00f4425c1deef29c6
2011-08-19 14:34:47 -07:00
Amith Yamasani
1629618098 Merge "Fix an unintentional change in method signature and avoid an API change." 2011-08-19 14:29:34 -07:00
Dianne Hackborn
c0e3f2453c Fix issue #5186318: Can't take multiple screenshots
Locking good.  Races bad.

Change-Id: I59dd0ec2de47973c38fd646c2f441dd174eba444
2011-08-19 14:19:10 -07:00
Stephen Hines
c3ccfb8eec Merge "Issue proper parameters to root() calls for RS." 2011-08-19 14:17:47 -07:00
Dianne Hackborn
1c9b260cf5 Fix issue #5187844: Query is misrouted to wrong content provider
Change-Id: I56834f41844990d67edc8af83273036b3d755e37
2011-08-19 14:08:43 -07:00
Wei Hua
d52b308916 Added additional Face attributes.
bug: 5186701
Change-Id: Id08df922b9a79192a81e6e8bd7c0dccad4664b3b
2011-08-19 13:01:51 -07:00
Amith Yamasani
a465b2d4c3 Fix an unintentional change in method signature and avoid an API change.
Change onDetachedFromWindow() override to a protected method, like superclass.

Change-Id: If626c5187290516d525cab5a76f5c5cabe2d87f0
2011-08-19 13:01:22 -07:00
Guang Zhu
4a6f044786 Merge "Use port 18000 instead of 8000 for layout tests" 2011-08-19 12:44:28 -07:00
Eino-Ville Talvala
d06fa51b3e Merge "Make changing white-balance mode always disable AWB lock." 2011-08-19 12:42:06 -07:00
Adam Powell
b7d34e7172 Merge "Fix bug 5174755 - Adjust action bar overflow limits for ifRoom items" 2011-08-19 12:34:28 -07:00
Stephen Hines
1222393e35 Issue proper parameters to root() calls for RS.
BUG=5076887

Change-Id: Ic0ce9d45ee20a99add4c780233c0804d05a55e96
2011-08-19 12:27:07 -07:00
Justin Ho
d4f6025702 Merge "Remove old spinner_ assets from zygote Bug: 5076695" 2011-08-19 12:24:06 -07:00
Adam Powell
bfcdfaf919 Fix bug 5174755 - Adjust action bar overflow limits for ifRoom items
Fix a bug where action menus were not updating after configuration
changes.

Change-Id: Iaeed7d924a7b8b40849fd8e1826ed1c8f4079c94
2011-08-19 12:18:13 -07:00
Justin Ho
d5e4e0a112 Merge "Updated overscroll asset Bug: 5076695" 2011-08-19 12:14:30 -07:00
Justin Ho
13684c3523 Remove old spinner_ assets from zygote
Bug: 5076695

Change-Id: I1dddea226dc1701936e4c9dcc05c6b9d2d3c4db6
2011-08-19 12:13:06 -07:00
Wink Saville
499e9fdb47 Merge "Remove writing pin's to log." 2011-08-19 12:06:54 -07:00
Jason Sams
00c0dcb846 Merge "Fix issue with freeing allocation with circular references." 2011-08-19 11:23:46 -07:00
Wink Saville
9f1b94a14f Remove writing pin's to log.
Change-Id: Ib84397ac718ebcc3862c69fc7556e0403c2b3940
2011-08-19 11:17:54 -07:00
Amith Yamasani
7c670365ae Merge "Dismiss the volume overlay dialog when user touches above the dialog as well." 2011-08-19 11:17:48 -07:00
Joe Fernandez
0486f836be Merge "docs: OpenGL ES 1.0 and 2.0 Tutorials - Patch1" 2011-08-19 11:13:06 -07:00
Guang Zhu
e2b9d7f2f0 Use port 18000 instead of 8000 for layout tests
Apparently some system process is occupying this port now

Change-Id: Iaed4c64d7a8ab41830588d91f5deab1caadfdcdd
2011-08-19 10:52:12 -07:00
Andreas Huber
b9784398e6 Merge "Raise the maximum input buffer size for the vpx video decoder to 256KB" 2011-08-19 10:33:41 -07:00
Andreas Huber
121e50c066 Raise the maximum input buffer size for the vpx video decoder to 256KB
Change-Id: I0411763829bf186d1b3b679fa72c9051524506b4
related-to-bug: 5169641
2011-08-19 10:30:58 -07:00
Daniel Sandler
0199679dab Merge "Low profile mode ("lights out") for phone status bar." 2011-08-19 09:37:30 -07:00
Max Braun
3d41ecd9bd Fix occasional fusion divergence by detecting it and resetting the fusion.
Change-Id: I51186e12fb9b2316e3671e3908174f4495df89a0
2011-08-19 09:16:23 -07:00
Justin Ho
fb75e3b352 Merge "Unused assets removed from SystemUI" 2011-08-19 09:03:02 -07:00
Daniel Sandler
e137a1ea99 Low profile mode ("lights out") for phone status bar.
Also changes NAVIGATION_HIDDEN to remove the hide animation,
hopefully reducing the number of jarring transitions when
apps want to enable super-ultra-full-screen mode.

Bug: 5052456
Bug: 5146960
Change-Id: I5f5ebb23add81243dc8861b65d8f15ca4d9ce0d2
2011-08-19 11:46:11 -04:00
Daniel Sandler
03eb1dca8c New icon
Bug: 4111902
Change-Id: I7a13cde205196e15fa1a0947a8d20793a358d4fc
2011-08-19 10:18:10 -04:00
Mathias Agopian
e644b64783 Fix a crasher in SystemUI
Change-Id: Id0e91d949518aa1c5af57ae3b9b4e72347a5bd47
2011-08-18 21:07:00 -07:00