57248 Commits

Author SHA1 Message Date
Jeff Brown
cc4f7db698 Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
   unregistered, so they would leak.

   Added code to handle failures in the receive callback by closing
   the input channel.

2. The DragState held onto its input window and application handles
   even after the input channel was disposed.

   Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
   around until the targets were cleared (usually on the next
   event).

   Added code to detect when the input dispatcher is in
   an idle state and to proactively clear the targets then
   to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
   after the input window was removed from the input dispatcher.
   Consequently, the input channel would not be disposed until
   the input window handle itself was freed.  Since the input
   window handle is held from managed code, this meant that the
   window's input channel could stick around until the next GC.

   Refactored the input window handle to separate the properties
   (info) and identify (handle) state into different objects.
   Then modified the dispatcher to release the properties (info)
   when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
   standard input channel, only the monitor input channel.

   Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
   request that they not be provided with an input channel
   at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
2011-08-30 21:40:28 -07:00
Irfan Sheriff
ad4d2c99ed Merge "Remove work around for driver state change" 2011-08-29 14:13:42 -07:00
Irfan Sheriff
3ac127ff47 Remove work around for driver state change
When we first ported wpa_supplicant 0.8, we had a work around
to fix the supplicant state change behavior from the driver.

Remove the work around since the driver behavior is fixed.

Bug: 5195278
Change-Id: I320f21ab01704931a3def6214b0cc40f214a688e
2011-08-29 14:05:14 -07:00
Jeff Brown
8d3feb6292 Merge "Add a "show touches" option for demos and presentations. Bug: 4569045" 2011-08-29 14:04:31 -07:00
Jeff Brown
df7e264499 Merge "Prioritize INPUT_PROP_DIRECT first." 2011-08-29 14:04:21 -07:00
Andreas Huber
499f36581c Merge "Return an error to the client instead of asserting if decoder instantiation fails" 2011-08-29 13:47:24 -07:00
Jamie Gennis
a258f0c8ff Merge "Surface: move the SurfaceTexture ctor" 2011-08-29 13:41:45 -07:00
Bill Gruber
f455e9a3b3 Merge "Cherry pick from honeycomb-mr2 Change ID I7ded723152d7beface51b45b882d4ccf92981927 Doc fix: Hello World tutorial updates Bug: 5149925" 2011-08-29 13:04:05 -07:00
Andreas Huber
07754c513f Return an error to the client instead of asserting if decoder instantiation fails
after a surface change.

Change-Id: Ic7758cbeb107032db68a1c3b8e2984710a12dd8b
related-to-bug: 5212725
2011-08-29 13:01:23 -07:00
Gilles Debunne
474cac1c21 Merge "Suggestions popup window is dismissed on tap outside." 2011-08-29 12:58:36 -07:00
John Reck
082a9fa343 Merge "Tap highlight fix + small perf increase" 2011-08-29 12:55:50 -07:00
Bill Gruber
e874366f76 Cherry pick from honeycomb-mr2 Change ID I7ded723152d7beface51b45b882d4ccf92981927
Doc fix: Hello World tutorial updates
Bug: 5149925

Change-Id: I715947dbda66657a92d5b86fb467444f331029cd
2011-08-29 12:53:15 -07:00
Adam Powell
890be6b919 Merge "Fix bug 5217267 - Action bars and menu shortcuts" 2011-08-29 12:07:52 -07:00
Adam Powell
6055f3e0d6 Fix bug 5217267 - Action bars and menu shortcuts
Don't try to "close" the menu after completing a shortcut action if an
action bar is present.

Change-Id: I54a75543cf9a52e3186ff464924a0b37d0b20b9d
2011-08-29 11:41:13 -07:00
Brandon Keely
5471781430 Merge "Massaging framework window transitions." 2011-08-29 11:34:02 -07:00
Chet Haase
890a631ede Merge "Made the Switch class public." 2011-08-29 11:21:49 -07:00
Romain Guy
f8c015d262 Merge "Italic should be italic and bold should be bold." 2011-08-29 11:13:23 -07:00
Romain Guy
94d5e9ad65 Italic should be italic and bold should be bold.
Change-Id: I68933a7d7c32951c4d52d945baaedcb2583caef4
2011-08-29 11:12:19 -07:00
Svetoslav Ganov
6537b003b7 Merge "Clean up and bug fixes in the TouchExplorer." 2011-08-29 11:04:33 -07:00
Chet Haase
150176d830 Made the Switch class public.
Tweaked the API of Switch slightly and made the class public (it was
hidden before).

