278 Commits

Author SHA1 Message Date
Romain Guy
6a1ae64f77 Fix another HTML formatting in android.os.AsyncTask 2009-05-02 22:52:17 -07:00
Android (Google) Code Review
8d121ce945 Merge change 917 into donut
* changes:
  Fix HTML formatting in android.os.AsyncTask
2009-05-02 22:42:00 -07:00
Romain Guy
b97aec64be Fix HTML formatting in android.os.AsyncTask 2009-05-02 22:41:32 -07:00
Android (Google) Code Review
821427eac7 Merge change 847 into donut
* changes:
  Config: Deprecate most fields, and hook into ConfigBuildFlags
2009-05-01 18:32:46 -07:00
Dave Bort
52fa7c2afd Config: Deprecate most fields, and hook into ConfigBuildFlags
Copy 3.xml to 4.xml, and patch 4.xml to deal with the fact that
Config.DEBUG's value is no longer actually fixed.  We don't want
to modify 3.xml directly, because it's the official cupcake API.

Update current.xml to reflect the differences between 3.xml and 4.xml
and to reflect the new deprecation states.

The deprecated fields should be @hidden if possible before the
next API release, but it can't be done yet because there are
SDK-linked platform apps that use some of the deprecated fields.

Signed-off-by: Dave Bort <dbort@android.com>
2009-05-01 17:47:13 -07:00
Android (Google) Code Review
854c8c78c1 Merge change 896 into donut
* changes:
  make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
2009-05-01 16:32:21 -07:00
Karl Rosaen
743ae65992 make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
before, it always computed the height based on the text view itself being the anchor.  This fixes the clipping bug
in the search dialog.
2009-05-01 14:15:11 -07:00
Romain Guy
9a81736176 Add the ability to specify the onClick handler with XML. The new android:onClick attribute defines the name of the method in the Activity to invoke when the button is clicked. The method has to be public and get one View parameter. 2009-05-01 10:57:14 -07:00
Android (Google) Code Review
dc30119c12 Merge change 842 into donut
* changes:
  Fixes #1712631. Whenever a View loses focus/selection, reset its pressed state.
2009-04-30 17:58:28 -07:00
Romain Guy
a2431d0ba2 Fixes #1712631. Whenever a View loses focus/selection, reset its pressed state. 2009-04-30 17:57:47 -07:00
Android (Google) Code Review
2bc9e13965 Merge change 841 into donut
* changes:
  TypedProperties: add getStringInfo() to help deal with null strings
2009-04-30 16:31:00 -07:00
Android (Google) Code Review
52a3cb53dd Merge change 840 into donut
* changes:
  TypedProperties: change the file format to be a subset of Java
2009-04-30 16:30:14 -07:00
Android (Google) Code Review
980d12b13b Merge change 838 into donut
* changes:
  Fix typo in exception message and add a new exception if the user tries to use the same child as both the handle and content for the SlidingDrawer.
2009-04-30 15:35:28 -07:00
Romain Guy
8a342a3cc0 Fix typo in exception message and add a new exception if the user tries to use the same child as both the handle and content for the SlidingDrawer. 2009-04-30 15:31:41 -07:00
Marco Nelissen
d859331229 Don't crash when /proc/wakelocks can't be opened. Might make board bringup easier.
Verified with simulator, which doesn't have /proc/wakelocks
2009-04-30 14:48:49 -07:00
Christopher Tate
c114eb55b4 Hide the backup stuff for now
Also adjust based on comments:
+ changed service intent string to conform to usage guidelines
+ only publish the IBackupService binder when invoked with the right
  intent action
+ docs tweaks
2009-04-30 12:40:19 -07:00
Android (Google) Code Review
021dce4198 Merge change 811 into donut
* changes:
  Add android.backup.BackupManager
2009-04-30 11:38:54 -07:00
Christopher Tate
a8bf815c61 Add android.backup.BackupManager
Also tweak the dataChanged() api to have the client supply a package name.  We
don't necessarily TRUST this, but we use it to narrow the set of packages requesting
a backup pass, no longer blithely scheduling a pass for all packages associated
with the caller's uid.
2009-04-30 11:36:21 -07:00
Android (Google) Code Review
a039d465a8 Merge change 792 into donut
* changes:
  Allow access to global search by pressing the hard search button again within in-app search. If within in-app search and toggled out to global search, pressing the hard search button will take the user *back* into in-app search too.
