20795 Commits

Author SHA1 Message Date
Svetoslav Ganov
5dc30a770a Merge "DatePicker crashes when going from 2036 to 2035 via ▼" into ics-mr0 2011-10-19 21:15:30 -07:00
Jim Miller
2f35281ae0 Merge "Fix 5485925: Fix crash in transport control view" into ics-mr0 2011-10-19 20:49:33 -07:00
Svetoslav Ganov
6304b0d58e DatePicker crashes when going from 2036 to 2035 via ▼
1. Some obsolte logic was placing invalid index in the array of
   scroll wheel items which was resulting in failure to look its
   string representation from the cache causing a NPE.

2. While editing the current value via the IME the middle item
   of the scroll wheel was partially visible i.e. the user was
   able to see a dimmed version of the old value intermixed with
   the new one.

3. The logic for hiding the IME while poking a button i.e. starting
   to use another way of changing the current value, was incorrect.

bug:5480205

Change-Id: I1c2c96402bd38bac1dec64ccc6b550410332b9d7
2011-10-19 20:43:35 -07:00
Svetoslav Ganov
06044fe114 Merge "AccessibilityServiceInfo does not report properly the feedback type." into ics-mr0 2011-10-19 18:15:52 -07:00
Jim Miller
a5ff5b482a Fix 5485925: Fix crash in transport control view
This fixes a crash where we weren't hiding the view when there's
no registered media player.  It now hides the view when AudioManager
tells it to clear the data.

It also avoids a possible race condition where a request can
come in from AudioManager before the callback is set.

Change-Id: I3360e775c75396e1eee11413d317df5b39ceb487
2011-10-19 18:07:58 -07:00
Daniel Sandler
84e825a84d Merge "Add hasNavigationBar() to the window manager." into ics-mr0 2011-10-19 18:05:20 -07:00
Svetoslav Ganov
bb1b9ea8a4 AccessibilityServiceInfo does not report properly the feedback type.
Since the feedback type is an integer the bits of which correspond to a given
feedback type, the AccessibilityNodeInfo#feedbackTypeToString should return a
string representation of all feedback types. The current implementation
incorrectly assumes that the argument had only one flag set. Note that this
is a new ICS API and we would like to have this fixed.

bug:5486933

Change-Id: I5e461c385e199cce4c3054907ff0acf5e9d92afc
2011-10-19 17:14:27 -07:00
Daniel Sandler
0c4ccff369 Add hasNavigationBar() to the window manager.
It is no longer sufficient to check the value of
internal.R.bool.config_showNavigationBar to determine if a
navigation bar (separate from the status bar) is shown on a
device, because the emulator needs to be able to override
this value (now possible by setting qemu.hw.mainkeys to "1"
or "0", for navbar or no navbar, respectively).

This logic is now contained in PhoneWindowManager, and any
clients wishing to know whether the system has a software
nav bar should consult the new hasNavigationBar() method.

Bug: 5404945
Change-Id: I119d32a8c84b88b2ef46f63244e7f11dc5de0359
2011-10-19 16:39:14 -04:00
Svetoslav Ganov
0e6fa8b60d AdapterView does not check for null adapter when initializing accessibility event.
The code that initializes accessibility events was assuming the AdapterView
always has an adapter and this caused NPE. Now the right method of the view
is called to get the item count.

bug:5474162

Change-Id: I6c330dc2894477df9447a4ecfddc7bd62c575d59
2011-10-19 12:38:08 -07:00
Dianne Hackborn
47f8367ab7 Merge "Work on issue #5465917: Wakelock *overflow* held for very long times" into ics-mr0 2011-10-19 11:07:34 -07:00
Dave Burke
70ac412b2f Merge "Add a LayerScreenshot" into ics-mr0 2011-10-18 22:58:09 -07:00
Mathias Agopian
0ab84ef507 Add a LayerScreenshot
A LayerScreenshot is a special type of layer that contains a screenshot of
the screen acquired when its created. It works just like LayerDim.

Make sure to call compositionComplete() after rendering into a FBO.

Bug: 5446982, 5467587, 5466259
Change-Id: I5d8a1b4c327f9973d950cd4f4c0bca7f62825cd4
2011-10-18 20:21:47 -07:00
Dianne Hackborn
c24ab866b0 Work on issue #5465917: Wakelock *overflow* held for very long times
- Fix ordering problem in sync manager that would cause its wake
  locks to slightly appear in the system process when they should
  be fully accounted against the app.
- Allow the system process to have more wake lock names in its
  battery stats.
- In the bug report output, print totals of the wake locks for each
  process, to make it easier to parse what is being printed for things
  like the system process with a huge number of individual wake locks.

