9156 Commits

Author SHA1 Message Date
Jeff Sharkey
5294a2fc2f Relax global restrict for system services.
Since we control system services, we can ensure they are using little
data when data usage is globally restricted.  Continue restricting
AID_MEDIA and AID_DRM, since they respond to app requests.

Bug: 6377903, 5772564
Change-Id: I196bf334f903397ea6a67e6802240ee792e47b54
2012-04-24 17:33:32 -07:00
Adam Powell
4bde4b9274 Merge "Check for valid records associated with activity tokens in ActivityManagerService up-navigation methods." 2012-04-24 17:25:25 -07:00
Michael Jurka
61a5b0160d New API to allow third-party apps to bind widgets
Change-Id: I1a3761c1a0f557a32d4d3bdd0207567fec918ba7
2012-04-24 17:25:08 -07:00
Craig Mautner
ec046784e1 Merge "Fix dark flash when transition ends." 2012-04-24 17:03:49 -07:00
Craig Mautner
8a197a4e08 Fix dark flash when transition ends.
The DimSurface layer was momentarily being placed above the entering
app animtion. This lets the layering be set after the animations have
been evaluated.

Plus debug enhancements.

Change-Id: Icc034bc5264ae9bc6c57c593534683b56588b59a
2012-04-24 16:59:36 -07:00
Dianne Hackborn
c3742a18a6 am 7086cd5c: am 5600deb7: am d26a8b73: am cda8329e: Merge "Distance max set incorrectly"
* commit '7086cd5c75073b75cd4a7d61aaa9f0529450e4e5':
  Distance max set incorrectly
2012-04-24 16:08:22 -07:00
Svetoslav Ganov
0430ce9085 Merge "Removing hierarchical accessibility focus directions." 2012-04-24 16:08:05 -07:00
Dianne Hackborn
2ed9c20048 Merge "Add new signature-level permission to get details of tasks." 2012-04-24 15:42:26 -07:00
Dianne Hackborn
e29ccb0d67 am b3a76660: am 78e62111: am fee88fdb: Merge "Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode."
* commit 'b3a766600275a004dfa2423e87229082d7f1232b':
  Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode.
2012-04-24 14:51:21 -07:00
Dianne Hackborn
5c6d80c934 am 27e1680b: am 5a3370e5: am 50b53700: Merge "Fix for too many binder calls in packagemanager"
* commit '27e1680b5cd3694029ddac4128050b17f59f235e':
  Fix for too many binder calls in packagemanager
2012-04-24 14:51:19 -07:00
Craig Mautner
bdb1c4067c Merge "Don't start a dimming operation when hiding." 2012-04-24 14:35:10 -07:00
Craig Mautner
35af2fff43 Don't start a dimming operation when hiding.
Check to see if app token is hiding before going ahead with turning on
dimming. Before this fix went in we were turning dimming back on right
after turning it off. Then we didn't turn it off again until all
animations had completed leading to a delayed dim-off experience.

Fixes bug 6378033.

Change-Id: Ic819a0093ba95f62df369266c07525835703c5fa
2012-04-24 14:30:15 -07:00
Dianne Hackborn
8238e717df Add new signature-level permission to get details of tasks.
Third party apps now can't get access to the extras of the
intents associated with tasks, to keep private data in them
from leaking out.

Change-Id: I95af9e181ac42557bc8b981807e7ddd266a88d0e
2012-04-24 14:27:02 -07:00
Adam Powell
b71a5bc02b Check for valid records associated with activity tokens in
ActivityManagerService up-navigation methods.

Silly monkeys.

Fixes bug 6328725

Change-Id: Ifec3f162bdfc2e7e872a689210752c0f6b9b0ab7
2012-04-24 14:20:57 -07:00
Glenn Kasten
df3ab4ab3d Merge "Scheduling policy service" 2012-04-24 11:02:55 -07:00
Craig Mautner
69c1a571ac Merge "Various debugging enhancements." 2012-04-24 10:08:34 -07:00
Craig Mautner
4d9251bb3e Merge "Fix visual glitch in app transition." 2012-04-24 10:02:38 -07:00
Craig Mautner
fbf378c736 Various debugging enhancements.
Also moved DummyAnimation into AppWindowAnimator where it belongs.

