950 Commits

Author SHA1 Message Date
Suchi Amalapurapu
0214e9475f For intent ACTION_PACKAGE_CHANGED, there could be a lot of broadcasts related to enabling/disabling
components by apps which could result in thrashing on the PackageManager. For apps that
    do not want to be restarted when such a broadcast is sent, we can just aggregate these broadcasts and
    handle them at one go.
    Changes include:
    New structure to hold pending broadcasts by class name. If a component is enabled or disabled frequently
    aggregate component enabled/disabled settings in this structure in a 10 second window and then
    send out the accumulated list of broadcasts to the ActivityManager.
    A new Handler implementation handles this message
    Add new attribute name EXTRA_CHANGED_COMPONENT_NAME in broadcast intent Intent.ACTION_PACKAGE_CHANGED for
    additional information for apps like Launcher.
    Rename a couple of parameters, the names were too jarring.
2009-09-02 12:32:32 -07:00
Christopher Tate
9073dc69b1 am 9756a70b: Merge change 23582 into eclair
Merge commit '9756a70bd92fb844d2fd8346cc4bb6c8bb768c4b' into eclair-plus-aosp

* commit '9756a70bd92fb844d2fd8346cc4bb6c8bb768c4b':
  Expand apps' control over the settings restore process
2009-09-01 21:02:33 -07:00
Christopher Tate
5e1ab335e6 Expand apps' control over the settings restore process
Applications can now specify two more aspects of the restore process:  whether
they need to run with their own custom Application subclass rather than being
launched in the usual restricted mode during restore, and whether it's okay for
the backup manager to kill the app process once restore has completed.  The new
manifest attributes for these are, respectively, android:restoreNeedsApplication
and android:killAfterRestore.

If unspecified in the manifest, restoreNeedsApplication is false, and
killAfterRestore is true.

In order to support kill-after-restore cleanly, this change also adds a new
system-process-only interface to the Activity Manager, which will schedule a
"commit suicide" event on the target app's main thread looper.

The framework backup agents have been given the appropriate new backup
attributes as well.
2009-09-01 20:59:36 -07:00
Dianne Hackborn
e1b4437dba Revert "Fix content provider"
Argh!

This reverts commit da706900f45dca82d89f090e4e52fa5d1772c495.
2009-09-01 19:21:08 -07:00
Dianne Hackborn
ea49cf658d am ff0dc82c: am 6a98f8d9: Merge change 23499 into donut
Merge commit 'ff0dc82c1cfe780e6f4c87d1d34de6dc3b741a2d' into eclair-plus-aosp

* commit 'ff0dc82c1cfe780e6f4c87d1d34de6dc3b741a2d':
  Fix content provider
2009-09-01 19:14:08 -07:00
Dianne Hackborn
ff0dc82c1c am 6a98f8d9: Merge change 23499 into donut
Merge commit '6a98f8d93e4ddd407baad8d9b7481a892001d281' into eclair

* commit '6a98f8d93e4ddd407baad8d9b7481a892001d281':
  Fix content provider
2009-09-01 19:11:44 -07:00
Dianne Hackborn
da706900f4 Fix content provider 2009-09-01 13:57:11 -07:00
Dianne Hackborn
93ca790c02 am d31825c6: Merge change 23403 into eclair
Merge commit 'd31825c6ff83a3e336efc97ced1b205fe65b11a9' into eclair-plus-aosp

* commit 'd31825c6ff83a3e336efc97ced1b205fe65b11a9':
  Various infrastructure to support a running services UI.
2009-09-01 12:33:07 -07:00
Jean-Baptiste Queru
85a2c7f1ca merge from open-source master 2009-09-01 11:46:14 -07:00
Dianne Hackborn
3025ef332c Various infrastructure to support a running services UI.
Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
2009-09-01 11:16:25 -07:00
Mike Lockwood
195cb33f3f am 84c4548d: Merge changes 23429,23430 into eclair
Merge commit '84c4548d046c7426cd346602cec18b98fdcdbf3c' into eclair-plus-aosp