2009-04-30 10:07:39 -07:00
Mike LeBeau
b3aab69581 Allow access to global search by pressing the hard search button again
within in-app search. If within in-app search and toggled out to global
search, pressing the hard search button will take the user *back* into
in-app search too.
2009-04-30 09:45:53 -07:00
Dan Bornstein
5fcfcd0f34 am b4c218e: AI 147994: First cut of CharsetUtils, a utility class that a
Merge commit 'b4c218eafd382da778bcc0006de9b8fce267a9cd' into donut

* commit 'b4c218eafd382da778bcc0006de9b8fce267a9cd':
  AI 147994: First cut of CharsetUtils, a utility class that aims to
2009-04-29 23:31:38 -07:00
Mitsuru Oshima
d4ed049672 Merge branch 'readonly-p4-donut' into donut 2009-04-29 17:15:14 -07:00
Mitsuru Oshima
dffbb4dbce AI 148024: fix NPE when there is no history
Automated import of CL 148024
2009-04-29 17:13:46 -07:00
Dave Bort
4b0ebef18d TypedProperties: add getStringInfo() to help deal with null strings
Signed-off-by: Dave Bort <dbort@android.com>
2009-04-29 17:09:56 -07:00
Dave Bort
5b6f8d865d TypedProperties: change the file format to be a subset of Java
Types and constants are now case-sensitive.
Types come first.
Newlines are ignored, but semicolons are required.
Comments are now Java-style, not sh-style.
unset() now looks like a method instead of a pseudotype.

Signed-off-by: Dave Bort <dbort@android.com>
2009-04-29 17:08:08 -07:00
Christopher Tate
487529a70c First baby steps towards settings backup
This change adds a sketched outline of the backup system architecture, with
all of the major pieces represented other than client-side helpers for
specific types of data.  IBackupManager and BackupService are public so that
we can write test apps against SDK-domain symbols from the outset.

What code exists in this change hasn't been tested and may crash.  It's the
beginnings of the real implementation but of course is barely begun.
2009-04-29 14:49:30 -07:00
Android (Google) Code Review
9ae8873ed8 Merge change 617 into donut
* changes:
  Allow caller-supplied column aliases in queries even when a projection map is used.
2009-04-29 13:31:13 -07:00
Android (Google) Code Review
649b1c6ec3 Merge change 736 into donut
* changes:
  CheckedTextView is abstract but can be inflated from XML. Let's be consistent and allow it to be used from Java code as well by making it non-abstract.
2009-04-29 13:06:31 -07:00
Android (Google) Code Review
efae672d73 Merge change 725 into donut
* changes:
  Add 'includeInGlobalSearch' attribute to searchable meta-data.
2009-04-29 13:03:47 -07:00
Bjorn Bringert
c1f4096064 Remove menu from SearchDialog.
Before, pressing MENU with the SearchDialog open would show
a menu item that launched the search settings activity. Now that
the search settings are accessible from the Settings app, this is
no longer needed.

Fixes http://b/issue?id=1819469 and http://b/issue?id=1817823
2009-04-29 20:49:56 +01:00
Bjorn Bringert
6d72e029cb Add 'includeInGlobalSearch' attribute to searchable meta-data.
The attribute is not yet public.
Also adds a SearchManager method for listing all
searchables that can be included in global search.
This is the framework part of http://b/issue?id=1819651
2009-04-29 20:23:04 +01:00
Romain Guy
8b5e7c046d CheckedTextView is abstract but can be inflated from XML. Let's be consistent and allow it to be used from Java code as well by making it non-abstract. 2009-04-29 11:48:22 -07:00
Dan Bornstein
b4c218eafd AI 147994: First cut of CharsetUtils, a utility class that aims to
help with vendor-specific encoding name interpretation.
  BUG=1820922

Automated import of CL 147994
2009-04-29 10:01:27 -07:00
Android (Google) Code Review
c5f1b92d0a Merge change 691 into donut
* changes:
  Fixes 1819406. Take a ListView, add headers/footers, set the adapter after at least one layout pass, and the headers/footers don't know they have a parent anymore. Which causes a lot of trouble, like drawing not happening.
2009-04-29 09:59:53 -07:00
Bjorn Bringert
203464af96 Add searchSuggestThreshold to searchable meta-data.
This lets the searchable activity specify the number of
characters needed to trigger suggestions. Before, this was
hard-coded at 0. This caused unnecessary querying of the
suggestion provider in cases where the provider does not
return suggestions for empty or short queries.

