2087 Commits

Author SHA1 Message Date
Elliott Hughes
f63e21d9ba Fix build.
False-positive API change. (Removal of throws clauses for unchecked exceptions.)

Change-Id: I2c1fed74a5dc852ec1f3df72240bcfbdb6c77344
2011-01-12 17:13:40 -08:00
Carl Shapiro
1107383e02 Deprecate the allocation limit interfaces.
Allocation limits relied on conditionally compiled code in the virtual
machine that was disabled in released versions of Android.  As such,
these setter methods were glorified no-ops.  Now that the feature has
been removed from the allocator this interface is thoroughly obsolete.

Change-Id: Id7f9de37ecfece4b909e35f110e118e131457133
2011-01-12 16:56:48 -08:00
Brad Fitzpatrick
2e3908097b Merge "Unhide Content{Resolver,Provider}.call()" into honeycomb 2011-01-12 14:39:50 -08:00
Stephen Hines
a9b1b2a703 Merge "Unhide more of the RS APIs." into honeycomb 2011-01-12 14:39:11 -08:00
James Dong
068b41d5d4 Merge "Publish MediaMetadataRetriever.java as public API" into honeycomb 2011-01-12 14:31:34 -08:00
Stephen Hines
b11e3d2b0e Unhide more of the RS APIs.
Change-Id: I7ec5de42680a4184d3a1380ea7c35b6ba3cf13bf
2011-01-12 14:24:35 -08:00
Brad Fitzpatrick
534c84c1ce Unhide Content{Resolver,Provider}.call()
Change-Id: Ic7833b921f5a8e70ef7d565bfdf461e6e135ff1b
2011-01-12 14:19:19 -08:00
James Dong
11eab056dd Publish MediaMetadataRetriever.java as public API
o Removed setMode() methods and related mode constants
o Removed some of the unused the metadata keys
o Updated the javadoc

o part of a multi-project change.

bug - 2433195

Change-Id: I5ed167f1fd6a53cb143b7dc385b149431d434438
2011-01-12 14:14:11 -08:00
Gilles Debunne
54c38bf05d Merge "New QuickContactBadge holo style." into honeycomb 2011-01-12 14:07:26 -08:00
Jason Sams
8f597fdfac Merge "Cleanup bitmap uploads Implement standalone mipmap generation." into honeycomb 2011-01-12 13:30:41 -08:00
Jason Sams
f7086090cf Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
2011-01-12 13:28:37 -08:00
Dianne Hackborn
02e852f968 Merge "Make ProgressDialog a little less lame." into honeycomb 2011-01-12 12:59:27 -08:00
Alex Sakhartchouk
27d116085e Merge "Adding ability to load cubemaps from individual faces." into honeycomb 2011-01-12 11:53:42 -08:00
Dianne Hackborn
4389434c1d Make ProgressDialog a little less lame.
Change-Id: Ic3f1dd8ba32dd02d422ee6f05fff5541e54bb8a1
2011-01-12 11:17:17 -08:00
Michael Jurka
b609881fb0 Merge "Add sym_def_app_icon to mipmap directory" into honeycomb 2011-01-12 11:06:44 -08:00
Chet Haase
535d5edad2 Merge "New interpolator resources now found in interpolator/ directory" into honeycomb 2011-01-12 11:01:50 -08:00
Dianne Hackborn
6014527c35 Add "min size" facility to the Window class.
This allows us to have a new dialog theme that behaves like an alert dialog
for both Dialog and Activity versions.  Very useful with so many more things
being displayed as dialogs on our nice large screen.

Note I didn't change the existing dialog themes to have this behavior, since
it will probably break things.  Instead there is a new variation.  And the
DialogWhenLarge variations now use this for their dialog form, to fix many
of the real new dialogs we have that need this behavior.

Removed the public definition of the one alert dialog theme.  None of the
others have ever been public, this one shouldn't be.

Added new .Panel versions of the Holo themes, like we already had for the
original themes.

Changed the alert dialog layout to no longer use WeightedLinearLayout,
since the window now takes care of that.  This allowed for the removal
of the xlarge version of those layouts.

