9581 Commits

Author SHA1 Message Date
Craig Mautner
225fef5e3e am c3dfaf8d: am a13b4da6: Merge "Fix initial brightness state after startup." into jb-dev
* commit 'c3dfaf8d587d3ea4ffd62377ec6041ad70fc152a':
  Fix initial brightness state after startup.
2012-05-31 13:13:23 -07:00
Craig Mautner
c3dfaf8d58 am a13b4da6: Merge "Fix initial brightness state after startup." into jb-dev
* commit 'a13b4da68d8df0977c8dec5001de7c9ecea71d9e':
  Fix initial brightness state after startup.
2012-05-31 13:09:48 -07:00
Craig Mautner
a13b4da68d Merge "Fix initial brightness state after startup." into jb-dev 2012-05-31 13:07:03 -07:00
Craig Mautner
af01fe0215 Fix initial brightness state after startup.
Setting of mInitialAnimation member was assuming that currentValue
member would only be 0 at boot. It also gets set to 0 when the
sensor goes dark. This fix removes mInitialValue reliance on
currentValue.

Fixes bug 6444319.

Change-Id: I27069f1b44f1f727533d34bbecad2e5aeaa7aab8
2012-05-31 10:03:32 -07:00
John Spurlock
b84814b279 am 60dbc3c0: am e857632a: Merge "Dock: Renable desk-dock apps" into jb-dev
* commit '60dbc3c05c644ae057c4946f1229387e60be8cb3':
  Dock: Renable desk-dock apps
2012-05-31 08:53:10 -07:00
John Spurlock
60dbc3c05c am e857632a: Merge "Dock: Renable desk-dock apps" into jb-dev
* commit 'e857632abd994bd1e4a649afb4231f3a97763828':
  Dock: Renable desk-dock apps
2012-05-31 08:49:24 -07:00
John Spurlock
e857632abd Merge "Dock: Renable desk-dock apps" into jb-dev 2012-05-31 08:44:47 -07:00
Eric Laurent
846890957d am c383b407: am cee7203f: Merge "Send device connection intents from AudioService" into jb-dev
* commit 'c383b407ad24474b87de68f93ea95de495f6d2c1':
  Send device connection intents from AudioService
2012-05-31 08:29:29 -07:00
Eric Laurent
c383b407ad am cee7203f: Merge "Send device connection intents from AudioService" into jb-dev
* commit 'cee7203f9ac3e54f39b5f528e014f2d3583f60dc':
  Send device connection intents from AudioService
2012-05-31 08:25:33 -07:00
Eric Laurent
cee7203f9a Merge "Send device connection intents from AudioService" into jb-dev 2012-05-31 08:22:50 -07:00
Mathias Agopian
414a57d51e am 1a7d90c4: am 7f651969: Merge "fix a potential buffer overflow in sensorservice" into jb-dev
* commit '1a7d90c42ad682c8f5c6afc8c4975396380918d5':
  fix a potential buffer overflow in sensorservice
2012-05-30 19:21:34 -07:00
Mathias Agopian
1a7d90c42a am 7f651969: Merge "fix a potential buffer overflow in sensorservice" into jb-dev
* commit '7f6519691fdd8062a090de74cfc5d2a906f9e5f6':
  fix a potential buffer overflow in sensorservice
2012-05-30 19:16:47 -07:00
Svetoslav Ganov
2d9f96bf45 am 191e7c5a: am 758534ed: Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev
* commit '191e7c5a4959e4c16154ade5d1ceb277ef31021e':
  Ask to enable touch exploration only the first time it enables the feature.
2012-05-30 19:13:29 -07:00
Mathias Agopian
7f6519691f Merge "fix a potential buffer overflow in sensorservice" into jb-dev 2012-05-30 19:11:33 -07:00
Svetoslav Ganov
191e7c5a49 am 758534ed: Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev
* commit '758534ed50d1d2c643999bd7eb3f909b0834e393':
  Ask to enable touch exploration only the first time it enables the feature.
2012-05-30 19:08:52 -07:00
Svetoslav Ganov
758534ed50 Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev 2012-05-30 19:06:23 -07:00
Svetoslav Ganov
9a4c5cd191 Ask to enable touch exploration only the first time it enables the feature.
1. Now we are asking the user to grant permission to the service to enable
   touch exploration only the first time this service is enabled. If the
   service was uninstalled and then later installed we ask the user again.
   This avoids the scenario in which rebooting the device or upgrading an
   accessibility service leaves the device in a state in which the user
   cannot interact with.

bug:6582088

Change-Id: I51d24e4892b3b48c9fb11dfb09ec1118502ba526
2012-05-30 18:41:08 -07:00
Mathias Agopian
acd31516c6 fix a potential buffer overflow in sensorservice
Bug: 6580560
Change-Id: Icf6cafbca09174515a964a7cd69d8cc589ad52de
2012-05-30 18:08:30 -07:00
Dianne Hackborn
8b3b8fc4aa am d89e3b77: am efc620a8: Merge "Add time stamp to content provider connection." into jb-dev
* commit 'd89e3b77fe3192caae079d295e954517fe1843de':
  Add time stamp to content provider connection.
