20823 Commits

Author SHA1 Message Date
Martijn Coenen
deb0f20c3d Fix disableForegroundNdefPush crash.
It crashed due to the fact that we're committing a fragment change
after onSaveInstanceState() is called. Instead, commit without
storing the state - as the NfcFragment is something that needs
to be setup explicitly anyway, it is not something the user
expects to be restored.

Bug: 5540962
Change-Id: I5a8cd0e47306f2bbc14b592a0182083bb79cb21a
2011-10-31 15:42:13 -07:00
Amith Yamasani
69e640ee84 Merge "Bring back the old-style Ring/Vibrate/Silent states when using volume keys." into ics-mr0 2011-10-28 18:59:11 -07:00
Amith Yamasani
c696a53d1f Bring back the old-style Ring/Vibrate/Silent states when using volume keys.
In order to completely mute the ringer (no vibrate), introduce an extra
state beyond mute, which mutes the vibrator as well, if it was enabled.

Bug: 5530217

Change-Id: Ib1f299ee6bbca56c1aa7e1100662591362d08307
2011-10-28 18:40:43 -07:00
Jeff Brown
2d280f754e Merge "Improve the slow query instrumentation." into ics-mr0 2011-10-28 18:21:05 -07:00
Joe Fernandez
09848bc89d Merge "docs: add developer guide cross references, Project ACRE, round 3" into ics-mr0 2011-10-28 15:40:11 -07:00
Jeff Brown
89101cd9d9 Improve the slow query instrumentation.
On user-debug and eng builds, you can set the
"db.log.slow_query_threshold" system property to queries that
take longer than the specified number of milliseconds.
Set it to 0 to log all queries.

This property has been around for a while but it was implemented
poorly.  In particular, it *changed* the behavior of the query
by calling getCount() while holding the Db connection.
In normal operation, the query will not actually run until later.

By putting the timing logic into fillWindow() instead, we ensure
that we only measure queries that actually ran.  We also capture
cases where the cursor window gets filled multiple times.

Bug: 5520301
Change-Id: I174f5e1ea15831a1d22a36e9a804d7755f230b38
2011-10-28 14:58:39 -07:00
Joe Fernandez
61fd1e8d8c docs: add developer guide cross references, Project ACRE, round 3
Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
2011-10-28 14:23:23 -07:00
Gilles Debunne
93347c24a7 Text handles do not handle scroll correctly
A recent patch taking scroll into account was applied at the wrong
level. isVisible() expects positions that already take scroll into
account. isOffsetVisible() is where the initial bug was.

Cherry pick of 144415 from master.

Change-Id: I06ceebfb3d7b24aa4adba886c24fcf9d8dd39d2e
2011-10-28 11:08:56 -07:00
Jeff Brown
0772007b61 Fix copyStringToBuffer row index calculation.
Bug: 5515552

Change-Id: I60aa25d2becd3195d6997d23ef5654a31e93bf71
2011-10-27 19:27:11 -07:00
satok
182e4ae2f4 Add a path to HelloSpellChecker sample application for SDK build
Change-Id: I77e334f8e2b50b8609b1729edb253254d6b7360b
2011-10-28 02:27:53 +09:00
Jaikumar Ganesh
6ae5912175 Fix auto connection of headset profile.
Sometimes when headset service doesn't get bound, the auto
connection fails.

Based on a patch by: Chunho Park <chun.ho.park@samsung.com>

Change-Id: Ia24613b47487717f51895953c7e8bc52abffecb5
2011-10-26 16:00:28 -07:00
Fred Quintana
166466d483 Fixed a bug that causes AccountManager calls to hang forever, eventually
exhausting the binder threads in the gapps process, making it unusable.

Bug: 5486091

Change-Id: I82bd197e27c2be1bf82e4e5cc1468e1c6a3e4919
2011-10-24 17:17:28 -07:00
Brian Colonna
f8b9a4751e Added callback to allow Face Unlock to hide black area
- Part of fix 5491362 (RelTeamHotIssue)

- Because the fix closes the camera early, this change is needed so
  the black area isn't still hanging around while the camera fades
  to the backup lock.

