OSDN Git Service

android-x86/frameworks-base.git
14 years agoMerge change 9124 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 02:53:47 +0000 (19:53 -0700)]
Merge change 9124 into donut

* changes:
  Fix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is called.

14 years agoMerge change 9265 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 23:18:21 +0000 (16:18 -0700)]
Merge change 9265 into donut

* changes:
  Highlight IMEI-reading as part of READ_PHONE_STATE description

14 years agoHighlight IMEI-reading as part of READ_PHONE_STATE description
Christopher Tate [Thu, 30 Jul 2009 23:13:03 +0000 (16:13 -0700)]
Highlight IMEI-reading as part of READ_PHONE_STATE description

14 years agoMerge change 9243 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 22:50:49 +0000 (15:50 -0700)]
Merge change 9243 into donut

* changes:
  Clean up RIL_SIM_* in RILConstants

14 years agoTell the SearchManager to stopSearch before starting an in-app voice
Mike LeBeau [Thu, 30 Jul 2009 22:38:03 +0000 (15:38 -0700)]
Tell the SearchManager to stopSearch before starting an in-app voice
search. Without this, because of the recent changes to how the search
dialog hides and resumes, we end up re-showing the search dialog after
returning to the app from voice search, obscuring the new voice search
results behind.

Fixes http://b/2025364

14 years agoClean up RIL_SIM_* in RILConstants
John Wang [Thu, 30 Jul 2009 22:21:05 +0000 (15:21 -0700)]
Clean up RIL_SIM_* in RILConstants

GET_SIM_STATUS now returns structure RIL_CardStatus. So RIL_SIM_* status are obsoleted.

modified:   java/com/android/internal/telephony/RILConstants.java

14 years agoUpdate current.xml after review comments.
Jaikumar Ganesh [Thu, 30 Jul 2009 21:09:59 +0000 (14:09 -0700)]
Update current.xml after review comments.

14 years agoFix public API caused due to CDMA changes.
Jaikumar Ganesh [Tue, 28 Jul 2009 18:17:24 +0000 (11:17 -0700)]
Fix public API caused due to CDMA changes.

14 years agouse safeUnref() since the other macro is not defined in donut
Mike Reed [Thu, 30 Jul 2009 15:46:47 +0000 (11:46 -0400)]
use safeUnref() since the other macro is not defined in donut

14 years agoMerge change 9159 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 15:16:09 +0000 (08:16 -0700)]
Merge change 9159 into donut

* changes:
  check for null native objects, which never happens on a real subclass (we throw in that case) but can happen because we allow the callers to create the base class from java.

14 years agocheck for null native objects, which never happens on a real subclass (we throw in...
Mike Reed [Thu, 30 Jul 2009 15:05:57 +0000 (11:05 -0400)]
check for null native objects, which never happens on a real subclass (we throw in that case)
but can happen because we allow the callers to create the base class from java.

14 years agoMerge change 9147 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 13:06:09 +0000 (06:06 -0700)]
Merge change 9147 into donut

* changes:
  Fix in-app search shortcut icons

14 years agoFix in-app search shortcut icons
Bjorn Bringert [Thu, 30 Jul 2009 12:58:23 +0000 (13:58 +0100)]
Fix in-app search shortcut icons

When the suggstion provider is in a different package from the searchable
activity, the icons stored for shortcuts used the package of the
activity instead of the provider.

Fixes http://b/issue?id=2023993

14 years agoMerge change 9145 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 12:46:07 +0000 (05:46 -0700)]
Merge change 9145 into donut

* changes:
  Add the encryption option to PptpProfile parcel.

14 years agoAdd the encryption option to PptpProfile parcel.
Hung-ying Tyan [Thu, 30 Jul 2009 12:36:27 +0000 (20:36 +0800)]
Add the encryption option to PptpProfile parcel.

14 years agoMerge change 9114 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 11:46:00 +0000 (04:46 -0700)]
Merge change 9114 into donut

* changes:
  Add state saving mechanism to support proc restart

