1026 Commits

Author SHA1 Message Date
Michael Chan
a969dc4ea4 Unhiding Rfc822Tokenizer.tokenize(CharSequence text, Collection<Rfc822Token> out)
Note that Rfc822Tokenizer.tokenize(CharSequence text) is already in the SDK
and it just wraps the version I am unhiding.

Change-Id: I1ac3b405a04df960fc1e65ca4797d6f5adf85dc4
2010-02-04 14:51:28 -08:00
Ken Shirriff
5c19aeca3d API review: TrafficStats: rename Pkts to Packets
Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(),
getMobileRxPackets()

bug 2420318
2010-02-04 14:37:21 -08:00
Romain Guy
46c53129c6 Rename GestureUtilities to GestureUtils. 2010-02-04 14:27:00 -08:00
Bjorn Bringert
da5c1bd444 Remove source selector from SearchDialog
Fixes http://b/issue?id=2419208

This reverts commit 32d580c360da0a0f15e7a080f4ebd0b7b514fe4c.

Change-Id: I5d8821d52badf3e0347230b86671f8ceb65a663d
2010-02-04 19:34:19 +00:00
Ben Murdoch
3141e0a62a Add new ConsoleMessage class that adds more information (such as the Message Log Level from WebCore) and a new overload of onConsoleMessage that takes this as a parameter.
This change requires a corresponding change in external/webkit.

BUG=2401755

Change-Id: Iea2c58e93172240f162d8ad57eb2c8f2352f8162
2010-02-04 10:44:18 +00:00
Wu-cheng Li
5d9661be8e Add getAttributeDouble() and focal length tag.
bug:2375989
2010-02-04 16:11:38 +08:00
Doug Zongker
74885efc8c expose bootloader & radio versions, hardware string in API
Adds three new device-version-related strings to android.os.Build.

Change-Id: I832f87f26e50a649249c58037f563426f3bfc4bf
2010-02-03 10:37:29 -08:00
Ray Chen
355ca575a9 Add GPS_TIMESTAMP and GPS_DATESTAMP tag to ExifInterface. 2010-02-03 11:34:29 +08:00
Adam Powell
216bccf804 Updated GestureDetector to ignore multitouch if requested by the app
or if targetSdkVersion >= Froyo. Made ScaleGestureDetector
public. current.xml API updates for gestures.
2010-02-02 17:52:29 -08:00
San Mehat
556d350a4d StorageManager: API_CHANGE: Move StorageManager into android.storage
Signed-off-by: San Mehat <san@google.com>
2010-02-02 12:56:45 -08:00
San Mehat
c9d8175f40 Context: API_CHANGE: Add support for retrieving StorageManager
Signed-off-by: San Mehat <san@google.com>
2010-02-02 11:17:47 -08:00
Grace Kloba
2df9a91ff5 Hide the android.webkit.CallbackProxy class from the API. This is a android.webkit package class and internal to our implementation.
Although not strictly a published API (the class does not appear in the docs), it has found it's way into the API through
the public, subclassable android.webkit.JsResult class where it is a protected member.

Based on changed from Ben.
2010-02-02 10:30:23 -08:00
Mike Lockwood
56fcd69b14 Remove unused method LocationProviderImpl.isEnabled().
This should have been removed in my previous change.

Change-Id: I3a080888f995e77a61e3ebf1c194ccd65686af1e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-01 15:34:52 -05:00
Wu-cheng Li
6c8d276073 Add focal length and view angle API.
bug:2375989,2375987
2010-01-30 20:36:04 +08:00
Wu-cheng Li
4c4300c712 Add Camera.getSupportedThumbnailSizes() and Size.equals().
bug:2375986
2010-01-30 19:44:52 +08:00
Dianne Hackborn
9327f4f671 More device policy work: clarify password modes, monkeying.
Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
2010-01-29 17:16:02 -08:00
Ray Chen
bf124e7e41 Unhide ThumbnailUtils to support Camera unbundling.
http://b/2375978
2010-01-29 14:30:05 -08:00
Mike Lockwood
ef73162887 Support for triggering the lockscreen while the screen is on:
Add new ALLOW_LOCK_WHILE_SCREEN_ON window manager flag, which when set
causes the window manager to put up the lockscreen after the
normal screen timeout has elapsed.

Add plumbing to pass PowerManager.userActivity() to the window manager policy.

