77304 Commits

Author SHA1 Message Date
Craig Mautner
291576ec6f Do not animate keyboard and button brightness.
Keyboard and button brightness are always set to assign values
immediately but were being passed through the animation process
anyways. This interfered with the state of the screen brightness
animation. Intercept keyboard and button brightness directives and
implement them immediately.

Also use actual screen brightness and value to determine when we
are dimming or brightening. Previously we were using the sensor
values to determine whether the action called for was to brighten or
dim. This looks at the actual screen brightness level to make that
determination. If the two values get out of sync it is better to rely
on the screen value than the sensor value.

Fixes bug 6626681.

Change-Id: I82158f5188ffb739e01f818ba88e79f03a405c58
2012-06-08 09:22:36 -07:00
Craig Mautner
a9144ffd64 Merge "Disable automatic screen dimming." into jb-dev 2012-06-06 15:24:36 -07:00
Dianne Hackborn
4ca17df380 Fix build.
Change-Id: I42c3f6466d926258bbd303f2082de7207734451a
2012-06-06 15:02:25 -07:00
Craig Mautner
a4e96d5a6e Disable automatic screen dimming.
Done by setting the dimming period to Integer.MAX_VALUE. While it
doesn't technically disable dimming it will take 248 days to get to
any target value.

Fixes bug 6616423.

Change-Id: I5b753286b9d93664fbff79021be38adf4d8a007d
2012-06-06 14:49:44 -07:00
Craig Mautner
8c4b40eceb Merge "Set screen brightness to match sensor at power on." into jb-dev 2012-06-06 14:39:29 -07:00
Dianne Hackborn
6cd19e0266 Merge "Fix some divide by zero errors that could crash the system." into jb-dev 2012-06-06 14:16:05 -07:00
Craig Mautner
3793368f72 Set screen brightness to match sensor at power on.
Use the first sensor value received after screen on to set the screen
brightness. Do this setting immediately rather than animate to the
target brightness.

Fixes bug 6612418.

Change-Id: I6c24c55e0bd35ef58a6494d3b5e449954241fd00
2012-06-06 14:13:39 -07:00
Jake Hamby
e60a35c156 Merge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev 2012-06-06 14:01:24 -07:00
Jake Hamby
004ff5ad2a DO NOT MERGE: Remove SMS shortcode warning feature.
Fix jb-dev build. The SMS shortcode warning feature has some usability
limitations which need to be resolved before shipping. Remove the code
for JellyBean. It will be added back to a future release when the
feature is complete.

Bug: 6605549
Change-Id: Ic8a68dc0b1ad038618962185f5ee680d5281ca21
2012-06-06 13:56:50 -07:00
Eric Fischer
5ddf003cb2 Merge "Revert "Import translations. DO NOT MERGE"" into jb-dev 2012-06-06 13:53:00 -07:00
Eric Fischer
25dcc321f7 Revert "Import translations. DO NOT MERGE"
This reverts commit 6a6f746ece453c43aa92808cd140012866c8eb5c
2012-06-06 13:51:50 -07:00
Michael Jurka
a2c628fb40 Merge "Fix bug 6499508" into jb-dev 2012-06-06 13:31:59 -07:00
Dianne Hackborn
533fce25a2 Merge "Docs (mostly): enumerate JELLY_BEAN target SDK changes." into jb-dev 2012-06-06 13:31:59 -07:00
Jean-Michel Trivi
88a89b2911 Merge "Always queue A2DP connection state message with wakelock held" into jb-dev 2012-06-06 13:31:53 -07:00
Daniel Sandler
622976ba77 Merge "New background for notification panel header." into jb-dev 2012-06-06 12:58:35 -07:00
Eric Fischer
38987073c1 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-06-06 12:37:51 -07:00
Eric Fischer
6a6f746ece Import translations. DO NOT MERGE
Change-Id: I5a8719c293a25460058ad5b62069ea80c33da110
2012-06-06 12:02:00 -07:00
Dianne Hackborn
cdadee630e Fix some divide by zero errors that could crash the system.
Change-Id: I66273df84e45de59b5b161f4d13de67a9e0f46d5
2012-06-06 11:48:46 -07:00
Dianne Hackborn
636fd528f7 Docs (mostly): enumerate JELLY_BEAN target SDK changes.
Okay this isn't entirely docs.  I have un-hidden the new permission
for binding to accessibility services; we were going to go out with
it hidden since it didn't go into factory ROM, but now that we are
doing other things we might as well expose it.

