7573 Commits

Author SHA1 Message Date
Alex Gruenstein
361ec7711a do not merge. Revert "do not merge. Remove voicesearch-specific functionality from framework."
This reverts commit f1b64f64ab088a3e8cd32ec31f61c958c61d19e5.

It also updates RecognitionResult.java with changes made while it was in the voicesearch branch.

Change-Id: Ibffbe25397628a01ec49393a23c1825cef116501
2009-09-16 17:58:37 -07:00
Android (Google) Code Review
82dbf67851 Merge change 24998 into eclair
* changes:
  Add Panasonic KX-TH112 to blacklist.
2009-09-15 11:29:52 -04:00
Android (Google) Code Review
2bccbcc777 Merge change 25050 into eclair
* changes:
  Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
2009-09-15 11:29:23 -04:00
Nick Pelly
adbaef234e Add Panasonic KX-TH112 to blacklist.
Change-Id: I12475aff4046796132beb2554cd067bcec712973
2009-09-15 08:24:52 -07:00
Android (Google) Code Review
f73f91c5b1 Merge change 25012 into eclair
* changes:
  PowerManagerService: Use 5 cm threshold for the proximity sensor.
2009-09-15 10:32:13 -04:00
Android (Google) Code Review
4e3cdf8544 Merge change 23619 into eclair
* changes:
  Add automatic lighting control framework
2009-09-15 10:29:26 -04:00
Eric Laurent
296a0ec7e1 Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist.
The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list.

The fix consists in sending the notification in closeOutput() and not when exiting the playback thread.
The same fix is applied to record threads.
2009-09-15 07:10:12 -07:00
Chih-Chung Chang
244f8c2636 Fix 2083478: Camera needs an auto-focus cancel API
Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
2009-09-15 18:29:03 +08:00
Mike Lockwood
d20ea369b2 PowerManagerService: Use 5 cm threshold for the proximity sensor.
This eliminates the assumption that the proximity sensor will always return
zero distance when it is active.

Change-Id: I6245b074e4c42aeae3a181e6a5087554517046d2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 02:29:28 -04:00
Dan Murphy
951764b970 Add automatic lighting control framework
Add changes to have the ability to turn on and off the
automatic light sensing for the device.  This is fully configurable
and is by default not  present.  Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible.  Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 02:29:15 -04:00
Android (Google) Code Review
54c06152e0 Merge change 24872 into eclair
* changes:
  Fix issue 2115450: a2dp thread is started, even though we are only connected to headset and not playing music.
2009-09-15 02:26:19 -04:00
Android (Google) Code Review
678b4c20cb Merge change 25013 into eclair
* changes:
  Various fixed for back key handling.
2009-09-15 00:26:45 -04:00
Dianne Hackborn
8d37426c75 Various fixed for back key handling.
My last change was far from perfect.  Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
2009-09-14 21:21:52 -07:00
Android (Google) Code Review
151921a624 Merge change 24977 into eclair
* changes:
  add support for RGBX_8888 surfaces in SurfaceFlinger
2009-09-14 21:11:56 -04:00
Mathias Agopian
64a7c6bf5b add support for RGBX_8888 surfaces in SurfaceFlinger 2009-09-14 18:10:30 -07:00
Android (Google) Code Review
bd443c01a0 Merge change 24887 into eclair
* changes:
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
2009-09-14 21:07:00 -04:00
Android (Google) Code Review
294cd9856e Merge change 24850 into eclair
* changes:
  Last big work on #1991910: Make swipes work with capacitive keys
