85613 Commits

Author SHA1 Message Date
Jim Miller
5d2da713ed Update keyguard to send userActivity events
Since the new PowerManager changes are in, keyguard needs to handle
keeping the screen awake.  This change does this in a few places in
addition to the existing security screens:

- when the widget page changes
- when the user interacts with any widget other than the status widget
- when the user taps on the target in the selector screen

Fixes bug 7273646

Change-Id: If4c76a38e9b886dd359ba96cd2aae03652007b66
2012-10-03 00:41:54 -07:00
Jeff Brown
3f0a57dcd9 Merge changes Iccea764b,I624b559e into jb-mr1-dev
* changes:
  Improve the screen dim duration calculation.
  Implement screen on hack for wireless chargers.
2012-10-02 23:29:47 -07:00
Jeff Brown
5558b79e7a Merge "Fix some synchronization issues in BatteryService." into jb-mr1-dev 2012-10-02 23:28:02 -07:00
Jim Miller
6bcd73203a Switch back to user switcher in keyguard
Change-Id: I9acfb61fd34ad24a299e1f11f792e9e240f2b065
2012-10-02 22:53:26 -07:00
Adam Cohen
61cd69c378 Keyguard polish
-> Updated user switcher to be closer to spec (issue 7047393)
-> Drawing keyguard overscroll gradient manually in KeyguardWidgetFrame
   (eliminates need for assets, eliminates banding)
-> Fixed clipping of overscroll on sw600dp using negative margin

Change-Id: I90ec7f820ca7dccebf7e05628a3185e95d41af08
2012-10-02 21:55:08 -07:00
Jeff Brown
ff532540f1 Improve the screen dim duration calculation.
Take into account whether the screen off timeout is very short.
If so, we use a shorter dim timeout.  Don't allow the dim
time to be more than 20% of the total screen on time so that
the screen remains bright at least 80% of the time even when
the timeout is short.

Bug: 7273646
Change-Id: Iccea764b90f0d8b1df7009d26160c6bcf6eabe5b
2012-10-02 21:18:04 -07:00
Jeff Brown
f3fb895269 Implement screen on hack for wireless chargers.
We can't accurately detect whether the device is resting
on a wireless charger unless it is actually charging.
So we need to tweak the screen on when plugged / unplugged
policy accordingly to avoid spurious wakeups.

Bug: 7234284
Change-Id: I624b559e2e92b8813b12090bc20eca5f5158997e
2012-10-02 20:57:05 -07:00
Scott Main
891a216102 am 39c78f0a: am b2e7d79f: am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit '39c78f0a1fad81800e692ae117084c52a7e1fcbe':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:34:42 -07:00
Scott Main
39c78f0a1f am b2e7d79f: am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit 'b2e7d79f12efca50032512b70ddd79aa74dbbc4f':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:33:19 -07:00
Scott Main
b2e7d79f12 am ddab47b7: update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
* commit 'ddab47b78ca5dff3b9ca8f79c2af8de0292a8fa4':
  update sidenav structure for localized strings dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73
2012-10-02 20:31:09 -07:00
Adam Powell
d27f1cd30b Merge "Further refine touchMajor processing in ScaleGestureDetector" into jb-mr1-dev 2012-10-02 19:33:00 -07:00
Dianne Hackborn
75b694f1d6 Merge "Fix issue #7274813: A few sticky broadcasts aren't being sent to all users" into jb-mr1-dev 2012-10-02 19:19:41 -07:00
Craig Mautner
3e2358a0e6 Merge "Delay setting hidden until after isVisibleNow test." into jb-mr1-dev 2012-10-02 19:14:00 -07:00
Jeff Brown
a4d8204e30 Fix some synchronization issues in BatteryService.
Some of the BatteryService state was being locked
sometimes and it wasn't at all consistent.

Bug: 7158734
Change-Id: I46e75f66fde92c5a577a80a6bd99c9573066f3c1
2012-10-02 19:11:19 -07:00
Adam Powell
5b5c414e31 Further refine touchMajor processing in ScaleGestureDetector
On some devices the information coming from the touchscreen is very
noisy or otherwise unreliable. Perform some processing on the data
we have to try to provide a smoother experience.

Bug 7267507