Change-Id: I0c8372bde25eb9af47404a719b3f07230baf73bf
2011-01-12 10:33:13 -08:00
Kenny Root
af604587c9 Add sym_def_app_icon to mipmap directory
The default activity icon was a drawable so different densities were
being stripped out during build time. Copying it to the mipmap
directory allows all different scales to be used.

Bug: 3325002
Change-Id: Id7138aa243ba11c02b33f0e3e9154569542592e8
2011-01-12 10:14:21 -08:00
Patrick Scott
d1737edc13 Do not merge.
Cherry picked:

Add an api to toggle content url access.

By default, WebView allows access to content providers on the system.  This
setting allows applications to turn off content urls.

Bug: 1196879
Change-Id: I49eaea6d7b9ccc3b3a4443d712222556087568c0
2011-01-12 12:42:51 -05:00
Chet Haase
efcceb856a New interpolator resources now found in interpolator/ directory
Change-Id: Ib08200d71fce1706a0c683df104f0ff3d777ca17
2011-01-12 07:41:31 -08:00
Christopher Tate
02d2b3ba9b API CHANGE: startDrag() now takes "int flags" instead of "boolean localOnly"
There will be, in the future, a flag (View.DRAG_FLAG_GLOBAL) that means
for the drag to be cross-application.  For now that flag constant is @hide
and furthermore the server-side implementation strips it, enforcing
local-only drags.

Change-Id: I8db840480ab90e18a5b8ecf29d62b4e6eafd405e
2011-01-11 18:30:23 -08:00
Dianne Hackborn
540f86aa42 Get rid of old ParcelFileDescriptor API.
Also some new debugging code in AsyncTaskLoader.

Change-Id: Ib13386b7862821cf0ee31b003bedef78f46240f1
2011-01-11 17:56:12 -08:00
Alex Sakhartchouk
dcc231955d Adding ability to load cubemaps from individual faces.
Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
2011-01-11 14:47:44 -08:00
Chet Haase
d865011473 All animator resources moved to res/animator
Change-Id: I9342ff21e9a15ba29da946e091343a6f8223c181
2011-01-11 12:50:24 -08:00
Gilles Debunne
923505803a New QuickContactBadge holo style.
The background is removed. A blue triangle is displayed on the lower right corner.
Now theme dependant.

Change-Id: I984ac5185039569bd378af9f15b59d11fd1b5c8f
2011-01-11 11:12:51 -08:00
Chet Haase
53ee3316bc Rename RGBEvaluator to ArgbEvaluator
Change-Id: Iee74b475960d623fa757349e4053bd7c58cf5734
2011-01-11 06:46:44 -08:00
Mike Lockwood
3459e27e5d un@hide android.os.Environment.isExternalStorageEmulated()
Change-Id: I35e7dc59763595523cb5af569e237bcff5cf1b49
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 22:12:31 -05:00
Joe Onorato
77bbf6f066 current.xml
Change-Id: I58cacb79f4d44a0cf90ddbe5efcdcb50f6db81ce
2011-01-10 17:35:21 -08:00
Joe Onorato
a85a91573a add ComponentInfo.isEnabled()
Change-Id: I5ce59f62dc0ce3ce446bdbe397d1515e43031d76
2011-01-10 17:26:39 -08:00
Mike Lockwood
f9a04233c1 @hide android.permission.WRITE_MEDIA_STORAGE
This permission is not needed for non-system or unbundled apps,
so we don't need it in the public API

Change-Id: I1a2a0349c6c5b7b5dc3104d69f4e39e95b878db9
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 19:59:02 -05:00
Romain Guy
3b703f2d11 Hide Canvas.getGL()
Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
2011-01-10 16:42:55 -08:00
Alex Sakhartchouk
fe852e216f Updating cubemap loading code.
Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
2011-01-10 15:57:57 -08:00
Romain Guy
d2c78b3972 Fix the build.
Change-Id: Ief8734697e8fdacb6fdbfdbd78793e06beb86d26
2011-01-10 15:01:13 -08:00
Jesse Wilson
eb97c0ddc0 Patch new JSON APIs with changes informed by GSON.
Change-Id: I86c12a123080cc06ab23d11d1563bb52c5902517
2011-01-10 12:56:31 -08:00
Gilles Debunne
b0db5940c9 Fix for an NPE in Account settings on long press.
Bug 3333512