14 years agoAdd state saving mechanism to support proc restart
Hung-ying Tyan [Thu, 30 Jul 2009 06:02:48 +0000 (14:02 +0800)]
Add state saving mechanism to support proc restart

Also...
+ stop daemons before getting server IP;
+ remove setForeground();
+ add the DBG flag for Log.d calls.

PatchSet 3:
+ add CHALLENGE_ERROR and REMOTE_HUNG_UP to VpnManager
+ broadcast new error codes in VpnService
+ check local IP change instead of dns change
+ move removeStates() to VpnService.onFinalCleanUp()

PatchSet 7:
+ add encryption flag to PptpProfile
+ PptpService and MtpdHelper are revised accordingly

14 years agoAdd unit tests for netkeystore.
Chung-yih Wang [Thu, 30 Jul 2009 04:31:08 +0000 (12:31 +0800)]
Add unit tests for netkeystore.

+ some boundary checks.

14 years agoFix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is...
Chih-Chung Chang [Thu, 30 Jul 2009 07:36:13 +0000 (15:36 +0800)]
Fix a bug in ImageView: The drawing matrix is not updated when setImageMatrix is called.

The drawing matrix used in onDraw() is mDrawMatrix, but in setImageMatrix()
only mMatrix is updated. We need to call configureBounds() to update
mDrawMatrix if it was null. The is found in bug 2023281.

14 years agoMerge change 9075 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 04:14:34 +0000 (21:14 -0700)]
Merge change 9075 into donut

* changes:
  Change the resource path for fwd locked apps when scanning the fwd locked install directory

14 years agoMerge change 9039 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 02:44:48 +0000 (19:44 -0700)]
Merge change 9039 into donut

* changes:
  Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA

14 years agoFix #2018814: System cannot correctly render assets with "wrap_content" attribute...
Dianne Hackborn [Wed, 29 Jul 2009 22:41:19 +0000 (15:41 -0700)]
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA

It turns out we were not returning the density for anything retrieved from a
TypedArray...  which basically means any bitmap references from a layout or style...!!!

This is now fixed.

Also fiddle with the density compatibility mode to turn on smoothing in certain situations,
helping the look of things when they need to scale and we couldn't do the scaling at
load time.

14 years agoChange the resource path for fwd locked apps when scanning the fwd locked install
Suchi Amalapurapu [Thu, 30 Jul 2009 00:19:39 +0000 (17:19 -0700)]
Change the resource path for fwd locked apps when scanning the fwd locked install
directory

14 years agoMerge change 9073 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 01:20:18 +0000 (18:20 -0700)]
Merge change 9073 into donut

* changes:
  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.

14 years agoSpecial-case search within the browser to not show the app icon
Mike LeBeau [Thu, 30 Jul 2009 01:17:13 +0000 (18:17 -0700)]
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.

14 years agoMerge change 9071 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 01:09:28 +0000 (18:09 -0700)]
Merge change 9071 into donut

* changes:
  Fix issue #2018454: NullPointerException in ImageSpan constructor

14 years agoFix issue #2018454: NullPointerException in ImageSpan constructor
Dianne Hackborn [Thu, 30 Jul 2009 00:36:27 +0000 (17:36 -0700)]
Fix issue #2018454: NullPointerException in ImageSpan constructor

14 years agoMerge change 9063 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 00:48:56 +0000 (17:48 -0700)]
Merge change 9063 into donut

* changes:
  Fixing bug #2023024 - there is an out of bounds exception that can happen if services are going away as the AccessibilityManagerService is trying to dispatch notifications to these services. Catching this exception and bailing because having this exception means that there are no more services around that need to get this notification.

14 years agoFixing bug #2023024 - there is an out of bounds exception that
Charles Chen [Thu, 30 Jul 2009 00:23:50 +0000 (17:23 -0700)]
Fixing bug #2023024 - there is an out of bounds exception that
can happen if services are going away as the AccessibilityManagerService
is trying to dispatch notifications to these services. Catching this
exception and bailing because having this exception means that there
are no more services around that need to get this notification.