Change-Id: Iab7c264adab0fb05979fe2732048ccf2237e64c5
2011-10-24 15:37:53 -04:00
John Reck
8bf89f305e Fix the build
Change-Id: I822f75b3ed29e7817c7bd9ac5e2314b43831d2c1
2011-10-21 14:24:31 -07:00
Adam Cohen
e3bb0ecb2b Merge "Removing fades on last item in StackView for major FPS improvement on Prime" into ics-mr0 2011-10-21 13:34:46 -07:00
John Reck
2dd2e5b4eb Merge changes I2df047b6,I791eeb3c into ics-mr0
* changes:
  Fix rebuildWebTextView issues
  DO NOT MERGE Fixed spell check failing to change word.
2011-10-21 13:01:48 -07:00
Adam Cohen
c798b6688a Removing fades on last item in StackView for major FPS improvement on Prime
Change-Id: I479eb129e80a6087ab55d1de7eed0222d6dacdf6
2011-10-21 12:44:13 -07:00
John Reck
e20bfd9b33 Fix rebuildWebTextView issues
Bug: 5488135

Change-Id: I2df047b6de42dbe716008f69d720fa5fad3fe19d
2011-10-21 12:39:43 -07:00
George Mount
da182deded DO NOT MERGE Fixed spell check failing to change word.
Bug 5387838
 On WebView.rebuildWebTextView, setTextAndKeepSelection was
 being called, erasing the selections. Changed it so that
 when text is replaced with the exact same value, no replace
 is done. Also, on the Google search, when a spelling change
 was made, the final character was placed improperly. When
 a single character is added, the javascript events for the
 character are sent. When multiple characters are changed,
 the entire value is replaced with no javascript key events
 sent.

Change-Id: I791eeb3c96354cfe3cbfda7e8d05c81fcdeb152f
2011-10-21 12:39:30 -07:00
Dianne Hackborn
4bbd71a6b2 Merge "Fix issue #5228934: IME shows up on boot, or when digits screen is tapped" into ics-mr0 2011-10-21 11:03:34 -07:00
Gilles Debunne
0499f90a2d Merge "Bug 5428541: Check that span is still in text before deleting" into ics-mr0 2011-10-21 09:48:07 -07:00
Dianne Hackborn
0836c7cb98 Fix issue #5228934: IME shows up on boot, or when digits screen is tapped
Activity aliases weren't propagating the softInputMode from the original
activity.

Change-Id: I47534e6c9a0f94bb6eb3fd2186ba9ffc8d583d08
2011-10-20 18:40:23 -07:00
Gilles Debunne
592ddaa34f Bug 5428541: Check that span is still in text before deleting
This is a cherry-pick in MR0 of CL 141388 from master.

Bug 5488537

In case the span has been removed from the text since the popup
was showed, the delete action is a no-op.

Change-Id: Iec2aeaf03becd82ad44715d5c08bfaa8f62aa3fe
2011-10-20 16:03:04 -07:00
Adam Powell
97e1836e1b Bug 5275928 - Invasion of the monkeys
Fix a monkey bug where runnables set to open popup windows were being
left around.

Change-Id: I29f2c7763ab667c784b96b60ef0d7e04d358c4d9
2011-10-20 15:38:05 -07:00
Daniel Sandler
d2cd1f7224 Merge "Lazily fetch the status bar service." into ics-mr0 2011-10-20 13:08:36 -07:00
satok
1301f092e5 Merge "Update links for SampleSpellCheckerService for I938ba499" into ics-mr0 2011-10-20 08:42:50 -07:00
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
satok
44619d3e08 Update links for SampleSpellCheckerService for I938ba499
Change-Id: I528fc5ee5f9971ecb3bf47ef1c8b999546724c1f
2011-10-19 23:52:03 +09:00
Dave Burke
70ac412b2f Merge "Add a LayerScreenshot" into ics-mr0 2011-10-18 22:58:09 -07:00
Daniel Sandler
9cbd360a67 Lazily fetch the status bar service.
Works around a timing issue in the lockscreen's connection
to the status bar.

Bug: 5479833
Change-Id: I043441b94db74df3e4319dd7bfb7635446cdc5d6
2011-10-19 01:41:29 -04: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