4809 Commits

Author SHA1 Message Date
Dianne Hackborn
53595b1688 am 432ab6ac: am 6b497a04: am 4b7c1cac: am bb2e1ef8: Merge "Fixing possible race condition."
* commit '432ab6ac04f22a5e4c15aece04117b35bbf8869c':
  Fixing possible race condition.
2011-02-07 13:51:31 -08:00
Dianne Hackborn
e160c7b9f1 am 60a74642: am 24c8ac3b: Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb
* commit '60a746426c62bf03b3b5fb494a9cddb9b1ae5166':
  Fix issue #3414328: A couple panics observed during an attempted...
2011-02-07 13:46:50 -08:00
Daniel Sandler
32cd1d5053 resolved conflicts for merge of 31796297 to master
Change-Id: Ice632b3378f8f67c186245fdb63b022ade864ba1
2011-02-07 16:12:16 -05:00
Dianne Hackborn
7da70821f7 am 94baff47: am 1b1962f3: Merge "Fix issue #3420898: More wallpaper issues" into honeycomb
* commit '94baff47975fb3ae1380333f23fc2de2dc65eb86':
  Fix issue #3420898: More wallpaper issues
2011-02-07 11:39:45 -08:00
Brad Fitzpatrick
bb756a9090 am a62bf8bb: am b901c9ab: am 9204644d: Merge "Fix a race condition in NativeDaemonConnector"
* commit 'a62bf8bb6b7a547802fb384b497e955940befa9c':
  Fix a race condition in NativeDaemonConnector
2011-02-07 10:09:29 -08:00
Brad Fitzpatrick
b901c9abff am 9204644d: Merge "Fix a race condition in NativeDaemonConnector"
* commit '9204644d9e8fc2a3d05ff386b14b349f7a117694':
  Fix a race condition in NativeDaemonConnector
2011-02-07 10:04:54 -08:00
anga
030bc88b4c Fix a race condition in NativeDaemonConnector
Fixes a race between the onDaemonConnected callback and setting the
mOutputStream in NativeDaemonConnector.

MountService connects to vold using the NativeDaemonConnector.
Throws a “NativeDaemonConnectorException: No output stream!”
when the onDaemonConnected callback in MountService calls the doListCommand.

Change-Id: Ib895bab37f7df680e4362df6366198c0a673c5e9
2011-02-07 09:53:59 -08:00
Dianne Hackborn
432ab6ac04 am 6b497a04: am 4b7c1cac: am bb2e1ef8: Merge "Fixing possible race condition."
* commit '6b497a0446ebad24305d5e29d5fd5e65014b9778':
  Fixing possible race condition.
2011-02-07 08:02:00 -08:00
Dianne Hackborn
4b7c1cacca am bb2e1ef8: Merge "Fixing possible race condition."
* commit 'bb2e1ef87fe4c5123340035766c759155e6bb90c':
  Fixing possible race condition.
2011-02-07 07:33:38 -08:00
David 'Digit' Turner
1ee31175ec Merge "WindowManagerService: Disable screen rotation animation under emulation." 2011-02-06 12:53:09 -08:00
David 'Digit' Turner
910a068122 WindowManagerService: Disable screen rotation animation under emulation.
Since there is no support for hardware GLES acceleration under
emulation, we disable the screen rotation animation when we detect
that we are in the emulator.

Note that ideally, we should only disable it when we detect that
GLES is implemented in software. However, I don't think there is
an easy way to test for this inside of the WindowManagerService.

Change-Id: Ic17719f7d0b14640bacb3b33b7b1a196006982ee
2011-02-05 00:34:46 +01:00
Dianne Hackborn
60a746426c am 24c8ac3b: Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb
* commit '24c8ac3b0912762ce6f3cdadc46c253f407af396':
  Fix issue #3414328: A couple panics observed during an attempted...