2009-09-14 20:56:46 -04:00
Dianne Hackborn
83fe3f5592 Last big work on #1991910: Make swipes work with capacitive keys
This takes care of allowing us to cancel the back button.  The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog.  There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses.  This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases.  (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager.  This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
2009-09-14 17:53:52 -07:00
Android (Google) Code Review
53793416d4 Merge change 24662 into eclair
* changes:
  Fix URI returned by IccProvider.
2009-09-14 20:30:43 -04:00
Android (Google) Code Review
4503cb75a0 Merge change 24968 into eclair
* changes:
  Minor perf tweak for fountain.
2009-09-14 20:15:31 -04:00
Dianne Hackborn
c297480937 Fix issue #2116977: buttons are huge and bent
Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
2009-09-14 16:32:56 -07:00
Android (Google) Code Review
e7f47f50ad Merge change 24921 into eclair
* changes:
  add system properties for experimenting with sync timeouts.
2009-09-14 19:30:37 -04:00
Debajit Ghosh
44ee0f03f9 add system properties for experimenting with sync timeouts. 2009-09-14 16:22:12 -07:00
Leon Scroggins
74077c8f2e Clear the password field when reloading the current page.
Fixes http://b/issue?id=2119142

Change-Id: I14bfcc6873f295c4d24ef7ee10450fd444dbe82c
2009-09-14 19:06:04 -04:00
Android (Google) Code Review
b06aac86d1 Merge change 24948 into eclair
* changes:
  fix [2117464] SF can crash when calling dumpsys
2009-09-14 19:02:19 -04:00
Android (Google) Code Review
a1212578bf Merge change 24947 into eclair
* changes:
  make sure to update the tail pointer when undoing a dequeue
2009-09-14 19:01:40 -04:00
Mathias Agopian
53973fda84 fix [2117464] SF can crash when calling dumpsys 2009-09-14 15:59:16 -07:00
Android (Google) Code Review
0d55811332 Merge change 24932 into eclair
* changes:
  Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues...
2009-09-14 18:48:58 -04:00
Mathias Agopian
bd8527110c make sure to update the tail pointer when undoing a dequeue 2009-09-14 15:48:42 -07:00
Android (Google) Code Review
d023f9a9a9 Merge change 24829 into eclair
* changes:
  Some optizations to wallpaper drawing/scrolling.
2009-09-14 18:45:42 -04:00
Android (Google) Code Review
aa931bcb0a Merge change 24841 into eclair
* changes:
  process: Switch to common cutils sched_policy api
2009-09-14 18:31:39 -04:00
Dianne Hackborn
19382ac1a4 Some optizations to wallpaper drawing/scrolling.
First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off.   We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable.  As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset.  This ensures
that the wallpaper better tracks the application.  Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
2009-09-14 15:29:44 -07:00
Andreas Huber
92022857fb Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues... 2009-09-14 15:24:14 -07:00
Android (Google) Code Review
55bfddad19 Merge change 24931 into eclair
* changes:
  Fix the bogus crashes in layout and reliability tests (the device actually went offline).
2009-09-14 18:21:51 -04:00
Guang Zhu
ad1e25da74 Fix the bogus crashes in layout and reliability tests (the device actually went offline). 2009-09-14 15:20:52 -07:00
Android (Google) Code Review
944808f392 Merge change 24927 into eclair
* changes:
  Fix a possible NPE in View.
2009-09-14 18:15:59 -04:00
Romain Guy
8c11e31143 Fix a possible NPE in View.
Change-Id: Ieebd176e1f42c78e298aca973e9e5eed2dc3c6d9
2009-09-14 15:15:30 -07:00
Jason Sams
988f6ebb44 Minor perf tweak for fountain. 2009-09-14 15:00:05 -07:00
Jaikumar Ganesh
482d54bb0c Add black listing of car kits by name. 2009-09-14 14:55:24 -07:00
Android (Google) Code Review
df5e76f9c6 Merge change 24814 into eclair
* changes:
  Enable log message for tracking issue #2092299.
2009-09-14 17:37:56 -04:00
Leon Scroggins
d247aadfc4 Bring up the soft keyboard when touching a focused textfield.
Fix for http://b/issue?id=2118333

Change-Id: Ifa540de139b35548dde2b714b628ca1879a605c5
2009-09-14 17:01:28 -04:00
Grace Kloba
dd8174928c Remove trackball double click. Treat each click as a single click. 2009-09-14 13:34:39 -07:00
Android (Google) Code Review
31504f0bf4 Merge change 24847 into eclair
* changes:
  PowerManagerService: Fix keyboard backlight support:
2009-09-14 15:39:16 -04:00
Cary Clark
298d32e193 Set the minimum fling to the title height.
Dragging and flinging have different minimums for the max Y
value. Allow the fling to have the title height instead of zero
for the minimum max Y so the title can always be removed via
fling.

This fixes http://b/issue?id=2109006
2009-09-14 15:21:14 -04:00
Mike Lockwood
a625b38cb3 PowerManagerService: Fix keyboard backlight support:
Turn off keyboard backlight immediately when keyboard is closed.
Changing keyboard visibility state signals user activity except in the case
where the keyboard is closed and the screen is already off.

Fixes bugs b/1351141 and b/1319625

Change-Id: If4bf2c1dd8e0c2bc08196e443b6103a6041f27e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-14 15:08:37 -04:00
Android (Google) Code Review
7cec54302d Merge change 24903 into eclair
* changes:
  Fix some LayoutBridge javadoc.
2009-09-14 15:05:49 -04:00
Android (Google) Code Review
13bc4ad18b Merge change 24902 into eclair
* changes:
  Add "rtsp" to the list of URL schemes that get linkified.
2009-09-14 14:54:42 -04:00
Eric Fischer
7a4be89f5a Add "rtsp" to the list of URL schemes that get linkified.
Bug 1845298
2009-09-14 11:48:50 -07:00
Android (Google) Code Review
1fa724470c Merge change 24898 into eclair
* changes:
  Fix the parsing for instrumentation result, some Java exceptions are not reported right now
2009-09-14 14:29:15 -04:00
Guang Zhu
60ef21a5da Fix the parsing for instrumentation result, some Java exceptions are not reported right now 2009-09-14 11:27:40 -07:00