* commit '84c4548d046c7426cd346602cec18b98fdcdbf3c':
  LocationManagerService: Remove caching of last known locations to flash.
  LocationManagerService: Add null pointer check and remove useless finalize() method.
2009-09-01 05:03:47 -07:00
Mike Lockwood
9aa1fa2d36 LocationManagerService: Remove caching of last known locations to flash.
Change-Id: Ibbab20a7c48823fb74c2e175824f55248f25bf8a
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-01 07:51:15 -04:00
Mike Lockwood
3a76fd6279 LocationManagerService: Add null pointer check and remove useless finalize() method.
Change-Id: I4017d38a1bea7564a85575486a7c2aef569dfe5d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-01 07:26:56 -04:00
Mike Lockwood
77304af27c am b0a05404: Merge change 23223 into eclair
Merge commit 'b0a054048329c31948c2f5dbcc11b6f99e454177' into eclair-plus-aosp

* commit 'b0a054048329c31948c2f5dbcc11b6f99e454177':
  SensorService: call close_data_source when we have no more sensor clients.
2009-08-30 13:36:17 -07:00
Android (Google) Code Review
b0a0540483 Merge change 23223 into eclair
* changes:
  SensorService: call close_data_source when we have no more sensor clients.
2009-08-30 13:33:57 -07:00
Mike Lockwood
c76db34353 am 2d93a116: Merge change 23187 into eclair
Merge commit '2d93a11663d1d872bc7e9d6512a445fa84148583' into eclair-plus-aosp

* commit '2d93a11663d1d872bc7e9d6512a445fa84148583':
  Do not send dock state changed broadcasts until the system has finished booting.
2009-08-30 12:03:24 -07:00
Android (Google) Code Review
2d93a11663 Merge change 23187 into eclair
* changes:
  Do not send dock state changed broadcasts until the system has finished booting.
2009-08-30 12:02:07 -07:00
Mike Lockwood
2d6b67d37f SensorService: call close_data_source when we have no more sensor clients.
Change-Id: I94accda4571c3f2cf6f8a5b6801e37c30c027fe1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-30 14:25:56 -04:00
Dianne Hackborn
71562cc72d am 284ac93a: More work on wallpapers: animations, lifecycle, scaling, etc.
Merge commit '284ac93aa30642fda87d5c40263a1263677c21cd' into eclair-plus-aosp

* commit '284ac93aa30642fda87d5c40263a1263677c21cd':
  More work on wallpapers: animations, lifecycle, scaling, etc.
2009-08-30 10:57:59 -07:00
Dianne Hackborn
284ac93aa3 More work on wallpapers: animations, lifecycle, scaling, etc.
Yet more work on improving the behavior of wallpapers.  This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
2009-08-30 10:53:53 -07:00
Mike Lockwood
d0e82cec71 Do not send dock state changed broadcasts until the system has finished booting.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-28 13:36:14 -07:00
Dianne Hackborn
554f6cb1c7 am 49237345: Add platform infrastructure for features.
Merge commit '49237345d83e62fdb9eb8d50b13ad086636a04fa' into eclair-plus-aosp

* commit '49237345d83e62fdb9eb8d50b13ad086636a04fa':
  Add platform infrastructure for features.
2009-08-27 22:13:35 -07:00
Dianne Hackborn
49237345d8 Add platform infrastructure for features.
This introduces a new mechanism to define features associated with
a platform, query the current device for the available features,
and enforce that apps requiring features that aren't available can't
be installed.

Also now allows uses-library to specify that a library is optional,
so the lack of such a library will not prevent the app from being
installed (but if it does exist it will be correctly linked into
the app).

Change-Id: I5b369b46cfa0b3d37c9e08fd14ef1098a978e67b
2009-08-27 21:51:00 -07:00
Dianne Hackborn
6f664bd89d am d6ac7c73: Merge change 22975 into eclair
Merge commit 'd6ac7c73e17f0ce0cc3b1290760c4f67cafcdec5' into eclair-plus-aosp

* commit 'd6ac7c73e17f0ce0cc3b1290760c4f67cafcdec5':
  Fix issue #2069662: The wallpaper doesn't move along with the home screen