2011-02-04 15:05:24 -08:00
Dianne Hackborn
24c8ac3b09 Merge "Fix issue #3414328: A couple panics observed during an attempted..." into honeycomb 2011-02-04 15:03:27 -08:00
Dianne Hackborn
3e4f9d0452 Fix issue #3414328: A couple panics observed during an attempted...
...pairing to IHF1700 - IKXEVEREST-3627

Change-Id: I3d5b42d65a03ed19b8460c607ff5de862bccb4e6
2011-02-04 14:05:55 -08:00
Daniel Sandler
31796297d4 am 4ad2547f: Merge "Ongoing notification for GPS use." into honeycomb
* commit '4ad2547fe08bab430d7d9f9cc4b789410856c9c3':
  Ongoing notification for GPS use.
2011-02-03 20:51:00 -08:00
Daniel Sandler
4ad2547fe0 Merge "Ongoing notification for GPS use." into honeycomb 2011-02-03 20:49:10 -08:00
Daniel Sandler
e40451a89d Ongoing notification for GPS use.
This change improves upon the notification priority API
introduced in change I9e738cc4, allowing privileged clients
to set the priority of a notification when posting it
directly to INotificationManager. StatusBarTest is updated
to test this new feature.

The new LocationController in SystemUI uses this facility to
post a high-priority ongoing notification whenever GPS is in
use (replacing the functionality of the legacy GPS status
bar icon).

Also happens to fix http://b/3325472 (adding a log message
when notifications are dropped because of a missing icon).

Bug: 3412807

Change-Id: I523016ffa53bf979be98ddc4a2deb55a6270c68a
2011-02-03 21:11:46 -05:00
satok
43c3200280 Merge "Register ENABLED_INPUT_METHODS to SettingsObserver" 2011-02-03 18:07:03 -08:00
Dianne Hackborn
94baff4797 am 1b1962f3: Merge "Fix issue #3420898: More wallpaper issues" into honeycomb
* commit '1b1962f38304d2cbf12ac008791d93d3f1bdf0a6':
  Fix issue #3420898: More wallpaper issues
2011-02-03 17:50:51 -08:00
Dianne Hackborn
3d80ba0515 am dd954212: am a5861743: Merge "Fix issue #3418265: Rotation animation on wallpaper is broken" into honeycomb
* commit 'dd95421291f590ec0b1d8e79b73264516e1da027':
  Fix issue #3418265: Rotation animation on wallpaper is broken
2011-02-03 17:15:04 -08:00
Dianne Hackborn
ac1471a4ff Fix issue #3420898: More wallpaper issues
- The ImageWallpaper wasn't watching for the desired dimensions to
  change, at which point it needs to resize its surface.
- The system process has been running with the small dalvik heap
  limit, which is too tight with these huge wallpapers; this would
  cause switching wallpapers to eventually stop working as it
  couldn't get the memory it needed to load the new one.
- The compatibility mode background surface had a bunch of issues,
  such as moving its windows to the right by the window size to
  make them disappear.  This of course doesn't play well with the
  now super-sized wallpaper surface.  This code is re-worked to
  not require such shenanigans.

Change-Id: I64fde4059645d8507f1c4761ba6c17b89877a5c0
2011-02-03 16:54:24 -08:00
Robert Greenwalt
23a8a45928 Merge "Stop using netmask in the framework." 2011-02-03 14:16:45 -08:00
Robert Greenwalt
2d2afd13af Stop using netmask in the framework.
bug:2542681
Change-Id: Iaa2b30f7a43de28844d86a4a8a513e86d719608a
2011-02-03 13:20:00 -08:00
Robert Greenwalt
f8d40f0d55 Merge "Bind addr and prefixLength together in LinkAddress" 2011-02-03 13:17:48 -08:00
Kenny Root
9ebd580231 Merge "Remove defunct secure FS work" 2011-02-03 11:04:28 -08:00
Mike Lockwood
04f024d564 Merge changes I80558c62,I6587f580
* changes:
  UsbService: Blacklist HID boot subclass devices (keyboards and mice)
  UsbService: Add support for blacklisting certain USB busses