Change-Id: I7da254a8b99030b898e2ff8d983500d7ce0b2b65
2012-04-24 09:56:59 -07:00
Robert Greenwalt
c217f4cfd7 Merge "Allow quoted strings from NativeDaemonConnector" 2012-04-24 09:55:02 -07:00
Glenn Kasten
07b0465095 Scheduling policy service
Change-Id: I6178b96896ffbb3323210f93784a65d724a3e694
2012-04-24 09:53:14 -07:00
Craig Mautner
9cd75d46b0 Fix visual glitch in app transition.
When dummy animation is being used, set the alpha to 0 or 1 depending
on whether the app was previously hidden or visible.

Change-Id: I1a4e3cdb4b9ca4a6aef58e47bf26e5adbef66a7f
2012-04-24 09:34:37 -07:00
Robert Greenwalt
a697f4069d Merge "Stop complaining about failure to remove routes" 2012-04-24 09:28:45 -07:00
Svetoslav Ganov
76f287e416 Removing hierarchical accessibility focus directions.
1. The accessibility focus directions are not needed since an
   accessibility service just get the root, first child, next
   sibling, previous sibling and call execute the action to
   give it accessibility focus. Now the accessibility node
   info tree is properly ordered taking into account layout
   manager directions for both layout manager that we report
   and ones that we have determined as not important for
   accessibility. Also the position of a node info are ordered
   properly based on their coordinates after all transformations
   as opposed to child index.

bug:5932640

Change-Id: I994a8297cb1e57c829ecbac73a937c2bcbe0bac7
2012-04-23 20:48:24 -07:00
Craig Mautner
b67c63b1ae Merge "Set mOrientationChangeComplete after windows drawn." 2012-04-23 18:20:28 -07:00
Craig Mautner
924c21582c Set mOrientationChangeComplete after windows drawn.
Force a pass through layout with mOrientationChangeComplete set
following all windows drawn when the application is freezing the
screen.

This fixes bug 6359311.

Change-Id: I318864fb687cf85a0c9ac4478e4f29dc20f43d9c
2012-04-23 18:14:07 -07:00
Robert Greenwalt
2473a4bae1 Stop complaining about failure to remove routes
We often get told a network has gone away after the interface is downed
and the routes are auto-removed.  Change the log to VDBUG so standard
builds don't have the noise.

bug:2856577
Change-Id: If12ec3ed3b646ff6ef89b3778d037cfc478c0d25
2012-04-23 18:00:37 -07:00
Jake Hamby
376011e895 Merge "After reboot with airplane mode and BT enabled, keep BT enabled." 2012-04-23 17:57:05 -07:00
Jake Hamby
9341f389db After reboot with airplane mode and BT enabled, keep BT enabled.
Enabling airplane mode disables Wi-Fi and Bluetooth as well as the
cell radio. Bluetooth and Wi-Fi can then be reenabled if desired.
After a reboot, Bluetooth was always disabled if airplane mode
was enabled. Changed to set Bluetooth to its previous state after
reboot, regardless of the airplane mode setting. This is already
the behavior for Wi-Fi after a reboot.

Bug: 5623624
Change-Id: I1c44500221aa0e5d1d7a5c9046d6c1380d28b5c0
2012-04-23 16:15:42 -07:00
Jeff Sharkey
49c1d1764b Clear identity when checking if bandwidth enabled.
Change-Id: I0f10f86dc14483e29609057c671454b322da4826
2012-04-23 14:39:19 -07:00
Amith Yamasani
03d2f292a6 Merge "Clipboard service keeps separate clipboards per user." 2012-04-23 09:40:28 -07:00
Andreas Sandblad
8239940d0e Distance max set incorrectly
The distance max used in the MotionRange is calculated
incorrectly.

Looks like a copy-and-paste error.

Change-Id: I2b6daab088df0fb69e05682b67ca33524ff35987
2012-04-23 09:53:30 +02:00
Jeff Sharkey
4190a047ca Better assertions when bandwidth module disabled.
Also disable some verbose logging in WifiStateTracker.

Bug: 6368329
Change-Id: I9a5219bc1b3fd870468f7de46cdf4f173a437c59
2012-04-21 15:36:48 -07:00
Jeff Brown
a2c68198b1 Merge "Get alias for Bluetooth devices." 2012-04-20 20:15:20 -07:00
Jeff Brown
5bbd4b4f5f Get alias for Bluetooth devices.
Bluetooth devices can be renamed by the user.  Make the
input system aware of the user-specified name and transparently
pass it down to applications.  This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
2012-04-20 20:11:12 -07:00
Amith Yamasani
e9e26cc727 Clipboard service keeps separate clipboards per user.
No leaking personal information via the clipboard.

