56477 Commits

Author SHA1 Message Date
Eric Laurent
96f218e0b9 Fix issue 5131056: key beeps when screen is locked
Clear AudioManager.FLAG_PLAY_SOUND in AudioService adjustSuggestedStreamVolume()
if keyguard is locked.

Change-Id: I2effb9cab8d946845e948b28899b17d7f24c1282
2011-08-15 17:57:05 -07:00
Matthew Xie
269cf1b214 Merge "Implement switchConnectable with Powered property setting instead of scan modes" 2011-08-15 11:49:31 -07:00
Bart Sears
643c7dccbc Merge "Fix xml coding style (turn tabs to spaces)" 2011-08-15 11:43:40 -07:00
Daniel Lehmann
5cf1f1b26b Merge "Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers to avoid name collision." 2011-08-15 11:39:58 -07:00
Matthew Xie
14e48e91f6 Implement switchConnectable with Powered property setting instead of scan modes
Bluez powered property setting is more apropriate for what this method intend to
achieve and it fixes a bug that incoming connection request wake up the stack in
The pairable events are replaced by power and discoverable events
HotOff state
bug 5080232

Change-Id: I43b44cb2f5203bd99bf764d5a1696e8ff52a31db
2011-08-15 11:31:54 -07:00
Amith Yamasani
7d8fc3c911 Merge "Revert "Use a weakreference to prevent the static variable from holding an Activity." Bug was fixed in a different way." 2011-08-15 11:14:19 -07:00
Tom Taylor
8f8dae158b Merge "Add private permission for sending SMS via Messaging app" 2011-08-15 10:59:30 -07:00
Adam Powell
e21f89c802 Merge "Fix bug 5159596 - Slider grabs touch point when trying to scroll a list" 2011-08-15 10:29:10 -07:00
Tom Taylor
b0381688b8 Add private permission for sending SMS via Messaging app
When the phone dialer sends an sms, it will use the Messaging app.
That way the sent messages will end up in the messaging provider db
and sending will be more reliable. Currently, the phone dialer
uses the SmsManager directly. For now, the feature is only
available to system apps and the permission is private. Bug 4563486

Change-Id: I10f7e1042683164ee61d01a2aaf738d19084da72
2011-08-15 10:27:53 -07:00
Eric Fischer
b3faa42f49 Merge "Move date format strings to donottranslate.xml and add locale overrides." 2011-08-15 10:24:49 -07:00
Claudia de Veaux
d53944b7e6 Merge "Edit to APN read/write APN Settings permissions. Bug: 5145868" 2011-08-15 10:24:19 -07:00
Gilles Debunne
186c1683ce Merge "Text suggestions are enabled for a subset of input types" 2011-08-15 10:07:59 -07:00
Jeff Sharkey
f2452b997c Merge "Change Preferences padding to match UI spec." 2011-08-14 21:18:02 -07:00
Jeff Brown
8b65c902ee Merge "Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel. Bug: 5161290" 2011-08-14 20:13:19 -07:00
Chih-Chung Chang
cb04a1f3a3 Speed up thumbnail generation.
We don't need to have precise position for thumbnails, so we add
a tolerance parameter to the decoder. The decoder can return an
earlier frame within the tolerance time given.

Change-Id: I0a49ed6b03f8c3264606e4143dd5ecf48e9d0f62
2011-08-15 10:08:33 +08:00
Adam Powell
1029866a12 Fix bug 5159596 - Slider grabs touch point when trying to scroll a list
SeekBar widgets were not good citizens when placed in scrolling containers.
Detect when a SeekBar being touched is in a scrolling container and fall
back to a touch slop-based method for beginning a drag. Taps along the
seek bar itself will still change the value on touch up, even if the touch
slop never initiated a proper drag.

Factor out the code used to determine scrolling container status in View
into something that can be reused elsewhere in the framework; leave it
@hidden for now.

Change-Id: I59a21e8ab2c3b0092fafedbcd6ae1ee15f45971c
2011-08-14 18:29:23 -07:00
Adam Powell
37d81ac316 Merge "Fix bug 4981687 - WiFi connection dialog should dismiss when tapped outside." 2011-08-14 17:38:27 -07:00
Adam Powell
27b1c978ce Merge "Fix bug 5154361 - New force close dialog text breaks button order rules" 2011-08-14 17:23:29 -07:00
Adam Powell
d42bc52030 Fix bug 4981687 - WiFi connection dialog should dismiss when tapped outside.
Be more forceful in how we allow touch outside to dismiss in
non-fullscreen situations. Dialogs will be canceled. Activities will
be finished.

