950 Commits

Author SHA1 Message Date
Android (Google) Code Review
cc907741b9 Merge change 22660 into eclair
* changes:
  Simplify data icons of CDMA in status bar.
2009-08-25 16:18:32 -07:00
Robert Greenwalt
7b1820d9f1 am 8d61d005: Merge change 22638 into eclair
Merge commit '8d61d005839b23a41034325d5f458f1344933b1b' into eclair-plus-aosp

* commit '8d61d005839b23a41034325d5f458f1344933b1b':
  Fix the removal of dns entries.
2009-08-25 16:13:26 -07:00
johnwang
9f87cb2f8d Simplify data icons of CDMA in status bar.
Use 3G icons when connect to EvDO, use 1x icons when connected to 1x, and remove dormant state display.
2009-08-25 16:12:39 -07:00
Android (Google) Code Review
8d61d00583 Merge change 22638 into eclair
* changes:
  Fix the removal of dns entries.
2009-08-25 16:11:47 -07:00
Dianne Hackborn
ab5eed16f7 am 9acc030b: Implement issue #2071750: add a pre-boot upgrade step.
Merge commit '9acc030be474db2bc2371440a12cbdc478238689' into eclair-plus-aosp

* commit '9acc030be474db2bc2371440a12cbdc478238689':
  Implement issue #2071750: add a pre-boot upgrade step.
2009-08-25 15:34:26 -07:00
Dianne Hackborn
9acc030be4 Implement issue #2071750: add a pre-boot upgrade step.
Change-Id: I7133a03a6bf302dbac00c5f8b0420071d2453f89
2009-08-25 15:15:31 -07:00
Robert Greenwalt
b06324a5c1 Fix the removal of dns entries.
When switching default networks we should erase any excess dns server entries.  The old code
used the wrong index and didn't erase all of them properly.

Found in conjunction with
bug: 2077628
2009-08-25 14:00:10 -07:00
johnwang
c3b64a41d9 am 4b474440: Merge change 22566 into eclair
Merge commit '4b474440cef8afa5e355a9406bb076af8e493ca7' into eclair-plus-aosp

* commit '4b474440cef8afa5e355a9406bb076af8e493ca7':
  Simplify CDMA Status Bar icons
2009-08-25 13:42:02 -07:00
Android (Google) Code Review
4b474440ce Merge change 22566 into eclair
* changes:
  Simplify CDMA Status Bar icons
2009-08-25 13:39:34 -07:00
johnwang
347c5a22a9 Simplify CDMA Status Bar icons
Update the RSSI display policy in CDMA.
1. Use single RSSI icon instead of two icons
2. If 3G(EV) and 1x network are available than 3G should be displayed,  Displayed RSSI should be from the EV side.
3. If a voice call is made then RSSI should switch to 1x.
2009-08-25 12:39:49 -07:00
Dianne Hackborn
d8a0f45898 am 0d05be3f: Merge change 22544 into eclair
Merge commit '0d05be3f724740eb95ac5acd9819b4db0eccd694' into eclair-plus-aosp

* commit '0d05be3f724740eb95ac5acd9819b4db0eccd694':
  Fix bug that would leave old windows around.
2009-08-24 20:23:11 -07:00
Dianne Hackborn
83360b3167 Fix bug that would leave old windows around.
The problem was instigated by another fix I made to keep
windows around while their tokens are animating or preparing to
animate.  This then hit an issue where if the window's process
died while its token was getting ready to animate, we would
immediately hide the token, and when we then went to start
the token animation we wouldn't do anything, leaving the old
dummy animation in place and not allowing it to run.

Now we clear the animation before hiding the token, to ensure
the dummy animation is gone at this point.

Change-Id: If83fadcce6815bc545c80fbdb82fe6972bbdf5ef
2009-08-24 18:43:32 -07:00
Dianne Hackborn
2f4f63b501 am cf3a0830: Merge change 22400 into eclair
Merge commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f' into eclair-plus-aosp

* commit 'cf3a08307d1599eaa91d7cc4e7c601e5fa13037f':
  Add more control over a service's start state.
2009-08-24 17:04:01 -07:00
Android (Google) Code Review
cf3a08307d Merge change 22400 into eclair
* changes:
  Add more control over a service's start state.
2009-08-24 17:01:50 -07:00
Dianne Hackborn
f6f9f2d025 Add more control over a service's start state.
One of the problems I have been noticing is background services
sitting around running and using resources.  Some times this is
due to the app developer doing this when they shouldn't, but there
are also a number of issues with the current Service interaction
model that make it very difficult (or impossible) to avoid
getting services stuck in the started state.  This is a
change/enhancement to the Service API to try to address this.

The main change is that Service.onStart() has been deprecated,
replaced with a new Service.onStartCommand() that allows the
service to better control how the system should manage it.  The
key part here is a new result code returned by the function, telling
the system what it should do with the service afterwards:

