1037 Commits

Author SHA1 Message Date
Jesse Wilson
b644f85263 Fixing a small API check issue to get the builds green
Change-Id: I46e3c39c653a151f5592ed8001f5d0ea972f53b2
2010-03-12 21:58:18 -08:00
Christopher Tate
3de55bcd34 API CHANGE: expose the backup-related ApplicationInfo flag masks
Fixes bug #2507582 by doing the following:

- Un-@hide the FLAG_ALLOW_BACKUP, FLAG_KILL_AFTER_RESTORE, and
  FLAG_RESTORE_ANY_VERSION mask constants in ApplicationInfo.  These
  correspond, respectively, to the <application> manifest tag's
  android:allowBackup, android:killAfterRestore, and
  android:restoreAnyVersion attributes.

- Remove the android:restoreNeedsApplication attribute and the
  corresponding FLAG_RESTORE_NEEDS_APPLICATION constant [which was still
  marked @hide].  We now always use the application's own Application
  class when performing a normal restore.  In the future when we support
  an externalized full-filesystem backup/restore operation, we will use
  an OS-defined agent class with a base-class Application instance, but
  this will not happen until a future release.

Also expands real documentation on the above ApplicationInfo constants;
that work is part of bug #2465360

Change-Id: I735d07a963ae80a01343637d83bef84e4c23fdcc
2010-03-12 18:11:00 -08:00
Ray Chen
e208377fba Add GPSProcessingMethod tag to ExifInterface.
Change-Id: I7575ae3195dc510e7020368794a66bb064839104
2010-03-11 17:41:04 -08:00
Adam Powell
bfb5d4b93b Added overscroll headers and footers to ListView.
These let developers set a drawable for the list header and footer
to be drawn above and below list content.

Change-Id: Ideddec854cb0bc11f83efb3c000c217844be82c7
2010-03-10 22:14:28 -08:00
Dianne Hackborn
2ee89ea288 Applications should -not- be able to set preferred activities.
I can't believe I let this slip through.  And in the SDK no less. :(

The APIs for setting preferred activities will now throw a security
exception when used.  This may break some apps, we'll see how it
goes.  If it is too bad we can just make these log and not throw
anything, but I would much prefer they throw an exception.

Change-Id: I3aed434750eef8b202aa9d5bd774a0121be521c6
2010-03-10 21:26:23 -08:00
Romain Guy
80ea00c839 Fix the build.
Change-Id: I7ed20f3d2fb1a80974fbbfe42fdd2f8f135ee401
2010-03-10 12:40:04 -08:00
Adam Powell
de8d0834fc Added ViewConfiguration.getScaledPagingTouchSlop()
Change-Id: I9ab5560c4b76d2b87e53d38b10ba8f5ec4868d85
2010-03-10 10:16:21 -08:00
Grace Kloba
2d17e1d212 Add an api to set WebView over scroll background.
If the WebView doesn't support zoom, or WebView does
not use wide viewport and horizontal is just fit,
don't do over scroll.

Fix http://b/issue?id=2498403
Fix http://b/issue?id=2497901
2010-03-09 13:14:04 -08:00
Wu-cheng Li
5b9bcda3a2 Unhide new preview callback methods.
bug:2358064
Change-Id: If9655ae8b7622ea6fc51e0054cfac7451962be66
2010-03-09 11:11:47 -08:00
Jean-Michel Trivi
eabb6df2fa Unhide API additions to AudioManager for AudioFocus support.
Change-Id: Ifc7d764703632eb91db11587675ae70ec14510e8
2010-03-09 09:15:19 -08:00
Dan Morrill
50ab63f583 Adding definitions & APIs for features that are newly-optional in FroYo.
This also refactors the files containing the features so that they are more
modular. Note that this also changes data/etc/Android.mk so that
required_hardware.xml is NOT copied automatically for all devices
anymore. Accordingly, that file is removed.
2010-03-08 19:28:28 -08:00
Amith Yamasani
156c435455 Move lockscreen settings to secure table to prevent tampering. b/2343673
Migrate old settings to secure on upgrade.
2010-03-08 15:42:48 -08:00
Dan Egnor
3eda9799a1 Add Debug.dumpService(), a public method for "dumpsys" functionality 2010-03-08 12:13:11 -08:00
Adam Powell
bf3e5b03aa Fix for badly rebased current.xml 2010-03-05 18:52:28 -08:00
Adam Powell
8f1bfe1a7c ListView#getCheckItemIds() deprecated for ListView#getCheckedItemIds().
ListView#getCheckedItemIds() now works more reliably.
2010-03-05 18:02:38 -08:00
Christopher Tate
4528186e0d Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2010-03-05 16:27:15 -08:00
Adam Powell
51c5a0c50e Added accessors for view overscroll modes 2010-03-05 11:28:16 -08:00
Dianne Hackborn
7299c41630 Refactor car mode.
Extract all UI behavior from dock observer and ACTION_DOCK_EVENT.

