627 Commits

Author SHA1 Message Date
Amith Yamasani
430555acae Add a Gservices setting to have a "use location for better search". 2009-06-12 14:19:00 -07:00
Android (Google) Code Review
6599426f74 Merge change 4017 into donut
* changes:
  Make the date format preference work again.
2009-06-12 11:10:56 -07:00
Romain Guy
cafdea61a8 Fixes #1914574. An NPE could be causes in lists by ViewGroup.dispatchDraw().
ViewGroup was trying to access the AttachInfo without checking whether the
info object is null. The object can be null at varioous times in the lifecycle
of a list.
2009-06-12 10:51:36 -07:00
Romain Guy
763a572388 Hide gestures API. 2009-06-12 10:28:28 -07:00
Eric Fischer
3287695823 Make the date format preference work again.
It is only used for numeric dates -- spelled-out dates have such a complex
variety of formats that they can only be meaningfully formatted from
locale strings.

In addition, the preference is left null when initializing, on the assumption
that the locale will still specify a more useful numeric format than we can
guess as part of a build-wide configuration.

But if the user has specified a format, the date will be formatted in the
order they asked for, with locale-appropriate punctuation substituted in.
2009-06-12 10:06:24 -07:00
Ramanan Rajeswaran
e8939bb8f1 resolved conflicts for merge of a798dd86 to donut 2009-06-12 09:49:16 -07:00
Satish Sampath
7f50c08fb9 Show proper suggestion item hilite on selection.
With the new implementation of using a SuggestionItemView, we no longer need to draw a solid background for all items in the suggestion listview. Hence removing the code to draw a default white background, and make the item transparent so the listview-drawn selection hilite shows through.
2009-06-12 11:58:46 +01:00
Android (Google) Code Review
78f0f8cb2e Merge changes 3953,3954 into donut
* changes:
  Make the file backup helper not crash if a file you requested can't be stated.  This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
  Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
2009-06-11 19:50:05 -07:00
Android (Google) Code Review
e8966e1263 Merge change 4008 into donut
* changes:
  Fixes #1886237. Views drawing cache was not generated properly.
2009-06-11 18:06:17 -07:00
Romain Guy
8506ab4ac0 Fixes #1886237. Views drawing cache was not generated properly.
In compatibility mode, a View's drawing cache was created at the 160 density
scale instead of the right scale.
2009-06-11 18:05:56 -07:00
Android (Google) Code Review
657c80b146 Merge change 3775 into donut
* changes:
  DO NOT MERGE.
2009-06-11 15:21:02 -07:00
Ramanan Rajeswaran
a798dd8629 AI 149797: Have SetupWizard pull the Terms of Service from the web using a new URL
which allows us to set the language and country (based on MCC otherwise
  locale country). If we are unable to retrieve the ToS, or verify the
  content, we load the default ToS (en_US) from the device.
  BUG=1856455

Automated import of CL 149797
2009-06-11 14:43:15 -07:00
Jean-Michel Trivi
91bf30a477 TextToSpeech class cleanups
- harmonized private member variable names
- added success / failure codes (used for now in initialization)
- synchronized access to speech completed listener.
2009-06-11 14:35:48 -07:00
Android (Google) Code Review
35733757bd Merge change 3935 into donut
* changes:
  Hook the 12- or 24-hour time format checkbox back up.
2009-06-11 13:48:53 -07:00
Eric Fischer
af0e7a7394 Hook the 12- or 24-hour time format checkbox back up.
The format strings are newly generated from CLDR.  The code is once again
the same as in cupcake: do the natural thing for the locale if the user
has never specified, but follow the checkbox if the user has ever set it.
2009-06-11 13:37:04 -07:00
Joe Onorato
23ecae3bbb Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
This took quite a bit of refactoring.
2009-06-11 11:29:57 -07:00
Android (Google) Code Review
286ea605c9 Merge change 3828 into donut
* changes:
  Renaming the Tts class to TextToSpeech for clarity. Switching to HashMap for parameter lists to pass key-value parameter pairs. Using TODO instead of FIXME in comments. Removing methods that don't belong anymore to the TTS interface now the feature becomes part of the platform.