Change-Id: I041a60501319829a2214f9249d154d5513049a0f
2011-08-14 17:16:37 -07:00
Adam Powell
40a9784d48 Fix bug 5154361 - New force close dialog text breaks button order rules
Reorder the force close/ANR dialog buttons to better match the new
rules/intent from UX.

Change-Id: I30fed56aabd0cc91d07852807347057176d82aaa
2011-08-14 17:13:10 -07:00
Adam Powell
32ab095751 Merge "Fix bug 5159736 - Make DeviceDefault the default" 2011-08-14 16:57:45 -07:00
Adam Powell
6e90a362bc Fix bug 5159736 - Make DeviceDefault the default
Have the framework refer to the DeviceDefault themes for ICS apps that
don't explicitly request another theme.

Change-Id: I27dd0bbaa60f71df4f36e47d260f556d923ba075
2011-08-14 16:49:22 -07:00
Bart Sears
3939c35a6c Fix xml coding style (turn tabs to spaces)
Bug: 5128762
Change-Id: Idc67a7f35e53ec4ccade37f95c3648430b2674a2
2011-08-14 16:21:06 -07:00
Jean-Michel Trivi
70b5c66a24 Merge "Fail request for audio focus when linkToDeath fails" 2011-08-14 16:12:09 -07:00
Daniel Lehmann
b93ce4ae86 Merge "Several API changes as requested by ES:" 2011-08-14 16:01:59 -07:00
Daniel Lehmann
f188dfda30 Several API changes as requested by ES:
- Switch from resource ids to names to prevent breakage on package upgrade
   Bug:5135277
 - Add SYNC1...SYNC4 columns to StreamItems and StreamItemPhotos
   Bug:5119385
 - Remove ACTION, ACTION_URI from Groups, StreamItems and StreamItemPhotos
   (this reduces db size and prevents click intercepting)
   Bug:5135808
 - Add some raw-contact fields to the StreamItem query
   Bug:5134081

Doing those changes in one block to prevent too many db upgrade steps

Change-Id: I5618e210206e0315b91f5883e6b6b386dccb5881
2011-08-14 15:39:22 -07:00
Jean-Michel Trivi
baf674eedd Fail request for audio focus when linkToDeath fails
When requesting audio focus and linkToDeath() threw a
 RemoteException, AudioService was only logging a warning, and
 was still changing the focus, with a non-null death handler.
The change first check that linkToDeath() didn't fail, and only
 then proceeds to change the focus (dispatch focus change
 notification, updates the focus stack, and updates the remote
 controls).

Change-Id: I0b96dd3c6e924d93f419880349d49f8b360b110b
2011-08-14 15:16:21 -07:00
Mike Lockwood
52727fc38a Merge "MediaScanner: Clear file path before deleting records to avoid accidental file deletions" 2011-08-14 14:39:12 -07:00
Jean-Michel Trivi
5a586199ce Merge "Fix leak of global references and AudioFocusDeathHandler objects." 2011-08-14 14:24:09 -07:00
Elliott Hughes
be414332a1 Fix android.text.format.Time to use GetBooleanField on its boolean field.
Bug: 5162851
Change-Id: I49b1429e86ffa91fbfb8b4c9d1a0c6d30c72621e
2011-08-14 13:31:03 -07:00
Jean-Michel Trivi
061214bb71 Fix leak of global references and AudioFocusDeathHandler objects.
Need to call unlinkToDeath() for the object to be garbage collected.
Save the object in the FocusStackEntry, unlink to death when we remove it from the stack.
See http://b/issue?id=5048400

Change-Id: I84c5ba46017d0a8744b5e7509a7c7a5c8dd918fb
author: olivier@google.com
2011-08-14 11:37:24 -07:00
Mike Lockwood
f2e2b523dd MediaScanner: Clear file path before deleting records to avoid accidental file deletions
Bug: 5140112
See also http://code.google.com/p/android/issues/detail?id=3692

Change-Id: I971eea83a2f3986a0b0ea018b7211f2525b914ab
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-08-14 10:35:54 -07:00
Amith Yamasani
b724c346e1 Revert "Use a weakreference to prevent the static variable from holding an Activity."
Bug was fixed in a different way.