2009-08-27 15:26:05 -07:00
Android (Google) Code Review
d6ac7c73e1 Merge change 22975 into eclair
* changes:
  Fix issue #2069662: The wallpaper doesn't move along with the home screen
2009-08-27 15:10:27 -07:00
root
0369a7c3ac Improve warning messages for permission denial due to non-exported intent receivers. 2009-08-27 14:51:02 -07:00
Mike Lockwood
fb8910f958 am 6391830d: Merge change 22958 into eclair
Merge commit '6391830d103ccb19465c69660065c22c2711dcfd' into eclair-plus-aosp

* commit '6391830d103ccb19465c69660065c22c2711dcfd':
  Don't activate keyguard if screen is turned off while proximity sensor is active.
2009-08-27 14:32:55 -07:00
Android (Google) Code Review
6391830d10 Merge change 22958 into eclair
* changes:
  Don't activate keyguard if screen is turned off while proximity sensor is active.
2009-08-27 14:31:06 -07:00
Mike Lockwood
e1ecb7dfe9 am 18ad9f65: Only allow system code to call LocationManager.sendNiResponse()
Merge commit '18ad9f657bda79069233c0b8e1476888ffd894d4' into eclair-plus-aosp

* commit '18ad9f657bda79069233c0b8e1476888ffd894d4':
  Only allow system code to call LocationManager.sendNiResponse()
2009-08-27 14:24:43 -07:00
Mike Lockwood
18ad9f657b Only allow system code to call LocationManager.sendNiResponse()
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 14:22:27 -07:00
Danke Xie
1807086662 am 22d1f9fb: gps: Network initiated SUPL
Merge commit '22d1f9fb23015471de6af1a70e40fb5c82ecb665' into eclair-plus-aosp

* commit '22d1f9fb23015471de6af1a70e40fb5c82ecb665':
  gps: Network initiated SUPL
2009-08-27 14:20:55 -07:00
Dianne Hackborn
6c3f571a14 Fix issue #2069662: The wallpaper doesn't move along with the home screen
The wallpaper target was being lost when an activity was restarted.

Change-Id: Ib05622591c9bb2f01bb8f2c0a0a8e77fe657ae88
2009-08-27 14:18:51 -07:00
Danke Xie
22d1f9fb23 gps: Network initiated SUPL
Initial contribution from Qualcomm.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 14:18:30 -07:00
Mike Lockwood
ddfe879b78 Don't activate keyguard if screen is turned off while proximity sensor is active.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 13:27:08 -07:00
Dianne Hackborn
c56a411120 am 1e0f7627: Merge change 22673 into eclair
Merge commit '1e0f7627389a18d7a2ea74d7a5fb2c251de56a56' into eclair-plus-aosp

* commit '1e0f7627389a18d7a2ea74d7a5fb2c251de56a56':
  Make SINGLE_TOP work with CLEAR_TOP.
2009-08-27 13:12:31 -07:00
Dianne Hackborn
aa52f9a7c6 Make SINGLE_TOP work with CLEAR_TOP.
Change-Id: Ie98b491dc4b1a2ae5e8fc8452c6410597bc9676b
2009-08-27 13:10:09 -07:00
Dianne Hackborn
eba188e21c am aa0a3b09: Merge change 22944 into eclair
Merge commit 'aa0a3b09e7a2947130e9a98c459a63349ef2d339' into eclair-plus-aosp

* commit 'aa0a3b09e7a2947130e9a98c459a63349ef2d339':
  Various tweaks to try to improve low memory behavior.
2009-08-27 12:29:45 -07:00
Android (Google) Code Review
aa0a3b09e7 Merge change 22944 into eclair
* changes:
  resolved conflicts for merge of 301b97ac to eclair
2009-08-27 12:27:51 -07:00
Dianne Hackborn
6ccd2aff3e resolved conflicts for merge of 301b97ac to eclair
Change-Id: I0fb70cbe0a52006ad14f43a02c30b72aad457c48
2009-08-27 12:26:44 -07:00
Mike Lockwood
569e114aa7 am 25b9cec8: Merge change 22692 into eclair
Merge commit '25b9cec8de75bd38c4868515e611cd69aff524ca' into eclair-plus-aosp

