30801 Commits

Author SHA1 Message Date
Jim Miller
c1c1406576 Merge "Fix 6398209: Lots of improvements to gesture search from navbar" into jb-dev 2012-05-16 14:17:33 -07:00
Adam Cohen
e0bb6fe333 Merge "Cap widget bitmap usage by screen size (issue 6464700)" into jb-dev 2012-05-16 13:43:27 -07:00
Svetoslav Ganov
c5fb5805c9 Merge "Accessiblity focus not following input focus and text nav broken." into jb-dev 2012-05-16 13:26:54 -07:00
Eric Fischer
cd64097bcb Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-16 13:03:49 -07:00
Eric Fischer
4756720240 Import translations. DO NOT MERGE
Change-Id: I6ea33b0ee9b32f9e4826a6ac8ea0613819ad17a8
2012-05-16 12:31:23 -07:00
Daniel Sandler
81476537fe Merge "Do not wrap action button text." into jb-dev 2012-05-16 12:22:42 -07:00
Chris Wren
b46f3f6743 Merge "Defensively reset the default state of layout elements." into jb-dev 2012-05-16 12:01:44 -07:00
Daniel Sandler
af051b567f Do not wrap action button text.
Bug: 6505172
Change-Id: I240d3559aa4d133f7db24285db076583ef8d3f30
2012-05-16 13:44:04 -04:00
Daniel Sandler
2c3e9e199a New fonts in notifications.
Bug: 6418617
Change-Id: Ie7ed4530c737e1d4fe1f7fab61dfae162ea263a3
2012-05-16 11:02:06 -04:00
Daniel Sandler
70334ac231 Merge changes If0b865ac,Ie0c61300 into jb-dev
* changes:
  Move BigPicture's header to the top of its large view.
  Action button improvements:
2012-05-16 06:19:15 -07:00
Daniel Sandler
0749e8e8a3 Move BigPicture's header to the top of its large view.
Bug: 6494690
Change-Id: If0b865ac72b24c16286f9c334558c12d5b70abd4
2012-05-16 02:37:06 -04:00
Daniel Sandler
8680bf865a Action button improvements:
- Horizontal layout
  - At most 2 are shown
  - Tombstones are now shown (if the intent is null, the
    button is disabled; use it for quick feedback of an
    action's effect)

Bug: 6418617 (tombstones)
Bug: 6482237 (action separators)
Change-Id: Ie0c613006227bbfe1c0ec6eab1cda4f3782a05f2
2012-05-16 01:27:54 -04:00
Chris Wren
67dc9a02cf Defensively reset the default state of layout elements.
Bug: 6500945
Change-Id: Idf7300c44955413e2db26ecbabdef9f67f12f360
2012-05-16 01:03:20 -04:00
Svetoslav Ganov
64899e5c8f Accessiblity focus not following input focus and text nav broken.
1. View is checking if the accessibility focus is its
   descendant it clears the accessibility focus state
   in ViewRootImpl. The check in View was missing the
   case that the descendant may be the view itself. In
   such a case we want the normal clearing code to run.

2. The check whether a view has iterable text for
   accessibility was inverted and text nav was not
   working.

Change-Id: I1a13b6809fb7f205fff76ca09cd449179d06e530
2012-05-15 21:14:10 -07:00
Jim Miller
20830421fe Fix 6398209: Lots of improvements to gesture search from navbar
- Added ability to postpone animations until after window is shown
to ensure the animation is visible on slower devices.
- Fixed layout bug that prevented targets from being located on
outer ring.
- Fixed bug where some motion events were being ignored when handle
wasn't captured.
- Reduced temp object generation in several methods.
- Added containers to start all animations together and to facilitate
delayed start.
- Increased radius of outer ring on phones to closer match mocks.
- Decreased sensitivity of swipe up gesture on navbar so it's harder to false.

Change-Id: I084f840115aef6496a1f87202c4e42d9962c8c3e
2012-05-15 21:10:12 -07:00
Romain Guy
d44a16864d Merge "Don't draw onto a hw surface using the software renderer Bug #6485955" into jb-dev 2012-05-15 19:19:41 -07:00
Romain Guy
413baf8a03 Don't draw onto a hw surface using the software renderer
Bug #6485955

If an invalidate gets scheduled right before the EGL surface is destroyed,
the next draw pass is done in software. This causes the software renderer
to connect to the surface forever which prevents the hardware renderer
from coming back when the screen is turned back on.

The fix here is to ignore the draw request when hw acceleration is requested
but not yet available. Proper software fallback will still happen when an
error is encountered with hardware rendering (in which case hw acceleration
will not be marked as requested anymore.)

Change-Id: I1edc4a51c8dd38240aa2345092a18a081a756fc1
2012-05-15 19:15:47 -07:00
Svetoslav Ganov
67d10a5867 Merge "Prefetching of accessibility node infos getting incorrect views." into jb-dev 2012-05-15 18:56:45 -07:00
Svetoslav Ganov
4528b4e882 Prefetching of accessibility node infos getting incorrect views.
1. The prefetcher of accessibility nodes infos was not folloing
   the childForAccessibility relationship when finding the views
   whose node infos to prefetch.

2. NumberPicker was not reporting the correct parent.

bug:6471710

Change-Id: Ia7ad5dd031fb4b3816dfe630d5212201cfafa236
2012-05-15 18:32:23 -07:00
Amith Yamasani
0763e01c78 Merge "Fix amnesia problem in MultiSelectListPreference." into jb-dev 2012-05-15 18:18:43 -07:00
Dianne Hackborn
79f5777d7c Merge "A few odds and ends." into jb-dev 2012-05-15 18:15:20 -07:00
Xia Wang
1d366274ba Merge "Fix issue: Disable soft ap when test activity is created. Add timer for soft ap enalbing timer: 6192139" into jb-dev 2012-05-15 17:34:44 -07:00
Eric Fischer
fb4d663a5a Merge "Import translations. DO NOT MERGE" into jb-dev 2012-05-15 17:28:27 -07:00
Amith Yamasani
cd9ea08d9c Fix amnesia problem in MultiSelectListPreference.
Bug: 6478079

Pointer assignment instead of copy was resulting in mValues being cleared
on next launch, since mValues became the same pointer as mNewValues.

Change-Id: I91014948e4f48056474b3ab31aab6d35e0ad69ca
2012-05-15 17:17:24 -07:00
Adam Powell
e095ceaa79 Merge "Handle returning a result from automatic up navigation from another task." into jb-dev 2012-05-15 17:11:45 -07:00
Eric Fischer
e067d3873b Import translations. DO NOT MERGE
Change-Id: I4f28c7c07dc52c1bb3c320692e7286bceedde177
2012-05-15 17:08:14 -07:00
John Reck
7a59c5aebc Merge "Always do a HIT_TEST" into jb-dev 2012-05-15 16:55:45 -07:00
Adam Powell
3d193d92f6 Handle returning a result from automatic up navigation from another
task.

When navigating up from a different task, if the current activity has
a result set only finish the current activity instead of trying
finishAffinity. Log this so that developers know why this behavior is
happening.

Bug 6465336

Change-Id: Ic7cec6f0c0d5861296091e2aea9344309f5fc600
2012-05-15 16:53:34 -07:00
Michael Chan
2faa075ed7 Merge "Update docs for launching custom app for calendar events" into jb-dev 2012-05-15 16:30:15 -07:00
Xia Wang
2f19a3103c Fix issue: Disable soft ap when test activity is created.
Add timer for soft ap enalbing timer: 6192139

Change-Id: I9f9a6a1f0787efdfbb924af80f7d610c07cd32e5
2012-05-15 16:10:55 -07:00
Fabrice Di Meglio
31a4cbf00c Merge "Fix bug #6495019 Character gets garbled when locale is changed" into jb-dev 2012-05-15 15:29:25 -07:00
Chris Craik
6675f691ed Merge "Invalidate on new picture if scale/content size changes" into jb-dev 2012-05-15 15:28:21 -07:00
clchen
c8654acf63 Merge "Updating the accessibility gestures to remove unused gestures (circles) and adding more examples to improve recognition." into jb-dev 2012-05-15 15:28:08 -07:00
Guang Zhu
5c0a99f3a1 Merge "Expose class name in AppWidgetHostView for accessibility" into jb-dev 2012-05-15 15:28:03 -07:00
clchen
d3a6b725e0 Updating the accessibility gestures to remove unused gestures
(circles) and adding more examples to improve recognition.

Change-Id: Ib89b6efb5ca48bc50f0b51017519304d3d20748e
2012-05-15 15:19:47 -07:00
Dianne Hackborn
e302a16235 A few odds and ends.
- Add documentation on "television" UI mode.
- Tweak new documentation and implementation around propagating
  URI grants through choosers.
- Add new activity launch flag for closing system dialogs.

Change-Id: I978c05f0dc3d16e1c55d43631828b9efa6335b19
2012-05-15 14:58:32 -07:00
Fabrice Di Meglio
15cc68ced0 Fix bug #6495019 Character gets garbled when locale is changed
- add missing cached data clearing. The Shaper was caching the HB_Face so
clear them too
- do minor code refactoring

Change-Id: Ifa86cc63815bdb4b51ce688cf16e986415b1e8c1
2012-05-15 14:55:49 -07:00
Guang Zhu
1affb93764 Expose class name in AppWidgetHostView for accessibility
The class is public, part of framework, exposing it for launcher
testing.

Change-Id: Icd9b0f3e300de964b98de8d9f5f62fdc916584e3
2012-05-15 14:29:33 -07:00
Dianne Hackborn
bea7afc52c Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev 2012-05-15 13:57:06 -07:00
Adam Cohen
0a283346aa Merge "Adjusting default widget padding for sw600 dp devices (issue 6491977)" into jb-dev 2012-05-15 13:47:48 -07:00
Adam Cohen
cd1b10b257 Adjusting default widget padding for sw600 dp devices (issue 6491977)
Change-Id: Ib5ae1452509f4f12c3bfc485b61251490a37960b
2012-05-15 13:38:02 -07:00
Daniel Sandler
8414beac87 Merge "Test new fonts and use correct OS version." into jb-dev 2012-05-15 13:30:41 -07:00
George Mount
d97d4f6cf6 Merge "Only open CAB for long-press." into jb-dev 2012-05-15 13:25:03 -07:00
Daniel Sandler
f89d5079e4 Test new fonts and use correct OS version.
Bug: 6499146
Change-Id: I83d6298725fe1f3385d5bf0a34487658583141a4
2012-05-15 16:15:15 -04:00
Dianne Hackborn
03fcc333cf Fix issue #6284404: ArrayIndexOutOfBoundsException in...
...FragmentManagerImpl.restoreAllState

This was a bug related to the difference between the pre- and post-HC
behavior of onSaveInstanceState().  Prior to HC, state was saved
before calling onPause().  Starting with HC, it is saved between
onPause() and onStop().  To maintain compatibility with existing
applications, there is a check in ActivityThread for pre-HC to in
that case emulate the behavior of old applications, still calling
onSaveInstanceState() before onPause() but using the state later.

One of the special cases we had to deal with in the old model of
saving state before pausing was restarting an activity that is
already paused.

Consider, for example: you have two activities on screen, the one on
top not fullscreen so you can see the one behind.  The top activity
is resumed, the behind activity is paused.  In the pre-HC world, the
behind activity would have already had its state saved.

Now you rotate the screen, and we need to restart the activities.
We need to destroy the behind activity and create a new instance,
but the new instance has to end up in the paused state.  To
accompish this, we restart it with a flag saying that it should
end up paused.  For the pre-HC world, since it ends up paused,
we need to make sure we still have its instance state kept around
in case we need it because we can't regenerate it (since it is
already paused).