Change-Id: I05adc52bad39c56031a08e8ec3cbcf5c2d9b9827
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-01-29 17:05:04 -05:00
Vasu Nori
6eb7c45a8f make SqliteDatabase ConflictAlgorithm and associated methods public.
SQLiteDatabase.java has ConflictAlgorithm which allows callers to specify
actions to take when insert or update causes constraint violations.
These actions are documented at http://www.sqlite.org/lang_conflict.html.

why make these public? usecase is the following:
Gmail has a table with a column "_id" being the integer primary key and
they let sqlite assign key values to the column.
but there is another UNIQUE key column (message_id) in the table.
so an insert could fail due to constraint violation on the message_id column
(i.e., not on the primary key). and when that happens, they would like to
get the value of _id that caused constraint violation.

currently hidden method insertOnConflict() already provides the above
functionality. that means exposing ConflictAlgorithm also.
2010-01-29 12:24:28 -08:00
Dianne Hackborn
254cb446fa More device admin.
- Clean up device policy manager APIs.
- Implement lockNow().  For now this just turns the screen off to lock the device.
2010-01-28 13:15:57 -08:00
Grace Kloba
6790918497 Use a single EXTRA_HEADERS intent. 2010-01-28 09:19:10 -08:00
Wei-Ta Chen
c58ffe8253 Unhide YuvImage, which supports compressing a YUV rectangle region to JPEG.
Bug: 2285598
2010-01-28 15:48:54 +08:00
Jesse Wilson
f9e573ec33 Updating Android's API XML files to reflect our new XML APIs!
The effective change is here: https://android-git.corp.google.com/g/38533
It updates DOM to v3 and adds several javax.xml packages to be compatible
with Java 5.
2010-01-27 22:30:38 -08:00
Dianne Hackborn
d47c6ed4a9 Bite the bullet and add support for multiple device admins. 2010-01-27 17:31:56 -08:00
Chih-Chung Chang
e7bd22a9d9 Unhide camera api for set display orientation. 2010-01-27 17:05:21 -08:00
Romain Guy
43c9cdffb6 New View.dispatchDisplayHint() API.
Bug #2399147

This new API will be used by scrollable containers to tell children that they
are/are not displayed. This will allow lists to hide their filter popup window
for instance.
2010-01-27 15:53:40 -08:00
Dianne Hackborn
8ea138cbf1 More work on device admins:
- You can now show a dynamic message to the user when asking to
  have your DeviceAdmin added.
- A DeviceAdmin can now provide a warning message that is displayed
  before a user disables it.
- Better ordering (and text) of the policy warnings.
- New API to set the maximum failed password attempts before the device
  wipes itself.
- We now store the number of failed unlock attempts in persistent
  storage.
- New managed dialog APIs that will be used by the settings app.

Also a little bit of cleanup as I was working on this - removed the
long unused MailboxNotAvailableException, fixed a java doc in Messenger.
2010-01-27 13:51:53 -08:00
Grace Kloba
d0d9bc2f2f Add request header support for the Browser/WebView.
QSB can use this instead of POST to send the location
data. After QSB makes the switch, we should also
remove the POST_DATA intent which is hidden.

Add loadUrl(String url, HashMap extraHeaders) to
WebView so that the caller can send the extra http
headers.

Remove "inline:" as no one is using it and it is a
hidden feature.

Part 1 of 3-project checkin.
2010-01-27 12:28:11 -08:00
Romain Guy
e6be0f7263 Fix the build. 2010-01-26 17:05:11 -08:00
Dianne Hackborn
8aa2e8939c More device admin work: description, policy control.
There is now a description attribute associated with all components,
that can supply user-visible information about what the component does.
We use this to show such information about device admins, and wallpapers
are also updated to be able to show this in addition to the existing
description in their meta-data.

