58818 Commits

Author SHA1 Message Date
Gilles Debunne
945ee9b166 Bug 5250788: TextView gets slower as the text length grows
getSpans was called too many times in handleRun. Pre-compute the
subset of intersected spans and iterate over a subset of it instead.

Moving the instanceof test in getSpans after the other tests also
speeds things up a lot.

On a text with ~300 words, all with a span attached, getSpans went down
from 78% to 14% of the CPU usage.

Change-Id: I59bc44f610e9a548e0dcec68b180934da9e5c559
2011-09-23 11:00:27 -07:00
Amith Yamasani
72e6bece43 Launch nested preferences with the same theme as parent activity.
Bug: 5351628
Change-Id: Id67b81558bc6e010d6f024cdb8117424aa6b62f0
2011-09-23 10:43:40 -07:00
Andreas Huber
a17545339b Add an option to dump the raw stream to a file in the stagefright cmdline tool.
Change-Id: Ie19eca2cdf162d6973037ec554ef5916243ea7d7
2011-09-23 10:25:32 -07:00
Gilles Debunne
186aaf9735 Bug 5248215: Even though I turned off the Spelling correction, it still shows up
Bug 5313754: SpellCheckSession is released when the window loses focus.

When an EditText is initialized with text, a new spell check is initiated
and previous spell check spans are removed.
Requires a new flag to prevent this from happening when the window focus
change comes from the suggestion popup window being shown.

Also fixes bug 5329588: handle spell check language change.

This change has been reverted. This amended change defers the creation
of the SpellChecker, so that it is only created for editable TextView.

Patch 3: Bug 5332065, the spell check session is closed in onDetachedFromWindow, which is
called when the window is destroyed (like on rotation), which was not the case with
onWindowFocusChanged.

Patch 5: Fixed life cycle. A view can be created and never attached to the hierarchy. As
a result, the spellCheck session would not be closed. Moved spell check to onAttach and
perform a spell check when text is changed by setText only if the view has previously
been attached (and the spellChecker has been created).

Change-Id: Ic2cfbfc0d3f23c589dd9e37f02e4afc1d625615d
2011-09-23 10:16:01 -07:00
Eric Laurent
5e7acae2c3 Fix issue 5355047: Automated effect tests fail.
Fixed several regressions in automated audio effect tests due
to changes in effect framework and visualizer FFT output range.

- Do not suspend Volume effect on session 0 when effects are
enabled on specific sessions.
- Adapt energy detection thresholds to new visualizer FFT range.
- Leave more time for BassBoost and Virtualizer effects to ramp up
before measuring the effect.
- Removed second insert reverb left by mistake on the player session
in preset reverb test.

Change-Id: I7a1ad1372d783fa7900eb9dd1d3b47f54d8d766f
2011-09-23 10:15:05 -07:00
Kenny Root
fec5e75c96 Less verbose message when dexopt non-APK
The message when something is not an APK that is submitted for dexopt is
not extremely helpful. Make it more precise and remove the useless
traceback.

Change-Id: Ibb34b2b2c10ee28ea98662c3f6fd070529cf8c4f
2011-09-23 10:13:06 -07:00
Wei Huang
e448f557f6 am 3d9a9e55: Merge "Update camera javadoc about AE and AWB lock." into ics-factoryrom
* commit '3d9a9e55df85c720573e69ec3062efc331ea69bb':
  Update camera javadoc about AE and AWB lock.
2011-09-23 10:05:22 -07:00
Wei Huang
3d9a9e55df Merge "Update camera javadoc about AE and AWB lock." into ics-factoryrom 2011-09-23 10:04:02 -07:00
Eric Fischer
ec26232d70 am c4517842: Merge "Delete translations of files that no longer exist." into ics-factoryrom
* commit 'c4517842ee2a641342f151ecafb797080b9ed84d':
  Delete translations of files that no longer exist.
2011-09-23 09:45:50 -07:00
Eric Fischer
c4517842ee Merge "Delete translations of files that no longer exist." into ics-factoryrom 2011-09-23 09:43:55 -07:00
Daniel Sandler
a8c46b1dc4 Merge "Put the correct background behind largeIcons." 2011-09-23 09:33:18 -07:00
John Reck
2df8f425f6 Add detail to restorePicture deprecation
Bug: 5361506

Change-Id: I4bf6583170df50b218051f4700700ff1b8874d17
2011-09-23 09:27:01 -07:00
Pannag Sanketi
91d3413790 am 1d71c7b4: Merge "Returning EOS in SurfaceMediaSource:read" into ics-factoryrom
* commit '1d71c7b40a7f38487e602e78f45279b6a8364fc9':
  Returning EOS in SurfaceMediaSource:read
2011-09-23 09:08:11 -07:00
Pannag Sanketi
1d71c7b40a Merge "Returning EOS in SurfaceMediaSource:read" into ics-factoryrom 2011-09-23 09:06:55 -07:00
Wei Huang
4cd34752cb am 5d87227b: Merge "Clear callbacks in camera stopPreview." into ics-factoryrom
* commit '5d87227bad8126d701145cd07c3ac2a365e8480e':
  Clear callbacks in camera stopPreview.