14 years agoMerge change 8966 into donut
Android (Google) Code Review [Thu, 30 Jul 2009 00:16:13 +0000 (17:16 -0700)]
Merge change 8966 into donut

* changes:
  Add tests for android.net.vpn.

14 years agoFix MulticastLock API to match WifiLock API.
Robert Greenwalt [Wed, 29 Jul 2009 23:18:38 +0000 (16:18 -0700)]
Fix MulticastLock API to match WifiLock API.

Adds option to make lock refcounted or not.  Fixes 2017680.

14 years agoMerge change 9035 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 22:27:55 +0000 (15:27 -0700)]
Merge change 9035 into donut

* changes:
  Fix the TabWidget to display custom views for the tabs better when the tabs have different sizes.

14 years agoFix the TabWidget to display custom views for the tabs better when the tabs have...
Jack Veenstra [Wed, 29 Jul 2009 18:00:10 +0000 (11:00 -0700)]
Fix the TabWidget to display custom views for the tabs better when the tabs have different sizes.

14 years agoMerge change 9021 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 21:52:11 +0000 (14:52 -0700)]
Merge change 9021 into donut

* changes:
  DO NOT MERGE - Fix CNAP-related NullPointerException

14 years agoDO NOT MERGE - Fix CNAP-related NullPointerException
Wink Saville [Wed, 29 Jul 2009 21:51:26 +0000 (14:51 -0700)]
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.

14 years agoMerge snapshot variant of donut back into the main tree
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:30:25 +0000 (14:30 -0700)]
Merge snapshot variant of donut back into the main tree

14 years agodonut snapshot
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:25:07 +0000 (14:25 -0700)]
donut snapshot

14 years agoMerge change 8860 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 18:38:44 +0000 (11:38 -0700)]
Merge change 8860 into donut

* changes:
  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.

14 years agoFix bug 2017664
Jean-Michel Trivi [Tue, 28 Jul 2009 21:31:48 +0000 (14:31 -0700)]
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.

14 years agoFix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants...
Wink Saville [Wed, 29 Jul 2009 17:25:09 +0000 (10:25 -0700)]
Fix bug 1994955 where PHONE_TYPE_CDMA was 0 and it should be 2 and added RILConstants.NO_PHONE.

This bug originally reported that PHONE_TYPE_CDMA needed to be 2 because
it was public. But as far as I can tell it has never been public and it
is still marked @hide so is not public now. There is a bug in that
PHONE_TYPE_NONE and PHONE_TYPE_CDMA were both 0. But this doesn't
appear to have been a problem because PHONE_TYPE_NONE doesn't looked to be
used anywhere except in TelephonyManagerTest.

14 years agoMerge change 8962 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 15:33:07 +0000 (08:33 -0700)]
Merge change 8962 into donut

* changes:
  Log uid and package name when launching intents from search

14 years agoAdd tests for android.net.vpn.
Hung-ying Tyan [Wed, 29 Jul 2009 11:49:52 +0000 (19:49 +0800)]
Add tests for android.net.vpn.

14 years agoLog uid and package name when launching intents from search
Bjorn Bringert [Wed, 29 Jul 2009 09:59:25 +0000 (10:59 +0100)]
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.

14 years agoMerge change 8208 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 07:38:53 +0000 (00:38 -0700)]
Merge change 8208 into donut

* changes:
  Removing MD2

14 years agoMerge change 8911 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 05:08:30 +0000 (22:08 -0700)]
Merge change 8911 into donut

* changes:
  Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden

14 years agoMerge change 8757 into donut
Android (Google) Code Review [Wed, 29 Jul 2009 01:34:33 +0000 (18:34 -0700)]
Merge change 8757 into donut

* changes:
  Support x509-user-cert mime type in browser.

14 years agoFix issue #1999179: search -> click result -> press home = search dialog is shown...
Dianne Hackborn [Wed, 29 Jul 2009 00:49:55 +0000 (17:49 -0700)]
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.

14 years agoMerge change 8884 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 23:28:42 +0000 (16:28 -0700)]
Merge change 8884 into donut