2012-05-30 17:27:11 -07:00
Dianne Hackborn
d89e3b77fe am efc620a8: Merge "Add time stamp to content provider connection." into jb-dev
* commit 'efc620a8b905fbe0903b8bac6ecfe91fda6f03be':
  Add time stamp to content provider connection.
2012-05-30 17:23:20 -07:00
Dianne Hackborn
efc620a8b9 Merge "Add time stamp to content provider connection." into jb-dev 2012-05-30 17:20:28 -07:00
Dianne Hackborn
d9137ca87e Add time stamp to content provider connection.
For help in tracking down memory use issues, seeing how long
a connection has been held that is keeping other processes around.

Let's call this for issue #6577613: Unbelievably sluggish nexus-S

Change-Id: Ia3d016c5ed9d2155eea18ec884047e1e1d8a0ad5
2012-05-30 15:29:36 -07:00
Jeff Brown
8f2a0da78f am bbffc261: am 9154b877: Merge "Fix comparison of device source bits." into jb-dev
* commit 'bbffc261cc3607d03c12227cdd3f78a4f4e28e1a':
  Fix comparison of device source bits.
2012-05-30 15:08:21 -07:00
Jeff Brown
bbffc261cc am 9154b877: Merge "Fix comparison of device source bits." into jb-dev
* commit '9154b877807a1222abf46608cdff66428e906328':
  Fix comparison of device source bits.
2012-05-30 15:02:59 -07:00
Jeff Brown
9154b87780 Merge "Fix comparison of device source bits." into jb-dev 2012-05-30 15:00:39 -07:00
Eric Laurent
b1fbaaccb6 Send device connection intents from AudioService
AudioService is currently notified of wired headset and A2DP
sink connection states via broadcast intents from WiredAccessoryObserver
and BluetoothA2dpService. This is a problem as there is no guaranty that
AudioService can take actions upon the change before other apps are notified.
For instance, the Play On feature requires the UI to be refreshed when a device
is inserted/removed and we must guaranty that the UI component can read
new A2DP enable state from AudioManager after it receives a device connection state
change intent.

- Added hidden methods to AudioManager so that WiredAccessoryObserver
and BluetoothA2dpService can notify AudioService of device connection directly.
- The wired accessories connection intents are now sent by AudioService.
- The A2DP state change intent is delayed by BluetoothA2DPService when
ACTION_AUDIO_BECOMING_NOISY is sent by AudioService
- ACTION_AUDIO_BECOMING_NOISY intent is not sent when disconnecting A2DP
while a wired headset is present and vice versa.

Bug 6485897.

Change-Id: Ie160b3ee5f451132065530772b868593c90afd94
2012-05-30 14:44:43 -07:00
Jeff Brown
7e4ff4b986 Fix comparison of device source bits.
Bug: 6576743
Change-Id: I6952b052e2ab9e62ddd46ab76f4df37ecc656757
2012-05-30 14:32:16 -07:00
Dianne Hackborn
62d7d6f9ef am defc3019: am 26627ccc: Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev
* commit 'defc301908da067fca080d298d42d045e00071cb':
  A little debug code from issue #6516197: Places app not getting removed...
2012-05-30 11:25:20 -07:00
Dianne Hackborn
defc301908 am 26627ccc: Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev
* commit '26627ccc3f20ad353cf7c48c0488699c26e69a0b':
  A little debug code from issue #6516197: Places app not getting removed...
2012-05-30 11:20:48 -07:00
Dianne Hackborn
26627ccc3f Merge "A little debug code from issue #6516197: Places app not getting removed..." into jb-dev 2012-05-30 11:18:08 -07:00
Satoshi Kataoka
028d0aacdd am 3022b6b9: am 17150cf9: Fix locale in TextServicesManagerService
* commit '3022b6b9cdc581647747cfefa2ff365af05b02e8':
  Fix locale in TextServicesManagerService
2012-05-30 04:51:30 -07:00
Satoshi Kataoka
3022b6b9cd am 17150cf9: Fix locale in TextServicesManagerService
* commit '17150cf91be1478e367c2ef5e4f5baaa66b487d0':
  Fix locale in TextServicesManagerService
2012-05-30 04:48:21 -07:00
Satoshi Kataoka
17150cf91b Fix locale in TextServicesManagerService
Bug: 6542210
Change-Id: I1670fac014beb834ec7c065ebf040d0ff3cf4161
2012-05-30 20:36:52 +09:00
Mathias Agopian
f0b2cd4a31 am 7e310414: am 38616ccc: Merge "Fix a stack corruption in sensorservice" into jb-dev
* commit '7e310414e474c47f29e78332908a542ee4ea8c22':
  Fix a stack corruption in sensorservice
2012-05-29 21:13:46 -07:00
Mathias Agopian
7e310414e4 am 38616ccc: Merge "Fix a stack corruption in sensorservice" into jb-dev
* commit '38616ccc94b1e1a605ab43cc5c230d6acc729a15':
  Fix a stack corruption in sensorservice
