3787 Commits

Author SHA1 Message Date
Romain Guy
3616a412cb Preserve ListView's pressed state when the adapter changes its content while the user is pressing an item.
Change-Id: Id5ac804a4053951430d16cf0d87fc7b64c816717
2009-09-15 13:57:27 -07:00
Cary Clark
674a844f6d synchronize access to pictureReady, copyContentPicture
Two methods in WebViewCore are called from WebView. The C
underpinnings were synchronized with a mutex, but the Java
shell was not, so under rare cirumstances, the Java side might
delete the native class. Add Java synchronization to
protect against this.

Fixes http://b/issue?id=2121684
2009-09-15 16:29:50 -04:00
Jean-Michel Trivi
91a5d831d6 am b5308a70: Merge change 24816 into donut
Merge commit 'b5308a7051fedacf289470c8a7e21b63af9d4db8' into eclair

* commit 'b5308a7051fedacf289470c8a7e21b63af9d4db8':
  TextToSpeech javadoc update.
2009-09-15 13:18:46 -07:00
Mike Reed
df4cf29715 redraw once more on a touch-up if we've been dragging, so we can redraw in high-quality mode
update dox on BlurMaskFilter
2009-09-15 16:16:05 -04:00
Evan Millar
e727f18cf2 Add the FasttrackBadgeWidget.
This widget is an extension of ImageView that takes care of the standard
fasttrack badging and on-click behavior. It should be used in any
applications that display contact photos.

This view's name will have to be changed before release, and will be
kept private until the name change is made. At that point the view will
be made public api.

Change-Id: I4704e0e979466929ad7b2ef11911681a5028b4a7
2009-09-15 13:00:49 -07:00
Android (Google) Code Review
6d9eebe732 Merge change 25090 into eclair
* changes:
  Move backlight brightness from HardwareService to PowerManager
2009-09-15 15:50:51 -04:00
Mike Lockwood
237a29923a Move backlight brightness from HardwareService to PowerManager
to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming

Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-15 15:47:09 -04:00
Android (Google) Code Review
0ae011b6f6 Merge change 24990 into eclair
* changes:
  change to use the new CALLER_IS_SYNCADAPTER flag
2009-09-15 15:26:42 -04:00
Bjorn Bringert
ed2c13a9d2 Revert "Deprecate showSearchIconAsBadge and icon search attrs"
I tried to revert a flag, but that doesn't actually work
and ended up deprecating the entire attribute.

This reverts commit ab50b86b79936623b5e326f2ed84b3c947c8ec93.
2009-09-15 19:49:10 +01:00
Dianne Hackborn
1cd403eaac Add SurfaceView API to put surface on top of window.
Change-Id: I9db84ee63a362e54ebc2f5b24a20ae5bdc3588bf
2009-09-15 11:29:00 -07:00
Grace Kloba
04b2868c74 WebView zoom clean up 2009-09-15 10:53:44 -07:00
Cary Clark
db6d939d2b if the cursor and focus don't match, match them on text view clicks
Call nativeMotionUp from touchUpOnTextField to move the
mouse cursor to the text field if necessary before moving
the text caret to the desired position.

Fixes http://b/issue?id=2075647
2009-09-15 13:24:33 -04:00
Cary Clark
df344375a9 compute Y scroll max by scaling only, ignoring title bar height
without this, the max scroll may be a single pixel
2009-09-15 13:24:32 -04:00
Android (Google) Code Review
5adeba4b7f Merge change 25059 into eclair
* changes:
  special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to round "out" these, to account for the slop in antialiasing, rather than using the existing routines that (correctly) round.
2009-09-15 13:19:56 -04:00
Mike Reed
e9e86b8908 special-case coordinate conversion when we are taking content coordinates to be invalidate. We need to
round "out" these, to account for the slop in antialiasing, rather than using the existing routines
that (correctly) round.
2009-09-15 13:14:20 -04: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
Nick Pelly
adbaef234e Add Panasonic KX-TH112 to blacklist.
Change-Id: I12475aff4046796132beb2554cd067bcec712973
2009-09-15 08:24:52 -07: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
Chih-Chung Chang
244f8c2636 Fix 2083478: Camera needs an auto-focus cancel API
Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
2009-09-15 18:29:03 +08: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
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
Fred Quintana
33f889ae27 change to use the new CALLER_IS_SYNCADAPTER flag 2009-09-14 20:55:43 -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
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
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
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
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
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
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
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
b5308a7051 Merge change 24816 into donut
* changes:
  TextToSpeech javadoc update.
2009-09-14 13:54:00 -04:00
Grace Kloba
b6e164c779 Per suggestion in http://b/issue?id=2062340, update the UNIQUE in the
httpauth table.
2009-09-14 10:47:07 -07:00
Jean-Michel Trivi
a9b417e9bf TextToSpeech javadoc update. 2009-09-14 10:34:13 -07:00
Daniel Sandler
eb9fdc21b1 Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
The underlying ProgressBar implementation doesn't know how
to correctly update the thumb graphic, so AbsSeekBar must
call invalidate() at key moments to ensure things look
correct.  This bug is one such instance: when you pick your
finger up off the seekbar, the "value" of the progressbar
appears not to change, so ProgressBar feels no compunction
to repaint. AbsSeekBar now invalidate()s on ACTION_UP and
ACTION_CANCEL to ensure that the thumb is correctly drawn.
2009-09-14 13:05:43 -04:00
Android (Google) Code Review
0fdae4cc74 Merge change 24747 into eclair
* changes:
  Use floor to calculate the range to avoid the rounding error triggered scrollbar. The worst case is that you can never scroll down to the last pixel. The old special case can cause problem when getViewWidth/Height have changed which do not match mLastXXSent any more.
2009-09-14 12:27:40 -04:00
Android (Google) Code Review
6cb1330d26 Merge change 24683 into eclair
* changes:
  Tell GlobalSearch about searches without a suggestion
2009-09-14 11:30:43 -04:00
Bjorn Bringert
ab50b86b79 Deprecate showSearchIconAsBadge and icon search attrs
mlebeau says:
"Basically, because we now show the app icon for in-app
search, showSearchIconAsBadge is a bit unnecessary, but it does in
fact still work. Basically if either showSearchIconAsBadge or
showSearchLabelAsBadge are specified, we grow the height of the search
bar and place the provided icon or the provided label, respectively,
above the text field and app icon. But we do not remove the app icon
if the developer specifies showSearchIconAsBadge - it's still just the
'badge area' above the icon."

Fixes:
http://b/issue?id=2105329
"Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'"

Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0
2009-09-14 06:59:50 +01:00
Android (Google) Code Review
93f00def4b Merge change 24509 into eclair
* changes:
  Addressed reviewer comments.
2009-09-13 18:43:38 -04:00
Jim Miller
27844c386e Enable log message for tracking issue #2092299. 2009-09-13 00:02:14 -07:00