Also changed a log from E to W, since it is not an error.

Change-Id: I9226c95e3b63e12218fe41dc3f4290d9824a9e5c
2012-06-06 11:36:49 -07:00
Jean-Michel Trivi
e12c39bb9c Always queue A2DP connection state message with wakelock held
Messages for changes to A2DP connection state are intended to be
 queued in AudioService after acquiring a wake lock, which is
 released after the message has been handled.
This was correctly done for connection messages when the system
 is up and running, but wasn't when the BluetoothProfile service
 listener gets an onServiceConnected() event, which is the case
 the the device boots.
This change correctly uses the queueMsgUnderWakeLock() method
 whenever a MSG_SET_A2DP_CONNECTION_STATE is to be sent.

Bug 6616292

Change-Id: Ie337a4641a89c522e2d233bccaac4e08ce324117
2012-06-06 11:33:48 -07:00
Svetoslav Ganov
538252cd37 Merge "Removing leftover code to sync accessibility and input focus." into jb-dev 2012-06-06 10:55:12 -07:00
Michael Jurka
d1a040c3e1 Fix bug 6499508
Using a HashSet for the recycled views, instead of an ArrayList, to ensure items are not double-added
2012-06-06 10:14:34 -07:00
Mangesh Ghiware
b215726a0e Merge "Remove transient and unnecessary update density message." into jb-dev 2012-06-06 08:32:36 -07:00
Daniel Sandler
4bd3a127d2 New background for notification panel header.
Bug: 6593364
Change-Id: Ifc0a9c17cbb413316d9a06d9b29cf4ca843c2103
2012-06-06 10:47:09 -04:00
Svetoslav Ganov
462a7284b5 Removing leftover code to sync accessibility and input focus.
1. We have decided to let the accessibility services take care
   for syncing accessibility and input focus. Some apps may
   move input focus when a given view takes input focus which
   dragging accessibility focus can lead to a loop in the
   focus traversal. This change removes some leftover sync
   code.

bug:6616861

Change-Id: I57cb44e315a386d13596794d3767b559e9ee3d99
2012-06-05 21:10:04 -07:00
Adam Powell
f6452d0cac Merge "More fun with MediaRouter" into jb-dev 2012-06-05 19:27:49 -07:00
Adam Powell
690ffb4e1f More fun with MediaRouter
Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
2012-06-05 19:15:57 -07:00
Jeff Brown
615fd3dff2 Merge "Implement new rotation policy." into jb-dev 2012-06-05 19:11:13 -07:00
Mangesh Ghiware
c7ad10201b Remove transient and unnecessary update density message.
On a page load, the (viewport) metadata settings for the main frame are
reset. Reloading a page with viewport meta tag specifying target density
dpi will result in 2 back to back update zoom density messages to be
sent from WebViewCore to UI thread.

In setupViewport(), remove update density messages in flight. If the new
density is indeed different from WebView's default scale, queue another
message.

Bug: 6509512
Change-Id: I195e40277bf1bcccb0e61d84ed84db1e34556243
2012-06-05 18:46:10 -07:00
Dianne Hackborn
1e1228505d Merge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev 2012-06-05 18:01:29 -07:00
Jeff Brown
207673cdbb Implement new rotation policy.
Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
2012-06-05 17:59:46 -07:00
John Reck
804e822c56 Merge "Fix logspam" into jb-dev 2012-06-05 16:50:10 -07:00
Jake Hamby
321ec19e3e Merge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev 2012-06-05 16:34:27 -07:00
Dianne Hackborn
bd145dbfd7 Fix issue #6609383: java.lang.SecurityException: Requires...
...MANAGE_APP_TOKENS permission