Change-Id: I4a099e8afd18a11a5850252025ae3bbbb866830d
2011-08-29 10:59:58 -07:00
Adam Powell
b5d80fca2e Merge "Fix bug 5124021 - Menu visibility incorrect when restoring ListView selection mode" 2011-08-29 10:42:43 -07:00
John Reck
0ba72ad45b Tap highlight fix + small perf increase
Bug: 5229717

Change-Id: I9ebc92dc96d77ff9051517b717d203686b574f7a
2011-08-29 10:29:09 -07:00
Jean-Michel Trivi
2db44c5838 Merge "Update IRemoteControlDisplay when it registers." 2011-08-29 10:09:04 -07:00
Jean-Michel Trivi
db8a361629 Update IRemoteControlDisplay when it registers.
When an IRemoteControlDisplay registers, it must receive information
 from the current client.

Change-Id: Id845e7a87ac74c2db2c59e0281b28a45f8d20528
2011-08-29 09:57:18 -07:00
Claudia de Veaux
3b21427b4c Merge "Simplified punctuation on lock screen. Bug: 5221162" 2011-08-29 09:06:13 -07:00
Justin Ho
05ef04394e Merge "Updated text_select handles Bug: 5076695" 2011-08-29 09:01:20 -07:00
Jean-Michel Trivi
aca6d629e2 Merge "Cannot compare Binder references for RC display to unregister" 2011-08-29 08:56:23 -07:00
Andreas Huber
b3c084af16 Merge "Signal errors to the client instead of asserting in ACodec." 2011-08-29 08:10:56 -07:00
Svetoslav Ganov
f804420d6e Clean up and bug fixes in the TouchExplorer.
1. The downTime of the first down event was zero but it should the event time.

2. Hover exit events were not injected while transitioning to delegating
   state and when tapping.

3. Differentiation between dragging and delagating state based on
   two moving pointer direction and distance is now based only on
   the direction. Hence, two pointers moving in the same direction
   are dragging, otherwise the event stream is delegated unmodified.
   The reason for that is the blind people cannot easily determine
   and control the distance between their fingers resulting in
   different behavior for gestures which the user thinks are the same
   which creates confusion. Also in some cases the delegation and
   draggig yield the same result, for example in list view, further
   adding to the confusion. This was also causing the status bar to
   be opened closed inreliably creating frustration.

4. Refactored the code such that now there is only one method that
   injects motion events and all request go through it. Some bugs
   were introduced by inconsistent implementation in the different
   injection methods.

5. Fixed a couple of event stream inconsistencies reported by the
   event consistency verifier.

bug:5224183
bug:5223787
bug:5214829

Change-Id: I16c9be3562ad093017af5b974a41ab525b73453f
2011-08-29 00:06:57 -07:00
Adam Powell
9a5cc2810b Fix bug 5124021 - Menu visibility incorrect when restoring ListView
selection mode

Fix visibility of menus when action modes are initiailized early.

Fix ListView problems persisting check states.

Change-Id: Idc21036dc39259e72f0e6831a0ccb4695f8858ef
2011-08-28 17:13:16 -07:00
Adam Powell
6b316513e8 Merge "Fix bug 5067075 - missing scrollbar when entering long signatures" 2011-08-28 16:58:54 -07:00
Adam Powell
63543e2997 Merge "Fix bug 5133509 - Align holo menu panel windows along the bottom of the screen" 2011-08-28 16:58:27 -07:00
Jim Miller
816879f2d5 Merge "Fix 5216579: Don't show IME switch option in numeric mode of lockscreen" 2011-08-28 15:10:27 -07:00
Jamie Gennis
df0c84f908 Surface: move the SurfaceTexture ctor
This change moves the Surface ctor that takes a SurfaceTexture to the
portion of the file containing the public APIs.