Change-Id: I863125f58577f522de05a1361b81c2e42975fd89
2012-10-02 19:07:16 -07:00
Dianne Hackborn
720d14db87 Merge "Fix issue #7273573: Need API to find out if activity is destroyed" into jb-mr1-dev 2012-10-02 18:58:31 -07:00
Eric Laurent
06fcebc62c Merge "audio service: fix system volume settings" into jb-mr1-dev 2012-10-02 18:18:48 -07:00
Jeff Sharkey
1ed299f822 Merge "Make USB services multi-user aware." into jb-mr1-dev 2012-10-02 18:11:48 -07:00
Craig Mautner
4b5aa78c89 Delay setting hidden until after isVisibleNow test.
Setting hidden prior to test guarantees the test will fail. This
then causes the exit animation to not be loaded and consequently
the window is immediately hidden. Then, when the window is removed
later it reappears in order to animate away. The consequent flash
is undesirable.

Bug: 7242373 fixed.
Change-Id: I56966bd9060124be372702090f86b29b4deea8c0
2012-10-02 18:11:25 -07:00
Jeff Sharkey
fc3f24b4b6 Make USB services multi-user aware.
USB settings are now isolated per-user, since they revolve around
installed packages.  User-specific settings are returned based on
calling user, or referenced by UserHandle passed to SystemUI.  Each
settings Context is wrapped as a specific user, so all broadcasts are
sent correctly.  Upgrades any existing USB settings to OWNER.

Physical events, like new devices, are routed to the currently active
user.  Switch to using AtomicFile when persisting settings.

Bug: 7244888
Change-Id: I8a723ad3d55ac1bff99276c5f3a3f5e8f013432f
2012-10-02 18:09:10 -07:00
Dianne Hackborn
6d9dcbccec Fix issue #7273573: Need API to find out if activity is destroyed
Also update 17.txt with all of the recent API additions.

Change-Id: I21fc669267935261a741c19e22b0bf35c3a76b81
2012-10-02 17:51:13 -07:00
Scott Main
ddab47b78c update sidenav structure for localized strings
dependent on change Ifcae4fcf716c8bb48f3ff18f17313b3f131c3f73

Change-Id: I8eaf83c454bb3e4eae4aac11473f371987c29ab1
2012-10-02 17:48:11 -07:00
Jeff Brown
031e9d2e21 Merge changes I0ed9ba00,Ia8c6d7fe into jb-mr1-dev
* changes:
  Fix bug removing all windows that belong to a display.
  Add some missing debug output.
2012-10-02 17:08:07 -07:00
Svetoslav Ganov
5cf72e11b6 Merge "Accessibility support for the widgets switcher of the lock screen." into jb-mr1-dev 2012-10-02 17:00:21 -07:00
Irfan Sheriff
75c4800915 Merge "Add icon for mobile notification" into jb-mr1-dev 2012-10-02 16:58:15 -07:00
Svetoslav Ganov
6526fdd749 Accessibility support for the widgets switcher of the lock screen.
bug:7232727
bug:7229598

Change-Id: Ib76b81b170bed0c4ef10f5141bf70f779ffa1ac4
2012-10-02 16:58:04 -07:00
Irfan Sheriff
ebb8f413e6 Add icon for mobile notification
Bug: 7087564
Change-Id: If856bdfa28c024fb775fd3f8231bd5a16fef59e6
2012-10-02 16:50:29 -07:00
Jeff Brown
bcbe9cf475 Merge "Add new Display API for secure video capabilities." into jb-mr1-dev 2012-10-02 16:39:08 -07:00
Craig Mautner
9c614bfe17 Merge "Send masked soft input mode into method." into jb-mr1-dev 2012-10-02 16:36:29 -07:00
Svetoslav Ganov
9bfb8bcfeb Merge "Up motion event not injected by the touch explorer at the end of a drag." into jb-mr1-dev 2012-10-02 16:36:29 -07:00
Fabrice Di Meglio
046184f97a Merge "Fix bug #7266459 android.widget.cts.TableLayoutTest#testColumnStretchableEffect failures on JO" into jb-mr1-dev 2012-10-02 16:36:29 -07:00
Jeff Brown
cb882f90e4 Fix bug removing all windows that belong to a display.
Removing one window causes its subwindows to also be removed.
We have to be careful when traversing the window list
because multiple windows may be removed at a time so we
don't get IndexOutOfBoundsException due to the window
list changing in unexpected ways.