This also defines security control for admins, requiring that they
declare the policies they will touch, and enforcing that they do
so to be able to use various APIs.
2010-01-26 12:28:15 -08:00
Chih-Chung Chang
017091669a Unhide brightness constants to help unbundle Camera. 2010-01-26 12:08:21 -08:00
Mark Vandevoorde
a3d5e0c5e3 Unhide the secure setting for LocationProviderEnabled
The unbundled NetworkLocationProvider needs to get/set the enabled bit
from the settings database.
2010-01-26 08:42:10 -08:00
Daniel Sandler
9d8b876c61 Add android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS.
Maps to "android.settings.DEVICE_INFO_SETTINGS", which
launches the DeviceInfoSettings activity in Settings.
2010-01-26 09:59:35 -05:00
Valentin Kravtsov
79896bd123 Adding Recognition Service and Listener wrappers
Change-Id: Ib5068fb6d42b6752d09b0828964b6cbe92d015d3
2010-01-26 11:23:52 +00:00
Mike LeBeau
199566045d Unhide RecognizerIntent.ACTION_VOICE_SEARCH_SETTINGS, which our voice search
(or other voice search implementations) can use to implement settings in the
system settings.
2010-01-25 21:48:08 -05:00
Fred Quintana
307da1a46b enhance the sync manager backoff logic and add support for retry-after
moved SyncQueue and SyncOperation into their own top-level classes
to ease maintainability and testing6

removed some dead code
2010-01-25 16:41:58 -08:00
Yang Li
c7f930f5a9 Made GestureUtilities's several methods public; Changed GestureStroke's smoothening threshold. 2010-01-25 15:15:55 -08:00
Kenny Root
d1ab01682b Add extra resources field for ApplicationInfo
Allow ApplicationInfo to track multiple files it wants to use as
resources by adding a string array to its public definition.

Change-Id: Ieffc4b1755270520b59c4e5a3c084e86aef02346
2010-01-22 17:05:50 -08:00
Kenny Root
3214839482 Unhide resource-related API calls in Context
Context hides methods related to the underlying functioning of
resources which are readily available from the ApplicationInfo
object.  This change allows getting access to information
without having to make PackageManager calls for it.

Change-Id: Icf6a9da652dad8175bd11b5cd81a924181070373
2010-01-22 16:56:26 -08:00
Paul Westbrook
68f2f547f5 Bug 2330111
Make NumberPicker public

Made setCurrent() more robust, as the value needs to be within the range
specified earlier. setCurrent() will now throw an exception
if the specified doesn't fall in the range
2010-01-21 16:56:57 -08:00
Dianne Hackborn
df83afaf29 More device policy manager / admin work.
Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
2010-01-21 14:30:57 -08:00
Justin Mattson
ef340357ce NEW_API: Declare an ACTION_SEARCH_SETTINGS constant in android.provider.Settings so that apps can cause this system setting group to be opened directly.
The Settings app already responds to this action it just was not exposed in the platform API.
2010-01-21 11:40:58 -08:00
Dianne Hackborn
d68478467e First pass at new device policy and administration APIs.
This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes.
See the java docs for each on documentation on them.  Basically: a DeviceAdmin
is what you derive from to administer a device; DevicePolicyManager is what you
use to apply and check your policy requirements and perform other administration
tasks.
2010-01-17 15:10:24 -08:00
Ficus Kirkpatrick
130a8b71bb Add Dialog.setOnShowListener() to the public API. 2010-01-15 11:35:06 -08:00
Fred Quintana
3084a6f801 rename testHasFeatures to hasFeatures 2010-01-15 11:05:44 -08:00
Nicolas Catania
b8a2aafdef New method to return the last dialed number
Bug:2227429
2010-01-15 10:41:56 -08:00
Nicolas Catania
c5dfa70410 Revert "New method to return the last dialed number"
This reverts commit ac835c94b81c9497404a27af4da9c957e5c82045.
2010-01-15 09:52:54 -08:00
Nicolas Catania
ac835c94b8 New method to return the last dialed number
Bug:2227429
2010-01-15 08:19:45 -08:00
Vasu Nori
e495d1f74a fix a bug in compiled-sql caching & hide public api setMaxSqlCacheSize
this is a clone of https://android-git.corp.google.com/g/#change,35174.
if the cache is full to its capacity and if a new statement is to be cached,
one of the entries in the cache is thrown out to make room for the new one.
but the one that is thrown out doesn't get deallocated by SQLiteProgram
because it doesn't know that it should.
fixed this by having SQLiteProgram finalize its sql statement in
releaseReference*() methods, if the statement is not in cache.
2010-01-14 15:22:58 -08:00
Bjorn Bringert
55f3ac5f29 Expose SearchManager constants for global search
This change exposes some constants that are needed for
starting the global search activity (QuickSearchBox):

- SearchManager.INTENT_ACTION_GLOBAL_SEARCH
- SearchManager.EXTRA_SELECT_QUERY

Change-Id: I2f1f10070f502a8d5b644e78c03837d5d8b43486
2010-01-14 20:56:59 +00:00