Commit Graph

2959 Commits

Author SHA1 Message Date
Dianne Hackborn
6917b2a10d am 2da87ec3: am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev
* commit '2da87ec32e72c2c25998e2444155c00074cfbd40':
  Implement new window cropping.
2012-05-14 19:37:21 -07:00
Guang Zhu
9a19d16a1a am 58b0dcde: am 0d607fbe: accessibility bug fix in NumberPicker
* commit '58b0dcde83354bd1ae9091a7cbc7f207fb29960a':
  accessibility bug fix in NumberPicker
2012-05-14 19:37:18 -07:00
Dianne Hackborn
2da87ec32e am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev
* commit '2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517':
  Implement new window cropping.
2012-05-14 19:32:39 -07:00
Guang Zhu
58b0dcde83 am 0d607fbe: accessibility bug fix in NumberPicker
* commit '0d607fbe546ac943de38dad33ae681b09efec6ea':
  accessibility bug fix in NumberPicker
2012-05-14 19:32:33 -07:00
Jeff Brown
ac592fb3b6 am a4881637: am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev
* commit 'a48816375f68a8b4a945efcb68e405308a50adc9':
  Move power HAL interactions to PowerManagerService.
2012-05-14 08:37:26 -07:00
Jamie Gennis
671543f762 am 592cbb83: am c9e27d4b: Merge "Surface: replace active rect with window crop" into jb-dev
* commit '592cbb835aa5ed104badf7de6c144a7b90300620':
  Surface: replace active rect with window crop
2012-05-14 08:36:58 -07:00
Adam Powell
e60a635919 am e48c70e4: am 7fc4fbcc: Merge "Automatic persistent text selection for ListViews" into jb-dev
* commit 'e48c70e4d9302795d5f02d352c7907302ca5c8b6':
  Automatic persistent text selection for ListViews
2012-05-14 08:36:17 -07:00
Jeff Brown
d4bef4b786 am 47272c93: am b12b6b51: Merge "Minor refactoring before starting on velocity tracker changes." into jb-dev
* commit '47272c932ab6157022aaefd015e5d1df9dc5bd2f':
  Minor refactoring before starting on velocity tracker changes.
2012-05-14 07:48:31 -07:00
Chet Haase
7008d7b7f3 am fd086b95: am 76f08218: Merge "Fix quickReject logic for transformed views" into jb-dev
* commit 'fd086b95103e8c7fbe853f5702aaa7d04f2141f0':
  Fix quickReject logic for transformed views
2012-05-14 07:47:59 -07:00
Chet Haase
ad4fc6f764 am 4a70bc72: am 26511012: Merge "Clear animations in DisplayLists when done" into jb-dev
* commit '4a70bc72a87427115d9d64516145283dc96745f2':
  Clear animations in DisplayLists when done
2012-05-14 07:26:23 -07:00
Dianne Hackborn
2a7a6ca00a Merge "Implement new window cropping." into jb-dev 2012-05-13 15:24:32 -07:00
Dianne Hackborn
85afd1b6f8 Implement new window cropping.
The window manager now performs the crop internally, evaluating
it every animation from, to be able to update it along with
the surface position.

Change-Id: I960a2161b9defb6fba4840fa35aee4e411c39b32
2012-05-13 13:31:06 -07:00
Guang Zhu
0d607fbe54 accessibility bug fix in NumberPicker
* moved View#isVisibleToUser to protected with @hide
* added a new View#isVisibleToUser(Rect), so that a portion of
  the view can be tested for visibility
* NumberPicker will report its concrete class name
* code to append virtual children was at wrong place
* boundInScreen for increment and decrement buttons are reported
  wrong

Change-Id: Ic5d644b3e1efa15b1f0537907c8cdd4ce43a97c1
2012-05-12 19:09:34 -07:00
Romain Guy
d6a98aafab am 30b013bf: am d303dd3d: Merge "Prevent NPE in TextureView.getBitmap()" into jb-dev
* commit '30b013bfbad60e20b7f812d0c5e41893fb7503fa':
  Prevent NPE in TextureView.getBitmap()
2012-05-12 16:46:55 -07:00
Jeff Brown
a48816375f am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev
* commit '58770232216cd735afdfd3dd53151070e06de5ce':
  Move power HAL interactions to PowerManagerService.
2012-05-11 19:35:23 -07:00
Jeff Brown
5877023221 Merge "Move power HAL interactions to PowerManagerService." into jb-dev 2012-05-11 19:32:56 -07:00
Jeff Brown
7304c34382 Move power HAL interactions to PowerManagerService.
This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server.  Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
2012-05-11 18:42:42 -07:00
Jamie Gennis
592cbb835a am c9e27d4b: Merge "Surface: replace active rect with window crop" into jb-dev
* commit 'c9e27d4ba1f46eb29aa8a794685ecb7c492d5d83':
  Surface: replace active rect with window crop
2012-05-11 17:19:50 -07:00
Jamie Gennis
c9e27d4ba1 Merge "Surface: replace active rect with window crop" into jb-dev 2012-05-11 17:17:31 -07:00
Adam Powell
e48c70e4d9 am 7fc4fbcc: Merge "Automatic persistent text selection for ListViews" into jb-dev
* commit '7fc4fbccd6129e286a1f9c640eb3229b91792bce':
  Automatic persistent text selection for ListViews
