33835 Commits

Author SHA1 Message Date
Baligh Uddin
8d007aba51 Import translations. DO NOT MERGE
Change-Id: I48de2103a3da453d276248902647cb257ea9ecda
Auto-generated-cl: translation import
2012-08-15 15:19:20 -07:00
Baligh Uddin
a2ad798794 Import translations. DO NOT MERGE
Change-Id: Ia23016ed0e45aa2e904dbcb0e2cd54ae5cc92477
Auto-generated-cl: translation import
2012-08-15 15:10:39 -07:00
Dianne Hackborn
f3f8b8ef3f am 777e977c: am e9c2f18c: Merge "Add more debug info when a container view ID can\'t be found." into jb-mr1-dev
* commit '777e977c0f0980e4c954a5cae566cf1c33f2e6c9':
  Add more debug info when a container view ID can't be found.
2012-08-15 14:41:37 -07:00
Dianne Hackborn
e9c2f18c8e Merge "Add more debug info when a container view ID can't be found." into jb-mr1-dev 2012-08-15 14:36:53 -07:00
Dianne Hackborn
5bf6e1a1db Add more debug info when a container view ID can't be found.
Change-Id: Ibb2afc49747bd2d0ac24605cb3ec390334f8abf8
2012-08-15 14:33:32 -07:00
George Mount
b046e049ec am bb8bdcd9: am 21029db1: Merge "Number and telephone inputs -- use "Go" instead of "Next"" into jb-mr1-dev
* commit 'bb8bdcd9104a85f4f7e21cb882e766da7aef98d2':
  Number and telephone inputs -- use "Go" instead of "Next"
2012-08-15 10:47:29 -07:00
George Mount
21029db157 Merge "Number and telephone inputs -- use "Go" instead of "Next"" into jb-mr1-dev 2012-08-15 10:44:07 -07:00
Jeff Brown
76a2a59966 am e4e71e1d: am 194b6e97: Merge "Power manager rewrite." into jb-mr1-dev
* commit 'e4e71e1d06442726e23f8ccf66c75468634008c4':
  Power manager rewrite.
2012-08-15 10:30:52 -07:00
Jeff Brown
194b6e9716 Merge "Power manager rewrite." into jb-mr1-dev 2012-08-15 10:26:03 -07:00
George Mount
68c0c12631 Number and telephone inputs -- use "Go" instead of "Next"
Bug 6988736

Change-Id: I36e85832bdd53ea0f7eb422104966b403b8fbcdd
2012-08-15 10:15:50 -07:00
Jeff Brown
12c44d938e am c549d7fc: am 8ec8236f: Merge "Apply ValueAnimator scale factor immediately in WM." into jb-mr1-dev
* commit 'c549d7fc162285b237a824774df7826445635818':
  Apply ValueAnimator scale factor immediately in WM.
2012-08-15 10:10:17 -07:00
Jeff Brown
8ec8236f5c Merge "Apply ValueAnimator scale factor immediately in WM." into jb-mr1-dev 2012-08-15 10:04:38 -07:00
Steve Block
ae6cb93477 am 1d15cb0b: am 65dfac3b: Merge "Clean up JavaDoc for CookieManager" into jb-mr1-dev
* commit '1d15cb0b37e4a5d0a7674da3fd321148d2cc1cd1':
  Clean up JavaDoc for CookieManager
2012-08-15 05:06:29 -07:00
Steve Block
65dfac3bb5 Merge "Clean up JavaDoc for CookieManager" into jb-mr1-dev 2012-08-15 04:15:08 -07:00
Jeff Brown
9630704ed3 Power manager rewrite.
The major goal of this rewrite is to make it easier to implement
power management policies correctly.  According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed.  Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off.  At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state.  Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once.  Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components.  For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed.  For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready.  An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants.  Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger).  This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep.  This change
removes ambiguity around forcing or disabling user activity
for various purposes.  To wake the device, use wakeUp().
To put it to sleep, use goToSleep().  Simple.

The power manager service interface and API has been significantly
simplified and consolidated.  Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
  different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
  in previous version of the power manager service pending
  an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
  for more compactly specifying auto-brightness levels
  in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
  KEEP_SCREEN_ON_FLAG wake lock instead of talking
  directly to the battery stats service.
