1300 Commits

Author SHA1 Message Date
Android (Google) Code Review
5380aa2947 Merge change 7512 into donut
* changes:
  Get rid of drawing hacks for search dialog suggestions
2009-07-16 06:08:59 -07:00
Bjorn Bringert
391eaa3ba8 Get rid of drawing hacks for search dialog suggestions
Before, SuggestionsAdapter parsed every HTML formatted
string three times, to support state-dependent colors
in <font> tags. Now that there is support in Html
for color resources (added in
https://android-git.corp.google.com/g/7441),
we can get rid of this code.

Also, SuggestionsAdapter had a special purpose view
for drawing background colors when suggestion items
were not selected or pressed. This change replaces that
code with a StateListDrawable of ColorDrawables.

Before this change, HTML parsing used ~17% (uncontrolled benchmark,
just did some random searching) of the system_process CPU.
This change should reduce that by 2/3, i.e. about ~11% total
system_process reduction.
2009-07-16 13:57:20 +01:00
Bjorn Bringert
ee716fa2b0 Make sure SearchDialog.mSearchable != null in key handlers
This change adds checking that the searchdialog is initialized
properly to a few key event listeners where it was missing
before.

Also makes sure that the search dialog is not shown if the
global search is requested but the global search provider
cannot be found.

Should fix http://b/issue?id=1982128
"Device rebooting after search results"
where SearchDialog.onKeyDown() threw an NPE
2009-07-16 09:15:37 +01:00
Android (Google) Code Review
c93af6dc5b Merge change 7441 into donut
* changes:
  Allow system colors in <font> tags
2009-07-16 00:06:23 -07:00
Android (Google) Code Review
8a733e8fa2 Merge change 7473 into donut
* changes:
  Fixes #1844366. Prevents window leak in Spinner.
2009-07-15 17:02:25 -07:00
Romain Guy
5275d69b04 Fixes #1844366. Prevents window leak in Spinner. 2009-07-15 17:01:48 -07:00
Android (Google) Code Review
82b283a9bf Merge change 7451 into donut
* changes:
  Include 'calling_package' extra for uses of in-app voice search so that the server can tailor recognition to an individual app.
2009-07-15 15:33:46 -07:00
Mike LeBeau
260dfb5716 Include 'calling_package' extra for uses of in-app voice search so that
the server can tailor recognition to an individual app.
2009-07-15 15:20:14 -07:00
Bjorn Bringert
9cab7f7684 Allow system colors in <font> tags
Fixes http://b/issue?id=1970693
2009-07-15 22:47:03 +01:00
Android (Google) Code Review
6ce4236d70 Merge change 7401 into donut
* changes:
  Adding missing addEarcon method. Not having this was a bug as this method is needed to add earcons; otherwise, there is nothing for playEarcon to play.
2009-07-15 13:38:34 -07:00
Android (Google) Code Review
c122824f48 Merge change 7396 into donut
* changes:
  Run background threads associated with filtering at background priority.
2009-07-15 13:29:38 -07:00
Joe Onorato
be96b3a2aa Clamp app widget updates from updatePeriodMillis to a minimum of 30 minutes. 2009-07-15 11:43:06 -07:00
Karl Rosaen
ab3ef104cd Run background threads associated with filtering at background priority.
This improves the typing responsiveness in the browser a lot, and should
help out in all the other cases in the UI where we use a filter thread.
2009-07-15 11:11:15 -07:00
Charles Chen
904dfa5884 Adding missing addEarcon method. Not having this was a bug as
this method is needed to add earcons; otherwise, there is
nothing for playEarcon to play.
2009-07-15 10:46:33 -07:00
Android (Google) Code Review
21d769da89 Merge change 6926 into donut
* changes:
  Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool.
2009-07-15 09:47:05 -07:00
Android (Google) Code Review
211aef308b Merge change 7134 into donut
* changes:
  Unhide required definitions in TextToSpeech.Engine that cover return codes and extras for android.intent.action.CHECK_TTS_DATA intent, and the key values for the parameter hashmap that can be passed by an application in speak(), synthesizeToFile(), playSilence() and playEarcon().
2009-07-14 17:43:58 -07:00
Jean-Michel Trivi
62253a319d Unhide required definitions in TextToSpeech.Engine that cover return codes and
extras for android.intent.action.CHECK_TTS_DATA intent, and the key values
for the parameter hashmap that can be passed by an application in speak(),
synthesizeToFile(), playSilence() and playEarcon().
2009-07-14 17:37:07 -07:00
Android (Google) Code Review
4c3a589e8e Merge change 7137 into donut
* changes:
  Remove the Google domains from the Gears permission table when the global location setting is set to false
2009-07-14 17:23:35 -07:00
Android (Google) Code Review
5628711a6f Merge change 6855 into donut
* changes:
  Add a Gservices setting to control if we send up multipart protocol buffers
2009-07-14 17:20:22 -07:00
Mike LeBeau
1fffbd97fa Fix keyboard not showing for global search on Dream. Rather than trying to
call the hidden showSoftInputUnchecked method to show the IME in SearchDialog#show(),
override onWindowFocusChanged in our subclass of AutoCompleteTextView so that whenever
it gets focus, we call the public showSoftInput method, passing in the ACTV, which is
the correct way to do this.

This fixes http://b/1930989.
2009-07-14 17:05:24 -07:00
Android (Google) Code Review
a2694c998c Merge change 7166 into donut
* changes:
  Fix a few date format strings to put backslashes in front of apostrophes.
2009-07-14 16:26:33 -07:00
Eric Fischer
9c947e9eca Fix a few date format strings to put backslashes in front of apostrophes.
I forgot that the apostrophes get lost on the way through aapt if you
don't quote them.
2009-07-14 16:16:06 -07:00
Android (Google) Code Review
b5c735d35c Merge change 7106 into donut
* changes:
  Return adjusted display for WindowManager.getDefaultDisplay()
2009-07-14 16:13:38 -07:00
Android (Google) Code Review
b3948bbd8d Merge change 7133 into donut
* changes:
  Run the search dialog at THREAD_PRIORITY_DEFAULT instead of THREAD_PRIORITY_FOREGROUND.
2009-07-14 16:03:30 -07:00
Karl Rosaen
957eb1d975 Run the search dialog at THREAD_PRIORITY_DEFAULT instead of THREAD_PRIORITY_FOREGROUND.
When running at forground priority, the search dialog seems to starve the soft keyboard, leading
to unresponsiveness.
2009-07-14 16:02:38 -07:00
Karl Rosaen
53d24af774 Respect onSearchRequested in Dialog and actually launch search. Also dismiss self. 2009-07-14 15:52:58 -07:00
Grace Kloba
f8ddc988dc Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool. 2009-07-14 15:44:58 -07:00
Android (Google) Code Review
fa8904a683 Merge change 7012 into donut
* changes:
  Fix couple of issues in DatePicker The NumberPicker's listener needs to be invoked only if the current value changes when validating input. This removes the some unwanted duplicate calls to onChanged. Adjust day for month and leap years. note that updateDaySpinner directly sets the value on day picker and doesn't invoke the listener twice
2009-07-14 15:39:20 -07:00
Android (Google) Code Review
00d3e36114 Merge change 7153 into donut
* changes:
  Restore PopupWindow's original behavior and add an API to control the soft input mode.
2009-07-14 15:39:02 -07:00
Romain Guy
374aaaed32 Restore PopupWindow's original behavior and add an API to control the soft input
mode.
2009-07-14 15:38:23 -07:00
Suchi Amalapurapu
2bf761c202 Fix couple of issues in DatePicker
The NumberPicker's listener needs to be invoked only if
the current value changes when validating input.
This removes the some unwanted duplicate calls to onChanged.
Adjust day for month and leap years. note that updateDaySpinner
directly sets the value on day picker and doesn't invoke the
listener twice
2009-07-14 15:37:20 -07:00
Android (Google) Code Review
30d86e5143 Merge change 7124 into donut
* changes:
  Fixes #1977685. Prevent crash when the soft keyboard is brought up.
2009-07-14 15:35:55 -07:00
Android (Google) Code Review
4caac2bb4c Merge change 7140 into donut
* changes:
  Add more logging to track down a monkey bug
2009-07-14 15:01:07 -07:00
Android (Google) Code Review
83a066c6d8 Merge change 7135 into donut
* changes:
  Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog shows.
2009-07-14 14:51:06 -07:00
Romain Guy
045163ac16 Fixes lock on Home. Adds a new API on Dialog to get a callback when the dialog
shows.
2009-07-14 14:50:31 -07:00
Andrei Popescu
190adf7fb2 Remove the Google domains from the Gears permission table when the global location setting is set to false 2009-07-14 14:24:04 -07:00
Tom Taylor
f748f22f4e Add more logging to track down a monkey bug
The monkey has found a situation where getting or creating a thread id is
failing. Add more logging code to help track down the bug.
2009-07-14 14:20:43 -07:00
Romain Guy
e8b165253d Fixes #1977685. Prevent crash when the soft keyboard is brought up.
ViewRoot keeps a reference to the previously focused View and use this reference
when trying to scroll the window to the focused rect. There situations however
in which the previously focused view might have been removed from the view
hierarchy. This happens on Home for instance when you trash an icon, or with
ListView's items. This change ensures the previously focused view is still part
of the view hierarchy.
2009-07-14 13:06:42 -07:00
Dianne Hackborn
b06ea70653 Add reporting of activity movement for search manager.
This adds a new API with the activity manager to find out about movement between
activities.  For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
2009-07-14 11:37:11 -07:00
Mitsuru Oshima
ddd12535f0 Return adjusted display for WindowManager.getDefaultDisplay() 2009-07-14 11:11:17 -07:00
Android (Google) Code Review
e8b88ac15c Merge change 7097 into donut
* changes:
  Fix to use DP instead of pixels for Thumb drawable size.
2009-07-14 10:44:14 -07:00
Android (Google) Code Review
9181bc9ab7 Merge change 7079 into donut
* changes:
  Cleanup of unused enums
2009-07-14 10:41:14 -07:00
Mitsuru Oshima
a5e4415256 Fix to use DP instead of pixels for Thumb drawable size. 2009-07-14 10:37:22 -07:00
Dave Sparks
8978bd0174 Cleanup of unused enums 2009-07-14 08:02:37 -07:00
Bjorn Bringert
c1d82e68eb Use activity icon when search suggestion icon is missing
New left-hand side icon fallback logic in search dialog:

1. If the search dialog gets no icon column, it shows no
   icon (like before). This would handle the case of in-app
   search where the provider does not include icons.
2. If the icon column is empty, or there is an error converting
   the icon id or URI to a drawable, the search dialog identifies
   the suggestion source by looking at the
   SUGGEST_COLUMN_INTENT_COMPONENT_NAME.
3. If SUGGEST_COLUMN_INTENT_COMPONENT_NAME is empty or not set,
   the current searchable activity is considered the suggestion source.
4. Try to get the activity icon of the suggestion source.
5. Fall back to the application icon of the suggestion source
   if there is no activity icon.
6. Fall back to some generic icon if there is no application icon.

Fixes http://b/issue?id=1905757
2009-07-14 13:52:01 +01:00
Android (Google) Code Review
8af55ca4dd Merge change 7008 into donut
* changes:
  Adding Utterance ID to the TtsService.
2009-07-13 18:25:01 -07:00
Android (Google) Code Review
3139297f1e Merge change 7035 into donut
* changes:
  Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light
2009-07-13 17:52:59 -07:00
Romain Guy
17606f8852 Fixes #1972593. Updates AppSecurityPermissions styles in Theme.Light 2009-07-13 17:52:19 -07:00
Charles Chen
78c9d0d2c5 Adding Utterance ID to the TtsService. 2009-07-13 17:46:19 -07:00
Eric Fischer
0560209bcd Import new translations 2009-07-13 15:42:14 -07:00