16965 Commits

Author SHA1 Message Date
Gilles Debunne
d94f8c5055 Stop text selection mode when new text replaces selection.
Rationalized the use of hideControllers and stopSelectionActionMode.

Hiding the selection controller should be done exclusively by stoping text selection
mode.

Bug 3322636

Change-Id: I30b4a651aa5fb5a865d636bec495a2b96ef114cd
2011-01-10 11:29:15 -08:00
Leon Scroggins
9cac3c31d2 Remove the option to use shift to start selection mode.
Bug:3329956

Also ensure that keys dispatched while the WebTextView
is attached get sent to the WebTextView.

Change-Id: Icd9125a85929089a6f376b71c1cb40e885264168
2011-01-10 13:57:38 -05:00
Gilles Debunne
58f750ad14 Merge "Fix for an NPE in Account settings on long press." into honeycomb 2011-01-10 10:12:59 -08:00
Adam Cohen
4c8945191c Merge "Fixing bug where StackView doesn't clip it's children correctly" into honeycomb 2011-01-10 10:06:19 -08:00
Adam Cohen
488672148c Fixing bug where StackView doesn't clip it's children correctly
Change-Id: Icb051fa355c5c1b92f81d56f04efd4f8699c65a4
2011-01-10 10:04:01 -08:00
Gilles Debunne
b0db5940c9 Fix for an NPE in Account settings on long press.
Bug 3333512

Change-Id: Ief79e824b86b964598f00ef74c6b5c61c0730242
2011-01-10 10:00:37 -08:00
Cary Clark
b74e32cc7d Merge "add more alt key acceleration in webview" into honeycomb 2011-01-10 09:55:54 -08:00
John Reck
36fd7a39ca Tweak user agent building to avoid multiple spaces
Bug: 3211038
 The building of the user agent could previously have multiple sequential
 spaces. This was causing the CTS test to fail.

Change-Id: I13fc76ba6b97ee84dd44461b4d03b6ca70b48cdf
2011-01-10 09:48:13 -08:00
Mike Lockwood
5e63e2515f Merge "Add separate permission and group for access to the MTP USB driver" into honeycomb 2011-01-10 09:24:46 -08:00
Cary Clark
a3ee56f4ae add more alt key acceleration in webview
Make key accceleration exact; if alt is required,
allow only alt, and so on.

Also, set the touch point when nav'ing with the arrows
or trackball so that context menus have a point to
work with.

bug:3301564
bug:3241968
Change-Id: I574ce145941e84ac0934efd323d9db71eec11663
2011-01-10 11:20:56 -05:00
Leon Scroggins
aa6b9f55d6 Do not show autofill++ or saved form data in incognito mode.
Bug:2968399

Also do not save the form data in incognito mode.

Change-Id: Ice6a1cb3620b5cf272b6b361ce11f8abef269a89
2011-01-10 11:02:00 -05:00
Cary Clark
8733bea4c1 Merge "scroll selected text in scrollable layers" into honeycomb 2011-01-10 07:25:33 -08:00
Cary Clark
b9aaa776a6 scroll selected text in scrollable layers
Compute whether the initial tap point is in
a scrollable layer or not. If it is, get
the bounds of the scrollable layer and use them,
clipped to the view, to determine when the
select anchor is dragged close to the layer's
edge, to invoke autoscrolling.

Fix some bugs around stopping the autoscrolling
when there is nothing to do, and when a motion
up event is sent.

requires companion change in external/webkit

bug:3191699
Change-Id: Ic9229b063a8102ec93d0cd5bcaba774cc170c106
2011-01-10 09:10:25 -05:00
Mike Lockwood
10bc1114f3 Add separate permission and group for access to the MTP USB driver
Since the "usb" group and ACCESS_USB permission will be used by regular apps
to access USB devices in host mode, we need a separate permission for the
device side MTP driver.

Change-Id: Id03f7c4f3d2712c489b4b74cf17a72a182084501
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-10 08:54:34 -05:00
Adam Powell
8b50495d02 Merge "Fix bug 3324981 - Inconsistent/buggy FastScroll behavior" into honeycomb 2011-01-09 21:38:05 -08:00
Adam Powell
32c3a6929a Fix bug 3324981 - Inconsistent/buggy FastScroll behavior
The fast scroller now always positions by index position.

Fixed a bug with always-show fast scrollers.

