10954 Commits

Author SHA1 Message Date
Victoria Lease
51a0daa522 am f9d5a079: am 18c2b6e7: Merge "throw SecurityException in isProviderEnabled()" into jb-mr1-dev
* commit 'f9d5a079c58a540c307cfe3a2dedb3e8bbd8513d':
  throw SecurityException in isProviderEnabled()
2012-10-04 11:22:44 -07:00
Victoria Lease
f9d5a079c5 am 18c2b6e7: Merge "throw SecurityException in isProviderEnabled()" into jb-mr1-dev
* commit '18c2b6e730f6d639421e45328f4fb2514683efe5':
  throw SecurityException in isProviderEnabled()
2012-10-04 11:20:55 -07:00
Victoria Lease
18c2b6e730 Merge "throw SecurityException in isProviderEnabled()" into jb-mr1-dev 2012-10-04 11:18:14 -07:00
John Spurlock
4ab6d62c35 am 220b7d0e: am 1205d16e: Merge "Clear notifications properly on ACTION_USER_STOPPED." into jb-mr1-dev
* commit '220b7d0ee221b2517189e0fc4c60c77e162b9b36':
  Clear notifications properly on ACTION_USER_STOPPED.
2012-10-04 09:12:55 -07:00
John Spurlock
220b7d0ee2 am 1205d16e: Merge "Clear notifications properly on ACTION_USER_STOPPED." into jb-mr1-dev
* commit '1205d16e020beeb16f05e0d788fdf7ed478623f6':
  Clear notifications properly on ACTION_USER_STOPPED.
2012-10-04 09:11:17 -07:00
John Spurlock
078a490c22 Clear notifications properly on ACTION_USER_STOPPED.
Which also takes care of the ACTION_USER_REMOVED case.

Bug:7277853
Change-Id: I0a6bade11bd0d420df03e16e69a386cfccfa07cc
2012-10-04 12:00:53 -04:00
Victoria Lease
f429921e3a throw SecurityException in isProviderEnabled()
In MR0, we did not allow applications to query enabled status of
location providers they did not have permission to use. Some
applications counted on this behavior, using the thrown
SecurityException to determine whether or not they have permission
to use the specified provider.

Reverting to this behavior fixes the regressions seen in those
applications.

Bug: 7251459
Change-Id: I8b0cfd5862c80f0c831a4ab544c3fa7408bc84a0
2012-10-04 08:01:19 -07:00
Satoshi Kataoka
580bb919ed am faf45d25: am ebf7e285: Merge "Close the current input method when attached view doesn\'t have a handler" into jb-mr1-dev
* commit 'faf45d2525bf64fa7f484cde9180c448fd0e0345':
  Close the current input method when attached view doesn't have a handler
2012-10-03 21:06:57 -07:00
Satoshi Kataoka
faf45d2525 am ebf7e285: Merge "Close the current input method when attached view doesn\'t have a handler" into jb-mr1-dev
* commit 'ebf7e2851cab55348153fca299c52042b125924d':
  Close the current input method when attached view doesn't have a handler
2012-10-03 21:05:12 -07:00
Satoshi Kataoka
ebf7e2851c Merge "Close the current input method when attached view doesn't have a handler" into jb-mr1-dev 2012-10-03 21:02:20 -07:00
Svetoslav Ganov
1aa3f76b1f am 664af173: am a6cab32d: Merge "Events for window\'s content change should be dispatched only for the active window." into jb-mr1-dev
* commit '664af173ef0cf199e947528d4b159e298ae06758':
  Events for window's content change should be dispatched  only for the active window.
2012-10-03 19:04:34 -07:00
Svetoslav Ganov
664af173ef am a6cab32d: Merge "Events for window\'s content change should be dispatched only for the active window." into jb-mr1-dev
* commit 'a6cab32d68692f69729195ac69b7f9e9c8d2001f':
  Events for window's content change should be dispatched  only for the active window.
2012-10-03 19:03:05 -07:00
Svetoslav Ganov
a6cab32d68 Merge "Events for window's content change should be dispatched only for the active window." into jb-mr1-dev 2012-10-03 19:00:17 -07:00
Dianne Hackborn
85486bd33d am cd09cb8f: am 6fb7fd3a: Merge "Fix issue #7267494, issue #7212347" into jb-mr1-dev
* commit 'cd09cb8fb79442aa22018db9134ef1ef22059360':
  Fix issue #7267494, issue #7212347
2012-10-03 18:50:18 -07:00
Dianne Hackborn
cd09cb8fb7 am 6fb7fd3a: Merge "Fix issue #7267494, issue #7212347" into jb-mr1-dev
* commit '6fb7fd3a0939413d8968fc0d404ed499d7f7dc52':
  Fix issue #7267494, issue #7212347
