9404 Commits

Author SHA1 Message Date
Dianne Hackborn
5fe7e2a304 Fix issue #6968859: home not exiting an ANR'd dream
Add a new call to the activity manager for the input dispatcher
to report about any pid having an ANR.  This has a new feature
where it can also tell the activity manager that it is above the
system alert layer, so the activity manager can pop its ANR dialog
on top of everything if it needs to.  (Normally we don't want
these dialogs appearing on top of the lock screen.)

Also fixed some debugging stuff here and there that was useful
as I was working on this -- windows now very clearly include
their uid, various system dialogs now have titles so you know
what they are in the window manager, etc.

Change-Id: Ib8f5d29a5572542cc506e6d338599ab64088ce4e
2012-10-04 12:04:58 -07:00
Amith Yamasani
a96ae6ebea am 58b4cc4d: am dcf5a663: Merge "Read in the disable-keyguard-features flag from the XML file" into jb-mr1-dev
* commit '58b4cc4d2206ba0df9ed0931f1acce2058c5acea':
  Read in the disable-keyguard-features flag from the XML file
2012-10-04 11:59:59 -07:00
Amith Yamasani
58b4cc4d22 am dcf5a663: Merge "Read in the disable-keyguard-features flag from the XML file" into jb-mr1-dev
* commit 'dcf5a663cdec5ed1aa6b5d583cdac177a0974fcb':
  Read in the disable-keyguard-features flag from the XML file
2012-10-04 11:58:11 -07:00
Amith Yamasani
dcf5a663cd Merge "Read in the disable-keyguard-features flag from the XML file" into jb-mr1-dev 2012-10-04 11:56:29 -07:00
John Spurlock
4e6922d89e Reset status bar in keyguard, fix MU status bar bug.
Two things going on here, status bar disabled flags need to be reset
on user switch.  Also make status bar's internal disable-record lookup
multi-user aware.

Bug:7278793
Change-Id: I1d7088d956a065330736da4c09cc1874c528c133
2012-10-04 14:51:51 -04:00
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
Amith Yamasani
7077b3c9bb Read in the disable-keyguard-features flag from the XML file
Bug: 7283501 Exchange Services crash while using Email App after upgrading
Change-Id: I40d13f5d3805ea3139dc3938077a5265ff78c426
2012-10-04 11:00:55 -07:00
Victoria Lease
83762d22c9 multiuser support for LocationBlacklist
This allows primary/secondary users to have different "Google
Location Services" preferences. It also reenables LocationBlacklist,
which is fixed elsewhere.

Bug: 7213502
Bug: 7248239
Change-Id: I94837682f95920c225c00b7da2de6dd1418a673e
2012-10-04 09:46:52 -07:00
John Spurlock
8fdce01621 am 4ab6d62c: am 220b7d0e: am 1205d16e: Merge "Clear notifications properly on ACTION_USER_STOPPED." into jb-mr1-dev
* commit '4ab6d62c350c40f25a0471928198050fdd68b62f':
  Clear notifications properly on ACTION_USER_STOPPED.
2012-10-04 09:14:53 -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
Jeff Hamilton
c19efc204a Changes to support updating location providers.
There is now only a single config value pointing
at a list of packages to get certs from. The old
system was a bit confusing.

The fused location provider also now builds
against SDK 17, and the meta data service version
tag was renamed from the overly generic "version"
to "serviceVersion".

Bug: 7242814
Change-Id: I00d27c9cbd5cc31a37bb4a98160435d15a72e19e
2012-10-04 11:00:42 -05: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
00d2d4125e Support multi-user switch in TextServicesManagerService
Bug: 7231549
Change-Id: I737590688b895ea00d397ddec7702d6d2bec9097
2012-10-04 16:23:06 +09:00
Svetoslav Ganov
f068fed6c4 Accessibility HOVER_ENTER / EXIT without enclosing EXPLORATION_GESTURE_START / END
1. The initial implementation was not sending the gesture start and end
   events until the the user has moved more than a given slop and did not
   do it faster than a given velocity. However, there is the case where
   if the user did not move or just taped on the screen an exploration
   occurs. The system was not sending the exploration start and end
   events for the latter case.

2. The delaued command for long press was not canceled when the pointer
   moves more than the slop distance.

bug:7282811

Change-Id: I7d98470cd4d9ea9b2519326e5e550ff68b040747
2012-10-03 22:48:11 -07:00
Satoshi Kataoka
feb750e729 am 580bb919: am faf45d25: am ebf7e285: Merge "Close the current input method when attached view doesn\'t have a handler" into jb-mr1-dev
* commit '580bb919ed61d22de018f5cb0df68ae566c01843':
  Close the current input method when attached view doesn't have a handler
2012-10-03 21:08:51 -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
edb3eba5c1 am 1aa3f76b: am 664af173: am a6cab32d: Merge "Events for window\'s content change should be dispatched only for the active window." into jb-mr1-dev
* commit '1aa3f76b1fc1d609cc8841d123f48aaa850efe4b':
  Events for window's content change should be dispatched  only for the active window.
2012-10-03 19:08:03 -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
618c9030db am 85486bd3: am cd09cb8f: am 6fb7fd3a: Merge "Fix issue #7267494, issue #7212347" into jb-mr1-dev
* commit '85486bd33de1f3665f158df636217166c83199f5':
  Fix issue #7267494, issue #7212347
2012-10-03 18:52:07 -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
e56f6e1e79 am 7df0b260: am 0295233e: am 0fd713ca: Merge "Exception in the touch explorer when dragging." into jb-mr1-dev
* commit '7df0b2600f79394e2a9412bb108b80bea41e2070':
  Exception in the touch explorer when dragging.
2012-10-03 17:13:38 -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
1de7438d17 am 564538c6: am 6ae69899: am 8abd7021: Merge "Ensure dreams can be started when not powered." into jb-mr1-dev
* commit '564538c6cdc77ef20081e09bd181aaf05033872e':
  Ensure dreams can be started when not powered.
2012-10-03 15:33:33 -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
e4c8452664 am 6c6b124d: am 723c5b85: am 70bf7d2f: Merge "Fix PackageInstaller displays with multi-user" into jb-mr1-dev
* commit '6c6b124d43327718040ac692cea10a18d172bfd1':
  Fix PackageInstaller displays with multi-user
2012-10-03 15:24:01 -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
f45567ba3b am 4d6c0fa0: am cfebfb68: am fc6770e7: Merge "Remove checkPermission() call in getAllProviders()." into jb-mr1-dev
* commit '4d6c0fa06af7bcf9592b3351592e9f9ac87110e6':
  Remove checkPermission() call in getAllProviders().
2012-10-03 08:52:03 -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
3ef7315c95 am d79d97ff: am 47029c2d: am 3f0a57dc: Merge changes Iccea764b,I624b559e into jb-mr1-dev
* commit 'd79d97ff1d3023ecd635c57c7a1110cee6b1951b':
  Improve the screen dim duration calculation.
  Implement screen on hack for wireless chargers.
2012-10-02 23:36:47 -07:00