3060 Commits

Author SHA1 Message Date
Android (Google) Code Review
6a20b823c3 Merge change 25293 into eclair
* changes:
  Fix a handful of bugs in the ContactHeaderWidget
2009-09-16 17:38:53 -04:00
Android (Google) Code Review
82df16c654 Merge change 25297 into eclair
* changes:
  Address romain's code review comments
2009-09-16 15:37:40 -04:00
Cary Clark
c9e2e661f0 slide the title if the site changes the scroll position
Slide the title away if the scroll is to zero or one, and the
title is partially or fully visible. Set the animation time
to at least SLIDE_TITLE_DURATION, currently set to 300 ms.
2009-09-16 15:22:24 -04:00
Mike Lockwood
9092ab4d45 Add support for launching activities when attaching to a car or desk dock.
Categories CATEGORY_CAR_DOCK and CATEGORY_DESK_DOCK can be assigned to
activities to make them launchable on docked events.
This is a better mechanism than listening for ACTION_DOCK_EVENT with a broadcast receiver.

Change-Id: Ic5f3ab3555ce02ca922bc31ebba41978cefe8bda
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-16 14:43:21 -04:00
Android (Google) Code Review
764916d01b Merge change 23383 into eclair
* changes:
  Combine the "Permission Requested" title and subtitle into one string.
2009-09-16 14:36:56 -04:00
Android (Google) Code Review
f5a5f04550 Merge change 25296 into eclair
* changes:
  Add new Gservices setting for discarding uphill ops for eclair and future devices.
2009-09-16 14:16:47 -04:00
Android (Google) Code Review
0abc859e14 Merge change 25299 into eclair
* changes:
  Show keyboard automatically in EditTextPreference dialogs
2009-09-16 14:06:34 -04:00
Amith Yamasani
1d45857075 Show keyboard automatically in EditTextPreference dialogs 2009-09-16 10:51:56 -07:00
Karl Rosaen
1ca654e119 Address romain's code review comments 2009-09-16 10:51:10 -07:00
Cynthia Wong
cac138274c Add new Gservices setting for discarding uphill ops for eclair and future devices. 2009-09-16 10:47:42 -07:00
Evan Millar
2c867f9b7f Fix a handful of bugs in the ContactHeaderWidget
-http://b/issue?id=2074981 fixed
-http://b/issue?id=2088564 fixed.
-http://b/issue?id=2097374 fixed.
-http://b/issue?id=2095896 fixed.
-http://b/issue?id=2093734 fixed.

-Use FasttrackBadgeWidget.

-Also changes api in ContactsHeaderWidget to accept contact uri instead
of contact id.

Change-Id: I6623a99c7f5011387c57fc9a6861eef63174ca6e
2009-09-16 10:43:45 -07:00
Eric Fischer
ee452ee535 Combine the "Permission Requested" title and subtitle into one string.
The translators don't get the strings in order, so having a single sentence
split across two strings makes it difficult to get good translations.
2009-09-16 10:33:47 -07:00
Android (Google) Code Review
9f28d9008b Merge change 25280 into eclair
* changes:
  Don't scroll on load if titlebar is visible
2009-09-16 13:12:56 -04:00
Cary Clark
5b28c36644 Don't scroll on load if titlebar is visible
If the restore requests a scroll to zero and the titlebar is
partially or fully visible, skip the scroll altogether.

This fixes http://b/issue?id=2123079
2009-09-16 12:52:24 -04:00
Android (Google) Code Review
57384101b9 Merge change 25270 into eclair
* changes:
  Use Resources to load search icons with android.resource URIs
2009-09-16 12:03:52 -04:00
Bjorn Bringert
4c87a3f26a Use Resources to load search icons with android.resource URIs
Before, all icon URIs were opened with
ContentResolver.openInputStream(Uri), but that does not
include the density information from the source
application.

Now, if the URI uses the android.resource scheme,
we resolve the URI to a Resources and a resource ID,
and load it with Resources.getDrawable(int).
This requires making OpenResourceIdResult and getResourceId()
in ContentResolver public (but hidden).

This change also caches icons that were specified using just a
resource ID.

Since loading a Drawable from a URI is a generally useful operation,
it would be good to make it easy for apps to do it in the proper
density-independent way. We could add a getDrawable(Uri)
method to the framework. The question is where.

It would be easiest to add it to ContentResolver, but that may be a
bit odd since there is no other code for dealing with Drawables in
ContentResolver. Another alternative is in Resources, since
getDrawable(int) is there, but that class deals with the resources
for a single app, whereas getDrawable(Uri) can open a drawable
from any app. Putting it in Context may be the best choice,
since that's in android.content, and can thus access package
private members in ContentResolver, and since it's already
a dumping place for random useful high-level methods.
Opinions?

Fixes http://b/issue?id=2034526
"Icons on search do not scale for wide VGA"