2012-05-29 21:09:05 -07:00
Mathias Agopian
38616ccc94 Merge "Fix a stack corruption in sensorservice" into jb-dev 2012-05-29 21:04:39 -07:00
Mathias Agopian
8fd03f4ea4 Fix a stack corruption in sensorservice
Bug: 6576732
Change-Id: If0f2fb0d0c35b932fb77cd262e676042145b28f9
2012-05-29 19:46:14 -07:00
Dianne Hackborn
7f96b7961b A little debug code from issue #6516197: Places app not getting removed...
...from recent apps drawer after launching Places app

Change-Id: Ibfa75e9cea2721a7380d7c13dc21504fbce61aee
2012-05-29 18:46:45 -07:00
Dianne Hackborn
ce783749b1 am f3b4c93e: am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev
* commit 'f3b4c93e0da9af2db9e16864faa734cf70fecfe3':
  Fix (mostly) issue #5109947: Race condition between retrieving a...
2012-05-29 15:57:52 -07:00
Dianne Hackborn
f3b4c93e0d am ae5811c7: Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev
* commit 'ae5811c71405878b09eace395ec2b28e54eeb427':
  Fix (mostly) issue #5109947: Race condition between retrieving a...
2012-05-29 15:53:38 -07:00
Dianne Hackborn
ae5811c714 Merge "Fix (mostly) issue #5109947: Race condition between retrieving a..." into jb-dev 2012-05-29 15:51:24 -07:00
Nick Pelly
42cc63d138 am 96e4ae6c: am 82b3b1bc: Merge "Make location providers upgradeable." into jb-dev
* commit '96e4ae6c9fba40f96425f0db510d80a10bed9719':
  Make location providers upgradeable.
2012-05-29 15:33:34 -07:00
Nick Pelly
96e4ae6c9f am 82b3b1bc: Merge "Make location providers upgradeable." into jb-dev
* commit '82b3b1bce9665a68b32ab0d7393ea63425677f70':
  Make location providers upgradeable.
2012-05-29 15:30:01 -07:00
Nick Pelly
82b3b1bce9 Merge "Make location providers upgradeable." into jb-dev 2012-05-29 15:28:00 -07:00
John Spurlock
960779d3bb Dock: Renable desk-dock apps
Revert to pre-dreams behavior. DeskClock once again launches the correct
activity (instead of Screensaver) when desk-dock is attached.

Bug: 6559590
Change-Id: I32a03a25469f17b5e87e16831839ec757d56c90b
2012-05-29 18:19:57 -04:00
Wink Saville
4b5d3a2639 Merge "Enhance StateMachine Quitting and logging support." 2012-05-29 14:22:50 -07:00
Craig Mautner
92f4ebe3b4 am d1b1bef4: am de1ddd0f: Merge "Better handle changing app transitions." into jb-dev
* commit 'd1b1bef46329875318fff087fefb21d7d65906b1':
  Better handle changing app transitions.
2012-05-29 13:59:04 -07:00
Craig Mautner
d1b1bef463 am de1ddd0f: Merge "Better handle changing app transitions." into jb-dev
* commit 'de1ddd0f93fae6ba517d516993e7fb495424f574':
  Better handle changing app transitions.
2012-05-29 13:55:23 -07:00
Craig Mautner
de1ddd0f93 Merge "Better handle changing app transitions." into jb-dev 2012-05-29 13:53:06 -07:00
Dianne Hackborn
6ae8d18218 Fix (mostly) issue #5109947: Race condition between retrieving a...
...content provider and updating its oom adj

This introduces the concept of an "unstable" reference on a content
provider.  When holding such a reference (and no normal stable ref),
the content provider dying will not cause the client process to be
killed.

This is used in ContentResolver.query(), .openAssetFileDescriptor(),
and .openTypedAssetFileDescriptor() to first access the provider
with an unstable reference, and if at the point of calling into the
provider we find it is dead then acquiring a new stable reference
and doing the operation again.  Thus if the provider process dies
at any point until we get the result back, our own process will not
be killed and we can safely retry the operation.

Arguably there is still the potential for a race -- if somehow the
provider is killed way late by the OOM killer after the query or
open has returned -- but this should now be *extremely* unlikely.
We also continue to have the issue with the other calls, but these
are much less critical, and the same model can't be used there (we
wouldn't want to execute two insert operations for example).

The implementation of this required some significant changes to the
underlying plumbing of content providers, now keeping track of the
two different reference counts, and managing them appropriately.  To
facilitate this, the activity manager now has a formal connection
object for a client reference on a content provider, which hands to
the application when opening the provider.

These changes have allowed a lot of the code to be cleaned up and
subtle issues closed.  For example, when a process is crashing, we
now have a much better idea of the state of content provider clients
(olding a stable ref, unstable ref, or waiting for it to launch), so
that we can correctly handle each of these.

The client side code is also a fair amount cleaner, though in the
future there is more than should be done.  In particular, the two
ProviderClientRecord and ProviderRefCount classes should be combined
into one, part of which is exposed to the ContentResolver internal
API as a reference on a content provider with methods for updating
reference counts and such.  Some day we'll do that.

Change-Id: I87b10d1b67573ab899e09ca428f1b556fd669c8c
2012-05-29 13:33:09 -07:00