2012-05-11 16:36:11 -07:00
Adam Powell
7fc4fbccd6 Merge "Automatic persistent text selection for ListViews" into jb-dev 2012-05-11 16:34:15 -07:00
Adam Powell
057a585fba Automatic persistent text selection for ListViews
Use View transient state tracking to allow selection to persist across
ListView-style item view recycling.

Fix some bugs with transient state tracking.

Bug 6110122

Change-Id: Ic084b8fc2289bff718b19478a37ce64459b3ed4c
2012-05-11 14:26:17 -07:00
Jeff Brown
47272c932a am b12b6b51: Merge "Minor refactoring before starting on velocity tracker changes." into jb-dev
* commit 'b12b6b5116e3d76474296b45f570693bb10d6c99':
  Minor refactoring before starting on velocity tracker changes.
2012-05-11 14:06:30 -07:00
Jeff Brown
b12b6b5116 Merge "Minor refactoring before starting on velocity tracker changes." into jb-dev 2012-05-11 14:03:38 -07:00
Chet Haase
fd086b9510 am 76f08218: Merge "Fix quickReject logic for transformed views" into jb-dev
* commit '76f082189ec451433d942fcee5ca2913f4132e6b':
  Fix quickReject logic for transformed views
2012-05-11 13:02:43 -07:00
Jeff Brown
8a90e6e317 Minor refactoring before starting on velocity tracker changes.
Bug: 6413587
Change-Id: I5eba2bb57193bff78cb3740de5f87aca0b31d154
2012-05-11 12:32:56 -07:00
Chet Haase
1a3ab175b0 Fix quickReject logic for transformed views
When a parent draws its child views, each child's bounds is checked
against the current dirty region. If the view falls outside of that
region is is rejected and doesn't enter into the parent's DisplayList.

This works in general, for both transformed and untransformed views
(because we skip this check if the view is transformed). But it breaks down
when the transform properties of the view change later, since DisplayList
properties simply push these values down to the view's DisplayList without
invalidating the parent. If a view is rejected when untransformed, then there
is nothing to cause it to be considered again until something causes an
invalidate of the parent.

The fix is to note when a view is rejected and record that information.
Later, when one of the transform-related properties change, we invalidate the parent
to force the check to happen again, which will cause the view to get drawn
if it's visible.

Issue #6477730 quickRejected views must recreate their DisplayLists on transform changes

Change-Id: I70caf198005cd7e424a37bccc6ae050e09880a6c
2012-05-11 11:03:12 -07:00
Chet Haase
4a70bc72a8 am 26511012: Merge "Clear animations in DisplayLists when done" into jb-dev
* commit '26511012c40dbe704f4791654b28b9e0e05589d8':
  Clear animations in DisplayLists when done
2012-05-11 10:59:53 -07:00
Chet Haase
26511012c4 Merge "Clear animations in DisplayLists when done" into jb-dev 2012-05-11 10:57:40 -07:00
Jamie Gennis
78b8ef3f3a Surface: replace active rect with window crop
This change replaces the setActiveRectCrop method on Surface, which was called
from app processes, with the setWindowCrop method that is to be called from the
window manager.

Bug: 6299171
Change-Id: Ica51efcd8c488a526e7013b83d80df4856694519
2012-05-11 10:42:49 -07:00
Romain Guy
30b013bfba am d303dd3d: Merge "Prevent NPE in TextureView.getBitmap()" into jb-dev
* commit 'd303dd3da2af272d0beaac956a12e145b8386f45':
  Prevent NPE in TextureView.getBitmap()
2012-05-11 10:27:54 -07:00
Romain Guy
78245f77d2 Prevent NPE in TextureView.getBitmap()
This crash could occur when invoking setSurfaceTexture() then getBitmap()
before the View has a chance to be drawn.

Change-Id: I25c55df15750e59b9c916e8f750de2c89718d39e
2012-05-11 10:01:42 -07:00
Dianne Hackborn
5c2a9ddcf2 am 00389a51: am b1b55e6c: Fix build.
* commit '00389a5198d17a650b00b981b5a9174dbb88fc9f':
  Fix build.
2012-05-10 16:34:33 -07:00
Dianne Hackborn
00389a5198 am b1b55e6c: Fix build.
* commit 'b1b55e6c6b079d75c13dcc23ca3ebce847bb42f8':
  Fix build.
2012-05-10 16:30:54 -07:00
Dianne Hackborn
b1b55e6c6b Fix build.
Change-Id: Ie255c93442d0b62032ac25e6de97f2c03e5df3ba
2012-05-10 16:25:54 -07:00
Dianne Hackborn
50d9921502 am de888fec: am 255d1e15: Merge "Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting..." into jb-dev
* commit 'de888fec6b7c2f2c9a32a7e9faf38083f67da4d8':
  Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting...
