1443 Commits

Author SHA1 Message Date
Mike LeBeau
5a7d752b65 Special-case search within the browser to not show the app icon
to the left of the search field. Also, because this removes context
about whether you're in browser search or global search, we make
sure to clear any entered text if you jump out to global search from
within browser search.

This is a really ugly hack, but was required by the UI team. We will
find a better way to reconcile in Eclair.
2009-07-29 18:17:13 -07:00
Android (Google) Code Review
0067057c31 Merge change 9035 into donut
* changes:
  Fix the TabWidget to display custom views for the tabs better when the tabs have different sizes.
2009-07-29 15:27:55 -07:00
Jack Veenstra
5d5cd178e3 Fix the TabWidget to display custom views for the tabs better when the tabs have different sizes. 2009-07-29 15:19:23 -07:00
Android (Google) Code Review
3d716ed6a3 Merge change 9021 into donut
* changes:
  DO NOT MERGE - Fix CNAP-related NullPointerException
2009-07-29 14:52:11 -07:00
Wink Saville
9953eb27ed DO NOT MERGE - Fix CNAP-related NullPointerException
This will fix a CNAP-related bug where missing a call from a party with an
"Unknown" number presentation and then trying to log that call will cause
a NullPointerException to be thrown.

This was already merged into master so marked will not be merged.
2009-07-29 14:51:26 -07:00
Jean-Michel Trivi
ed06578edd Fix bug 2017664
Removed the TTS_ prefix in the TextToSpeech class to follow the standard naming convention.
Moved the TTS-related intents from the Intent class to TextToSpeech and TextToSpeech.Engine.
Renamed the TextToSpeech.Engine constants that are used as extras for the
  ACTION_TTS_CHECK_TTS_DATA intent to prefix them with EXTRA_.
Cleaned up the other TextToSpeech.Engine constant to remove superfluous mentions of
  "TTS" in the name.
2009-07-29 11:26:10 -07:00
Bjorn Bringert
725d8ff6c5 Log uid and package name when launching intents from search
This is to help debug http://b/issue?id=2020252
where the WEB_SEARCH intent is sometimes not handled.
2009-07-29 11:11:52 +01:00
Android (Google) Code Review
9b91d78a21 Merge change 8911 into donut
* changes:
  Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
2009-07-28 22:08:30 -07:00
Android (Google) Code Review
4d4229e4d9 Merge change 8757 into donut
* changes:
  Support x509-user-cert mime type in browser.
2009-07-28 18:34:33 -07:00
Dianne Hackborn
a6ddc8af22 Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
Re-arrange various things to ensure that the search dialog is told about system windows being
closed before it is told about the navigation back to home.
2009-07-28 17:55:13 -07:00
Android (Google) Code Review
159e1a9a13 Merge change 8883 into donut
* changes:
  fix [1973755] Surface.SURACE_FROZEN spelled SURACE_FROZEN
2009-07-28 16:12:58 -07:00
Mathias Agopian
c87c4a3e3b fix [1973755] Surface.SURACE_FROZEN spelled SURACE_FROZEN 2009-07-28 15:59:52 -07:00
Android (Google) Code Review
a62f16acca Merge change 8877 into donut
* changes:
  Remove warning in non-eng builds.
2009-07-28 15:34:25 -07:00
Romain Guy
e551dc76bc Remove warning in non-eng builds. 2009-07-28 15:30:11 -07:00
Android (Google) Code Review
6b46dc8616 Merge change 8840 into donut
* changes:
  Add padding to height of AutoCompleteTextView drop-down.
2009-07-28 13:11:13 -07:00
Bjorn Bringert
5420d01cef Add padding to height of AutoCompleteTextView drop-down.
As described in http://b/issue?id=2017825
PopupWindow.getMaxAvailableHeight() does not include the padding in
the available height. To get the ACTV drop-down to actually fill
the screen, this change adds the padding to the value returned
by PopupWindow.getMaxAvailableHeight().

This is part of the fix for http://b/issue?id=2014450
2009-07-28 21:08:25 +01:00
Android (Google) Code Review
f0d83fd907 Merge change 8752 into donut
* changes:
  Updates from API review.
2009-07-28 12:36:49 -07:00
Android (Google) Code Review
40c0de641a Merge change 8836 into donut
* changes:
  Add menu with search settings to search dialog.
2009-07-28 12:28:06 -07:00
Bjorn Bringert
f4acf39d99 Add menu with search settings to search dialog.
Fixes http://b/issue?id=2018143
2009-07-28 20:15:49 +01:00
Android (Google) Code Review
50f05b8ffd Merge change 8825 into donut
* changes:
  Fixes 2017393. Correctly apply gravity in RelativeLayout.
2009-07-28 11:19:19 -07:00
Romain Guy
d10a576791 Fixes 2017393. Correctly apply gravity in RelativeLayout.
RL was applying a horizontal offset to its children even when the gravity was only
specified for the vertical axis (and vice-versa.)

