Commit Graph

30274 Commits

Author SHA1 Message Date
Romain Guy
65aaec3d39 Merge "Lazily allocate seldom-used data structures" 2013-06-17 18:23:42 +00:00
Romain Guy
16c0318474 Lazily allocate seldom-used data structures
Change-Id: I8d6b9d2d821168329206c01ed6539a1466af272f
2013-06-17 11:21:58 -07:00
Primiano Tucci
4aaf8b3d4b Merge "Deprecate webview.use_chromium and introduce webview.force_provider." 2013-06-17 17:36:38 +00:00
Primiano Tucci
eb665d66ba Deprecate webview.use_chromium and introduce webview.force_provider.
The new webview.force_provider property, when set, enforces the use
of Chromium or classic WebView, regardless the value of the
persist.sys.webview.exp (accessible through the settings UI).
This will help telemetry tests to run correctly regardless of UI
settings.

Change-Id: Ica5a0faa7f7539c22332cac5a8946f11fb7df6b2
2013-06-17 16:03:55 +01:00
Craig Mautner
636f119e2f Merge "Complete doDie() before executing addView()." 2013-06-17 13:59:50 +00:00
Craig Mautner
8f303ad970 Complete doDie() before executing addView().
If WindowManager.addView() is called soon after
WindowManager.removeView() then the MSG_DIE in the ViewRootImpl
mHandler queue may not have had time to execute. This will cause
WindowManagerGlobal to throw an exception since the DecorView
is being added before it has been removed.

This fix detects that situation by saving all Views that are queued
up for ViewRootImpl.doDie(). If addView() is called for one of these
Views then doDie() is called immediately and not called when MSG_DIE
eventually makes its way through the queue.

This change also makes doDie() non-reentrant by only allowing it to
carry out its functions the first time it is called. This keeps
dispatchDetachedWindows() from causing destruction by recursively
calling back into doDie(). This is usually caused by calling
dismissDialog() from within dispatchDetachedWindow().

Fixes bug 9404689.
Fixes bug 9406261.

Change-Id: Id4fc8054e273215d82366428fef51b9ba98385fe
2013-06-15 10:52:45 -07:00
Dianne Hackborn
fbf7a9aea2 Merge "More work on process tracking." 2013-06-15 00:39:31 +00:00
Chong Zhang
e0dae4b493 Merge "MediaRouter: grey out wifi displays that's in use" 2013-06-15 00:36:15 +00:00
Dianne Hackborn
91268cf21e More work on process tracking.
Re-arranged code to be more flexible, now track
state of services, dump ordered list of running
processes while memory was critical and low.

Also rename battery stats service from "batteryinfo" to "batterystats".

Change-Id: I0f4f0c8d443c49d255cb84d0fc917e8ec18b152e
2013-06-14 17:30:17 -07:00
Jeff Sharkey
214816da8e Merge "Cache AndroidBlockGuardPolicy to avoid allocation." 2013-06-14 23:26:59 +00:00
Jeff Sharkey
a2934d5ff0 Cache AndroidBlockGuardPolicy to avoid allocation.
Every incoming Binder call ends up triggering a BlockGuardPolicy
update, which would thrash between new AndroidBlockGuardPolicy
instances and BlockGuard.LAX_POLICY, causing GC churn.

This change avoids the extra allocations by recycling a single
AndroidBlockGuardPolicy in a ThreadLocal.  Worst-case thrashing case
is now 10% faster; from 7.46us to 6.65us.

Bug: 9424568
Change-Id: I9c3b1c097a2aecc9b1f109a824cf3ea319fb3393
2013-06-14 16:15:31 -07:00
John Spurlock
b2b433689a Merge "Remove concept of system bar from window manager." 2013-06-14 17:50:51 +00:00
John Spurlock
80f00c1f23 Remove concept of system bar from window manager.
It was already hardcoded to false, this change removes the dead code.

Change-Id: I5e543344e60f69cb9882a70ba29f7c09404ad9fc
2013-06-14 13:20:17 -04:00
Scott Main
d2e2cc99d0 am 695be87d: am 92053f8b: revise docs for new sensor types. fix markup error causing tons of code font
* commit '695be87d6e87fada03b548d05f82e004d0cdb240':
  revise docs for new sensor types. fix markup error causing tons of code font