* commit '25b9cec8de75bd38c4868515e611cd69aff524ca':
  PowerManagerService: Disallow all user activity when in proximity wake lock.
2009-08-27 11:28:53 -07:00
Android (Google) Code Review
25b9cec8de Merge change 22692 into eclair
* changes:
  PowerManagerService: Disallow all user activity when in proximity wake lock.
2009-08-27 11:26:44 -07:00
Mike Lockwood
36fc302560 PowerManagerService: Disallow all user activity when in proximity wake lock.
Fixes b/2076756

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 11:07:49 -07:00
Mike Lockwood
7fdaaa5b46 am 49c22570: am 7566c1de: LocationManager: Fix problem replacing GPS and network providers with a mock provider.
Merge commit '49c22570bb8717bb678dbd8bae6692bb585370fc' into eclair-plus-aosp

* commit '49c22570bb8717bb678dbd8bae6692bb585370fc':
  LocationManager: Fix problem replacing GPS and network providers with a mock provider.
2009-08-27 09:28:11 -07:00
Mike Lockwood
49c22570bb am 7566c1de: LocationManager: Fix problem replacing GPS and network providers with a mock provider.
Merge commit '7566c1debebe072af76411e11d96810fd1409482' into eclair

* commit '7566c1debebe072af76411e11d96810fd1409482':
  LocationManager: Fix problem replacing GPS and network providers with a mock provider.
2009-08-27 09:25:36 -07:00
Android (Google) Code Review
301b97ac19 Merge change 22883 into donut
* changes:
  Various tweaks to try to improve low memory behavior.
2009-08-27 01:14:00 -07:00
Dianne Hackborn
fd12af4e76 Various tweaks to try to improve low memory behavior.
- Reduce the amount that we ask processes to GC after a significant
  operation occurs, but introducing a minimum time between GCs and
  using this in various ways to schedule them.

- Don't spam all of the processes with onLowMemory().  Now deliver
  these using the same gc facility, so we do the processes one at a
  time, and don't allow the same process to get this call more than
  once a minute.

- Increase the time a service must run before we will reset its
  restart delay to 30 minutes (from 10).

- Increase the restart delay multiplication factor from 2 to 4.

- Ensure that we don't restart more than one service every 10 seconds
  (unless some external event causes a service's process to be started
  for some other reason of course).

- Increase the amount of time that a service must run before we
  decide to lower it to a background process.

And some other things:

- Catch IllegalArgumentException in ViewRoot like we do for no
  resources to avoid the system process crashing.

- Fix a number of places where we were missing breaks between the
  activity manager's message dispatch func(!!).

- Fix reason printed for processes in the background.

- Print the list of processing waiting to GC.
2009-08-27 01:03:24 -07:00
Mike Lockwood
7566c1debe LocationManager: Fix problem replacing GPS and network providers with a mock provider.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 23:34:18 -07:00
Mike Lockwood
98709530d9 am 23b1a470: Merge change 22769 into eclair
Merge commit '23b1a470081e6b3c56ada4c43863ca7ed48c3ad2' into eclair-plus-aosp

* commit '23b1a470081e6b3c56ada4c43863ca7ed48c3ad2':
  MountService: Launch UsbStorageActivity with Intent.FLAG_ACTIVITY_NEW_TASK flag.
2009-08-26 12:27:51 -07:00
Mike Lockwood
9517443904 MountService: Launch UsbStorageActivity with Intent.FLAG_ACTIVITY_NEW_TASK flag.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-26 09:44:09 -07:00
johnwang
7250f938ac am cc907741: Merge change 22660 into eclair
Merge commit 'cc907741b9b7344820ffbc8d68992567d74d0f4b' into eclair-plus-aosp

* commit 'cc907741b9b7344820ffbc8d68992567d74d0f4b':
  Simplify data icons of CDMA in status bar.
2009-08-25 16:20:12 -07:00