Also fix the ExpandableListView icons.
2009-07-28 11:18:14 -07:00
Android (Google) Code Review
c6590d6f39 Merge change 8759 into donut
* changes:
  Cancel search on BACK if IME is obscured.
2009-07-28 10:45:35 -07:00
Android (Google) Code Review
1dd6936a86 Merge change 8728 into donut
* changes:
  Fix resource code and version attributes Create a new package setting object for updated system apps rather than moving around the same setting. This updates the resource, code and version correctly. For updating system packages, disable the package first which removes the entry from internal structures, create a new package setting, add it to list of user id's then rest of installation steps, kill the process if needed via ActivityManager then add this setting if everything was successful. This also fixes issues with updating values prematurely.
2009-07-28 10:18:47 -07:00
Suchi Amalapurapu
261e66acd1 Fix resource code and version attributes
Create a new package setting object for updated system apps rather than moving
around the same setting. This updates the resource, code and version correctly.
For updating system packages, disable the package first which removes the entry
from internal structures, create a new package setting, add it to list of user id's
then rest of installation steps, kill the process if needed via ActivityManager
then add this setting if everything was successful. This also fixes issues with
updating values prematurely.

When a new version of system package is available via OTA, just physically remove
entries for pkg. Note that the component and other info will be eventually updated
later on when scanning the package.
Also move certificate verification slightly ahead before scanning packages.

Some null checks

New api's in ActivityManager to kill an application pkg before finishing installation
2009-07-28 10:21:38 -07:00
Bjorn Bringert
003ad48380 Cancel search on BACK if IME is obscured.
This adds a hidden method AutoCompleteTextView.isImeHidden(),
and uses that in SearchDialog to cancel the search dialog
when BACK is pressed, if there is no previous search component
to return to.

mlebeau says:
 If we fill the whole screen then it makes the issue of the back
 button a little more important. Specifically, right now if you have
 the list expanded and you press back, the keyboard hides but it's not
 really showing any more anyway so it seems like pressing the button
 does nothing. We rationalized this by saying "part of the keyboard
 will be showing so it won't be completely non-obvious that it was
 hidden". But since really the right UX is to fill the screen, as part
 of this we should probably also add logic to the back button such
 that if it is pressed when the list is obscuring the keyboard
 (i.e. softInputMode on the PopupWindow is INPUT_METHOD_NOT_NEEDED)
 then we should hide the dialog entirely rather than closing the
 keyboard.

This is part of the fix for http://b/issue?id=2014450
2009-07-28 17:39:17 +01:00
Bjorn Bringert
da1f4b669e Only dismiss search on suggestion click in in-app search
We now distinguish between in-app search (pivoted in from GlobalSearch)
and real in-app search mode. Only the latter dismisses the search
dialog when a suggestion is clicked. Also, the drop-down
is now always visible except in real in-app search mode.

Fixes http://b/issue?id=2014626
2009-07-28 15:15:26 +01:00
Chung-yih Wang
fd3db87e28 Support x509-user-cert mime type in browser.
+ Fix the public key matching and intent parameter mismatch.
2009-07-28 18:37:13 +08:00
Dianne Hackborn
7f2054392e Updates from API review.
* AccessibilityService -- document onBind() to not be implemented.
    * GestureLibrary.getLearner() -- needs to be hidden.
    * IntentSender -- remove protected constructors, document that it is retrieved from a PendingIntent.
    * Hide permissions: SHUTDOWN, STOP_APP_SWITCHES.
    * Context -- hide BACKUP_SERVICE.
    * ContextWrapper -- hide getSharedPrefs bla h blah
    * Intent.parseUri() -- fix docs.
    * ApplicationInfo.FLAG_TEST_ONLY?!?
    * Hide MockContext.getSharedPrefs blah blah
2009-07-28 00:13:47 -07:00
Dianne Hackborn
0d907fa00b Fix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation change 2009-07-27 20:48:50 -07:00
Android (Google) Code Review
95fa929ebe Merge change 8682 into donut
* changes:
  New small rating stars from the UI designers.
2009-07-27 14:31:33 -07:00
Ilya Firman
730c66e635 New small rating stars from the UI designers. 2009-07-27 14:03:55 -07:00
Android (Google) Code Review
1fcabd7b32 Merge change 8677 into donut
* changes:
  DO NOT MERGE.
2009-07-27 13:55:18 -07:00
Grace Kloba
8268170d3f DO NOT MERGE.
Per product team request, remove 1x zoom button. Move the zoom overview to
the bottom left and zoom control to the bottom right.
2009-07-27 13:44:47 -07:00
Android (Google) Code Review
ef9fd18d90 Merge change 8616 into donut
* changes:
  Fiddle with default densities to try to sanitize the API.
2009-07-27 12:03:36 -07:00
Android (Google) Code Review
ba989ad0ed Merge change 8648 into donut
* changes:
  Use the old string for bookmarks permissions.