So that is what the changed code here is doing.  It goes through
the normal create/start/resume steps, but holds on to the current
saved state so that it isn't lost when resume clears it, and then
puts the activity back to paused and stuffs that old saved state
back in to it.

The problem is that this code was doing it for every application,
even HC apps.  So we end up in a bad state, when a HC app has its
saved state sitting there as if it had been saved, even though it
is only paused.  Now if we go to restart the activity again, instead
of asking it for a new saved state (as we should for a HC app as
part of stopping it), we just re-use the existing saved state again.

Now this wouldn't generally be a huge problem.  Worst case, when we
restart the activity yet again we are just instantiating it from
the same saved state as we used last time, dropping whatever changes
may have happened in-between.  Who cares?  All it has been doing is
sitting there in the background, visible to the user, but not something
they can interact with.  If the activity made changes to its
fragments, those changes will be lost, and we will restore it from
the older state.

However...  if one of those fragements is a retained fragment, this
will *not* appear in the saved state, but actually be retained across
each activity instance.  And now we have a problem: if the retained
fragments are changed during this time, the next activity instance
will be created from the most recent state for the retained fragments,
but the older state for everyting else.  If these are inconsistent...
wham, dead app.

To fix this, just don't keep the saved state for HC apps.

Also includes a small optimization to ActivityStack to not push
the home screen to the front redundantly.

Change-Id: Ic3900b12940de25cdd7c5fb9a2a28fb1f4c6cd1a
2012-05-15 13:13:33 -07:00
David Hu
981bd8a4cd Merge "Allow tests to run when bandwidth profiling fails" into jb-dev 2012-05-15 12:37:52 -07:00
Svetoslav Ganov
0e3057c667 Merge "Add accessibility scroll support to some widgets." into jb-dev 2012-05-15 11:58:55 -07:00
Jeff Sharkey
d6c1e49847 Merge "Migrate stream extras in CHOOSER intents." into jb-dev 2012-05-15 11:35:45 -07:00
Svetoslav Ganov
48d1586f40 Add accessibility scroll support to some widgets.
1. Added support for accessibility scroll action to
   some widgets that are scrollable.

2. Making the super call when handling an accessibility
   action in the views to call super first to allow
   an accessibility delegate to intercept the call.

bug:5932640

Change-Id: I5eb37d64bf9fba1d5c596981132e0df717e2a18a
2012-05-15 11:21:32 -07:00
Romain Guy
2298fe223f Merge "Avoid unnecessary copy when invoking drawBitmap(int[]) Bug #6483390" into jb-dev 2012-05-15 11:18:08 -07:00