2011-09-23 08:33:46 -07:00
Wei Huang
5d87227bad Merge "Clear callbacks in camera stopPreview." into ics-factoryrom 2011-09-23 08:30:32 -07:00
Brandon Keely
c56c92013c Merge "Make LockScreen ping() on a miss." 2011-09-23 07:46:30 -07:00
Justin Ho
092c339ae7 am a780fb8e: Merge "Updating ellipsis in Roboto Bug: 5344295" into ics-factoryrom
* commit 'a780fb8e22d72b3f2c09b16eeddeff30e417ee3c':
  Updating ellipsis in Roboto Bug: 5344295
2011-09-23 07:30:18 -07:00
Justin Ho
a780fb8e22 Merge "Updating ellipsis in Roboto Bug: 5344295" into ics-factoryrom 2011-09-23 07:28:31 -07:00
Justin Ho
16faafb493 Updating ellipsis in Roboto
Bug: 5344295

Change-Id: Ia885ff39da0609f51863665125bae3a1024e161c
2011-09-23 07:27:35 -07:00
Chih-yu Huang
664d72e663 Clear callbacks in camera stopPreview.
Clear those callbacks to remove the references
so the memory can be recycled.

bug:5358774
Change-Id: I3b6034a1891126b3437a6744013f38a64f5bb03b
2011-09-23 20:28:28 +08:00
Peter Ng
b48ca1f1ab am dd33bf0e: Merge "Fix 5355659: Minor tweak to wave ping radius in MultiWaveView." into ics-factoryrom
* commit 'dd33bf0ebbde9aa702d039b6b9d5f06ac0a69dfb':
  Fix 5355659: Minor tweak to wave ping radius in MultiWaveView.
2011-09-22 23:40:06 -07:00
Robert Greenwalt
511ecc8cf9 am b849074c: Merge "Tell the resolver what protocols to use." into ics-factoryrom
* commit 'b849074cb58edc15b0764afdde0326c0b6d5b147':
  Tell the resolver what protocols to use.
2011-09-22 23:39:53 -07:00
Justin Ho
006dc043f0 am 4dfe8695: Merge "CAB assets" into ics-factoryrom
* commit '4dfe869520b83b79cc5912f5bd0061b0ec33aa11':
  CAB assets
2011-09-22 23:39:51 -07:00
Justin Ho
64edbc3093 am 777163e0: Merge "Updated emergency icon on lockscreen" into ics-factoryrom
* commit '777163e0466bda76d64809b5fd6a1a688de67099':
  Updated emergency icon on lockscreen
2011-09-22 23:39:49 -07:00
John Wang
5298a8c71a am dd6d1bbd: Merge "Update PUK unlock screen." into ics-factoryrom
* commit 'dd6d1bbd15c4e5cf1b3e0ac34c96f29fb04863c6':
  Update PUK unlock screen.
2011-09-22 23:39:37 -07:00
Adam Cohen
a0c7a5765d am 08ee7fa4: Merge "Fixing emergency dialer flicker on lock screen (issue 5314293)" into ics-factoryrom
* commit '08ee7fa463aee5e83f77789e9a99f17a34ab68b4':
  Fixing emergency dialer flicker on lock screen (issue 5314293)
2011-09-22 23:39:33 -07:00
Justin Ho
83227a2d06 am 31b638d4: Merge "Fix 5355659: Change chevron visuals, timing, and animated positioning" into ics-factoryrom
* commit '31b638d40342fc9e3198f9e7f8dffaf55049c9e1':
  Fix 5355659: Change chevron visuals, timing, and animated positioning
2011-09-22 23:39:31 -07:00
Mathias Agopian
0c92e4d747 Merge "don't clear the framebuffer when the framebuffer is not used" 2011-09-22 21:01:21 -07:00
Mathias Agopian
9f12c8b47b Merge "fix dumpsys wording for h/w composer" 2011-09-22 21:00:49 -07:00
Mathias Agopian
9fe96541c3 don't clear the framebuffer when the framebuffer is not used
when areas of the FB are undefined (transparent windows on top of
nothing), we clear those areas before composition.
however, it makes no sense to do this when the FB is not in use
(case where hwc handles all layers)

Bug: 5360529
Change-Id: If51bb669307e8419bbe1f3a89d1c88e0ec1f216c
2011-09-22 20:57:04 -07:00
Svetoslav Ganov
b84b94e1a0 Scroll accessibility events should not populate text.
Scroll events are used to report position change and should not
contain the text content of the view that fires them because it
is usiually a containter for many other views and the text will
be long and not informative for accessibility purposes. Also
such evens are fired relatively frequently. If a client wants
to fetch some textual content for a scroll event he can use
the interrogation APIs.

bug:5352059

Change-Id: I43e02aca895c8ab16ba82ebe1cee3aea8ce7711a
2011-09-22 19:55:47 -07:00
Adam Powell
7db82acd81 Fix leaky view tags
The implementation of the method View#setTag(int, Object) stored tag
objects as entries in a static WeakHashMap associated with the View as
a key. This was problematic for any tag object that stored a hard
reference back to the View the tag was placed on, as it would cause
the WeakReference key to never be collected and the entry to persist
forever.