Change-Id: I192df7bf5c0e6d0d0607bd577d72646312b2f717
2011-08-28 15:09:17 -07:00
Jim Miller
b0166bc62f Fix 5216579: Don't show IME switch option in numeric mode of lockscreen
Since LockScreen provides its own PIN entry keyboard, we don't need to show
the IME switcher button.

Change-Id: I04528acaee66e5109d631c0c79a3e7c64876e4c5
2011-08-28 15:00:29 -07:00
Pannag Sanketi
3451df1a5c Merge "Default W, H allowed in SurfaceMediaSource dequeue" 2011-08-28 14:40:26 -07:00
Adam Powell
c82c7a5403 Fix bug 5067075 - missing scrollbar when entering long signatures
Let DialogPreferences decide their own IME adjust mode as normal
rather than forcing adjustPan.

Change-Id: Ib53e9f648342430640469a0682308b056e7ef991
2011-08-28 14:36:05 -07:00
Adam Powell
67ed6c7224 Fix bug 5133509 - Align holo menu panel windows along the bottom of
the screen

Alter preferred options panel gravity policy.

Integrate new menu panel assets for holo apps.

Change-Id: I9fa98ed9359148ea6d1f1d1e727ddcd437b16e2f
2011-08-28 13:23:02 -07:00
Pannag Sanketi
b8a9e15c2a Merge "Modify enum value of OMX_COLOR_FormatAndroidOpaque" 2011-08-26 20:05:58 -07:00
Pannag Sanketi
2b9c5d8a89 Merge "Fixing small syntax error in MPEG4 logging" 2011-08-26 20:01:46 -07:00
Pannag Sanketi
4da5660eee Modify enum value of OMX_COLOR_FormatAndroidOpaque
The enum value chosen earlier had a conflict with one of the vendors.

Change-Id: I47832dd1157447f89324d56e8ab146260cd7927c
2011-08-26 19:38:13 -07:00
Adam Powell
441cc7dba3 Merge "Accessibility fixes for action bars" 2011-08-26 19:32:09 -07:00
Romain Guy
3957a76d77 Merge "ToggleButton could keep a reference to a previous drawable" 2011-08-26 19:30:08 -07:00
Pannag Sanketi
5cfcfb22d6 Fixing small syntax error in MPEG4 logging
Found that the build was breaking when the logging was enabled in
MPEG4Writer. Fixed.

Change-Id: I62c5e6d16b2ecf5644c8d46b9bbcca68a797b223
2011-08-26 19:18:57 -07:00
Jean-Michel Trivi
7309c83b95 Cannot compare Binder references for RC display to unregister
Cannot trust references to IRemoteControlDisplay to remain the
 same when removing a RemoteControlDisplay, compare the
 result of .asBinder() instead.

Change-Id: Ib2e82aa24bd4b12804bccff94a6a0090ff83bea8
2011-08-26 18:54:44 -07:00
Jeff Brown
deffe07c22 Prioritize INPUT_PROP_DIRECT first.
If the device tells us it's really direct, then it's direct.

Change-Id: I83875cf47e865ff6f0def149ad0c68db24d9dc4a
2011-08-26 18:38:46 -07:00
Adam Powell
7bc3ca0dc5 Accessibility fixes for action bars
Fix bug 5220543 - fix accessibility events for action buttons

Fix bug 5224260 - fix accessibility events for home/up

Change-Id: I7d55b4819862e1eda0809da92c52ec2d97f36af0
2011-08-26 18:31:47 -07:00
Svetoslav Ganov
d96dbbe335 Merge "Lock screen should be kept on while it is touch explored." 2011-08-26 18:18:04 -07:00
Jean-Michel Trivi
28c5b96d84 Merge "Address multiple RemoteControlDisplay competing for registration" 2011-08-26 18:17:40 -07:00
Jean-Michel Trivi
18e7bce523 Address multiple RemoteControlDisplay competing for registration
The RemoteControlClient / Display feature only supports one
 display. If multiple displays are registered, this CL implements
 the following policy:
 - cannot unregister a display that is not the current one,
 - registering a display when another is already registered
    causes the old one to be unregistered.
This fixes a death handler leak where the previous display was
 simply overwritten, without unlinking to its death.

Change-Id: I63f8a38093796e0960761936d7fc58d47b7589b3
2011-08-26 18:14:29 -07:00