2713 Commits

Author SHA1 Message Date
Joshua Bloch
b1c3015f28 Fix xml file for recent Hashtable change. 2009-09-02 16:33:18 -07:00
Suchi Amalapurapu
dcd49c9775 am 743a7495: am 23db1731: Merge change 23717 into eclair
Merge commit '743a7495ab365d8a84a25ac93e22b6e6e4c5e0b4'

* commit '743a7495ab365d8a84a25ac93e22b6e6e4c5e0b4':
  Make new attribute EXTRA_CHANGED_COMPONENT_NAME in
2009-09-02 16:29:28 -07:00
Suchi Amalapurapu
32f589046b Make new attribute EXTRA_CHANGED_COMPONENT_NAME in
broadcast intent ACTION_PACKAGE_CHANGED public so that
apps like launcher can find out the changed component name
when loading changes made in components.
2009-09-02 16:11:14 -07:00
Wu-cheng Li
210eedeff7 am eb05398f: am 9b6a8ab8: Add camera parameters constants and methods.
Merge commit 'eb05398fcc598b252c3d5b0c09ea1da72bb8db0b'

* commit 'eb05398fcc598b252c3d5b0c09ea1da72bb8db0b':
  Add camera parameters constants and methods.
2009-09-02 13:32:16 -07:00
Wu-cheng Li
9b6a8ab822 Add camera parameters constants and methods. 2009-09-02 12:45:23 +08:00
Christopher Tate
fbea729dcc am 9073dc69: am 9756a70b: Merge change 23582 into eclair
Merge commit '9073dc69b110cbd0d4bebd128ed6cc2b24a16695'

* commit '9073dc69b110cbd0d4bebd128ed6cc2b24a16695':
  Expand apps' control over the settings restore process
2009-09-01 21:05:10 -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
87672d2bd9 am 470f54d2: am 2d2d5c43: am c804efe2: Merge change 23569 into donut
Merge commit '470f54d299f1eece316a03ee3a2607f0555cb170'

* commit '470f54d299f1eece316a03ee3a2607f0555cb170':
  Update 4.xml to the most recent APIs.
2009-09-01 19:23:07 -07:00
Dianne Hackborn
2d2d5c4372 am c804efe2: Merge change 23569 into donut
Merge commit 'c804efe278fa33555e6e836504a467cb14505eb3' into eclair

* commit 'c804efe278fa33555e6e836504a467cb14505eb3':
  Update 4.xml to the most recent APIs.
2009-09-01 19:18:18 -07:00
Dianne Hackborn
2c8859aeda Update 4.xml to the most recent APIs. 2009-09-01 19:14:55 -07:00
Wink Saville
cd4fd153ec am 3d122b56: am 65d62c77: Add hasIccCard to IccCard and TelephonyManager.
Merge commit '3d122b56d9bf2a5c63b55bc6a67f56aff8e65b6f'

* commit '3d122b56d9bf2a5c63b55bc6a67f56aff8e65b6f':
  Add hasIccCard to IccCard and TelephonyManager.
2009-09-01 16:14:04 -07:00
Wink Saville
65d62c774e Add hasIccCard to IccCard and TelephonyManager.
Expose the presence/absence of IccCards in the system.
This is needed to fix bug 2033811 which needs to show
some SIM menus in the Mms app and Contact apps only if
there is a SIM and on CDMA there is no sims yet.

The current implementation assumes CDMA never has an
IccCard this is true at the moment but needs to change.

Change-Id: I4167368e364623ea68e9b2778556e6d730b1e715
2009-09-01 15:52:42 -07:00
Dianne Hackborn
7004a65fe3 am 93ca790c: am d31825c6: Merge change 23403 into eclair
Merge commit '93ca790c025d51780bff9be42cffdd0055091edb'

* commit '93ca790c025d51780bff9be42cffdd0055091edb':
  Various infrastructure to support a running services UI.
2009-09-01 13:59:24 -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
Patrick Scott
7ef8e73b08 am d15dcf07: am 05c9ed9c: Fix the documentation for onReceivedError.
Merge commit 'd15dcf07adfa04a3b1ce41c3bcb9455314025264'

