Commit Graph

8870 Commits

Author SHA1 Message Date
Mike Cleron
0295233ec7 am 0fd713ca: Merge "Exception in the touch explorer when dragging." into jb-mr1-dev
* commit '0fd713ca12da9a1ecaaca3a117057b8d94704a99':
  Exception in the touch explorer when dragging.
2012-10-03 17:09:11 -07:00
Mike Cleron
0fd713ca12 Merge "Exception in the touch explorer when dragging." into jb-mr1-dev 2012-10-03 17:07:05 -07:00
Svetoslav Ganov
ec33d56300 Exception in the touch explorer when dragging.
1. During a drag in touch exploration we have two pointers moving in the same
   direction but inject only one of them. If the dragging pointer goes up we
   send an up to the view system and wait for all pointers to go up to transition
   to touch exploring state. At this point the dragging pointer id is cleared
   and if a new pointer goes down we are trying to send up (rather do nothing)
   for the dragging pointer which we already did and due to the invalid pointer
   id we get an exception when splitting the motion event.

bug:7282053

Change-Id: I690bf8bdf6e2e5851ee46a322c4a1bb7d484b53a
2012-10-03 17:05:57 -07:00
Jeff Brown
6ae69899be am 8abd7021: Merge "Ensure dreams can be started when not powered." into jb-mr1-dev
* commit '8abd7021a681dd9db355ad7b17e0249200d6cc17':
  Ensure dreams can be started when not powered.
2012-10-03 15:27:55 -07:00
Jeff Brown
8abd7021a6 Merge "Ensure dreams can be started when not powered." into jb-mr1-dev 2012-10-03 15:24:45 -07:00
rich cannings
723c5b8587 am 70bf7d2f: Merge "Fix PackageInstaller displays with multi-user" into jb-mr1-dev
* commit '70bf7d2f641401abb745bcc0aee242ff6030d72b':
  Fix PackageInstaller displays with multi-user
2012-10-03 15:19:09 -07:00
Jeff Brown
645832dd2b Ensure dreams can be started when not powered.
Previously dreams could not be started unless plugged in.
Now we allow them to start but they will eventually stop
if a user activity timeout occurs and no screen wakelocks
are held.

Bug: 7253639
Change-Id: I84703e144ca6d4aba1ef9437f04a201c3dde8a49
2012-10-03 14:57:03 -07:00
rich cannings
cdf932e050 Fix PackageInstaller displays with multi-user
With this fix, when all users cancel installing an app they were warned about,
then the "Installing..." screen disappears, as desired.

Bug: 7255231
Change-Id: I2475fa790a5d09abbf94411c696682502fb1e8df
2012-10-03 14:32:38 -07:00
Victoria Lease
cfebfb6802 am fc6770e7: Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev
* commit 'fc6770e748bb69f80b7b68942a273335b165000a':
  Remove checkPermission() call in getAllProviders().
2012-10-03 08:46:15 -07:00
Victoria Lease
fc6770e748 Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev 2012-10-03 08:43:43 -07:00
Jeff Brown
47029c2ddb am 3f0a57dc: Merge changes Iccea764b,I624b559e into jb-mr1-dev
* commit '3f0a57dcd9a060bb3b2b35da4d2ac6cb42733fef':
  Improve the screen dim duration calculation.
  Implement screen on hack for wireless chargers.
2012-10-02 23:31:41 -07:00
Jeff Brown
f1d95f59d5 am 5558b79e: Merge "Fix some synchronization issues in BatteryService." into jb-mr1-dev
* commit '5558b79e7a40adb3ad550e8bdf37996ddbeb714f':
  Fix some synchronization issues in BatteryService.
2012-10-02 23:29:52 -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
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
Dianne Hackborn
99e3c4887e am 75b694f1: Merge "Fix issue #7274813: A few sticky broadcasts aren\'t being sent to all users" into jb-mr1-dev
* commit '75b694f1d6038edee8b071df1e339b81d7960e97':
  Fix issue #7274813: A few sticky broadcasts aren't being sent to all users
2012-10-02 19:22:21 -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
e60f8ce1c9 am 3e2358a0: Merge "Delay setting hidden until after isVisibleNow test." into jb-mr1-dev
* commit '3e2358a0e677ad1c88d677919aa9b8d7b2fb4eb2':
  Delay setting hidden until after isVisibleNow test.
2012-10-02 19:16:56 -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
Jeff Sharkey
fbbcffebc0 am 1ed299f8: Merge "Make USB services multi-user aware." into jb-mr1-dev
* commit '1ed299f822b22998b7236e3147d8cf4707bced08':
  Make USB services multi-user aware.
2012-10-02 18:15:51 -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
Jeff Brown
18be68f707 am 031e9d2e: Merge changes I0ed9ba00,Ia8c6d7fe into jb-mr1-dev
* commit '031e9d2e21797fd668404be407dcc625f3b149c1':
  Fix bug removing all windows that belong to a display.
  Add some missing debug output.
2012-10-02 17:12:09 -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
Jeff Brown
709b943475 am bcbe9cf4: Merge "Add new Display API for secure video capabilities." into jb-mr1-dev
* commit 'bcbe9cf475835102ae2490dc9f067a3ac78a9551':
  Add new Display API for secure video capabilities.