2011-02-03 09:51:06 -08:00
satok
b6109bb591 Register ENABLED_INPUT_METHODS to SettingsObserver
Bug: 3415292

- Registration is required for catching current IME or subtype is disabled

Change-Id: Ia95f16df5bd725c05b4f5085f975d235b88d4b6e
2011-02-03 22:24:54 +09:00
Dianne Hackborn
dd95421291 am a5861743: Merge "Fix issue #3418265: Rotation animation on wallpaper is broken" into honeycomb
* commit 'a58617430d699d26948357f204f09a6ca0b837b8':
  Fix issue #3418265: Rotation animation on wallpaper is broken
2011-02-02 18:44:36 -08:00
Dianne Hackborn
50660e2728 Fix issue #3418265: Rotation animation on wallpaper is broken
Two problems:

1. The wallpaper offsets were being applied at the wrong place in the xform.
2. The background black needs become a clip around the newly revealed UI.

Change-Id: I3b46aea2ace3c8c5a36fc5e37b4e2b67fff1b289
2011-02-02 18:32:27 -08:00
Kenny Root
35ab3ad61f Remove defunct secure FS work
Bug: 3365047
Change-Id: I68eaea295881f5431907e1b93bdd73e644e84aa5
2011-02-02 16:42:18 -08:00
Dianne Hackborn
9ca397f5f0 am e40afdf7: am 0035b5ca: Merge "Fix issue #3415137: New wallpaper size breaks thumbnails." into honeycomb
* commit 'e40afdf7f44f30d78b0afc96717dae2bb883e3ea':
  Fix issue #3415137: New wallpaper size breaks thumbnails.
2011-02-02 13:22:40 -08:00
Dianne Hackborn
e40afdf7f4 am 0035b5ca: Merge "Fix issue #3415137: New wallpaper size breaks thumbnails." into honeycomb
* commit '0035b5cad16c0565102105f5cd0222073b0ddf94':
  Fix issue #3415137: New wallpaper size breaks thumbnails.
2011-02-02 13:19:44 -08:00
Dianne Hackborn
dd962ee163 Fix issue #3415137: New wallpaper size breaks thumbnails.
Change-Id: I3ce4fa8f532cc378c390138bab0ff3126fe0f0c3
2011-02-02 11:29:41 -08:00
Mike Lockwood
8b682ad08a UsbService: Blacklist HID boot subclass devices (keyboards and mice)
Change-Id: I80558c6205e041ad730c7815aba97cb80132e820
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-02-01 15:53:11 -05:00
Mike Lockwood
a8e3a898a2 UsbService: Add support for blacklisting certain USB busses
This can be used to prevent applications from connecting to
sensitive internal USB devices (like the modem)

Change-Id: I6587f58018e3f8d8f78405d4004cce64db23b628
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-02-01 13:46:50 -05:00
Jeff Brown
406e26d174 am a70154b0: am c623fff0: Merge "Fix keyboard hidden flag." into honeycomb
* commit 'a70154b0187603af3487bbe01b607818b12cc268':
  Fix keyboard hidden flag.
2011-02-01 10:09:11 -08:00
Dianne Hackborn
5c4e4f9066 am db569b49: am 6cf32312: Merge "Do not check features in PackageManagerService" into honeycomb
* commit 'db569b49180621c01fa55db88ed92071aae9b3bb':
  Do not check features in PackageManagerService
2011-02-01 10:08:21 -08:00
Jozef BABJAK
06e57b5d46 Fixing possible race condition.
That return statement is effectively a reading of asynchronously modified
field. The reading and writing is elsewhere protected by locking on thread
instance, except this one occurence. Moving 'return' statement into
synchronized block ensures that it reads updated value.

Don't be afraid of deadlock - wait() releases the lock and acquires it
back when notified.

