2344 Commits

Author SHA1 Message Date
Gilles Debunne
33a9f9bd3a am 91736984: am 58f750ad: Merge "Fix for an NPE in Account settings on long press." into honeycomb
* commit '917369844f83604e528bee49ba042a2d1fe32509':
  Fix for an NPE in Account settings on long press.
2011-01-10 10:18:22 -08:00
Gilles Debunne
917369844f am 58f750ad: Merge "Fix for an NPE in Account settings on long press." into honeycomb
* commit '58f750ad145e6920c1c75bed8b333e54d78f3fed':
  Fix for an NPE in Account settings on long press.
2011-01-10 10:15:48 -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
Nick Pelly
b4003bf73e Change Tag.getTechnology(NfcAdapter, int) to NfcAdapter.getTechnology(Tag, int)
The later feels less clumsy.

Change-Id: I50f29aef23d2993dcfd25f4c4f2cb0d77bdc0610
2011-01-10 17:28:03 +11:00
Jeff Hamilton
0091091a3c am e3db3d62: Merge commit \'525f953b\' into manualmerge
* commit 'e3db3d6209c234e032775079a1e1489478dabf86':
  Make the new NFC APIs public.
2011-01-09 19:04:15 -08:00
Jeff Hamilton
e3db3d6209 Merge commit '525f953b' into manualmerge
Conflicts:
	api/current.xml

Change-Id: I6cbde67b8da6b85def6e3ddd985b0e04edf279a7
2011-01-09 21:01:56 -06:00
Brett Chabot
8cff70eddc am d320877f: am 3b4fcbc9: Add ActivityManager#isRunningInTestHarness() public API.
* commit 'd320877f32ddfc70b10457e0ea1494f6ef1f544b':
  Add ActivityManager#isRunningInTestHarness() public API.
2011-01-09 16:38:08 -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
41a40bf0af am 70ff3085: am ccf9d10b: Merge "Hide and delete some code that should not be public." into honeycomb
* commit '70ff30855ebef67b7b5eef9453022779ddf4c5df':
  Hide and delete some code that should not be public.
2011-01-09 14:01:55 -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
Kenny Root
6c4d904851 Add the {get,set}PackageObbPaths calls to API
Add getPackageObbPaths() and setPackageObbPaths() to the public API.

Bug: 3214719
Change-Id: Icb9f2f92f8c59bb3d31317f609854e81abbd1449
2011-01-09 13:20:28 -08:00
Dianne Hackborn
7079ef0824 am 5ef0a153: am 247fe74c: Implement issue # 3255887 could CursorLoader offer...
* commit '5ef0a153f01362a3263d3cd608ece09cc67377df':
  Implement issue # 3255887 could CursorLoader offer...
2011-01-08 18:29:19 -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
dfcd15b1aa am 6de1301b: am 947f7824: Fix bug 3245465 - Themed dialog icons
* commit '6de1301b492a1d8450fa61fcff6a3e34437b8891':
  Fix bug 3245465 - Themed dialog icons
2011-01-08 13:24:49 -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
37c45fa415 am fd6f39e1: Enable camera preview to a SurfaceTexture.
* commit 'fd6f39e147dc077139a41b9c2a4039fbaa20224e':
  Enable camera preview to a SurfaceTexture.
2011-01-08 04:40:19 -08:00
Jason Sams
47a456a32c am fa445b93: Cleanup subdata apis
* commit 'fa445b9353972735d8d65e8a936786b1afe9886d':
  Cleanup subdata apis
2011-01-08 04:39:41 -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
627bf68e0e am c5483785: Merge "Rename drag "thumbnail" to the drag "shadow"" into honeycomb
* commit 'c548378562de67c0050f140fc6e7520444f7e8f2':
  Rename drag "thumbnail" to the drag "shadow"
2011-01-07 16:39:56 -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
7e0bb6d9aa am c43d13f4: Merge "Removed XmlAdapters from frameworks." into honeycomb
* commit 'c43d13f495f59bbef6ba439afc4da035a7520647':
  Removed XmlAdapters from frameworks.
2011-01-07 12:45:22 -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
5edd2a2f27 am cd3676e7: Adding AsyncTaskLoader.waitForLoader() for testing
* commit 'cd3676e7b835653b04d4f66251a63749e7603f5b':
  Adding AsyncTaskLoader.waitForLoader() for testing
2011-01-07 09:36:43 -08:00
Dmitri Plotnikov
cd3676e7b8 Adding AsyncTaskLoader.waitForLoader() for testing
Change-Id: I8a4c13d48c9deca70594be58beafb68f08da65ea
2011-01-07 09:23:10 -08:00
Romain Guy
c7715def4c am 424a1bb0: Merge "New layers API for Views." into honeycomb
* commit '424a1bb09b763de298ff9141a45403dc76857c10':
  New layers API for Views.
2011-01-07 00:29:26 -08:00
Jamie Gennis
85c83b4d87 am e861d00f: Merge "Update api/current.xml for SurfaceTexture." into honeycomb
* commit 'e861d00fc30ecf5feab8b05c054e294a601573ee':
  Update api/current.xml for SurfaceTexture.
2011-01-07 00:28:38 -08:00
Jamie Gennis
f22c1708d7 am d559ebbc: Merge "Add the SurfaceTexture java class." into honeycomb
* commit 'd559ebbc3dd1a6b4b1bbecd30dd381b0b0328361':
  Add the SurfaceTexture java class.