2009-06-11 11:26:49 -07:00
Satish Sampath
35379abd46 Added attribute queryAfterZeroResults to searchables.
As of now we are just reading it from the xml and not acting upon it, that would come in a subsequent change.
2009-06-11 16:27:29 +01:00
Android (Google) Code Review
174231d89a Merge change 3879 into donut
* changes:
  ACTV: getWindowVisibility() instead of private attach count
2009-06-11 04:53:01 -07:00
Bjorn Bringert
50145bc883 ACTV: getWindowVisibility() instead of private attach count
When debugging a problem with the search dialog drop-down
sometimes not showing up, I saw that the mAttachCount variable
in AutoCompleteTextView could get a negative value because
onDetachedFromWindow() was called multiple times. This lead to
the drop-down not being displayed on filtering.

Instead of the private attach count in ACTV, this change
uses View.getWindowVisibility().
2009-06-11 12:30:48 +01:00
Satish Sampath
aba34d96fd Fix display of the selection background for search results.
I've used a simple approach of not drawing the solid background color for the selected item, thereby letting the default selection background to show through properly. This works by using the item's 'pressed' state and redraw code which are used by the listview during the tapping operation.
2009-06-11 10:24:26 +01:00
Android (Google) Code Review
a05487dd85 Merge change 3800 into donut
* changes:
  Add SUGGEST_SPINNER_WHILE_REFRESHING column constant to the SearchManager for use in implementing Google suggestion refreshing in global search.
2009-06-11 00:59:06 -07:00
Jean-Michel Trivi
a8518c169b Renaming the Tts class to TextToSpeech for clarity.
Switching to HashMap for parameter lists to pass key-value parameter pairs.
Using TODO instead of FIXME in comments.
Removing methods that don't belong anymore to the TTS interface now the feature
becomes part of the platform.
2009-06-10 21:32:38 -07:00
Christopher Tate
9bbc21a773 Flesh out restore interface on manager; work up most of LocalTransport 2009-06-10 20:38:54 -07:00
Android (Google) Code Review
b6391d6377 Merge change 3857 into donut
* changes:
  Allow arrays of values for power profile data.
2009-06-10 19:50:22 -07:00
Amith Yamasani
3718aaabe6 Allow arrays of values for power profile data.
Parse arrays for data that has different levels with non-linear
power increase.
Track radio data awake_time from kernel and mobile/total data
transfers.
Use dummy values for default power_profile.xml. Actual values will
be in a product overlay.
2009-06-10 19:45:28 -07:00
Mike LeBeau
ce0959df5c Add SUGGEST_SPINNER_WHILE_REFRESHING column constant to the SearchManager
for use in implementing Google suggestion refreshing in global search.
2009-06-11 00:41:55 +01:00
Android (Google) Code Review
1f35bf18ad Merge change 3795 into donut
* changes:
  URI/extra data for inline scheme.
2009-06-10 16:24:01 -07:00
Mitsuru Oshima
e5fb328825 resolution support fix/improvement
* adding compatibility menu
    * backup gravity
    * set expanable=true if the screen size is hvga * density.
    * added "supports any density" mode. I'll add sdk check later.
    * disallow to catch orientation change event if the app is not expandable. This
      was causing layout problem under non-expandable mode. I discussed this with Mike C
      and we agreed to do this approach for now. We'll revisit if this causes problem to
      a lot of applications.
2009-06-10 15:22:17 -07:00
Mitsuru Oshima
8eb241b877 URI/extra data for inline scheme. 2009-06-10 15:18:08 -07:00
Android (Google) Code Review
a45711aaeb Merge change 3765 into donut
* changes:
  Add a gservices flag to limit the size of protobufs we can gzip
2009-06-10 15:11:52 -07:00
Android (Google) Code Review
732912a103 Merge change 3730 into donut
* changes:
  Restructuring the TTS files so that it works as a Service
2009-06-10 15:09:37 -07:00
Android (Google) Code Review
b11e670e56 Merge change 3754 into donut
* changes:
  Fix some 12- vs 24-hour problems in the FormatDateRange strings.