* commit 'd15dcf07adfa04a3b1ce41c3bcb9455314025264':
  Fix the documentation for onReceivedError.
2009-09-01 05:42:38 -07:00
Patrick Scott
05c9ed9ce1 Fix the documentation for onReceivedError.
This change adds the EventHandler error codes to WebViewClient for the public
api. Previously, the api was ambiguous about the value of the errorCode
parameter and falsely documented that the values are HTTP status codes.
2009-09-01 08:37:22 -04:00
Fred Quintana
598ec41b37 am 9b52ad61: am 56f67d21: add the ability to specify yieldpoints in a ContentProviderOperation
Merge commit '9b52ad61642c84f74c89627eeb28d03ebb44386c'

* commit '9b52ad61642c84f74c89627eeb28d03ebb44386c':
  add the ability to specify yieldpoints in a ContentProviderOperation
2009-08-28 17:06:18 -07:00
Fred Quintana
56f67d2145 add the ability to specify yieldpoints in a ContentProviderOperation 2009-08-28 17:01:16 -07:00
Mike LeBeau
b4758199dd am 8c0fa1a2: am e9df3cf7: resolved conflicts for merge of 1e348378 to eclair
Merge commit '8c0fa1a2e5966b685f75e438eb089701b404b6ef'

* commit '8c0fa1a2e5966b685f75e438eb089701b404b6ef':
  Revert "Remove third party support for Quick Search Box (aka global search)."
2009-08-28 00:02:41 -07:00
Mike LeBeau
e9df3cf79c resolved conflicts for merge of 1e348378 to eclair 2009-08-27 23:54:12 -07:00
Dianne Hackborn
0754e1fb34 am 554f6cb1: am 49237345: Add platform infrastructure for features.
Merge commit '554f6cb1c7433449257d07d57e3d36cacb48fc70'

* commit '554f6cb1c7433449257d07d57e3d36cacb48fc70':
  Add platform infrastructure for features.
2009-08-27 22:16:13 -07:00
Fred Quintana
54313453d5 am 820232af: am 5511c669: Merge change 23067 into eclair
Merge commit '820232af1b70bc20a24afedc7533a1068d733e64'

* commit '820232af1b70bc20a24afedc7533a1068d733e64':
  allow delaying after yielding
2009-08-27 21:52:34 -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
Fred Quintana
5c7aede8d6 allow delaying after yielding 2009-08-27 21:43:35 -07:00
Android (Google) Code Review
1e3483780c Merge change 23043 into donut
* changes:
  Revert "Remove third party support for Quick Search Box (aka global search)."
2009-08-27 18:32:27 -07:00
Karl Rosaen
590f63433c Revert "Remove third party support for Quick Search Box (aka global search)."
This reverts commit a647b7f29d65a7792cede74284e714b591337992.
2009-08-27 17:42:48 -07:00
Dianne Hackborn
05a7e9e347 am fef09e8f: am 1005569f: Merge change 23012 into eclair
Merge commit 'fef09e8f98f61d3d89a3890f5917061fd6a73015'

* commit 'fef09e8f98f61d3d89a3890f5917061fd6a73015':
  Fix issue #2084148: Define the format for the auto focus preview for barcode scanning
2009-08-27 17:02:50 -07:00
Dianne Hackborn
e5276a7474 Fix issue #2084148: Define the format for the auto focus preview for barcode scanning
Add new manifest/aapt support for specifying device features an application
requires.  The aapt badging now returns these (as well as uses-permission since
I need to look for those anyway); if an app doesn't explicitly request the
camera feature but does request the permission, then aapt will say that it has
requested both the basic camera feature as well as the autofocus feature.

Here's what you put in your manifest to say you need a camera but don't need
autofocus:

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-feature android:name="android.hardware.camera" />
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Here's what will be seen from aapt:

uses-permission:'android.permission.CAMERA'
uses-feature:'android.hardware.camera'
uses-feature-not-required:'android.hardware.camera.autofocus'

Change-Id: I4dd19cee0486cc54771f5bf14fc9db0e892115d5
2009-08-27 16:28:44 -07:00
Dianne Hackborn
145781c604 am 3d62b715: am fa526029: am f734e027: Merge change 22939 into donut
Merge commit '3d62b71514bdb1c7f6e75e3a6a5f1811d755a541'