Change-Id: I44de0b74826e5560141a3174bcbba991ba6264ac
2009-09-16 16:31:57 +01:00
Chih-Chung Chang
46ad796186 Unhide cancelAutoFocus API in Camera.
Change-Id: I29450867edf9c68ac06e6d76fae0ad93ea89b632
2009-09-16 22:43:46 +08:00
Wu-cheng Li
7478ea6848 Remove trailing spaces. 2009-09-16 18:52:55 +08:00
Android (Google) Code Review
85628188e7 Merge change 25244 into eclair
* changes:
  Flag indicating if Contacts source has any unsynced groups.
2009-09-16 02:16:05 -04:00
Jeff Sharkey
97bda4c5ae Flag indicating if Contacts source has any unsynced groups.
Part of fixing http://b/2084771
2009-09-15 23:15:23 -07:00
Android (Google) Code Review
7fc39b26fc Merge change 25238 into eclair
* changes:
  Implement issue #1780928: Need support hiding nav keys.
2009-09-16 02:04:45 -04:00
Dianne Hackborn
93e462b79d Implement issue #1780928: Need support hiding nav keys.
This implements support for devices whose hardware can hide
their navigation keys.  It works much like the existing keyboardHidden
configuration, and for compatibility uses the same configuration
change bit.

Also add FLAG_TURN_ON_SCREEN for windows, which has the system
cause the screen to be turned on when the window is displayed.
Great fun when used with FLAG_SHOW_WHEN_LOCKED!

Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
2009-09-15 22:50:40 -07:00
Jeff Sharkey
42fc2c6f0a Fix NPE when provider returns null cursor.
Fixes http://b/2051283
2009-09-15 19:53:51 -07:00
Android (Google) Code Review
6cf05f1c3d Merge change 25206 into eclair
* changes:
  Make vCard importer code use Account information if possible.
2009-09-15 22:33:06 -04:00
Daisuke Miyakawa
d5bc296d94 Make vCard importer code use Account information if possible.
Internal isssue: 2116216, 2102720
2009-09-15 19:28:40 -07:00
Android (Google) Code Review
c6587dc870 Merge change 25178 into eclair
* changes:
  Add RotarySelector widget to android.internal for use by lock screen and incoming call screen.
2009-09-15 22:12:58 -04:00
Dianne Hackborn
9767e41d92 Some improvements for wallpaper configuration.
This introduces a new activity that you can derive from to implement
a wall paper configuration activity.  This is supposed to select
a theme based on whether it is being run to configure a real wallpaper
or a preview, but this is going to be more difficult to do than I
thought. :(

Also fix a problem in the white theme where the list view's background
was being set to white, so it wouldn't work on a transparent bg.

Change-Id: I26d5a8695a3c878a1664eb09900eded57eaff990
2009-09-15 18:59:31 -07:00
Android (Google) Code Review
5862b673d4 Merge change 25187 into eclair
* changes:
  fixing documentation for PluginStub
2009-09-15 21:23:42 -04:00
Derek Sollenberger
468f067cf4 fixing documentation for PluginStub
Change-Id: I68fd9d0df3d8a5c39ad1de136a116f1b034323af
2009-09-15 21:22:06 -04:00
Android (Google) Code Review
7c3e493d7b Merge change 25177 into eclair
* changes:
  Fix for #2092883: Allow manual sync even when background data is disabled
2009-09-15 21:17:44 -04:00
Karl Rosaen
e4d95d02a2 Add RotarySelector widget to android.internal for use by lock screen and incoming call screen. 2009-09-15 17:46:57 -07:00
Jim Miller
d2a3a8a7ba Fix for #2092883: Allow manual sync even when background data is disabled 2009-09-15 17:34:42 -07:00
Android (Google) Code Review
64ce0f8f53 Merge change 24200 into eclair
* changes:
  First pass at replacing native plugin views with java.
2009-09-15 20:03:16 -04:00
Android (Google) Code Review
b6a7ea540e Merge change 25153 into eclair
* changes:
  Reconcile the character popups for the hard and soft keyboards.
2009-09-15 19:43:00 -04:00
Derek Sollenberger
0b3a5d6524 First pass at replacing native plugin views with java.
Change-Id: I6d1f45f31210c2353fa348cc37be8d91bcd5e887
2009-09-15 19:33:54 -04:00
Eric Fischer
4ef29959bd Reconcile the character popups for the hard and soft keyboards.
Have the hardware keyboard popups for digits and symbols include
all the same characters as the soft keyboard has for those keys.

Bug 2056195
2009-09-15 16:04:39 -07:00
Dmitri Plotnikov
90142c959e Adding a system property to log slow queries
Change-Id: I4d139e222319f56169924e14aa967f07b233c00e
2009-09-15 15:53:24 -07:00
Android (Google) Code Review
7bd660012c Merge change 25117 into eclair
* changes:
  Preserve ListView's pressed state when the adapter changes its content while the user is pressing an item.
2009-09-15 16:57:53 -04:00
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
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