Bug: 6609383
Change-Id: I5ce8ac1ec496af50477111b46e6daea81181e3ca
2012-06-05 16:20:46 -07:00
Jeff Brown
b7161f5786 Merge "Report extended error information from SQLite." into jb-dev 2012-06-05 16:04:45 -07:00
Svetoslav Ganov
cab5b8a91d Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev 2012-06-05 15:55:42 -07:00
Svetoslav Ganov
e47957a0bb Nodes with contentDescription should always be important for accessibility.
1. Now after setting the content description on a view we mark is as
   important for accessibility of the current important for accessibility
   mode of that view is auto.

2. Minor tweak to a touch explorer coefficient to make performing double
   tapping easier.

bug:6615353

Change-Id: I3b477f533a3ebde85d425caf32ace5e851240f88
2012-06-05 14:48:58 -07:00
Jeff Brown
9d25fa67a9 Report extended error information from SQLite.
The error code number is not as informative as the SQLite error
message, in particular because the error code has been stripped
of extended error information.  Make sure we ask SQLite for the
full error message whenever possible.

Bug: 6538393
Change-Id: I82457c0ff7e41659cf8195fa26e09dc2b467375e
2012-06-05 14:44:48 -07:00
Craig Mautner
35b691f056 Merge "Eliminate wallpaper exposure during transition." into jb-dev 2012-06-05 13:40:14 -07:00
John Reck
eba5e7ddfb Fix logspam
Bug: 6508832

Change-Id: I3061917ae7eba31723c006b1d30d20b7134890b8
2012-06-05 13:22:40 -07:00
Chris Craik
3676b137ec Merge "Add more temporary logging for investigating detachFunctor" into jb-dev 2012-06-05 12:28:49 -07:00
Jake Hamby
b1fc08ca08 DO NOT MERGE: Remove SMS shortcode warning feature.
The SMS shortcode warning feature has some usability limitations which need
to be resolved before shipping. Remove the code for JellyBean. It will be
added back to a future release when the feature is complete.

Bug: 6605549
Change-Id: Ifb23d20f30199f242abb8bf7db015232a085c8e3
2012-06-05 12:21:02 -07:00
Dianne Hackborn
1ad66b2f87 Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev 2012-06-05 11:45:13 -07:00
Chris Craik
8857b2f76a Add more temporary logging for investigating detachFunctor
bug:6596807
Change-Id: Ic9e34e323b12a887f2e8df0773a6155627b6a64f
2012-06-05 11:24:46 -07:00
Dianne Hackborn
ee76efb74b Fix issue #6584942 IllegalStateException: Failure saving state...
...active SuggestFragment{419494f0} has cleared index: -1

There were issues when the same fragment was removed and then
added again before completely finishing the remove (such as due
to a running animation).

Two fixes:

- Now when you call FragmentTransaction.replace() and are replacing
  a fragment with the same fragment, this becomes a no-op, to avoid
  visual artifacts in the transition and bad states.
- When we are moving the fragment state up and it is currently
  animating away to the INITIALIZED state, we could end up making
  the fragment inactive as part of the cleanup.  In this case it
  shouldn't be made inactive; we just need to initialize it but
  keep it active since we are going to continue to use it.

Bug: 6584942
Change-Id: I8bfd73f2d8ef8f67b541b3e2525dfa5db6c3bfa5
2012-06-05 10:52:38 -07:00
Eric Fischer
1c20cc5c06 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-06-05 10:51:13 -07:00
John Spurlock
fc6902b66e Merge "StatusBar: Improve framerate on reveal animation." into jb-dev 2012-06-05 10:48:57 -07:00
Eric Fischer
ea97179dec Import translations. DO NOT MERGE
Change-Id: I09dd492b37f4658eabb1d67106da7ed45c51abd6
2012-06-05 10:46:41 -07:00
Chet Haase
14f73a02a4 Merge "Restore opaque alpha value when AlphaAnimation finishes" into jb-dev 2012-06-05 10:24:06 -07:00
Craig Mautner
ad5725d798 Eliminate wallpaper exposure during transition.
Make sure that the wallpaper target exists and is visible before
exposing the wallpaper.

Fixes bug 6570335.

Change-Id: I1dddfe26683e84fd813e7bee884ba2bd4bb85272
2012-06-05 10:20:56 -07:00