2013-06-14 09:11:41 -07:00
Scott Main
695be87d6e am 92053f8b: revise docs for new sensor types. fix markup error causing tons of code font
* commit '92053f8b28ce0d035d292fa73622200990682511':
  revise docs for new sensor types. fix markup error causing tons of code font
2013-06-14 08:45:20 -07:00
Chong Zhang
ab87a63997 MediaRouter: grey out wifi displays that's in use
bug 9229799

Change-Id: I9f5fd2107f60c492d42c74e575e6483838a51267
2013-06-13 20:17:39 -07:00
Adam Powell
77b7c33a7a Merge "Don't save ScrollView/HorizontalScrollView saved state for old apps" 2013-06-14 01:28:25 +00:00
Adam Powell
90f339a5a3 Don't save ScrollView/HorizontalScrollView saved state for old apps
Older apps may have given IDs to ScrollViews and views of a different
class in layouts that vary by configuration. Now that ScrollViews save
state this causes ClassCastExceptions when trying to restore instance
state.

Only save new instance state for ScrollView/HorizontalScrollView for
apps targeting post-API 18.

Change-Id: Icaa095cd20bef35dddc225a17c5a8e30b3faea02
2013-06-13 17:44:04 -07:00
Scott Main
92053f8b28 revise docs for new sensor types. fix markup error causing tons of code font
Change-Id: I7635bbc44e03b50faeddf5c5fe50f7f47e2cde35
2013-06-13 16:37:51 -07:00
Geremy Condra
e08d54b92e Merge "Add NetworkManagement methods for netd uid binds" 2013-06-13 23:30:49 +00:00
Romain Guy
4969fecf07 Merge "Fix possible NPE when a ViewRoot doesn't have a view" 2013-06-13 22:27:26 +00:00
Romain Guy
70d4c5a0fe Fix possible NPE when a ViewRoot doesn't have a view
Change-Id: I8f76a657fa44fc5c7e0bec3e609eaf49e269910f
2013-06-13 15:26:50 -07:00
Alan Viverette
7d8885df35 Merge "Ensure page up/down always moves to first/last selectable item." 2013-06-13 20:32:20 +00:00
Alan Viverette
af9c5ea240 Ensure page up/down always moves to first/last selectable item.
Bug: 5088505
Change-Id: Ie73705f46602003b1c02fa08427dc940ad9f9b8a
2013-06-13 13:27:59 -07:00
Dianne Hackborn
cc6027e4c8 Merge "Fix some things." 2013-06-13 17:41:06 +00:00
Craig Mautner
f76c17f0cb Merge "Add debug for specific bug." 2013-06-13 13:53:27 +00:00
Narayan Kamath
6db1054692 am 7d1fd557: am 372d21ad: am 6706ca96: Merge "Update HttpResponseCache to use the new cache API."
* commit '7d1fd557a3fd96365565531e5e45ac5e93dd8315':
  Update HttpResponseCache to use the new cache API.
2013-06-13 02:34:23 -07:00
Narayan Kamath
7d1fd557a3 am 372d21ad: am 6706ca96: Merge "Update HttpResponseCache to use the new cache API."
* commit '372d21ad69a43e3d0a26b23f45351511ed88e9e6':
  Update HttpResponseCache to use the new cache API.
2013-06-13 02:31:51 -07:00
Narayan Kamath
372d21ad69 am 6706ca96: Merge "Update HttpResponseCache to use the new cache API."
* commit '6706ca96b21ebbd620fb597a23e8180f76bb37cf':
  Update HttpResponseCache to use the new cache API.
2013-06-13 02:29:11 -07:00
Narayan Kamath
6706ca96b2 Merge "Update HttpResponseCache to use the new cache API." 2013-06-13 09:26:34 +00:00
Dave Burke
2ce9bae80c am bafc8dcf: am 34bc73df: Merge "Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"" into jb-mr2-dev
* commit 'bafc8dcf690776ec7fdcf26518f3aff47724871d':
  Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"
2013-06-12 21:13:51 -07:00
Dave Burke
bafc8dcf69 am 34bc73df: Merge "Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"" into jb-mr2-dev
* commit '34bc73dff1f0c8402da3fc9bd1f0175bddcaa842':
  Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"
2013-06-12 21:11:12 -07:00
Craig Mautner
9e105e0a9a Add debug for specific bug.
To be removed once the bug is fixed.