2012-10-03 18:47:51 -07:00
Svetoslav Ganov
58fd9f8d6a Events for window's content change should be dispatched only for the active window.
1. Accessibility events for changes in the content of a given window, such as
   click, focus, etc. are dispatched to clients only if they come from the
   active window.

   Events for changes in the state of a window, such as window got input focus
   or a notification appeared, are always dispatched. The notification events
   do not contain source, so a client cannot introspect the notification area
   (unless the user explicitly touches it which generates hove events). The
   events for a window getting input focus change the active window so they
   have to be dispatched.

   Events that are a result of the user touching the screen, such as hover
   enter, first tocuh, etc. should always be dispatched.

bug:7282006

Change-Id: I96b79189f8571285175d9660a22394cc84f39559
2012-10-03 18:33:30 -07:00
Dianne Hackborn
c428aae642 Fix issue #7267494, issue #7212347
7267494 Calendar is not syncing
Check for whether a content provider is dead before returning
it.  This is kind-of a band-aid, but probably the right thing
to do; I'm just not sure exactly the full details of why this
problem is happening.  Hopefully this "fixes" it, though I don't
have a way to repro to tell.

7212347 System power off dialog is only visible to user 0
Make it visible.  Also turn on some battery debugging stuff and
clean it up so we can just keep it.

Change-Id: I5add25bf2a763c8dfe1df23bc5c753a9ea5d157a
2012-10-03 18:07:23 -07:00
Mike Cleron
7df0b2600f am 0295233e: am 0fd713ca: Merge "Exception in the touch explorer when dragging." into jb-mr1-dev
* commit '0295233ec724c7d97ac25fa832e175bdbebf36f7':
  Exception in the touch explorer when dragging.
2012-10-03 17:11:14 -07:00
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
564538c6cd am 6ae69899: am 8abd7021: Merge "Ensure dreams can be started when not powered." into jb-mr1-dev
* commit '6ae69899becea7e0c21ab24e802df92de695b44e':
  Ensure dreams can be started when not powered.
2012-10-03 15:30:30 -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
6c6b124d43 am 723c5b85: am 70bf7d2f: Merge "Fix PackageInstaller displays with multi-user" into jb-mr1-dev
* commit '723c5b8587a7b9d9287b2c8a8168eaaf128b8837':
  Fix PackageInstaller displays with multi-user
2012-10-03 15:21:36 -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
4d6c0fa06a am cfebfb68: am fc6770e7: Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev
* commit 'cfebfb6802c24b4b1166b95bd07b5865f847f9f1':
  Remove checkPermission() call in getAllProviders().
2012-10-03 08:49:52 -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
d79d97ff1d am 47029c2d: am 3f0a57dc: Merge changes Iccea764b,I624b559e into jb-mr1-dev
* commit '47029c2ddbb4b075dea55c28388e6a9f41533257':
  Improve the screen dim duration calculation.
  Implement screen on hack for wireless chargers.
2012-10-02 23:33:48 -07:00
Jeff Brown
2e9b86fa73 am f1d95f59: am 5558b79e: Merge "Fix some synchronization issues in BatteryService." into jb-mr1-dev
* commit 'f1d95f59d5e97b9cefa2aacf08abae010ce5311f':
  Fix some synchronization issues in BatteryService.
2012-10-02 23:32:02 -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
Satoshi Kataoka
3573950e0b Close the current input method when attached view doesn't have a handler
Bug: 7187452
Change-Id: Iba4f7ac89f5806e871aaeb97f366935b83b95a5a
2012-10-03 12:07:23 +09:00
Dianne Hackborn
25772a57d1 am 99e3c488: am 75b694f1: Merge "Fix issue #7274813: A few sticky broadcasts aren\'t being sent to all users" into jb-mr1-dev
* commit '99e3c4887e1775fa991653dc5018f26375116cbd':
  Fix issue #7274813: A few sticky broadcasts aren't being sent to all users
2012-10-02 19:25:00 -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
d23b3e579d am e60f8ce1: am 3e2358a0: Merge "Delay setting hidden until after isVisibleNow test." into jb-mr1-dev
* commit 'e60f8ce1c9c3db51ba0997210b2cd073da68ae81':
  Delay setting hidden until after isVisibleNow test.
2012-10-02 19:18:46 -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
4bf59f7dd9 am fbbcffeb: am 1ed299f8: Merge "Make USB services multi-user aware." into jb-mr1-dev
* commit 'fbbcffebc0caf1d19c60b41e1e40708963717850':
  Make USB services multi-user aware.
2012-10-02 18:18:33 -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