Change-Id: I940c24c04a1a2d4508d14d11b6174ff4fb2ab7d5
2011-02-01 08:53:52 +01:00
Jeff Brown
a70154b018 am c623fff0: Merge "Fix keyboard hidden flag." into honeycomb
* commit 'c623fff00c53f6002a8ec6c98cf4fdd6b1b2ad12':
  Fix keyboard hidden flag.
2011-01-31 18:52:06 -08:00
Dianne Hackborn
db569b4918 am 6cf32312: Merge "Do not check features in PackageManagerService" into honeycomb
* commit '6cf32312aaee6716ffd1df7098838b08d80054e4':
  Do not check features in PackageManagerService
2011-01-31 18:51:56 -08:00
satok
4d29ac86e4 am c253fc0f: am 076d059b: Merge "Not to update IME when Settings version is older than the last updated version." into honeycomb
* commit 'c253fc0f8069c67eacf70def32436067584b5636':
  Not to update IME when Settings version is older than the last updated version.
2011-01-31 18:38:17 -08:00
satok
c253fc0f80 am 076d059b: Merge "Not to update IME when Settings version is older than the last updated version." into honeycomb
* commit '076d059b54664b31920f0be13d56c657ab77cecc':
  Not to update IME when Settings version is older than the last updated version.
2011-01-31 18:31:46 -08:00
Dianne Hackborn
b04ec6a8a7 am 7a7ed2b2: Merge "Do not check features in PackageManagerService DO NOT MERGE" into gingerbread
* commit '7a7ed2b21233480d63a1f6b3830e3b0c1c6a3298':
  Do not check features in PackageManagerService DO NOT MERGE
2011-01-31 17:55:11 -08:00
Jeff Brown
c623fff00c Merge "Fix keyboard hidden flag." into honeycomb 2011-01-31 17:45:56 -08:00
Dianne Hackborn
6cf32312aa Merge "Do not check features in PackageManagerService" into honeycomb 2011-01-31 17:41:09 -08:00
Jeff Brown
597eec8c3d Fix keyboard hidden flag.
Configuration.hardKeyboardHidden should be set to
HARDKEYBOARDHIDDEN_YES when no keyboard is present or when it is
disabled.  The code in PhoneWindowManager.adjustConfigurationLw
does the right thing.  It also takes care of setting keyboardHidden
correctly when only a soft keyboard is available.

So it turns out that all we need to do to disable the hard keyboard
is to set Configuration.keyboard to KEYBOARD_NOKEYS *before* asking
the policy to adjust the configuration.

Bug: 3406101
Change-Id: I3519d02af30d8068198cb3d6b8fdde601c2fe8b4
2011-01-31 17:12:25 -08:00
Kenny Root
4c3915a0f7 Do not check features in PackageManagerService
PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
2011-01-31 16:59:12 -08:00
Kenny Root
fa2ae1ad1a Do not check features in PackageManagerService DO NOT MERGE
PackageManagerService shouldn't check features that a package declares
that it uses because this will cause problems in the future when we add
more features that older phones didn't explicitly declare. We must rely
on markets to know about phones and filter them for us to avoid this
situation.

Bug: 3409434
Change-Id: I0d51b2de33d8110edc6824af4b5b8c901f96077f
2011-01-31 16:27:38 -08:00
satok
4d733290a1 Not to update IME when Settings version is older than the last updated version.
- Check if just old version or not.

- Sometimes, ContentObserver.onChange is called before finishing to save the actual value.
This can be verified by checking the system settings version. If the version is not updated,
cached value will be returned from Settings.Secure, and this should not be handled.

Bug: 3406300

Change-Id: Ie3f5b484b5574e10a41dfc209ed31271a474b828
2011-02-01 09:01:58 +09:00
Joe Onorato
60d9d9cdba am 75057b15: am 4de68bae: Merge "Check for the STATUS_BAR permission for the system UI properties." into honeycomb
* commit '75057b1507881625368f76b2f401097b606bd530':
  Check for the STATUS_BAR permission for the system UI properties.
2011-01-30 16:09:29 -08:00