2011-01-07 00:28:15 -08:00
Jeff Hamilton
525f953bb1 am 0aea1836: Merge "Make the new NFC APIs public." into gingerbread
* commit '0aea1836152da049273e581051a878381dcbd73d':
  Make the new NFC APIs public.
2011-01-06 20:28:52 -08:00
Jesse Wilson
07481ccd1d Deprecate a method that formats only IPv4 addresses.
Anyone calling this method is probably storing IP addresses
in an int, which doesn't make sense anymore.

Change-Id: Iba535b66f6cff47ce07b5ecc6427e3b2fd846998
2011-01-06 19:33:00 -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
Jeff Hamilton
be372d6462 Make the new NFC APIs public.
Change-Id: Ia0acd9759d67683eaf1dc199dc2cc55e16a98e77
2011-01-06 13:18:34 -06: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
Jeff Brown
64da12ab1f Add dispatch key shortcut window callback.
Enables Activities and Dialogs to implement key shortcut behavior.
Useful for global key shortcuts that are not bound to the focused
view or to a menu.

Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
2011-01-05 14:51:24 -08:00
Dianne Hackborn
f31161a0e7 Add new "animator" and "interpolator" resource directories.
First phase, allowing apps to move over to the new names.

Change-Id: Ia16f3e2383e4a6599a0011d0464f0aacb1ce9207
2011-01-05 14:12:55 -08:00
Gilles Debunne
3dbf55c3a2 TextView's color transparency is taken into account.
Unless it has a background, the TextView will be able to support
alpha (text, cursor and highlighted text colors).

Background colored spans should be detected and should also multiply
their alpha by mCurrentAlpha.

Bug 3144861

Change-Id: If640895b8c0b25dc00b909a0a118b68fac0cfd76
2011-01-05 12:03:33 -08:00
Adam Powell
3f476b3404 Revisiting ActionBar API and layout.
Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
2011-01-05 11:41:26 -08:00
Leon Scroggins
571354fd29 Do not open the keyboard when opening Find from CAB.
Bug:3312049

Do not start Find on page if the action mode fails to
start.  Clean up showFindDialog.

Requires a change to packages/apps/Browser

Change-Id: I204315665d3bf9f3ac78e78c4059c5a6f24695db
2011-01-05 13:31:02 -05:00
Jason Sams
a23d4e792c unhide renderscript
Change-Id: I44dd19aec0a994316da22ea8bea01b9962f54680

api update

Change-Id: I77f5365b8b7a919cd572ceb65a9ab3871b9495d0
2011-01-04 22:19:44 -08:00
Joe Onorato
8513dd5815 fix the build
Change-Id: I49263df9fdc90cbecacbe83e1347b37927e8bbc2
2011-01-04 18:48:35 -08:00
Gilles Debunne
d434d2334d MaxLines is respected in TextViews, even when ellipsize is set to end.
Bug 3322607

Re-applying the revert that fixed the ANR (https://android-git.corp.google.com/g/#change,87129),
whith an updated here value that seems to fix the problem.

This layout code is pretty involved, with destabilizing variable names and
uses. Althought I tested it, this fix is not 100% garanteed.

Change-Id: I1f4b09b329fb8a328ae8ab26ae472e343453beda
2011-01-04 18:05:53 -08:00
Carl Shapiro
b1c36cdaf1 Update the API to reflect the removal of the external reference API.
Change-Id: I824652d06b5cc3f9c6219cc5ec1f7fdf5cc36bfe
2011-01-04 17:55:27 -08:00
Dianne Hackborn
87121accdb Some new API cleanup.
- Tweak Fragment docs to match new sample code.
- Make some new attributes public.
- Hide all of the XmlAdapter stuff, since it is not actually being used.

Change-Id: Iae2062f91d1ca0c6b1d656ae948417d3d048482f
2011-01-04 17:42:01 -08:00
Eric Hassold
a5af5d6b12 Add support for downgrading database version in SQLiteOpenHelper
Provide an API to allow application to support downgrade in databases
managed with SQLiteOpenHelper. Since onUpgrade() is now called only
if requested version is newer than current one, this adds support for
a similar onDowngrade() method, so customers can implement graceful
downgrading. If no downgrade method is implemented by caller, this
fallback to current behavior by throwing an exception.

Bug: 1609474
Change-Id: I0e0166984d4a700b1c43ce780b91244bc2fc87a6
2011-01-04 16:55:27 -08:00
Carl Shapiro
b596198d8d Remove functionality related to external allocation tracking.
The android.os.Debug class exposed two interfaces related to external
allocation.  The first interface provided a counter of global external
allocation events.  This change makes the global counter getters
constantly return 0 and stubs out the counter setters.  The second
interface attempted to provide a counter of per-thread external
allocation events.  That interface was never implemented.  This change
makes the per-thread counter getters constantly return -1 and stubs
out the setters.

Change-Id: I240fe9bf05297a83607a4350d40d20581e2a9e2f
2011-01-04 15:51:33 -08:00
Jesse Wilson
4c2e0f6f3b Update API of PropertyChangeSupport, which is no longer synchronized.
Change-Id: I0bc99a17030cc676f5a917509311727e7a865d8f
2011-01-04 13:32:46 -08:00