Change-Id: I11125288e2e640eb0c0e4c73dae2b4d9aa7c0f3b
2012-04-20 19:01:50 -07:00
Dianne Hackborn
8ff0c9204e Merge "You can now long press on the power off menu to reboot to safe mode." 2012-04-20 18:58:53 -07:00
Dianne Hackborn
fee88fdb64 Merge "Issue: Foreground activity performs [Resume] and [Pause] when any process died in sleep mode." 2012-04-20 18:36:53 -07:00
Dianne Hackborn
19caadc08f You can now long press on the power off menu to reboot to safe mode.
Change-Id: I3aa575285058cf5a3d89486d6b944f6ea13d645c
2012-04-20 17:50:26 -07:00
Amith Yamasani
9392ad25a8 Merge "Fix dumpsys package." 2012-04-20 17:37:43 -07:00
Svetoslav Ganov
122b2c32de Fixing a couple of issues I have introduces in the last patch.
1. Fix waiting for the wrong instance.

2. Fix cloning of accessibility node info.

Change-Id: Icabf0d4bc947602a32fddc6642cc787f2bc766e4
2012-04-20 17:04:23 -07:00
Kenny Root
8b0af62799 Merge "Move forward lock utilities to PackageHelper" 2012-04-20 16:10:45 -07:00
Jeff Sharkey
8d3696eca2 Merge "Connect metered DHCP hint for Wi-Fi networks." 2012-04-20 16:03:26 -07:00
Jeff Sharkey
9f6e4ba50e Connect metered DHCP hint for Wi-Fi networks.
When DHCP lease includes vendor info indicating that remote Wi-Fi
network is metered, advise NetworkPolicy.  Users can still manually
change the metered flag in Settings.

Also remove any policies belonging to removed Wi-Fi networks, and
teach isNetworkMetered() about ethernet networks.

Bug: 6344821, 6369307, 6365872
Change-Id: I108606c6fddf2d02828fcab011f3a1501415f1bc
2012-04-20 15:57:19 -07:00
Svetoslav Ganov
72de206248 Merge "Adding support for traversing the content of a node info at granularity." 2012-04-20 15:26:24 -07:00
Amith Yamasani
7ea3e7df1f Fix dumpsys package.
Was bailing out due to insufficient permissions to query users.

Bug: 6374050
Change-Id: Ic4a4ab32e2efb4d1fc1f1607fd304f99d5382743
2012-04-20 15:19:35 -07:00
Svetoslav Ganov
aa780c1109 Adding support for traversing the content of a node info at granularity.
1. A view that creates an accessibility node info may add to the info
   a list of granularity labels. These are granularities by which the
   source view can iterate over its content. For example a text view
   may support character, word link while a web view may additionally
   support buttons, tables, etc. There are actions on accessibility
   node info to go to the next/previous at a given granularity which
   is passesed as an argument.

2. Added Bundle argument to the APIs for performing accessibility
   actions. This is generic and extensible.

bug:5932640

Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
2012-04-20 15:12:13 -07:00
Craig Mautner
4d7349bb6d Remove flicker from transitions.
Change state progressions to handle animation/layout separation.
Also added debug as needed.

Fixes bug 6360835.
Fixes bug 6206366.
Fixes bug 6286371.
Fixes bug 6240494.

Change-Id: I1079756a7e3e35ebb9f711f02d005bde9bf65ef0
2012-04-20 15:09:51 -07:00
Svetoslav Ganov
8e2f41426c Fixes in the accessibility gesture dispatching.
1. The gesture dispatcher thread was not waiting in a loop
   that check for complete initialization. Therefore is was
   susceptible to missed signals and unexpected interrupts.

2. In the gesture processing message handle the interaction id
   was reading the wrong message argument.

bug:5932640

Change-Id: Ic65ecc01a7fe7d43929c6c07d0759ae9001cf515
2012-04-20 14:57:18 -07:00
Robert Greenwalt
2d34b4a885 Allow quoted strings from NativeDaemonConnector
Previously we'd only handled quoted strings going into NDC.  This
change auto-handles quoted strings in broadcasts and allows
protocol handlers to request de-quoted elements when needed instead
of using the generic split(" ").

bug: 6353048
Change-Id: I8a07be86411063ed1b402294edc399b4cc076da5
2012-04-20 14:56:32 -07:00
Kenny Root
2782a478d0 Move forward lock utilities to PackageHelper
The forward lock utilities will need to be called from
DefaultContainerService for ASEC packages in the future. Move them to
PackageHelper to aid in the transition.

Also move the public resource copying to the FileInstallArgs step which
makes a little bit more sense.

Change-Id: I3a62ac817719db3ee1c89c106a551dcbe9c44744
2012-04-20 14:40:03 -07:00