2012-05-10 15:40:35 -07:00
Dianne Hackborn
de888fec6b am 255d1e15: Merge "Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting..." into jb-dev
* commit '255d1e1540833fb1980791b2e340cad4cb18b3b7':
  Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting...
2012-05-10 15:36:12 -07:00
Dianne Hackborn
255d1e1540 Merge "Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting..." into jb-dev 2012-05-10 15:32:32 -07:00
Dianne Hackborn
cf67578c7f Fix issue #6475693: OnSystemUiVisibilityChangeListener reporting...
...incorrect visibility when the ActionBar overflow menu is opened

Don't report layout flags in system UI visibility callback.  Update
docs to reflect this.

Change-Id: Icfa411b5537de037cafbcac04991101e8b9138c4
2012-05-10 15:07:24 -07:00
Chet Haase
afd5c3ee60 Clear animations in DisplayLists when done
The matrix calculated by Animations is pushed down to the native
DisplayList object, and is then used when the DL is issued to the
GL renderer. This works while the animation is running, but the end
of animations is not handled correctly. In particular, we never clear the
animation, so whatever the last frame of the animation calculated will
persist on that DisplayList object until it is recreated.

The fix is to note when we used to be animating and are no longer
doing so, taking that opportunity to push the cleared state down
to the DisplayList.

Issue #6448993 action bar -- including settings menu -- disappears on Nakasi

Change-Id: I73cdadaef40d87ccbc1beb02599c4d70506ea42b
2012-05-10 14:16:44 -07:00
Svetoslav Ganov
86ba4aaa71 am 37fd7976: am a1dc761c: Adding scroll actions to accessibility node info.
* commit '37fd797699eb8e481d69f7f5a19cd05b8a5b7170':
  Adding scroll actions to accessibility node info.
2012-05-10 12:43:12 -07:00
Svetoslav Ganov
37fd797699 am a1dc761c: Adding scroll actions to accessibility node info.
* commit 'a1dc761c8322355eb1bb71d3d6c9c603c1d1fc0f':
  Adding scroll actions to accessibility node info.
2012-05-10 12:39:55 -07:00
Svetoslav Ganov
a1dc761c83 Adding scroll actions to accessibility node info.
1. Scrolling actions are crucial for enabling a gesture based
   traversal of the UI and specifically scrollable containers
   especially lists and anything backed by an adapter. Since
   accessibility focus can land only attached views, it cannot
   visit views for adapter items not shown on the screen.
   Auto scrolling the list as a result of putting access focus
   ot a list item does not work well since the user may get
   trapped in a long list. Adding an accessibility node provider
   to emit virtual views for one view before the first and one
   after the last is complex and suffers the limitation of trapping
   the user. Accessibility service need an explicit scroll actions
   which may be performed upon an explicit user action. Hence,
   the user is informed for the start/end of the visible part of
   the list and he makes a deliberate choice to scroll. This will
   benefit also people developing Braille devices since they can
   scroll the content without telling the user to stop using the
   Braille controller and take the device out of his pocket to scroll
   and go back to the Braille controller.

NOTE: Without these action large portions of the screen will be
    hard to access since users will have to touch and explore to
    find and scroll the list.

Change-Id: Iafcf54d4967893205872b3649025a4e347a299ed
2012-05-10 12:28:04 -07:00
Michael Jurka
e5c511a1cc am bf1b5fa9: am 421dceb0: Merge "Making transition out of recents look better" into jb-dev
* commit 'bf1b5fa944158044a595706924b935b5577ec0f0':
  Making transition out of recents look better
2012-05-10 11:57:33 -07:00
Dianne Hackborn
d41bf1a287 am 014afea3: am a482d366: Merge "Fixed typo in findAccessibilityFocus API." into jb-dev
* commit '014afea3cec7ff93d195753103478826796c310f':
  Fixed typo in findAccessibilityFocus API.
2012-05-10 11:39:14 -07:00
Jeff Brown
a552661948 am 3631131e: am 571d4cbe: Merge "Fix bugs in fallback key handling." into jb-dev
* commit '3631131e5fcb939931f985bffdb14af71dc0f388':
  Fix bugs in fallback key handling.
2012-05-10 11:38:27 -07:00
Michael Jurka
bf1b5fa944 am 421dceb0: Merge "Making transition out of recents look better" into jb-dev
* commit '421dceb0a4fd8f20349a0de277f82b56e71cb90b':
  Making transition out of recents look better
2012-05-10 10:45:30 -07:00
Michael Jurka
421dceb0a4 Merge "Making transition out of recents look better" into jb-dev 2012-05-10 10:35:19 -07:00
Dianne Hackborn
455af7f7b0 am 67cc7f2e: am a53de062: Add callback hack to find out when to load system properties.
* commit '67cc7f2e60bc6532d00bb3c473b9a1d32cdafce2':
  Add callback hack to find out when to load system properties.
2012-05-10 09:33:27 -07:00
Dianne Hackborn
014afea3ce am a482d366: Merge "Fixed typo in findAccessibilityFocus API." into jb-dev
* commit 'a482d36635cbfbbfb4aee9fc79d55514bf6b7464':
  Fixed typo in findAccessibilityFocus API.
2012-05-10 09:26:15 -07:00