2009-06-10 15:03:06 -07:00
Cynthia Wong
85427f71a4 Add a gservices flag to limit the size of protobufs we can gzip 2009-06-10 14:51:19 -07:00
Charles Chen
f85aa5a4d4 Restructuring the TTS files so that it works as a Service 2009-06-10 13:31:09 -07:00
Eric Fischer
84c863d9af Fix some 12- vs 24-hour problems in the FormatDateRange strings.
Use a resource instead of a hardcoded string for the 24-hour format
since it is not exactly the same in every locale.

Make sure the 12-hour format is actually for a 12-hour clock, even in
locales where this is not a normal thing to do.  In the cap_ampm version,
do not have it try to capitalize "am" and "pm" if these are non-ASCII
strings, since strftime() doesn't know about Unicode and will mess it up.

Add a comment so that people don't think the YEAR_IN_MILLIS constant is
actually the length of any real year.
2009-06-10 12:46:13 -07:00
Grace Kloba
41d2676dd6 DO NOT MERGE.
Merge 2391 from master to donut.

Added postUrl() to WebView so that we can pass lat/lon for the search.
2009-06-10 11:55:55 -07:00
Android (Google) Code Review
6b4b50b807 Merge change 2900 into donut
* changes:
  Add support for custom tab views in TabHost and TabWidget.
2009-06-10 11:41:49 -07:00
Jack Veenstra
53175148c9 Add support for custom tab views in TabHost and TabWidget.
This change adds the ability to specify an arbitrary view for a tab
indicator.  It also adds support for specifying a drawable to use as
the divider between tab views.
2009-06-10 11:38:02 -07:00
Android (Google) Code Review
9e09e0f439 Merge change 3724 into donut
* changes:
  zygote: Add CAP_SYS_NICE to system server capabilities
2009-06-10 11:05:05 -07:00
Christopher Tate
df01deaacf More restore plumbing, plus add suggested-backoff to transport API
Adds most of the code for a background-thread restore process, structured much
like the backup thread.  Broke some common functionality out into a helper
function for doing a synchronous wait for a requested agent to attach.

Added a method to IBackupTransport whereby the transport will be asked for
an opinion on whether this is a good time for a backup to happen.  It will
reply with the results of its policymaking around backoff intervals, time-of-day
selection, etc.
2009-06-10 10:53:24 -07:00
San Mehat
1caefa6c40 zygote: Add CAP_SYS_NICE to system server capabilities
Signed-off-by: San Mehat <san@google.com>
2009-06-10 09:09:51 -07:00
Android (Google) Code Review
a32b5f3252 Merge change 2411 into donut
* changes:
  Manual merge from cupcake_dcm. Need to be reviewed by enf.
2009-06-10 08:01:20 -07:00
Android (Google) Code Review
09ea1e9cce Merge change 3715 into donut
* changes:
  Show progress spinner while waiting for results in in app search.
2009-06-10 06:31:33 -07:00
Karl Rosaen
048d1a4821 Show progress spinner while waiting for results in in app search. 2009-06-10 14:17:21 +01:00
Romain Guy
cfbe8cf878 Fix the way gestures are rasterized to bitmaps.
It was just not working with multiple strokes.
2009-06-10 01:21:20 -07:00
Romain Guy
0e1ca5749a Add support for gestures in Home.
Adds a new animation style for the gestures pad, and de-normalize
the scores in the recognition engine.
2009-06-09 22:58:46 -07:00
Android (Google) Code Review
3279fbad63 Merge change 3652 into donut
* changes:
  Adding default text-to-speech language in Settings.Secure.
2009-06-09 17:46:12 -07:00
Jean-Michel Trivi
f478267d6a Adding default text-to-speech language in Settings.Secure. 2009-06-09 16:22:48 -07:00
Karl Rosaen
d4c98c4c45 Track clicks that occur after pivoting into an app from global search.
(framework portion).

Global search has a write-only content provider for reporting clicks that SearchDialog
makes use of.

update: addressed code review feedback
2009-06-09 18:51:05 +01:00