Bug: 7273702
Change-Id: I0ed9ba00c325ad178ab28919ce2e763cb6fd38ba
2012-10-02 16:35:35 -07:00
Dianne Hackborn
5bc54bf354 Merge "Fix issue #7272775: Auto Start Apps Not Starting" into jb-mr1-dev 2012-10-02 16:25:15 -07:00
rich cannings
3ed62adad1 Merge "Fix package verification with multi-user" into jb-mr1-dev 2012-10-02 16:25:15 -07:00
Jim Miller
970a494ce1 Merge "Attempt to fix missing transport control in keyguard" into jb-mr1-dev 2012-10-02 16:25:15 -07:00
Jeff Brown
77aebfdbae Add new Display API for secure video capabilities.
Added a new API to determine whether the display supports
protected buffers so that an application can choose a different
content stream or change how it decodes the content so
that it will be viewable on the display.

At present, wifi display does not fully support protected
buffers although this may be enhanced in the future.

Bug: 6986623
Change-Id: If53a53d72b0ec92753cc4b29f99fcb131e00449b
2012-10-02 16:25:10 -07:00
Jeff Brown
c2726643e7 Add some missing debug output.
Bug: 7257579
Change-Id: Ia8c6d7fefe6d4c4e6c37f20722c7ffce4bcfcbae
2012-10-02 16:25:10 -07:00
Scott Main
659d2602b0 am a142be8e: (-s ours) am 33b8f417: am 11f03b4b: (-s ours) DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
* commit 'a142be8ea9003442b486e0a0f8558361b1525c93':
  DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
2012-10-02 16:23:59 -07:00
Dianne Hackborn
aa4b3c79f2 Fix issue #7274813: A few sticky broadcasts aren't being sent to all users
Change-Id: I2fc89de36be0709946f562f64002d0f6d223401f
2012-10-02 16:23:39 -07:00
Scott Main
a142be8ea9 am 33b8f417: am 11f03b4b: (-s ours) DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
* commit '33b8f4175719b746ee290fd95478fae4643fad42':
  DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
2012-10-02 16:20:50 -07:00
Craig Mautner
60ce6d4518 Merge "Call Surface.destroy when Display is removed." into jb-mr1-dev 2012-10-02 16:20:34 -07:00
Romain Guy
0e3984b787 Merge "Bring back Netflix progress bar Bug #7274157" into jb-mr1-dev 2012-10-02 16:20:34 -07:00
Scott Main
33b8f41757 am 11f03b4b: (-s ours) DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
* commit '11f03b4b694f506ed5dcb7c12a9984b653f93b42':
  DO NOT MERGE cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429 docs: android training - Data Storage
2012-10-02 16:18:19 -07:00
Fabrice Di Meglio
4253abbcfa Merge "Fix bug #7274075 Non-functional CheckedTextView on Nexus 7 Jelly Bean 4.1.1" into jb-mr1-dev 2012-10-02 16:16:39 -07:00
Scott Main
11f03b4b69 DO NOT MERGE
cherrypick from jb-dev Change-Id: I9579a7eb04cb39d3b457dde390b6b2a7b240a429
docs: android training - Data Storage

Change-Id: I62b6d5385355555aa3e184bfd4418a0d2e0c1719
2012-10-02 16:14:36 -07:00
Romain Guy
41c769d9a8 Bring back Netflix progress bar
Bug #7274157

Gradients and color filters are multiplied by the paint's color so it
needs to be set to opaque black to have an effect.

Change-Id: Ib5dd1e6185f758f55b57a0f4496dfae98f1a096b
2012-10-02 16:04:05 -07:00
Fabrice Di Meglio
5bb4e29aba Fix bug #7274075 Non-functional CheckedTextView on Nexus 7 Jelly Bean 4.1.1
This regression has been introduced by this Change: Ia846de16bbc54f0729608259aa4b530da9404245

- in CHOICE_MODE_SINGLE you need to clear the checked states before doing anything
- rename variables for better readability too

Change-Id: I89b4390e5ebb192ca280fea2c06f991b537a2870
2012-10-02 15:53:00 -07:00
Robert Greenwalt
98ec56604d Merge "Re-add default sms_short_codes." into jb-mr1-dev 2012-10-02 15:49:58 -07:00
Scott Main
a22f081ab4 am b847f0b5: am 04c63a40: docs: android training - Data Storage
* commit 'b847f0b578d861647be4908fc3a8d575ba4d726b':
  docs: android training - Data Storage
2012-10-02 15:34:12 -07:00
Irfan Sheriff
de9627f965 Merge "Add operator name to network notification" into jb-mr1-dev 2012-10-02 15:31:21 -07:00