- START_STICKY is basically the same as the previous behavior,
  where we usually leave the service running.  The only difference
  is that it if it gets restarted because its process is killed,
  onStartCommand() will be called on the new service with a null
  Intent instead of not being called at all.

- START_NOT_STICKY says that, upon returning to the system, if
  its process is killed with no remaining start commands to
  deliver, then the service will be stopped instead of restarted.
  This makes a lot more sense for services that are intended to
  only run while executing commands sent to them.

- START_REDELIVER_INTENT is like START_NOT_STICKY, except if
  the service's process is killed before it calls stopSelf()
  for a given intent, that intent will be re-delivered to it
  until it completes (unless after 4 or more tries it still
  can't complete, at which point we give up).

Change-Id: I978f5ca420d70023d1b5e7f97de639d09381f8ad
2009-08-24 17:00:54 -07:00
Robert Greenwalt
123d6f372f am ec9fe467: Fix a race condition for data change notification
Merge commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4' into eclair-plus-aosp

* commit 'ec9fe4672a46eb928ab710d8e3caf2ce046100d4':
  Fix a race condition for data change notification
2009-08-24 16:39:35 -07:00
Robert Greenwalt
ec9fe4672a Fix a race condition for data change notification
We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
2009-08-24 16:19:42 -07:00
Mike Lockwood
2bca061c21 am ac8ebcd1: Merge change 22478 into eclair
Merge commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620' into eclair-plus-aosp

* commit 'ac8ebcd1071b433c1c5093e7a5bcb67224f5f620':
  DockObserver: minor cleanup.
2009-08-24 14:01:21 -07:00
Mike Lockwood
e4465e2eac DockObserver: minor cleanup.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-24 13:51:58 -07:00
Li Zhe
f3b8994b66 am 6c6d822f: Merge change 22318 into eclair
Merge commit '6c6d822f7b7ec967aeff3e4d2afde0ff25732aa6' into eclair-plus-aosp

* commit '6c6d822f7b7ec967aeff3e4d2afde0ff25732aa6':
  Framework changes to support HSDPA/HSUPA/HSPA
2009-08-21 13:45:30 -07:00
Li Zhe
ebe66345e7 Framework changes to support HSDPA/HSUPA/HSPA
HSDPA: High-Speed Downlink Packet Access
HSUPA: High-Speend Uplink Packet Access
HSPA:  High-Speed Packet Access

Add support for HSDPA/HSUPA/HSPA:
 1) extend TelephonyManager.NETWORK_TYPE for HSDPA/HSUPA/HSPA
 2) extend ServiceState.RADIO_TECHNOLOGY for HSDPA/HSUPA/HSPA
 3) set radioTechnology into ServiceState in GsmServiceStateTracker
 4) change the implementation of TelephonyManager.getNetworkType to
    solve the competition timing issue between the time of setting
    system property and the time of receiving notification through
    PhoneStateListener
    4.1) add a getNetworkType interface in ITelephony.aidl
 5) add icons resources for HSDPA/HSUPA/HSPA
 6) make use of HSDPA/HSUPA/HSPA icons in StatusBarPolicy
2009-08-21 13:41:05 -07:00
Jean-Baptiste Queru
1afb1cd387 merge from open-source master 2009-08-21 10:19:09 -07:00
Dianne Hackborn
3be63c0930 Infrastructure for supporting wallpaper previews.
Various things that will allow us to show previews of wallpapers.
Also some fixes to animations across wallpapers.
2009-08-20 20:34:42 -07:00
Robert Greenwalt
a64bf834ff Fix various issues found when testing Mms.
Fix some race conditions (check isTeardownRequested).
Fix the passing of mInterfaceName to subtypes (mms, etc).
Fix the generation of CONNECTED message to already active subtypes.
Fix the enabling of Data in DataConnectionTracker.

bug: 2065037
2009-08-19 21:58:12 -07:00
Dianne Hackborn
f8fbdb6b92 Add wallpaper transition animations.
The window manager now detects when a transition between two
wallpaper activities is happening, and switches to a new set
of animations for that.  The animations I defined here are just
an arbitrary something that can work in this case.
2009-08-19 17:45:56 -07:00
Android (Google) Code Review
6647da1fa8 Merge change 21919 into eclair
* changes:
  Fix exception when reporting disconn cdma state.
2009-08-19 11:54:48 -07:00
Robert Greenwalt
75e1d3137c Fix exception when reporting disconn cdma state.
Array out of bounds when checking first element of a 0-length array.
2009-08-19 11:18:53 -07:00
Patrick Scott
24f1076097 Check for a timeout <= 0 before adding the vibration.
A timeout of 0 could cause the vibration thread to run with a null pattern and
crash the system server. Instead, we should just ignore vibrations that don't
make any sense (similar to ignoring a bad pattern vibration).
2009-08-19 13:12:13 -04:00
Dianne Hackborn
cbf1504824 Don't call onSurfaceChanged() if nothing interesting has changed. 2009-08-18 18:40:01 -07:00
Suchi Amalapurapu
41f31b62e5 am d50066f8: invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService
Merge commit 'd50066f8d2ab82c2c8ff305c86cc9b39eaca3c28' into eclair