2009-07-27 10:49:07 -07:00
Bjorn Bringert
5b11a0f3e1 DPAD_DOWN moves from search/voice search key to drop-down
Fixes http://b/issue?id=2014688
2009-07-27 17:10:46 +01:00
Leon Scroggins
e7d1c8f377 Use the old string for bookmarks permissions.
When we made the bookmark permissions public, we also changed their
names, which might break existing apps.  Change them back.  Depends
on a change in packages/apps/Browser
2009-07-27 11:14:04 -04:00
Bjorn Bringert
9377738cdb Remove search dialog PRE_CLOSE event
This is part of the fix for http://b/issue?id=2000655
2009-07-27 11:48:32 +01:00
Bjorn Bringert
6ddaa3497c Send max displayed position in search dialog click event
This is part of the fix for http://b/issue?id=2000655
2009-07-27 11:44:56 +01:00
Dianne Hackborn
96e240f25a Fiddle with default densities to try to sanitize the API.
An issue with the density API is that bitmaps assumed the old default density,
so new programs would have to explicitly set the correct density for every bitmap
they create.

This is an attempt to fix that situation, by define the default density of bitmaps
to be the main screen's density, except for old apps where it is the original default
density.

Actually implementing this is not so great, though, because the Bitmap constructors
can't really know anything about who is calling them to know which density to use.
So at this level the compatibility mode is defined per-process -- meaning the initial
package loaded into a process defines the default bitmap density, and everyone else
loaded in later on has to live with that.

In practice this shouldn't be much of a problem, there shouldn't be much mixing of
old vs. new apps in a process.  It does mean that, going forward, if a developer is
going to use shared user IDs for this, they will need to make sure either that all of
their apps are in the same compatibility mode, or that their code explicitly sets the
density of bitmaps it receives.  This isn't all that great, but I think it is worth
the benefit of allowing people who write modern apps to not have to deal with bitmap
densities.

This change also does some cleanup of the density management (making sure to always
copy over bitmap densities, etc) and adds java docs to explain the various ways
density is set and used by the system.
2009-07-26 17:42:30 -07:00
Amith Yamasani
07ee3fdaea DO NOT MERGE. Already in master. Fix #1977876 : Key preview in WVGA broken.
Use PX unit when setting the text size since we're getting the size from getTextSize()
Reduce delay for popup.
2009-07-24 17:51:10 -07:00
Dianne Hackborn
11ea33471e Allow for screen density drawables in compatibility mode.
This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode.  In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable.  For
the small rare chance of them breaking, it worth getting the correct
graphics.  Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
2009-07-24 10:47:15 -07:00
Android (Google) Code Review
3b99e64e58 Merge change 8475 into donut
* changes:
  Per conversation, remove the toast while saving the Certificates to CertTools.
2009-07-24 10:18:26 -07:00
Android (Google) Code Review
7c187de14f Merge change 8462 into donut
* changes:
  Make the DatePicker respect the date format setting if the date is numeric.
2009-07-24 10:00:05 -07:00
Grace Kloba
c9d4c8790a Per conversation, remove the toast while saving the Certificates to CertTools.
Remove the unused strings.
2009-07-23 21:22:51 -07:00
Eric Fischer
03a8017d0f Make the DatePicker respect the date format setting if the date is numeric.
In some locales, there are no abbreviated month names; the abbreviated
date formats are essentially numeric.  If the user is in such a locale,
have the DatePicker respect the date format setting so that the order
of the fields will match other numeric-only dates.

In locales that have abbreviated month names, continue to use the order
that is normal in spelled-out dates.

And update the order in updateDate() so that the new order is reflected
if you change the order setting and immediately go to change the date
without leaving and returning to the Date & Time settings in between.

At the same time, change DateFormat.getDateFormatOrder() back to working
the way it did in cupcake (prioritizing the date order preference over
the locale), even though the DatePicker no longer calls the method.

Bug 1805085
2009-07-23 18:48:44 -07:00
Android (Google) Code Review
0a4730f888 Merge change 8443 into donut
* changes:
  add some more defensiveness to SuggestionsAdapter to avoid system process crashes.
2009-07-23 17:38:24 -07:00
Karl Rosaen
92f461ea66 add some more defensiveness to SuggestionsAdapter to avoid system process crashes. 2009-07-23 17:20:47 -07:00
Mitsuru Oshima
589cebe2d5 * Use the scaled size for surface view instead of native. The surface will be always scaled
by surface flinger in compatiblity mode. The original approach confused the app because
 the surface size and the view size were different.
* a few clean up. removed unsed arguments, obsolete conditions from getTranslator()
 (expandable check was a bug)
2009-07-23 13:38:01 -07:00
Android (Google) Code Review
e0ef973b13 Merge change 8323 into donut
* changes:
  * a best effort fix for apps that uses get/set Matrix API on canvas.   - scale the matrix   - but don't scale if the matrix *looks* like obtained from the canvas itself. (typically to set it back to original matrix)
2009-07-23 13:33:07 -07:00