* changes:
  DO NOT MERGE. Already in master. Fix calendar test.

14 years agoMerge change 8015 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 23:16:38 +0000 (16:16 -0700)]
Merge change 8015 into donut

* changes:
  Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.

14 years agoMerge change 8883 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 23:12:58 +0000 (16:12 -0700)]
Merge change 8883 into donut

* changes:
  fix [1973755] Surface.SURACE_FROZEN spelled SURACE_FROZEN

14 years agofix [1973755] Surface.SURACE_FROZEN spelled SURACE_FROZEN
Mathias Agopian [Tue, 28 Jul 2009 22:59:52 +0000 (15:59 -0700)]
fix [1973755] Surface.SURACE_FROZEN spelled SURACE_FROZEN

14 years agoDO NOT MERGE. Already in master. Fix calendar test.
Ken Shirriff [Tue, 28 Jul 2009 22:57:50 +0000 (15:57 -0700)]
DO NOT MERGE. Already in  Fix calendar test.

Test was failing because SSL caching calls getFileDir() which wasn't implemented in the mock.

bug=1966269

14 years agoReset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.
David 'Digit' Turner [Tue, 28 Jul 2009 22:38:58 +0000 (00:38 +0200)]
Reset the mDpiX and mDpiY values when qemu.sf.lcd_density is defined.

This will make android.view.Display return corresponding values for
the screen's DPI.

14 years agoMerge change 8877 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 22:34:25 +0000 (15:34 -0700)]
Merge change 8877 into donut

* changes:
  Remove warning in non-eng builds.

14 years agoRemove warning in non-eng builds.
Romain Guy [Tue, 28 Jul 2009 22:30:11 +0000 (15:30 -0700)]
Remove warning in non-eng builds.

14 years agofix [1981759] -no-boot-anim has no effect
Mathias Agopian [Tue, 28 Jul 2009 22:27:39 +0000 (15:27 -0700)]
fix [1981759] -no-boot-anim has no effect

14 years agoMerge change 8832 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 21:18:00 +0000 (14:18 -0700)]
Merge change 8832 into donut

* changes:
  fix [1996214] Boot animation is occasionally messed up

14 years agoMerge change 8840 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 20:11:13 +0000 (13:11 -0700)]
Merge change 8840 into donut

* changes:
  Add padding to height of AutoCompleteTextView drop-down.

14 years agoAdd padding to height of AutoCompleteTextView drop-down.
Bjorn Bringert [Tue, 28 Jul 2009 19:17:27 +0000 (20:17 +0100)]
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

14 years agoMerge change 8752 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 19:36:49 +0000 (12:36 -0700)]
Merge change 8752 into donut

* changes:
  Updates from API review.

14 years agoMerge change 8836 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 19:28:06 +0000 (12:28 -0700)]
Merge change 8836 into donut

* changes:
  Add menu with search settings to search dialog.

14 years agoAdd menu with search settings to search dialog.
Bjorn Bringert [Tue, 28 Jul 2009 18:54:14 +0000 (19:54 +0100)]
Add menu with search settings to search dialog.

Fixes http://b/issue?id=2018143

14 years agofix [1996214] Boot animation is occasionally messed up
Mathias Agopian [Tue, 28 Jul 2009 18:41:30 +0000 (11:41 -0700)]
fix [1996214] Boot animation is occasionally messed up

14 years agoMerge change 8817 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 18:24:39 +0000 (11:24 -0700)]
Merge change 8817 into donut

* changes:
  fix [2017532] Partial Update leaves residual image.

14 years agoMerge change 8825 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 18:19:19 +0000 (11:19 -0700)]
Merge change 8825 into donut

* changes:
  Fixes 2017393. Correctly apply gravity in RelativeLayout.

14 years agoFixes 2017393. Correctly apply gravity in RelativeLayout.
Romain Guy [Tue, 28 Jul 2009 18:18:14 +0000 (11:18 -0700)]
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.

