OSDN Git Service

android-x86/frameworks-base.git
15 years agoFix the auto notification cleanup when vpn is disconnected.
Chung-yih Wang [Mon, 3 Aug 2009 07:01:58 +0000 (15:01 +0800)]
Fix the auto notification cleanup when vpn is disconnected.

+ add the log print if the browser give the incorrect data in addCertificate().

15 years agoMerge change 9438 into donut
Android (Google) Code Review [Sat, 1 Aug 2009 03:15:15 +0000 (20:15 -0700)]
Merge change 9438 into donut

* changes:
  Change some log.i to log.d.

15 years agoChange some log.i to log.d.
Hung-ying Tyan [Sat, 1 Aug 2009 02:11:46 +0000 (10:11 +0800)]
Change some log.i to log.d.

15 years agoMerge snapshot variant of donut back into the tree
Jean-Baptiste Queru [Sat, 1 Aug 2009 00:43:55 +0000 (17:43 -0700)]
Merge snapshot variant of donut back into the tree

15 years agodonut snapshot
Jean-Baptiste Queru [Sat, 1 Aug 2009 00:38:20 +0000 (17:38 -0700)]
donut snapshot

15 years agoadd api level doc to the appendix
Scott Main [Fri, 31 Jul 2009 20:11:07 +0000 (13:11 -0700)]
add api level doc to the appendix

15 years agoMerge change 9340 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 15:50:45 +0000 (08:50 -0700)]
Merge change 9340 into donut

* changes:
  Fix issue 2025872: Deadlock in SoundPool.stop

15 years agoMerge change 9285 into donut
Android (Google) Code Review [Fri, 31 Jul 2009 14:11:25 +0000 (07:11 -0700)]
Merge change 9285 into donut

* changes:
  Clear singleton reference during JetPlayer.release()

15 years agoFix issue 2025872: Deadlock in SoundPool.stop
Eric Laurent [Fri, 31 Jul 2009 13:29:13 +0000 (06:29 -0700)]
Fix issue 2025872: Deadlock in SoundPool.stop

There were 2 problems in SoundPool:

1 If not using the shared memory buffer mode, there was a problem when a sound channel was stolen. The new channel could sometimes not be added to the restart
list if the AudioTrack callback thread was stopped before the underrun callback was called.

The SoundChannel::play() method is modified so that SoundPool::done() is called immediately after stopping the channel. There is a possibility that done() is called a second time by the callback; in this case it will be added 2 times to the restart list but the second start request will be ignored as the first one will have reset the next chennel ID when processed.

2 There was a deadlock on SoundPool::mLock if SoundPool::stop() was called while a channel restart was pending:
 SoundPool::stop() lock mLock -> SoundChannel::stop() -> SoundPool::done() -> SoundPool::addToRestartList() -> try to lock mLock == deadlock

A second mutex mRestartLock is added to protect the restart list mRestart. mLock is still used to protect mChannels list but mRestart is now used to
protect access to mRestart by restart thread and client thread.

15 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.

15 years agoClear singleton reference during JetPlayer.release()
Phil Dubach [Fri, 31 Jul 2009 00:59:02 +0000 (17:59 -0700)]
Clear singleton reference during JetPlayer.release()

Only one JetPlayer instance is supported at a time. A singleton reference is
created and returned in JetPlayer.getInstance(). When calling release() on the
instance, the corresponding native player is finalized.  Therefore, release()
must also clear the singleton reference, so that any subsequent call to
getInstance() re-initializes the native player.

15 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

15 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

15 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

15 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

15 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

15 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.

15 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.

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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

15 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.

15 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

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

15 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.

15 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.

15 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.

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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.

15 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.

15 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.

15 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

15 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

15 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

15 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.

15 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.

15 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.

15 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

15 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

15 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.

15 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

15 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.

15 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.

15 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

15 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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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

15 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

15 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

15 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

15 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

15 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.

15 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.

15 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

15 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

15 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."

15 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

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.

15 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.