Change-Id: I08586ab2aae9733e78aa823aff711bcc14d2d44d
2011-01-09 21:34:21 -08:00
Romain Guy
867b1f60e6 Merge "Better documentation for FLAG_HARDWARE_ACCELERATED Bug #3154883" into honeycomb 2011-01-09 16:42:35 -08:00
Romain Guy
72f0a276ff Better documentation for FLAG_HARDWARE_ACCELERATED
Bug #3154883

Change-Id: I2062781ba3b447b8ec4e0836b9ddeaa97c7aa60e
2011-01-09 16:45:28 -08:00
Mike Lockwood
4c93fbce79 Merge "Framework manifest: Remove USB_CAMERA_ATTACHED and USB_CAMERA_DETACHED broadcasts" into honeycomb 2011-01-09 16:39:37 -08:00
Mike Lockwood
3f182381e1 Framework manifest: Remove USB_CAMERA_ATTACHED and USB_CAMERA_DETACHED broadcasts
These broadcasts no longer exist, so remove their <protected-broadcast> elements from the manifest.
Signed-off-by: Mike Lockwood <lockwood@android.com>

Change-Id: I4a724509d3058f16283870f02e5e1b51dfb21a43
2011-01-09 19:37:29 -05:00
Brett Chabot
3b4fcbc9f1 Add ActivityManager#isRunningInTestHarness() public API.
Replaces use of ro.monkey system property. This new API is controlled by
ro.test_harness.

Bug 3329873

Change-Id: Idb5bbbd9ca691976ef842eec681be34c29915976
2011-01-09 16:31:11 -08:00
Adam Powell
ac0f347ed8 Merge "Honeycomb styling for the volume panel" into honeycomb 2011-01-09 16:28:26 -08:00
Adam Powell
3ae2706751 Honeycomb styling for the volume panel
Change-Id: If0c870a07b8116c1b22a199de2021da46d69316b
2011-01-09 16:26:00 -08:00
Jim Miller
730f0b238a Merge "Fix 3299611: Use system font for AM/PM indicator" into honeycomb 2011-01-09 16:08:58 -08:00
Jim Miller
81f9b286d1 Fix 3299611: Use system font for AM/PM indicator
This fixes a bug where translations wouldn't pick up the proper
AM/PM indicator because AndroidClock.ttf doesn't contain the
full Android character set for translations.

Change-Id: I61737bae7383946906a4e6b776afa7463da9355d
2011-01-09 16:03:27 -08:00
Romain Guy
d0b8365fcb Return the View that matches the clicked position.
Bug #3323669

Change-Id: If6093885283f962d20bf287ba8b82d7c76f9076c
2011-01-09 15:41:04 -08:00
Adam Powell
c211ce2439 Merge "Updated dialog and toast assets." into honeycomb 2011-01-09 15:24:34 -08:00
Adam Powell
463c70014d Updated dialog and toast assets.
Updated holo alert dialog layouts to use explicit dividers for the title

Change-Id: I2e56c3a782b4c33387032263a509f6b28b2d4686
2011-01-09 15:23:54 -08:00
Romain Guy
fcd3e8e6fa Merge "Tighten up AsyncTask's semantics and behavior. Bug #3109366 Bug #3109382" into honeycomb 2011-01-09 14:01:42 -08:00
Romain Guy
e95003e4a1 Tighten up AsyncTask's semantics and behavior.
Bug #3109366
Bug #3109382

The new behavior of AsyncTask is the following:
- Unchanged if you don't call cancel()
- If you call cancel():
  - Either onCancelled() *OR* onPostExecute() is invoked
  - onCancelled() is invoked only after doInBackground() finishes

Change-Id: If53faec5890d2fa7098aea76973186a0b1026b39
2011-01-09 14:04:36 -08:00
Jim Miller
e695bddefa Merge "Fix 3330653: Update lockscreen layouts to match latest mocks [DO NOT MERGE]" into honeycomb 2011-01-09 13:47:29 -08:00
Dianne Hackborn
febbf6e7f8 Merge "DO NOT MERGE Fix issue #3333958: Package Manager can sometimes mistakenly think..." into honeycomb 2011-01-09 13:24:17 -08:00
Jim Miller
b450a65c1c Fix 3330653: Update lockscreen layouts to match latest mocks [DO NOT MERGE]
This change list:

- simplifies the UI design to reduce the number of
on-screen items by combining Alarm status with the date line.

- updates many of the layout files to match closer to the
final design.

- Simplifies the logic for showing Status1 info. It's now
more predictable and robust.

- updates the layout for tablets