Change-Id: I83bd5b9fd722826c59b1178303fc4e7feb8eefd2
2013-06-12 20:19:00 -07:00
Dianne Hackborn
439e9bc85d Fix some things.
Change-Id: I7dacf11cdb356cad5f9bc013b19f2e14f31cb75f
2013-06-12 19:13:49 -07:00
Dianne Hackborn
2d96d67ca2 Merge "Add scheme specific part to IntentFilter." 2013-06-13 02:10:20 +00:00
Fabrice Di Meglio
f649a06e6b Merge "Fix bug #9302365 HorizontalScrollView is not RTL aware" 2013-06-13 01:32:45 +00:00
Kristian Monsen
a5512f2e0e Merge "Add javadoc to Handler.Callback.handleMessage" 2013-06-13 01:24:50 +00:00
Romain Guy
7112fddbe2 Merge "Restore buildLayer()'s old behavior; it's synchronous again Bug #9193833" 2013-06-13 01:19:46 +00:00
Fabrice Di Meglio
fafe88c3d9 Fix bug #9302365 HorizontalScrollView is not RTL aware
- follow up for cleaning the state

Change-Id: I850d0da5ff8813d1c7a6f2277bddba1b8ccc07ec
2013-06-12 18:18:08 -07:00
Dianne Hackborn
df1c0bf774 Add scheme specific part to IntentFilter.
Change-Id: I063d086cdc742800b8e31ddf2942f2e9230e2785
2013-06-12 18:08:17 -07:00
Fabrice Di Meglio
b57e2e3872 Merge "Save Scroller position" 2013-06-13 00:54:37 +00:00
Fabrice Di Meglio
d6befbdd17 Save Scroller position
- add SaveState with scroll position and use it during the first layout

Change-Id: I0806ddb9c52d70d32055f4b474d21f6e2e5a4ea8
2013-06-12 17:42:14 -07:00
Adam Powell
fc93d0c108 Revert "Make implementation of isEmpty consistent with implementation of getCount in HeaderListViewAdapter"
This reverts commit ef2277ec58.

This caused a regression for some apps relying on the old behavior.

Bug 9372495
2013-06-12 17:38:25 -07:00
Fabrice Di Meglio
4d5c4e21d3 Merge "Fix bug #9302365 HorizontalScrollView is not RTL aware" 2013-06-13 00:27:13 +00:00
Fabrice Di Meglio
c4d712237c Fix bug #9302365 HorizontalScrollView is not RTL aware
- make FrameLayout capable of forcing a Gravity.LEFT (when there will be
only one child with Gravity.RIGHT and wider than its parent like for
HorizontalScrollView)
- fix onLayout() so that it is forcing Gravity.LEFT if needed and
setting correctly the initial mScrollX
- also add restore/save from an instance state (by saving if the layout
is RTL and the scroll position)

Change-Id: Ida7ff4654c6a54a1696c2575af46f044dd1aabc8
2013-06-12 16:54:31 -07:00
Craig Mautner
ac5396a3a8 Merge "Centralize all system InputEventReceiver monitors." 2013-06-12 23:07:39 +00:00
Svetoslav Ganov
7a56be0915 Revert "Generate PDF from Canvas."
This reverts commit 923c633ccf

Change-Id: Ie49f593ec702c1ecf96a5cc1fafa680c1db08747
2013-06-12 23:06:46 +00:00
Romain Guy
405436021d Restore buildLayer()'s old behavior; it's synchronous again
Bug #9193833

Change-Id: I4ee07e65c0a8967f0b55da030ecaad6dfc46136f
2013-06-12 15:31:28 -07:00
Chad Brubaker
3277620a69 Add NetworkManagement methods for netd uid binds
Add methods to NetworkManagementService for per uid routing and DNS and
for setting up fwmark tables for interfaces.

Change-Id: Icf2c4a46f7f422660031ef73b537745922286246
2013-06-12 15:14:23 -07:00
Svetoslav Ganov
923c633ccf Generate PDF from Canvas.
This change adds simple APIs that enable an Android application
to generate a PDF document by drawing content on a canvas.

Change-Id: Iddcd126b3af37c73d99262f6b276caa07b998c1d
2013-06-12 14:20:26 -07:00