- Optionally support animating screen brightness when
  turning on/off instead of playing electron beam animation
  (config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
2012-08-15 03:06:24 -07:00
Jeff Brown
ff7e6ef4f1 Apply ValueAnimator scale factor immediately in WM.
Normally the ValueAnimator scale factor is applied the first
time a ViewRootImpl window session is created but that may
be too late for animators created by system services that
start early in the boot process.  So set the scale factor
immediately whenever the setting changes.

Also make ValueAnimator.getDurationScale() accessible (but @hide)
for custom animators that want to apply the same scale to
their animations.

Change-Id: I0f5a750ab5b014f63848445435d8dca86f2a7ada
2012-08-15 02:09:05 -07:00
Jeff Brown
e40e367ea9 am 02ccc14b: am f8d9e2fc: Merge "Make all messages in KeyguardViewMediator asynchronous." into jb-mr1-dev
* commit '02ccc14bada432a695ffb1e33857482cc439d01c':
  Make all messages in KeyguardViewMediator asynchronous.
2012-08-14 21:32:55 -07:00
Jeff Brown
f8d9e2fccd Merge "Make all messages in KeyguardViewMediator asynchronous." into jb-mr1-dev 2012-08-14 21:28:52 -07:00
Jeff Brown
109025d778 Make all messages in KeyguardViewMediator asynchronous.
We don't want these messages to get blocked by UI traversals.

Added a convenience for creating Handlers that always send
asynchronous messages.

Change-Id: Id568e87fcb8b169e8c52c5fe1dc76a4a5771570b
2012-08-14 20:44:44 -07:00
Dianne Hackborn
0edc9710b3 am 5cdb2480: am abac0cd1: Merge "Add PendingIntent and IntentSender APIs to get user handle." into jb-mr1-dev
* commit '5cdb2480cea21d3bf8862dfb82b13a9deb21813f':
  Add PendingIntent and IntentSender APIs to get user handle.
2012-08-14 18:29:42 -07:00
Dianne Hackborn
abac0cd161 Merge "Add PendingIntent and IntentSender APIs to get user handle." into jb-mr1-dev 2012-08-14 18:24:59 -07:00
Dianne Hackborn
c7501279ee Add PendingIntent and IntentSender APIs to get user handle.
Also uid.

Change-Id: I0a328d0cc2bbc17dc0a49b7b8b8d515af80f1e15
2012-08-14 18:05:05 -07:00
Dianne Hackborn
b314486cc9 am aeb35ff5: am 34743ac7: Merge "Add API to create new contexts with custom configurations." into jb-mr1-dev
* commit 'aeb35ff52d573f4ab88b097852780dc75a0d3960':
  Add API to create new contexts with custom configurations.
2012-08-14 17:37:16 -07:00
Dianne Hackborn
34743ac7d6 Merge "Add API to create new contexts with custom configurations." into jb-mr1-dev 2012-08-14 17:33:01 -07:00
Dianne Hackborn
756220bd19 Add API to create new contexts with custom configurations.
This allows you to, say, make a Context whose configuration
is set to a different density than the actual density of the device.

The main API is Context.createConfigurationContext().  There is
also a new API on ContextThemeWrapper that allows you to apply
an override context before its resources are retrieved, which
addresses some feature requests from developers to be able to
customize the context their app is running in.

Change-Id: I88364986660088521e24b567e2fda22fb7042819
2012-08-14 16:51:38 -07:00
Amith Yamasani
2aff6927ff am c144d2ad: am 07d1b289: Merge "Launch ASSIST intent on the current user" into jb-mr1-dev
* commit 'c144d2ad107a139390751f66fd9e17837a900d01':
  Launch ASSIST intent on the current user
2012-08-14 16:39:03 -07:00
Amith Yamasani
07d1b28904 Merge "Launch ASSIST intent on the current user" into jb-mr1-dev 2012-08-14 16:34:48 -07:00
Fabrice Di Meglio
a5f93f74df am e89ad6c2: am d63b9922: Merge "Fix bug #6908329 TextUtils.ellipsize does not work properly when Locale is changed" into jb-mr1-dev
* commit 'e89ad6c20fda6f2d5bf983dc32debfb7a177346e':
  Fix bug #6908329 TextUtils.ellipsize does not work properly when Locale is changed
2012-08-14 14:08:20 -07:00
Fabrice Di Meglio
d63b992210 Merge "Fix bug #6908329 TextUtils.ellipsize does not work properly when Locale is changed" into jb-mr1-dev 2012-08-14 14:03:51 -07:00
Fabrice Di Meglio
f3e64101bb Fix bug #6908329 TextUtils.ellipsize does not work properly when Locale is changed
- load the ellipis resources on the fly to get the correct ones depending on the Locale

Change-Id: I42d591e3f5ed715c983f736f94a80143a3897f47
2012-08-14 14:01:53 -07:00
Scott Main
045c6f4e64 am a640bb13: am a5d1dc9d: am bd63fb87: am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev
* commit 'a640bb13ed893afd0eaed2dbc7363118caf27209':
  docs: misc bug fixes from external issues
2012-08-14 12:47:31 -07:00
Scott Main
a5d1dc9d03 am bd63fb87: am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev
* commit 'bd63fb875c49d69d5969df35ae159bd17cadb730':
  docs: misc bug fixes from external issues
2012-08-14 12:42:12 -07:00
Scott Main
bd63fb875c am 6958c161: Merge "docs: misc bug fixes from external issues" into jb-dev
* commit '6958c161a9f12aaa1db33bdc526040c3691638dc':
  docs: misc bug fixes from external issues
2012-08-14 12:40:41 -07:00
Amith Yamasani
c1d07a4bd2 Launch ASSIST intent on the current user
Lockscreen and statusbar now launch the intent on the current user.
Make sure that the intent resolution is made to the package manager
for the specific user, as the app could have been disabled for that
user or may have an alternative app installed.

Change-Id: I93b0f972d6c7e8880b146da83dc3d08a68fe7e51
2012-08-14 12:39:29 -07:00
Baligh Uddin
568ff8ff6b Merge "Import translations. DO NOT MERGE" 2012-08-14 11:45:50 -07:00
Baligh Uddin
501d0621d4 Merge "Import translations. DO NOT MERGE" 2012-08-14 11:45:50 -07:00
Baligh Uddin
edc8e71a68 Import translations. DO NOT MERGE
Change-Id: If52f9049a740fa722e7c15527b8d08921ae935bd
Auto-generated-cl: translation import
2012-08-14 11:15:55 -07:00
Baligh Uddin
73025eda13 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-14 11:05:27 -07:00
Baligh Uddin
75900f7d89 Import translations. DO NOT MERGE
Change-Id: Ic8830e8e351d93506427aabed4f527dfe2f5888f
Auto-generated-cl: translation import
2012-08-14 11:05:04 -07:00
Chiao Cheng
38de253d19 am 667cf415: am 472f4161: Merge "Adding limit and offset query parameters to CallLog." into jb-mr1-dev
* commit '667cf4158a3bef4917fff2bc87e288e5eefec6c3':
  Adding limit and offset query parameters to CallLog.
2012-08-14 10:58:11 -07:00
Chiao Cheng
472f416140 Merge "Adding limit and offset query parameters to CallLog." into jb-mr1-dev 2012-08-14 10:53:19 -07:00
Narayan Kamath
13f8215179 am 31d68f42: am 9c3d7a88: Fixes to TextToSpeechService#synthesizeToFile
* commit '31d68f4268f190ca9c0e56cdc20e6e3800c37f35':
  Fixes to TextToSpeechService#synthesizeToFile
2012-08-14 08:43:20 -07:00
Narayan Kamath
824c393b56 am 8df5472b: am ed4e541a: Fix bug in BlockingAudioTrack.
* commit '8df5472b64f542dbf3fbf5192312f3f1f239463f':
  Fix bug in BlockingAudioTrack.
2012-08-14 08:41:38 -07:00
Narayan Kamath
9c3d7a888d Fixes to TextToSpeechService#synthesizeToFile
- Fixes a strict mode violation, defers file validity checks
  to when the engine starts synthesizing audio.
- Fixes some log spam when done() is called twice.

bug:6215680
bug:5415258
Change-Id: I4001be848b5208422d4091b7398e94ed311c649f
2012-08-14 08:38:26 -07:00
Narayan Kamath
ed4e541a20 Fix bug in BlockingAudioTrack.
Will be seen when createStreamingAudioTrack() returns null,
which will happen if the audioflinger / audiomanager are unhealthy.

Also removes some confusing synchronization from this class.

bug:6636401
Change-Id: Iaf68a305665b7bc973898145e9cd1563e2569a2b
2012-08-14 08:36:27 -07:00
Daniel Sandler
da4ab9114a am b7b6f820: am a6aef1bb: Merge "New status bar capable of multiple sliding panels." into jb-mr1-dev
* commit 'b7b6f8200dca3e65fe84cf41342197fb29acecb6':
  New status bar capable of multiple sliding panels.
2012-08-14 08:01:00 -07:00
Steve Block
9ccdb0461c am 3d935621: am 27f3e32e: Clarify JavaDoc for WebView.loadData()
* commit '3d93562115237d8a893f3e686e44116ba506d57a':
  Clarify JavaDoc for WebView.loadData()
2012-08-14 07:59:11 -07:00
Daniel Sandler
a6aef1bbb4 Merge "New status bar capable of multiple sliding panels." into jb-mr1-dev 2012-08-14 07:56:44 -07:00
Steve Block
c723e35336 Clean up JavaDoc for CookieManager
Bug: 5461416
Change-Id: I0ae09943007cf3866daad97a76f5008e61c471ed
2012-08-14 15:54:38 +01:00
Steve Block
27f3e32ee1 Clarify JavaDoc for WebView.loadData()
Bug: 5461416
Change-Id: I3f0955677ea64bb4073c97aabea34096298cd710
2012-08-14 15:54:35 +01:00