This reverts commit 352c01e2133b71918fa1cb2783a0a10e56117775.
2011-08-13 07:43:07 -07:00
Adam Powell
99f09c27a4 Merge "Fix bug 5078498 - Icons jump around on split action bar" 2011-08-12 23:36:20 -07:00
Adam Powell
14b7e2c168 Fix bug 5078498 - Icons jump around on split action bar
Revise measurement and layout code for the lower menu on a split
action bar.

Fix some metrics in the action mode close button and in button bars.

Change-Id: I76215e28ae3b0199162dedd32794b25c9e38a346
2011-08-12 23:34:47 -07:00
Wink Saville
a91f2703ae Merge "Update sim_removed_message string." 2011-08-12 23:22:08 -07:00
Romain Guy
3a5f2e6f09 Merge "<blink/> is not an acceptable default behavior. Bug #5156334" 2011-08-12 19:39:20 -07:00
Dianne Hackborn
9beeb95c80 Merge "Turn off hinting by default for higher density displays." 2011-08-12 19:17:09 -07:00
Dianne Hackborn
f43fa5746e Turn off hinting by default for higher density displays.
Also adds an API for apps to control whether hinting is used.

Change-Id: I1a06b06255fbb8d0f02a8ce48c2cd60019088ed3
2011-08-12 18:59:39 -07:00
Eric Laurent
54074fe3c8 Merge "Issue 5081351: isWiredHeadsetOn() permission." 2011-08-12 18:48:35 -07:00
Amith Yamasani
f9ef0db88f Merge "Use a weakreference to prevent the static variable from holding an Activity." 2011-08-12 18:35:50 -07:00
Jeff Brown
0a0ab128a6 Use PARCELABLE_WIRTE_RETURN_VALUE flag in InputChannel.
Bug: 5161290

Replace mDisposeAfterWriteToParcel with code that takes advantage
of the standard Parcel API support for releasing resources after
writing a Binder reply.

This change makes it less likely that InputChannels will leak
accidentally when passed across a Binder.

Change-Id: Id37706e7b88d074e8e4ac687c88f0db8963200f2
2011-08-12 18:08:08 -07:00
Eric Laurent
497b3fe725 Issue 5081351: isWiredHeadsetOn() permission.
AudioManager.isWiredHeadsetOn() should not require permission MODIFY_AUDIO_SETTINGS.
Remove permission checks on all getters in audio policy manager as permission enforcement
is really usefull for setters.
Also deprecate AudioManager.isWiredHeadsetOn() which name and implementation are deceptive.

Change-Id: I38f8df7c26c0d417bf0e2b74e4c11c2d143f2ecd
2011-08-12 17:43:35 -07:00
Mathias Agopian
7b53848d14 Merge "fix an orientation change drawing artifact." 2011-08-12 17:13:01 -07:00
Mathias Agopian
b290b5e3cb fix an orientation change drawing artifact.
a wrong orientation would be briefly shown when
rotation the screen. this happened when the window manager
set a custom transformation and the h/w composer was used.

the custom transformation was applied twice in that case.

Bug: 5037522
Change-Id: Ic1f87b63cd843f4475e4265d1624463825d775c4
2011-08-12 17:09:09 -07:00
Eric Fischer
605a114631 Move date format strings to donottranslate.xml and add locale overrides.
Change-Id: Ief48888f12f5f57dfbde6d07d35bb8260fe0f9ce
2011-08-12 17:01:00 -07:00
James Dong
65de903a88 Merge "If release has been called before finalize, do not expect MediaPlayer still exists" 2011-08-12 16:41:56 -07:00
James Dong
43ef913815 If release has been called before finalize, do not expect MediaPlayer still exists
o also, we should releae the surface object when release is called, not wait until finalize is called.

related-to-bug: 5157956

Change-Id: I0233ad61d8349c3e3800de68b752b9548ece1742
2011-08-12 16:39:47 -07:00
Conley Owens
e81ad0aa13 am e5cb629f: Merge "Add missing include" include exists
* commit 'e5cb629f3761b272ea52104c1093e0007f5c41b5':
  Add missing include
2011-08-12 16:27:01 -07:00
Amith Yamasani
5d36715a76 am 648dc03c: am 4dbd1bc6: am 5f074067: am 712a8cca: Merge "VolumePreference.onActivityStop only stops playback"
* commit '648dc03cd038a726b25929f9ffc142eb16e891e8':
  VolumePreference.onActivityStop only stops playback
2011-08-12 16:26:57 -07:00