2012-10-02 16:41:30 -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
Svetoslav Ganov
c458f3235c am 9bfb8bcf: Merge "Up motion event not injected by the touch explorer at the end of a drag." into jb-mr1-dev
* commit '9bfb8bcfeb585c1692830ff91a36afa852455cf7':
  Up motion event not injected by the touch explorer at the end of a drag.
2012-10-02 16:39:06 -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
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
de19ad9df4 am 5bc54bf3: Merge "Fix issue #7272775: Auto Start Apps Not Starting" into jb-mr1-dev
* commit '5bc54bf354f6e674a129b2e286b4bd3eefe91c2b':
  Fix issue #7272775: Auto Start Apps Not Starting
2012-10-02 16:28:35 -07:00
rich cannings
5692524bf5 am 3ed62ada: Merge "Fix package verification with multi-user" into jb-mr1-dev
* commit '3ed62adad14c213117c2b869e71abc2474102ad4':
  Fix package verification with multi-user
2012-10-02 16:28:30 -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
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
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
Craig Mautner
dde0123e6f am 60ce6d45: Merge "Call Surface.destroy when Display is removed." into jb-mr1-dev
* commit '60ce6d4518b2443ff810b335dc686cda18921872':
  Call Surface.destroy when Display is removed.
2012-10-02 16:22:35 -07:00
Laurent Tu
0d21e2161f Remove checkPermission() call in getAllProviders().
getAllProviders() should return all locators, including those not
allowed or not enabled (according to the existing javadoc, at least).
The checkPermission() call prevented this behavior by throwing a
security exception. We restore the previous behavior by removing the
call.

Bug: 6950369

Change-Id: I0c6bc676d4c4db482bb68f1ab7fa5c93675118b4
2012-10-02 16:02:23 -07:00
Dianne Hackborn
4a9f071f3d Fix issue #7272775: Auto Start Apps Not Starting
Bad defaults were causing stopped state to be set at each
boot.

Change-Id: I49b04e9c62f6ac391054201b508fddb6c7985615
2012-10-02 15:29:06 -07:00
Craig Mautner
d5523dc7b7 Call Surface.destroy when Display is removed.
Prevents leaked Surfaces.

Bug: 7272421.
Change-Id: I6c87eb11bb0bedcf8de451b04477c70c248f905d
2012-10-02 15:28:09 -07:00
rich cannings
d55deb0a71 Fix package verification with multi-user
Fixes the porblem of PackageManagerService always sending Intents to user 0.

Bug: 7272549
Change-Id: I25995d8b2b9a24346f4813e6d8d9a84e5d5d2b6b
2012-10-02 14:53:08 -07:00
Svetoslav Ganov
aeb8d0ed0d Up motion event not injected by the touch explorer at the end of a drag.
1. The up event was not injected when the last pointer went up, i.e.
   at the end of the drag. This patch sends an up event if the dragging
   pointer goes up for both cases, when the dragging pointer goes up
   first and when it goes up second.

bug:7272830

Change-Id: I708a2b93ee2d0a4c46dbeea002841666e919602d
2012-10-02 14:33:27 -07:00
Jeff Sharkey
f63ca02f9f am c12dd973: Merge "Migrate more System and Secure settings to Global." into jb-mr1-dev
* commit 'c12dd973724f5aab44814b31650b4b47314e952b':
  Migrate more System and Secure settings to Global.
2012-10-02 14:00:24 -07:00
Jeff Sharkey
6e2bee75ce Migrate more System and Secure settings to Global.
Includes telephony, WindowManager, PackageManager, and debugging
settings.  Update API to point towards moved values.

Bug: 7231764, 7231252, 7231156
Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79
2012-10-02 13:55:15 -07:00
Svetoslav Ganov
cc72317334 am 0944d625: Merge "Touch explorer and magnifier do not work well together." into jb-mr1-dev
* commit '0944d625448209185452eb4e800daec49de51986':
  Touch explorer and magnifier do not work well together.
2012-10-02 13:17:09 -07:00
Svetoslav Ganov
0944d62544 Merge "Touch explorer and magnifier do not work well together." into jb-mr1-dev 2012-10-02 13:14:06 -07:00
Svetoslav Ganov
45af84a483 Touch explorer and magnifier do not work well together.
1. If tocuh exploration and screen magnification are enabled and the screen
   is currently magnified, gesture detection does not work well. The reason
   is because we are transforming the events if the screen is magnified before
   passing them to the touch explorer to compensate for the magnification so
   the user can poke what he thinks he pokes. However, when doing gesture
   detection/velocity computing this compensating shrinks the gestured shape/
   decreases velocity leading to poor gesture reco/incorrect velocity.

   This change adds a onRawMotionEvent method in the event transformation chain
   which will process the raw touch events. In this method of the touch explorer
   we are passing events to the gesture recognized and the velocity tracker.

2. Velocity tracker was not cleared on transitions out of touch exploring state
   which is the only one that uses velocity.

bug:7266617

Change-Id: I7887fe5f3c3bb6cfa203b7866a145c7341098a02
2012-10-02 12:02:05 -07:00