Also introduce a desk type to go along with the car type all through
the resource system, since we now need to have corresponding high-level
broadcasts for desk dock mode.  As part of that I also reworked some
of the logic for switching modes to all funnel through a single
update() call that looks all of the current state to decide what to
do next, and fixed various locking issues.

In addition I found there were bugs in the configuration change
handling causing us to only switch into the car mode config and
then never get out of it.  Unfortunately now that we are actually
changing the configuration for each mode change, the transitions
between them are really crummy as we restart all kinds of
activities. :(
2010-03-05 10:57:47 -08:00
Chih-Chung Chang
540bc0348a Unhide reconnect() in Camera. 2010-03-05 09:24:42 -08:00
James Dong
ff846009ec Unhide CamcorderProfile and CameraProfile Java API
bug - 2375978
2010-03-04 21:49:35 -08:00
Ray Chen
8e060c0f67 Update current.xml to fix build error. 2010-03-04 11:46:10 -08:00
Ray Chen
7a67f156fb Remove native options. 2010-03-05 03:10:28 +08:00
Ray Chen
055c986ab8 Add location provider name to gps-processing-method in EXIF header. 2010-03-05 03:03:48 +08:00
James Dong
0fc6bc4cac Clean up MediaRecorder for public Java SDK
- update comments and fix a check in setAudioChannels()

bug - 2362412
2010-03-03 17:01:32 -08:00
Amith Yamasani
c37cb24695 Feature to return an extra in the cursor that keeps the spinny going.
If a search provider returns an extra in the cursor with the key
SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, and the value true, then
the spinny in the search dialog will not stop, but the cursor
contents will still be used to update the results. This way, partial
search results can be sent while the user is informed that the search
is still in progress.
2010-03-03 15:46:48 -08:00
Bjorn Bringert
0b49ab5cae Add SearchManager.SUGGEST_COLUMN_TEXT_2_URL
This column overrides SUGGEST_COLUMN_TEXT_2. SearchDialog
and QuickSearchBox render the value of this column as a URL in
green.

Part of the fix for http://b/issue?id=2380681

Change-Id: I6735e0eba90e24c81f9e72520f257e5e61796d7a
2010-03-03 09:20:36 +00:00
Mike Lockwood
8754be5cac Hide GeocoderParams class from public API.
This does not need to be publc until we unbundle the network location provider.

Change-Id: Ib4109d2392624242eee33f271a8151588e3f0c56
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-02 19:39:50 -05:00
Vasu Nori
14b60e747c add warning in finalizer. deprecate protected members.
finalizer shoudl not be called ever. add a warning to say that.
adeprecate a few members in SQLiteProgram.java. they should not
have had protected access level. shoudl be package.
2010-03-02 11:50:39 -08:00
Brian Carlstrom
9147a0ed64 SslCertificate should use Dates - fixing api for build
Also fixing missing @deprecated noticed when updating API
2010-03-02 11:24:39 -08:00
Dianne Hackborn
ef05e076ce Fix issue #2448075: aapt doesn't fix up activity-alias android:targetActivity links
And related:

- The aapt tool now sets a resource configurations sdk level to match any configs
  that have been set (for example if you specify density your sdk level will be
  at least 4).
- New option to modify the targetPackage attribute of instrumentation.
- Clean up of aapt options help.
- Fix of UI type values to leave 0 for "unspecified".
- Make the UI mode config APIs public.
2010-03-01 20:42:14 -08:00
Wu-cheng Li
8cbb8f5e1f Unhide zoom API.
bug:2458926
2010-03-01 15:32:33 -08:00
Romain Guy
61c9d4b450 Let apps change the bottom strip in TabWidget.
Bug #2478088

Also expose a few useful APIs.
2010-03-01 14:23:23 -08:00
Grace Kloba
2036dbab17 Add a new WebCoreWorker thread to handle the tasks
which should not block either UI or WebKit. It handles
local file access, cache access and trim cache.

Move createCache, saveCache and most of getCache out
of WebCore thread so that slow IO and database will
not affect loading performance. getCache can be still
called from WebCore thread in the uncommon cases
like redirect and POST validation.

Move cache ticker from WebCore thread to WebViewWorkerThread.

Move setCookie from WebCore thread to WebViewWorkerThread.

Remove the unreferenced files in the cache directory
while trim cache.

Confirmed with our SQL expert, Vasu, there is no need
to wrap clearCache with end/startTransaction any more.

http://b/issue?id=2414792
http://b/issue?id=2475242
2010-03-01 10:36:15 -08:00
Dianne Hackborn
87bba1ee14 Move DeviceAdmin APIs to android.app.admin.
Also add ability for admins to hide themselves when not in use,
a facility for admins to not allow other admins to reset
their password, and debug dumping.
2010-02-26 23:32:48 -08:00
Mathias Agopian
61a449393c fix [2475541] Deprecate Sensor.TYPE_ORIENTATION
It's much better to use SensorManager.getRotation() instead.
2010-02-26 18:06:26 -08:00
Mike LeBeau
340acd870a Add an extra which allows to query *only* for the voice search language preference.
This will be used by e.g. LatinIME to avoid extra computation when this is all that's
needed (probably a common use case for this API).
2010-02-26 15:20:56 -08:00
Suchi Amalapurapu
1f9e1b4c37 Remove public variables in PackageManager
Dont invoke getInstallLocation for forward locked apps.
If INSTALL_ON_SDCARD is selected as default, forward locked
apps are not being installed because of conflicting flags.
2010-02-26 14:32:24 -08:00
Fred Quintana
1b487ec44b expose some sync control methods
- ActiveSyncInfo
- ContentResolver.addStatusChangeListener
  - SYNC_OBSERVER_TYPE_SETTINGS
  - SYNC_OBSERVER_TYPE_PENDING
  - SYNC_OBSERVER_TYPE_ACTIVE
- make the ContentService resilient to nulls passed in to the
  status change listener registration and unregistration calls

bug http://b/issue?id=2337197
2010-02-26 13:07:54 -08:00
Suchi Amalapurapu
0eec21d97d Add dialog to display storage users when enabling/disabling ums
Some error dialogs and related strings
MountService changes to follow unmount path when enabling ums.

Please note that MountService api setUmsEnabled does not return
error codes for now. This is a known limitation.
2010-02-26 12:48:21 -08:00
Joe Onorato
4c904a3bf3 fix the build. 2010-02-26 12:35:55 -08:00
Dianne Hackborn
5cb70b5415 Rename Display.getOrientation() to Display.getRotation().
Update various docs.
2010-02-26 11:23:24 -08:00
Bjorn Bringert
08bbffb049 Support CharSequence lists+arrays in Bundle+Intent
Fixes http://b/issue?id=2468093

Change-Id: Id82686f6ca8c9501f6db8a07018278a78ddacd05
2010-02-26 11:16:17 -08:00
Wu-cheng Li
24b326a897 Unhide exposure compensation API.
bug:2375993
2010-02-26 14:04:43 +08:00
Dianne Hackborn
2269d1572e Re-arrange android-common so framework no longer links with it.
This is the framework part, moving classes around so the framework
no longer needs to link to android-common.  Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
2010-02-25 11:39:33 -08:00
Christopher Tate
3dda518a4f Add 'restoreAnyVersion' attr for apps that want to restore "future" data
If a backup-participating app sets android:restoreAnyVersion="true" in its
manifest <application> tag, then its agent will be invoked for restore
even if the available dataset was created by a later version of the app
than is currently installed on the device.  This will not typically be
a problem for third party applications, since for them the installation
and initial data restore are tightly coupled, but it can cause serious
problems for applications which are both preinstalled on the system
partition and overridden by later updates.  The primary difficulty
that this new attribute addresses is this:

1. User buys a Nexus One, Market self-updates, and the user installs some apps.
At this point the backup data on the server may indicate that the version of
Market which originated its bookkeeping is newer than the stock N1 Market app.
2. User loses their phone, and buys a replacement N1.  At setup time, Market
has not yet had a chance to self-update, so when the restore comes in, it's
tagged as being from "the future" and so the restore is refused.  No apps get
reinstalled.

Bug: 2442127
Change-Id: I076a9553dc613e5c3189350e778315718ed1ed2b
2010-02-24 17:23:54 -08:00
Erik
eebc8e2e8f b/2441327 Added add account intent to public api.
Added ACTION_ADD_ACCOUNT intent and EXTRAS_AUTHORITIES strings to the public
api so that Calendar can send users to the add account screen directly instead
of via the sync settings page.
2010-02-24 11:05:14 -08:00
Andy McFadden
520f87f595 Fix build.
This puts the deprecation status change in the right place.
2010-02-24 10:10:41 -08:00
Andy McFadden
c4e1bf7282 Add class init stats to alloc counters (API change).
Add calls to retrieve class initialization stats via the allocation
count mechanism.

For bug 2461549.
2010-02-24 07:37:38 -08:00
Gloria Wang
2e1818a4d1 New API on VideoView widget to suspend/resume a session. Do not release the MediaPlayer client for video suspending/resuming. 2010-02-23 17:05:44 -08:00
Tobias Haamel
29274dc363 Also fix the API description file after UI_MODE_SERVICE rename. 2010-02-22 22:27:41 +01:00