14 years agofix [2017532] Partial Update leaves residual image.
Mathias Agopian [Tue, 28 Jul 2009 17:57:27 +0000 (10:57 -0700)]
fix [2017532] Partial Update leaves residual image.

14 years agoMerge change 8759 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 17:45:35 +0000 (10:45 -0700)]
Merge change 8759 into donut

* changes:
  Cancel search on BACK if IME is obscured.

14 years agoMerge change 8806 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 17:27:56 +0000 (10:27 -0700)]
Merge change 8806 into donut

* changes:
  Mark the the airplane mode internal strings as not translatable.

14 years agoMerge change 8728 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 17:18:47 +0000 (10:18 -0700)]
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.

14 years agoFix resource code and version attributes
Suchi Amalapurapu [Mon, 27 Jul 2009 22:21:34 +0000 (15:21 -0700)]
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

14 years agoMark the the airplane mode internal strings as not translatable.
Eric Fischer [Tue, 28 Jul 2009 17:17:25 +0000 (10:17 -0700)]
Mark the the airplane mode internal strings as not translatable.

Bug 2017552

14 years agoCancel search on BACK if IME is obscured.
Bjorn Bringert [Tue, 28 Jul 2009 11:03:29 +0000 (12:03 +0100)]
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

14 years agoMerge change 8773 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 14:19:26 +0000 (07:19 -0700)]
Merge change 8773 into donut

* changes:
  Only dismiss search on suggestion click in in-app search

14 years agoOnly dismiss search on suggestion click in in-app search
Bjorn Bringert [Tue, 28 Jul 2009 14:15:26 +0000 (15:15 +0100)]
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

14 years agoSupport x509-user-cert mime type in browser.
Chung-yih Wang [Tue, 28 Jul 2009 10:37:13 +0000 (18:37 +0800)]
Support x509-user-cert mime type in browser.

+ Fix the public key matching and intent parameter mismatch.

14 years agoForgot to convert the jstring to char* in certificate request.
Chung-yih Wang [Tue, 28 Jul 2009 07:15:51 +0000 (15:15 +0800)]
Forgot to convert the jstring to char* in certificate request.

14 years agoUpdates from API review.
Dianne Hackborn [Tue, 28 Jul 2009 07:13:47 +0000 (00:13 -0700)]
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

14 years agoMerge change 8740 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 05:15:35 +0000 (22:15 -0700)]
Merge change 8740 into donut

* changes:
  Fix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation change

14 years agoFix issue #2015611: layering problem when moving an activity to the foreground.
Dianne Hackborn [Tue, 28 Jul 2009 04:51:05 +0000 (21:51 -0700)]
Fix issue #2015611: layering problem when moving an activity to the foreground.

"surface of singleTop acitivy is not added at the top, causing the activity is resumed
behind the top activity."

14 years agoFix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation...
Dianne Hackborn [Tue, 28 Jul 2009 03:48:50 +0000 (20:48 -0700)]
Fix issue #1991230: DisplayMetrics.displayHeight is not updated with orientation change

14 years agoMerge change 8620 into donut
Android (Google) Code Review [Tue, 28 Jul 2009 02:46:35 +0000 (19:46 -0700)]
Merge change 8620 into donut

* changes:
  Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation.

14 years agoMerge change 8678 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 22:08:03 +0000 (15:08 -0700)]
Merge change 8678 into donut

* changes:
  Fixing bug #2008185 - problem with the TTS dropping utterances under heavy load was caused by the speech queue being locked. Switched to using a timeout with tryLock so that the TTS service does not give up immediately.

14 years agoMerge change 8682 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 21:31:33 +0000 (14:31 -0700)]
Merge change 8682 into donut

* changes:
  New small rating stars from the UI designers.

14 years agoFixing bug #2008185 - problem with the TTS dropping
Charles Chen [Mon, 27 Jul 2009 20:43:08 +0000 (13:43 -0700)]
Fixing bug #2008185 - problem with the TTS dropping
utterances under heavy load was caused by the speech
queue being locked. Switched to using a timeout with
tryLock so that the TTS service does not give up
immediately.