The attribute is not yet public, pending API council approval.
2009-04-29 13:02:54 +01:00
Android (Google) Code Review
493b00afbf Merge change 640 into donut
* changes:
  Add GLOBAL_SEARCH intent for finding global search provider.
2009-04-29 03:38:01 -07:00
Scott Main
8419fcdfaf am b8b3645: AI 147803: add docs and images for docs on Toast and Notifi
Merge commit 'b8b3645a9799c38ad68549316ebbf7a4849f2e0c' into donut

* commit 'b8b3645a9799c38ad68549316ebbf7a4849f2e0c':
  AI 147803: add docs and images for docs on Toast and  Notification docs
2009-04-28 21:54:15 -07:00
Scott Main
073bc611ce am 8a4c53a: AI 147732: fix broken links
Merge commit '8a4c53a7c7911b8f4c73a8fcfbbad3ac903b3367' into donut

* commit '8a4c53a7c7911b8f4c73a8fcfbbad3ac903b3367':
  AI 147732: fix broken links
2009-04-28 21:54:10 -07:00
Scott Main
af3289e444 am 620986a: AI 147438: add app widget docs to dev guide
Merge commit '620986a358c522178ddfc5c0088b2a5e1768e5ae' into donut

* commit '620986a358c522178ddfc5c0088b2a5e1768e5ae':
  AI 147438: add app widget docs to dev guide
2009-04-28 21:54:07 -07:00
Mitsuru Oshima
13735a255d Merge branch 'readonly-p4-donut' into donut 2009-04-28 18:13:25 -07:00
Mitsuru Oshima
8169daed2f AI 147976: Compatibility mode support. Part 2.
* Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea)
  * Changes to RootView / SurfaceView
  - Makes the app believe it's running in the supported density/resolution.
  - Makes the window manager believe it's running at the right density/resolution.
  * Added methods to Rect/Event for scaling up/down.
  Known issues:
  * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account,
  which, in turn, is causing layout issue.
  * ZoomButton in MapView is rendered in wrong place
  * Transparent region on Surface is not correct
  * Specifying different densities in one process is not working.
  BUG=1770627

Automated import of CL 147976
2009-04-28 18:12:09 -07:00
Romain Guy
2e447d46d9 Fixes 1819406. Take a ListView, add headers/footers, set the adapter after at least one layout pass, and the headers/footers don't know they have a parent anymore. Which causes a lot of trouble, like drawing not happening. 2009-04-28 18:01:24 -07:00
Karl Rosaen
98e333f551 Fix back key and ime behavior for search dialog.
The back key now dismisses the soft keyboard, and then the dialog.

The soft keyboard behavior is improved by having ACTV do the following when 'mDropdownAlwaysShowing' is true:
- touching outside of the drop down doesn't dismiss it
- touching the text field ensures the imei is brought in front of the drop down
2009-04-28 15:52:30 -07:00
Android (Google) Code Review
e4de845ec2 Merge change 625 into donut
* changes:
  fix 1812272 SensorManager method returns hidden object
2009-04-28 13:19:23 -07:00
Android (Google) Code Review
6fcddb05ee Merge change 629 into donut
* changes:
  Display the app icon to the left of the search field for search within apps.
2009-04-28 13:18:06 -07:00
Android (Google) Code Review
77c9990ae0 Merge change 599 into donut
* changes:
  Add call to (new) Canvas.freeCaches() in response to low-memory
2009-04-28 12:28:47 -07:00
Bjorn Bringert
74708bbdf8 Add GLOBAL_SEARCH intent for finding global search provider. 2009-04-28 12:15:56 +01:00
Mike LeBeau
1fd73239dc Display the app icon to the left of the search field for search within apps. 2009-04-27 19:12:05 -07:00
Mathias Agopian
287b309201 fix 1812272 SensorManager method returns hidden object 2009-04-27 18:08:10 -07:00
Michael Chan
99c4483cd7 Allow caller-supplied column aliases in queries even when a projection map is used.
Modified SQLiteQueryBuilder to allow caller-spplied column alias ("AS")
instead restricting to the keys of the supplied projection map.  This is needed for
UNION queries where new columns may be created on the fly such as "1 AS flag"
2009-04-27 16:32:45 -07:00