* commit 'd50066f8d2ab82c2c8ff305c86cc9b39eaca3c28':
  invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService
2009-08-18 17:31:54 -07:00
Suchi Amalapurapu
d50066f8d2 invoke sendMessage instead of dispatchMessage to avoid deadlocks in ActivityManagerService 2009-08-18 17:03:10 -07:00
Dianne Hackborn
e9e9bca842 More wallpaper fixes: scroll position, visibility, leaking.
This fixes a bunch of edge cases in updating the wallpaper's scroll position
and visibility when switching between wallpapers and traveling through the UI.

It also fixes some leaks of wallpaper tokens and windows.
2009-08-18 15:59:34 -07:00
Dianne Hackborn
d8a43f6168 Fix issue #2047139: Remove Service.setForeground()
This API is becoming seriously abused, so now it is deprecated and has
become a no-op.

As an alternative, there is now a new API that allows you to make a service
be in the foreground but requires providing a persistent notification to
go along with this state, allowing the user to know about and control it.
2009-08-18 13:59:27 -07:00
Suchi Amalapurapu
30c0b83490 am d9d25760: Remove dead locks in system process when installing packages
Merge commit 'd9d2576017fadcf47589b54e8ee198f48cc19352' into eclair

* commit 'd9d2576017fadcf47589b54e8ee198f48cc19352':
  Remove dead locks in system process when installing packages
2009-08-18 13:00:32 -07:00
Android (Google) Code Review
b22293590c Merge change 21748 into eclair
* changes:
  Get At command count from Bluetooth headset.
2009-08-18 12:39:34 -07:00
Amith Yamasani
82cb029e2a Get At command count from Bluetooth headset.
Pass in the BT headset object when available to the BatteryStats.
2009-08-18 12:38:06 -07:00
Jeff Hamilton
5bfc64f8f6 Include the list of registered providers the package manager dumpsys output. 2009-08-18 14:04:52 -05:00
Nick Pelly
bd022f423a Bluetooth: API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
                  adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
                 (pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
2009-08-18 08:24:22 -07:00
Android (Google) Code Review
8735d553c5 Merge change 21601 into eclair
* changes:
  BatteryService: Add support for new standard battery voltage and temperature attributes.
2009-08-18 06:03:47 -07:00
Dianne Hackborn
8df8b2b405 Allow wallpapers to get touch events. 2009-08-17 21:23:05 -07:00
Suchi Amalapurapu
d9d2576017 Remove dead locks in system process when installing packages 2009-08-17 17:21:56 -07:00
Mike Lockwood
f24d13a28f BatteryService: Add support for new standard battery voltage and temperature attributes.
Plus some cleanup from the previous commit.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-17 19:58:32 -04:00
Android (Google) Code Review
01f750d6fa Merge change 21587 into eclair
* changes:
  BatteryService: Remove hard coded power supply names.
2009-08-17 14:26:06 -07:00
Mike Lockwood
304928fb7e BatteryService: Remove hard coded power supply names.
Search all subdirectories of /sys/class/power_supply and match on
the power supply type instead.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-17 17:20:40 -04:00
Android (Google) Code Review
921831b4dc Merge change 21522 into eclair
* changes:
  Dock changes:Docking station intents
2009-08-17 12:27:06 -07:00
Dan Murphy
c9f4eaf438 Dock changes:Docking station intents
Docking station intents for dock switch driver.
Add DockObserver and updated Intent.java and systemserver.jave

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>

	modified:   core/java/android/content/Intent.java
	new file:   services/java/com/android/server/DockObserver.java
	modified:   services/java/com/android/server/SystemServer.java

Docking station updates

Add constants for the dock

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-17 15:23:24 -04:00
Android (Google) Code Review
1a797546d7 Merge change 21380 into eclair
* changes:
  More work on wallpapers.
2009-08-17 11:46:57 -07:00
Android (Google) Code Review
9dc2355b9b Merge change 21492 into eclair
* changes:
  WifiService: Hash based on both SSID and BSSID in scan result cache.
2009-08-17 10:47:06 -07:00
Dianne Hackborn
7341d7a104 More work on wallpapers.
- Do better about figuring out when to stop them and other related window
  management.
- Fix problem where we were not redrawing the surface when the orientation
  changed.  This was the cause of the device hang.
2009-08-17 10:42:59 -07:00
Mike Lockwood
c6cc836f88 LocationManagerService: Add NullPointerException to avoid change in behavior.
After fixing a null pointer check we were no longer throwing NullPointerExceptions
which caused a CTS test to fail.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-17 13:16:08 -04:00