* commit '3d62b71514bdb1c7f6e75e3a6a5f1811d755a541':
  Final Donut API list.
2009-08-27 14:45:22 -07:00
Dianne Hackborn
fa5260290f am f734e027: Merge change 22939 into donut
Merge commit 'f734e027bfed6c884e5f060c3291d3aeb5706dc8' into eclair

* commit 'f734e027bfed6c884e5f060c3291d3aeb5706dc8':
  Final Donut API list.
2009-08-27 14:40:51 -07:00
Jesse Wilson
8364788c61 am e9851927: am 0409cde3: Updating synchronized to match x-net changes
Merge commit 'e985192744283593163fdfb49faadedbdd188360'

* commit 'e985192744283593163fdfb49faadedbdd188360':
  Updating synchronized to match x-net changes
2009-08-27 13:36:47 -07:00
Jesse Wilson
0409cde360 Updating synchronized to match x-net changes 2009-08-27 13:31:04 -07:00
Dianne Hackborn
fa89b09cec am 3d937945: am b3b1ccfe: Merge change 22950 into eclair
Merge commit '3d937945a60da48a383a5a3de37583b35abf9c11'

* commit '3d937945a60da48a383a5a3de37583b35abf9c11':
  Change these string constants back to match donut.
2009-08-27 13:01:05 -07:00
Dianne Hackborn
fe240ecf85 Change these string constants back to match donut.
Unfortunately we are stuck with the donut ones, can't change these in Eclair
to be the more correct names.

Change-Id: Id8aaa2e90cd21631b18a36bea3755a63d0e6d577
2009-08-27 12:51:11 -07:00
Dianne Hackborn
6eccc39073 Final Donut API list. 2009-08-27 12:11:10 -07:00
Joshua Bloch
8ea776cbf2 Edit XML file to reflect HashMap and LinkedHash API. 2009-08-27 11:17:10 -07:00
Ben Murdoch
d497d87650 Pass the estimated size of new HTML 5 databases to the ChromeClient so it can use that amount to figure an initial default quota.
Change-Id:Ic9372b0c86472b42ba5d0b964aaff1e2bbfe3efa
2009-08-26 12:39:55 +01:00
Jeff Sharkey
534aa012b5 Mark all legacy contacts APIs as deprecated.
Now that we've merged ContactsContract and are relying on
compatibility mode, we're marking the previous public
contacts API as deprecated.

Fixes http://b/2076016
2009-08-25 17:27:15 -07:00
Jack Wang
fa5382208b Fix build break
- Introduced in 22109
2009-08-25 14:47:44 -07:00
Jack Wang
7aba54b2ed Fix bug 1546445: Correct spelling errors in API
- InstrumentationTestCase.injectInsrumentation
- AndroidTestRunner.setInstrumentaiton
2009-08-25 12:44:56 -07:00
Mike Reed
dbade9d6a0 expose runtime changes to gamma 2009-08-25 13:47:47 -04:00
Dianne Hackborn
4a51c20ce6 I am getting tired of the java doc warnings, so fix them.
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
2009-08-24 17:37:32 -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
Jean-Baptiste Queru
dd03c6135f resolved conflicts for merge of 081a136d to eclair 2009-08-21 12:59:04 -07:00
Anonymous Coward
081a136d25 Remove third party support for Quick Search Box (aka global search).
- @hides relevant APIs
- removes relevant javadoc
- enforces that only system apps can participate

note: general support is still there, will be easy to reenable when we are ready.
2009-08-21 12:47:14 -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
Fred Quintana
77709755b7 - add a reset to EntityIterator to allow it to go back to the beginning
- clean up the debug printing of SyncResult
2009-08-20 17:18:58 -07:00
Fred Quintana
8ada1c438a build fix 2009-08-20 15:08:08 -07:00
Fred Quintana
58b6d1be26 build fix 2009-08-20 14:24:36 -07:00
Fred Quintana
e0616ffb74 add a supportsUploading flag in the SyncAdapter description and honor it in the SyncManager 2009-08-20 13:52:22 -07:00