14 years agoNew small rating stars from the UI designers.
Ilya Firman [Mon, 27 Jul 2009 21:00:53 +0000 (14:00 -0700)]
New small rating stars from the UI designers.

14 years agoMerge change 8677 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 20:55:18 +0000 (13:55 -0700)]
Merge change 8677 into donut

* changes:
  DO NOT MERGE.

14 years agoDO NOT MERGE.
Grace Kloba [Mon, 27 Jul 2009 20:44:47 +0000 (13:44 -0700)]
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.

14 years agoMerge change 8616 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 19:03:36 +0000 (12:03 -0700)]
Merge change 8616 into donut

* changes:
  Fiddle with default densities to try to sanitize the API.

14 years agoMerge change 8648 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 17:49:07 +0000 (10:49 -0700)]
Merge change 8648 into donut

* changes:
  Use the old string for bookmarks permissions.

14 years agoDPAD_DOWN moves from search/voice search key to drop-down
Bjorn Bringert [Mon, 27 Jul 2009 16:10:46 +0000 (17:10 +0100)]
DPAD_DOWN moves from search/voice search key to drop-down

Fixes http://b/issue?id=2014688

14 years agoUse the old string for bookmarks permissions.
Leon Scroggins [Mon, 27 Jul 2009 15:10:28 +0000 (11:10 -0400)]
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

14 years agoRemove search dialog PRE_CLOSE event
Bjorn Bringert [Mon, 27 Jul 2009 10:48:32 +0000 (11:48 +0100)]
Remove search dialog PRE_CLOSE event

This is part of the fix for http://b/issue?id=2000655

14 years agoSend max displayed position in search dialog click event
Bjorn Bringert [Mon, 27 Jul 2009 10:44:56 +0000 (11:44 +0100)]
Send max displayed position in search dialog click event

This is part of the fix for http://b/issue?id=2000655

14 years agoFix swapped gsm/cdma function dispatch, and 7bit text fragmentation.
Tammo Spalink [Mon, 27 Jul 2009 07:45:38 +0000 (15:45 +0800)]
Fix swapped gsm/cdma function dispatch, and 7bit text fragmentation.

14 years agoMerge change 8612 into donut
Android (Google) Code Review [Mon, 27 Jul 2009 05:01:43 +0000 (22:01 -0700)]
Merge change 8612 into donut

* changes:
  Remove visibility checks from SearchManager tests

14 years agoFiddle with default densities to try to sanitize the API.
Dianne Hackborn [Mon, 27 Jul 2009 00:42:30 +0000 (17:42 -0700)]
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.

14 years agoSimplify the VPN service implementation.
Hung-ying Tyan [Wed, 22 Jul 2009 23:37:27 +0000 (07:37 +0800)]
Simplify the VPN service implementation.

+ Remove NormalProcessProxy and ProcessProxy as they are not used
  anymore.
+ Rename AndroidServiceProxy to DaemonProxy and simplify its
  implementation as it does not extend to ProcessProxy anymore.
+ Execute connect() in VpnService in one thread, which simplifies socket
  and error handling.
+ Modify service subclasses accordingly.
+ Execute connect() and disconnect() in VpnServiceBinder so that the
  operations do not block the UI thread. Mark service as foreground only upon
  connecting.

14 years agoRemove visibility checks from SearchManager tests
Bjorn Bringert [Sun, 26 Jul 2009 21:27:47 +0000 (22:27 +0100)]
Remove visibility checks from SearchManager tests

Since the search UI is handled by the system process, and
the service calls to show and hide it are asynchronous,
the tests that checked the visibility of the search UI were
very flaky. This change sclaes the tests back to just check
that nothing crashes when showing and hiding the search UI.

Fixes http://b/issue?id=1993675

14 years agoMerge change 8564 into donut
Android (Google) Code Review [Sat, 25 Jul 2009 03:52:01 +0000 (20:52 -0700)]
Merge change 8564 into donut

* changes:
  Merge doc change from cupcake: commit 'a8d035ccf319e1aed685a1e1509681350f737fd1' into manualmerge