Change-Id: I3cf39330f22f3c51c11e65e4124150d73a7da2dd
2011-10-18 16:38:17 -07:00
Scott Main
35f78f30f3 Merge "docs: add package summary for spell checker services" into ics-mr0 2011-10-18 15:54:04 -07:00
Joe Fernandez
3f70aa783c Merge "docs: Camera JavaDoc - added xref to Camera DevGuide" into ics-mr0 2011-10-18 15:02:00 -07:00
Joe Fernandez
6c5c3c392b docs: Camera JavaDoc - added xref to Camera DevGuide
Change-Id: I4b5faa154a63f0830717a9156b617a0199604547
2011-10-18 14:57:05 -07:00
Fred Quintana
6d076a425a Merge "fix bug where the instance saving of the ChooseTypeAndAccountActivity would only work in the case where onSaveInstanceState was called." into ics-mr0 2011-10-18 14:43:06 -07:00
Chet Haase
87bc53de2a Merge "Make notification panel delete-all animation smoother" into ics-mr0 2011-10-18 13:45:00 -07:00
Jim Miller
8e6d75affa Merge "Fix 5473038: workaround for fd leak in lockscreen" into ics-mr0 2011-10-18 13:10:24 -07:00
Chet Haase
2f2022afa1 Make notification panel delete-all animation smoother
Making the notfication delete-all animation smoother by carefully
choreographing the various parts of it. The problem with the previous
animation was that there was simply too much going on at the
same time, causing things like layout and recreating display-lists
in the middle of animations that became choppy as a result. This
approach swipes all items off quickly, then scrolls the shade up to the
top, making both sets of animations smoother as a result.

Fixes #5431207: Notification delete-all should be smoother

Change-Id: Iefe8ab5d661e05adcd10379dab85227d17904450
2011-10-18 13:05:28 -07:00
Scott Main
b22723c3f6 docs: add package summary for spell checker services
Change-Id: Iaac3293f941ec117ec28e031d5e24073e1269851
2011-10-18 11:19:44 -07:00
Mangesh Ghiware
2bd3c2f7e8 Merge "Fix null ptr exception in getReadingLevelScale()" into ics-mr0 2011-10-18 10:31:15 -07:00
Robert Greenwalt
dba69061a6 Merge "Send availability info more reliably" into ics-mr0 2011-10-18 09:42:33 -07:00
Mangesh Ghiware
1698d45ef8 Fix null ptr exception in getReadingLevelScale()
Handle the case where WebView settings might be null.

Bug: 5472493
Change-Id: I6b1c2e5e5e56a517910a330ae9d40a4adc99d75a
2011-10-18 09:32:36 -07:00
satok
b7ad825335 Merge "Add documents for the spell checker framework and the input method subtype" into ics-mr0 2011-10-18 09:15:48 -07:00
Robert Greenwalt
12e24ae760 Send availability info more reliably
We don't have a monolithic availability state, so the mAvailable variable
must go.

bug:5453318
Change-Id: I82af90907cc7a0173b74d661912f9c28ddc7dcb0
2011-10-18 06:39:59 -07:00
satok
44b7503093 Add documents for the spell checker framework and the input method subtype
Bug: 4973788

Change-Id: I7e650f336ba1bb8949899e8b2355e6d492a2e4b2
2011-10-18 20:28:23 +09:00
Fred Quintana
01df6a8ee2 fix bug where the instance saving of the ChooseTypeAndAccountActivity
would only work in the case where onSaveInstanceState was called.

 - combined mExistingAccounts and mSavedAccounts into one field
 - set this field when starting the addAccount request
 - write this to the instance state if the request state
   is ADDING_ACCOUNT
 - read this field from the instance state, if any,
   when the request state is ADDING_ACCOUNT

Bug: 5459669
Change-Id: I5a7b4943de8e706cc8a21ff9f54fce4258f18b19
2011-10-17 21:06:30 -07:00
Jim Miller
9a7e4ce72a Merge "Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar" into ics-mr0 2011-10-17 18:03:38 -07:00
John Reck
7788c51d82 Merge "Fix onFirstLayout path for saved pages" into ics-mr0 2011-10-17 17:48:58 -07:00
Jim Miller
a7f3a34313 Fix 5473038: workaround for fd leak in lockscreen
This works around a file descriptor leak in Skia. It also improves
view creation time by avoiding re-loading the font every time a
DigitalClock is created.

Change-Id: I5c46445da36b1e6ba06c8ca340e436835d281180
2011-10-17 17:43:02 -07:00
John Reck
23a446cf27 Fix onFirstLayout path for saved pages
Bug: 5464993
 Saved pages are taking the onFirstLayout path in
 onConfigurationChange incorrectly. Fix that by clearing out the
 view state after actual first layout.

Change-Id: I61578f35ee6be349df49a63c464f532e0a87df28
2011-10-17 17:06:09 -07:00
Jim Miller
305c78cce6 Fix 5466678: use new setSystemUiVisibility() API to enable clock in statusbar
This fixes a bug where the clock wasn't being shown in the statusbar while
the music widget is showing.