- contains a modified alpha to work well with different backgrounds
(Tested: white, gray, and dark backgrounds)

- updates the tablet icons to something closer to the final size.

Manual merge from Change-Id: Ifb349dfa778e9c91b0649c8d95229607be5af8e5

Change-Id: Ia2a9a2d285102d0208b3a7fcead58d6454d116ae
2011-01-09 13:24:00 -08:00
Adam Powell
353634a1aa Merge "Update progress/seek bar assets. Add indeterminate horizontal progress bars for holo theme." into honeycomb 2011-01-09 13:22:22 -08:00
Adam Powell
a50ff3847e Update progress/seek bar assets. Add indeterminate horizontal progress
bars for holo theme.

Change-Id: I86bb6af1e26727d18b24d5a5378cc9d1b431fc0e
2011-01-09 13:21:30 -08:00
Dianne Hackborn
1f22d2a31a DO NOT MERGE Fix issue #3333958: Package Manager can sometimes mistakenly think...
...an app is disabled!

Ouch.

Change-Id: I45dc2beef4e413fd447d905632901fadd924cb6e
2011-01-09 13:15:30 -08:00
Michael Chan
ae34a7cd2d Merge "b/3279789 Fixed NPE in CalendarUtils$TimeZoneUtils$AsyncTZHandler.onQueryComplete" into honeycomb 2011-01-09 12:12:26 -08:00
Michael Chan
aa5bb98120 b/3279789 Fixed NPE in CalendarUtils$TimeZoneUtils$AsyncTZHandler.onQueryComplete
Null cursor was returned from query

Change-Id: I76a7d710b0764f52ed6ced23792717feb7b6ae08
2011-01-09 12:11:02 -08:00
Dmitri Plotnikov
59d8edd09d Fixed the waitForLoader method.
The reason we need a separate latch is that
AsyncTask will post onPostExecute/onCancelled
_after_ executing mFuture.get().  The previous
implementation would only wait for mFuture.get()
to complete and not the entire task.

Change-Id: I96964591980965148eb09af38b5838bfa5d28277
2011-01-09 11:05:50 -08:00
Chet Haase
2954cd91ab Add start/endTransition events for CHANGE transitions
There was already a mechanism for sending out events for LayoutTransition
when animations started or ended, but the implementation only sent out events
for the appearing/disappearing animations. This fix provides callbacks to
listeners for the CHANGE_APPEARING and CHANGE_DISAPPEARING transitions, too.

Change-Id: Icfb8cc1c20d2df3e4a817255e96c9d0e94c1d8c4
2011-01-09 09:43:39 -08:00
Kenny Root
b0512c3725 Merge "Fix check for required features" into honeycomb 2011-01-09 07:15:26 -08:00
Dianne Hackborn
247fe74c93 Implement issue # 3255887 could CursorLoader offer...
...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
2011-01-08 18:25:30 -08:00
Adam Powell
f600780bea Merge "Remove unnecessary log" into honeycomb 2011-01-08 17:30:07 -08:00
Adam Powell
1ab74be06c Remove unnecessary log
Change-Id: I6bb267d7d5f82ae9e1cbe6b022b722ccedc428fd
2011-01-08 17:29:22 -08:00
Adam Powell
2b6be701a9 Fix bug 3312807 - Fix child margin measurement in FrameLayout
Change-Id: I5166d7b2d283c577d5f95a15b1626b068cfa6bc6
2011-01-08 16:44:07 -08:00
Adam Powell
00bba682ef Amendment to fix for bug 3332414
Change-Id: Id3047f6ea6f8f5c68318057798e285cc1e06d094
2011-01-08 15:53:38 -08:00
Adam Powell
dd10b66601 Bug 3332414 - UI glitch in CAB options
Change-Id: Ic066f968b0125276c315f31adbd96420e528362f
2011-01-08 15:17:30 -08:00
Adam Powell
2ebac69419 Fix bug 3334437 - require an adapter to measure dropdown content width
Change-Id: I357a2db66db121816091921e47708140958ad507
2011-01-08 13:58:29 -08:00
Adam Powell
947f782411 Fix bug 3245465 - Themed dialog icons
Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
2011-01-08 13:09:51 -08:00
Jamie Gennis
fd6f39e147 Enable camera preview to a SurfaceTexture.
This change adds a public Java API to use a SurfaceTexture as the
destination of camera preview frames.

Change-Id: If537fed2df12c5c181e2af5f817985c1bda853fb
2011-01-07 17:40:24 -08:00