Change-Id: Ief79e824b86b964598f00ef74c6b5c61c0730242
2011-01-10 10:00:37 -08:00
Brett Chabot
3b4fcbc9f1 Add ActivityManager#isRunningInTestHarness() public API.
Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
2011-01-09 16:31:11 -08:00
Jason Sams
67e3d206ca Hide and delete some code that should not be public.
Change-Id: Ibe201c235fc81ef1fecb120d6049d6e56222462c
2011-01-09 13:49:31 -08:00
Dianne Hackborn
247fe74c93 Implement issue # 3255887 could CursorLoader offer...
...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
2011-01-08 18:25:30 -08:00
Adam Powell
947f782411 Fix bug 3245465 - Themed dialog icons
Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
2011-01-08 13:09:51 -08:00
Jamie Gennis
fd6f39e147 Enable camera preview to a SurfaceTexture.
This change adds a public Java API to use a SurfaceTexture as the
destination of camera preview frames.

Change-Id: If537fed2df12c5c181e2af5f817985c1bda853fb
2011-01-07 17:40:24 -08:00
Jason Sams
fa445b9353 Cleanup subdata apis
Change-Id: I70d0d5e4ca2b42f3a9cbf854fe47917cee8f46df
2011-01-07 17:04:29 -08:00
Christopher Tate
36d4c3f02b Rename drag "thumbnail" to the drag "shadow"
No functional changes; just a rename of the relevant class/method/parameters.

Change-Id: I55d9ef7c2c17892b0bc99f5da622c281e006b53e
2011-01-07 16:30:44 -08:00
Gilles Debunne
0633549799 Removed XmlAdapters from frameworks.
Has been moved to samples.

Change-Id: Icc0530d78df9755a4a1fe9314fa557a91da408c6
2011-01-07 12:14:27 -08:00
Dmitri Plotnikov
cd3676e7b8 Adding AsyncTaskLoader.waitForLoader() for testing
Change-Id: I8a4c13d48c9deca70594be58beafb68f08da65ea
2011-01-07 09:23:10 -08:00
Romain Guy
171c592f0b New layers API for Views.
This API can be used to back a view and its children with either a
software layer (bitmap) or hardware layer (FBO). Layers have
various usages, including color filtering and performance
improvements during animations.

Change-Id: Ifc3bea847918042730fc5a8c2d4206dd6c9420a3
2011-01-06 18:34:30 -08:00
Jamie Gennis
6450ef8011 Update api/current.xml for SurfaceTexture.
Change-Id: Ideccc156e5c3811dd8066c70b048e1e7c4196f55
2011-01-06 16:35:51 -08:00
Jamie Gennis
6714efc5e0 Add the SurfaceTexture java class.
This class exposes to Java the application-side interface to the
SurfaceTexture C++ class.

Change-Id: I0dba42aad90257c7adbde6fa362658c0717b70d0
2011-01-06 16:05:14 -08:00
Michael Jurka
dab559a24f exposing isDirty() method on View
- needed in Launcher2 for implementation of caching views to bitmaps

Change-Id: I1dc1e8e4328106f88e1aa8e55ccb17b08fc9756b
2011-01-05 17:14:24 -08:00
Adam Powell
a39b987bb7 Fix Holo Spinners
Fix bug 3321329 - Spinner dropdown does not match widget width

Fix a bug in ListPopupWindow where setContentWidth was misbehaving

Add gravity setting to Spinner. This controls the positioning of the
selected item view within the widget. Holo default is left, legacy
default is center.

In dropdown mode, Spinners now WRAP_CONTENT width based on a limited
set of dropdown content. This means the dropdown can display a
reasonable amount of its content without clipping, while matching
width with the Spinner widget itself.

Change-Id: Ia17fd5f71526548408f4ad3b16bde536b0d3b207
2011-01-05 17:08:33 -08:00
Chet Haase
9e90a9953b Reuse display lists at the java level.
Objects are invalidated and reset instead of being nulled out
and recreated. This avoids creating small amounts of garbage for
the display list and canvas objects.

Change-Id: I464fac7ea8944c19ad6d03f13a95d9017e3f4262
2011-01-05 15:13:16 -08:00