Change-Id: Ic1c52c4ab7fa1490fe14ddafaf2c494bcf51866d
2011-10-17 11:41:44 -07:00
Chet Haase
1aad3b5e33 Merge "Issue 5432115: Speed up notification scrolling" into ics-mr0 2011-10-17 10:50:16 -07:00
Amith Yamasani
541f6cfba8 Merge "Add alarm volume to the list of volumes in the volume overlay." into ics-mr0 2011-10-17 09:42:52 -07:00
Chet Haase
ba1fe8e3cf Issue 5432115: Speed up notification scrolling
The NotificationPanel was using views that had non-1 alpha
values set on them (permanently). This is costly in the GL
implementation and caused more rendering overhead, and worse
performance, than simple opaque views would.

The fix is to set the text color and ImageView drawable alpha
directly, without setting the View alpha property.

Change-Id: I381e0bd45bf45784b8e364a27a339e6583189a43
2011-10-17 08:54:53 -07:00
Narayan Kamath
39268ffcb7 Format default locale the same way as those stored in prefs.
Also explicitly disallow locales with empty countries. This
is required to match them against the set of engine supported
locales.

bug:5309930
Change-Id: Ie9714fdc09d3081081a2393d97c31e3a42bca294
2011-10-17 14:37:40 +01:00
Mathias Agopian
840b8a6785 Revert "Add a LayerScreenshot"
This reverts commit d6809f40cf61203573ec5dbc437f695cd132cc18.
2011-10-16 23:54:25 -07:00
Jim Miller
7b5dd87351 Fix 5466793: Fix memory leak in system process when face lock is enabled.
Previously, the code was not unregistering the callback when we unlocked
the device, which kept a reference to LockPatternKeyguardView indirectly
by a reference to mFaceLockCallback.

It now correcly removes the callback when we unlock the device.

Change-Id: Ie592d007a1dfc2416b9e8956aba2c34e3d0120ee
2011-10-16 12:46:06 -07:00
Uriel Rodriguez
d814d4fa0c Merge "going directly to backup after face unlock fails 15 times" into ics-mr0 2011-10-15 08:44:21 -07:00
Amith Yamasani
92e1b2d37b Add alarm volume to the list of volumes in the volume overlay.
This will be used only for adjusting the alarm volume when an
alarm ringtone is being selected.

Bug: 5164828
Change-Id: Ia4a12b1946fb0715e97101bfd389c6bd33c448c7
2011-10-14 17:24:47 -07:00
Scott Main
f755a2e8aa Merge "docs: a couple notes for a11y methods in View and cleanup to the A11y service HTML to be semantically correct and thus improve its accessibility :)" into ics-mr0 2011-10-14 17:19:17 -07:00
Scott Main
b303d8381d docs: a couple notes for a11y methods in View and cleanup to the
A11y service HTML to be semantically correct and thus improve its accessibility :)

Change-Id: I483a8a441d802b056f68f82e0e782d86a73298ac
2011-10-14 17:03:35 -07:00
Bart Sears
b227cce316 Merge "Check MediaPlayer state, do not teardown() from UI thread." into ics-mr0 2011-10-14 16:09:46 -07:00
Mathias Agopian
57337eb78e Merge "Add a LayerScreenshot" into ics-mr0 2011-10-14 15:35:54 -07:00
Mathias Agopian
d6809f40cf Add a LayerScreenshot
A LayerScreenshot is a special type of layer that contains a screenshot of
the screen acquired when its created. It works just like LayerDim.

Bug: 5446982
Change-Id: I7814aff2380e7e146937f2b641907be2a30c76cc
2011-10-14 14:32:48 -07:00
Ben Murdoch
817d6d5e8e Check MediaPlayer state, do not teardown() from UI thread.
The teardown() function should only be called from the native
thread when WebCore is happy for us to release the media player.

When we lose audio focus, simply stop playback. Also be careful
not to check the playing state of the MediaPlayer if we are in
the error state.

Bug: 5461143

Change-Id: Iba03bdad5c39b104b3071129430d7ef2177e9358
2011-10-14 22:11:26 +01:00
Uriel Rodriguez
fd2ed6910f going directly to backup after face unlock fails 15 times
- after 15 failed face unlock attempts, go to backup until the backup method is successful
- if the backup method times out (because too many unsuccessful unlocking attempts),
  face unlock will not be launched until the backup method is used sucessfully
- fixes 5365919

Change-Id: I9aef7a4f1abcceefc5d6f1c0458ae5cbe8a902df
2011-10-14 16:25:42 -04:00
Martijn Coenen
202b38cb71 Merge "Remove NfcFragment from activity when no longer sharing." into ics-mr0 2011-10-14 12:57:34 -07:00
satok
e6fee18d16 Merge "Invalidate SuggestionSpan with FLAG_AUTO_CORRECTION when it's removed." into ics-mr0 2011-10-14 11:15:05 -07:00