This was particularly nasty if an app used a keyed tag to store a
ViewHolder object referencing child views for use in the Adapter
implementaion for an AdapterView, since child views will always have
hard references leading back to the parent.

Change-Id: Ia17840a301ba0e0c928861405388fb2f625dac2c
2011-09-22 19:55:41 -07:00
Adam Powell
9b01e30cea Merge "Fix bug 5355912 - SearchView in ActionBar with Theme.Holo.Light.DarkActionBar gets black text" 2011-09-22 19:32:13 -07:00
Svetoslav Ganov
1ac6b1e221 Merge "ActivityChooserView not showing "Show all" properly if the default target button not shown." 2011-09-22 19:08:26 -07:00
Adam Powell
d65b3b99f0 Fix bug 5355912 - SearchView in ActionBar with
Theme.Holo.Light.DarkActionBar gets black text

Make sure that menus generated for use in action bars get themed correctly.

Change-Id: I14ba676d296c785514425d40d89e62dc4ff1da1a
2011-09-22 18:53:15 -07:00
Dianne Hackborn
80a7ac1063 Fix issue #5321282: Force Stop Button in Battery Screen Not disabled correctly
If the app had activities still finishing, when we checked whether it was
now stopped we would get told no.  Also some other improvements:

- Schedule an idle as part of the force stop, to get any finishing
  activities out of the stack soon rather than waiting for some activity
  to idle.
- Don't filter out stopped system apps.  This is dangerous because
  system apps may have no way for the user to explicitly launch them,
  so they could get put into a stopped state for which there is no way
  to get them out.  Also if the user really wants a system app to not
  run, the new disabling mechanism is more appropriate.

Change-Id: I34003f21dac29e2ca0f66a23b88c710de41bab99
2011-09-22 18:32:52 -07:00
Peter Ng
dd33bf0ebb Merge "Fix 5355659: Minor tweak to wave ping radius in MultiWaveView." into ics-factoryrom 2011-09-22 17:28:29 -07:00
Chia-chi Yeh
1dc43b5cc5 Merge "ip-up-vpn: Handle the case where INTERNAL_NETMASK4 is empty." 2011-09-22 17:25:27 -07:00
Jim Miller
fb708a1a6c Fix 5355659: Minor tweak to wave ping radius in MultiWaveView.
Change-Id: Ib85c9d375e26897ce87b41addfaba503d9430f18
2011-09-22 17:21:56 -07:00
Scott Main
7370642dd8 Merge "docs: update Notification dev guide with info about custom notification text colors" 2011-09-22 17:18:25 -07:00
Eric Fischer
6b1a9af51e Delete translations of files that no longer exist.
Change-Id: I26edc4a3dd2ac19c410af75c4fce1b67100a71d2
2011-09-22 17:17:55 -07:00
Pannag Sanketi
a1849fceaf Returning EOS in SurfaceMediaSource:read
In SurfaceMediaSource::read, if disconnect has already been called, then
ERROR_END_OF_STREAM should be returned rather that NO_INIT. Else, it
sometimes leads to a crash in mediarecorder stop() call.

Related to FactoryROM bug: 5332812

Change-Id: I22132538ab2501d084e0283876817b1ec3f64a1d
2011-09-22 17:03:48 -07:00
Robert Greenwalt
b849074cb5 Merge "Tell the resolver what protocols to use." into ics-factoryrom 2011-09-22 16:57:43 -07:00
Justin Ho
4dfe869520 Merge "CAB assets" into ics-factoryrom 2011-09-22 16:57:03 -07:00
Justin Ho
777163e046 Merge "Updated emergency icon on lockscreen" into ics-factoryrom 2011-09-22 16:54:17 -07:00
Justin Ho
03c3a35394 Updated emergency icon on lockscreen
Change-Id: Idd4dc679c45aedce627a5be0991879d83758650e
2011-09-22 16:52:56 -07:00
Robert Greenwalt
d90c611a59 Tell the resolver what protocols to use.
Stop guessing based on the connectivity of the default route and use the correct
v4/v6 proto for your pid.

bug:5284168
Change-Id: Ife82a8d8e54c0ace2bc9e8a624b11d29a4e285e2
2011-09-22 16:43:15 -07:00
Mathias Agopian
c4f5d5a0df fix dumpsys wording for h/w composer
Change-Id: Iaa1094964f2fb83da491e23b9309f7690079c17e
2011-09-22 16:26:39 -07:00
Jeff Sharkey
367d15ab1a Watch network subtype, tethering teardown, empty.
Watch for changes to telephony network subtype, and update iface
mapping to persist stats under correct type.  Update network stats
before removing tethering NAT rules.

Skip recording that would create empty historical buckets.  Query UID
stats before iface stats to always skew positive when counters are
actively rolling forward.

Bug: 5360042, 5359860, 5335674, 5334448
Change-Id: I8aa37b568e8ffb70647218aa1aff5195d3e44d5a
2011-09-22 16:19:06 -07:00