15983 Commits

Author SHA1 Message Date
Cary Clark
61c6ddbb0b Merge "start drag of text selection on initial press" 2010-12-01 08:34:58 -08:00
Chet Haase
5bed88e12d Animators can now have dimension and color values.
You can now use floats, ints, dimensions, or colors as input values
in XML for Animator objects. There is still a 'valueType' attribute
that lets you specify the number values to create the animator with,
though it defaults to floats (or in the case of color inputs, to ints).

Change-Id: I65f1df802db602c33f2a0308a663b6f808148e25
2010-12-01 08:11:29 -08:00
Dan Bornstein
7ae15f6c89 Merge "Get rid of vm-internal constants." 2010-12-01 07:43:48 -08:00
Dan Bornstein
1a11f70775 Merge "Dalvik opcode-related fixes." 2010-12-01 07:43:39 -08:00
Iain Merrick
557092f26a Merge "Add FlushCookieStore() method to CookieManager (Java side)" 2010-12-01 06:46:48 -08:00
Iain Merrick
c40fc2c31a Add FlushCookieStore() method to CookieManager (Java side)
The browser app will use this to sync cookies to flash when it is
sent to the background. Corresponding C++ code is in Ia9b56f3c.

Bug: 3231371

Change-Id: I04e96affcce335191ee2075d0e160f0d8313bf76
2010-12-01 14:45:38 +00:00
Cary Clark
4a2fe17fef start drag of text selection on initial press
bug:3182813
Change-Id: Id27b1caa31881ce543d395461f0504d894cf0403
2010-12-01 09:16:29 -05:00
Cary Clark
e41bb535a3 pass the x and y to retrieve anchor data
During a long press, the original pointer to the
node and frame may change. Pass the location instead
to attempt to find the anchor.

companion change is in external/webkit

bug:3240869
Change-Id: Id86107c1f8ce8680786163c1030421dbec062036
2010-12-01 07:40:54 -05:00
Ben Murdoch
45991bc13f resolved conflicts for merge of d2607118 to master
Change-Id: Id6092a762af775e9b5db390feaba3e10bd98ef7c
2010-12-01 10:55:18 +00:00
Dan Bornstein
1d99b06ccf Get rid of vm-internal constants.
This change makes Debug use less vm-implementation-specific code to
ask which opcodes represent method invocations.
2010-11-30 23:55:12 -08:00
Dan Bornstein
9f3155418d Dalvik opcode-related fixes.
This makes Debug not hard code the number of opcodes and includes an
api-update of other opcode-related changes done in dalvik.system.

Change-Id: I70d22e1c710f224d75a22e319916724aea53f78d
2010-11-30 23:48:02 -08:00
Brian Carlstrom
f3c532632b Merge "Tracking merge of dalvik-dev to master" 2010-11-30 22:26:17 -08:00
Brad Fitzpatrick
80234f7644 Merge "StrictMode: more accurate timings" 2010-11-30 21:41:12 -08:00
Jeff Brown
46a5ae6dd7 Fix documentation bug.
Change-Id: Idd8857087a61e357466c8db60d56075637240c5d
2010-11-30 19:52:29 -08:00
Jeff Brown
1f2451007c Ensure the ShortcutManager uses the correct key character map.
The ShortcutManager used to only receive the key code of the key event
that triggered the shortcut.  This change now provides the shortcut
manager with the whole key event so it can look up the associated
character using the correct key character map.

To make this more efficient, added a mechanism for recycling
key events.  At the moment it is only used by key events owned by the
system process, since clients of the existing API (such as Views)
might continue to hold on to key events after dispatch has finished so
they would break if the key event were recycled by the framework.

Deprecated KeyCharacterMap.BUILT_IN_KEYBOARD.

Change-Id: I4313725dd63f2be01c350c005a41c7fde9bc67e8
2010-11-30 18:50:17 -08:00
Brian Carlstrom
7495cfadd2 Tracking merge of dalvik-dev to master
Change-Id: I2f847003761d1300aca65c9471ed168bad82ffe0
2010-11-30 18:06:00 -08:00
Jeff Brown
47e6b1b5ee Support non-orientation aware keyboards and other devices.
Fixed a bug with dpad keys on external keyboards being rotated
according to the display orientation by adding a new input device
configuration property called "keyboard.orientationAware".

Added a mechanism for overriding the key layout and key character
map in the input device configuration file using the new
"keyboard.layout" and "keyboard.characterMap" properties.

Also added "trackball.orientationAware", "touch.orientationAware" and
"touch.deviceType" configuration properties.

Rewrote the configuration property reading code in native code
so that it can be used by EventHub and other components.

Added basic support for installable idc, kl, and kcm files
in /data/system/devices.  However, there is no provision for
copying files there yet.

Disabled long-press character pickers on full keyboards so that
key repeating works as expected.

Change-Id: I1bd9f0c3d344421db444e7d271eb09bc8bab4791
2010-11-30 17:15:49 -08:00
Mindy Pereira
a5e22df10a Merge "Preference changes to layouts." 2010-11-30 14:19:19 -08:00
Michael Kolb
f7f07e5762 Fix page scroll during text selection
Bug: 3190609
    Leave embedded title bar in place during text selection CAB mode

Change-Id: I7140241ac7eeb442cfe7665580525d8cdfce220f
2010-11-30 13:59:02 -08:00
Mindy Pereira
8b2fb60cd4 Preference changes to layouts.
Change-Id: I37366c3465aa1d8d2bd30fb6ae4b821f5f2d5e2d
Additional changes to make the left and right padding
behave the same way as the top and bottom padding.
That is, our default pref screens will automatically
apply the padding and clipToPadding tags. Custom preference
screens will appear as before.
Uses LayoutParams now instead of a specific id.
2010-11-30 13:57:58 -08:00
Michael Jurka
62490bd358 Re-add performance optimization in View
- undoing change 79897

Change-Id: I52eb1247c4fead5e4203d7e7200129aa815e7c9b
2010-11-30 13:49:24 -08:00
Gilles Debunne
8e06a63099 Selection in URL, email, phone, date, numbers selects all
Change-Id: Ide3603404f356564e294b7698b52c2d55e314db9
2010-11-30 12:51:24 -08:00
Gilles Debunne
d803cdef9a Selection handles no longer fade out.
This fade out was mainly introduced for forms with selectAllOnFocus fields, where
is hide some content. These no longer trigger selection mode and hence do not display
the handles.

Handles will be visible as long as selection mode goes on.

Change-Id: Ib8c2cc97308a91722f69aa0bb0caccb21d94c2c4
2010-11-30 12:11:15 -08:00
Ben Murdoch
d2607118ed am 27e728f2: Merge "Hide plugin views when we start playing HTML5 video" into gingerbread
* commit '27e728f22d954caa7252be6c19a67a9277e1db3b':
  Hide plugin views when we start playing HTML5 video
2010-11-30 11:46:24 -08:00
Chet Haase
7306668586 animation bugfix plus xml resources for new View properties
There was a bug around animation duration where it was possible,
for small durations or large inter-frame times, to calculate
fractions outside of the 0-1 range, causing bad value calculations.

Unrelated: new View properties for translation, scale, and rotation
were added in this release. This commit addes XML resources for
those properties.

Change-Id: Ieaf5dd729588adb2a40656aa82beecc3576f4af5
2010-11-30 11:11:43 -08:00
Brad Fitzpatrick
bea168c09d StrictMode: more accurate timings
Don't wait for animations to finish before clicking stopwatch.  (see
comments in the patch for details)

Change-Id: I73f87b2b787d6db19deb0171a2457ff5fc875d3d
2010-11-30 10:56:48 -08:00
Gilles Debunne
d1dc72a081 Long press in empty space stops text selection
Bug 3240058

Change-Id: I888ee691a0fdc89895db43f9ed01acebf7a0b6d3
2010-11-30 10:51:43 -08:00
Cary Clark
f72a59bbbb Merge "use the original hit if the cache is killed" 2010-11-30 10:23:52 -08:00
Gilles Debunne
458f4633b8 Merge "Dragging inside the same TextView is a move instead of a copy." 2010-11-30 10:07:41 -08:00
Cary Clark
b849134c1e use the original hit if the cache is killed
The nav cache may not have a cursor set if it is
rebuilt while the long press timer is running. Use
the original hit test data in this case.

bug:3198707
Change-Id: I795a3afb31de3667b3a69abbe898381912806802
2010-11-30 12:43:17 -05:00
Ben Murdoch
27e728f22d Merge "Hide plugin views when we start playing HTML5 video" into gingerbread 2010-11-30 02:43:29 -08:00
Dianne Hackborn
fefc0743f8 Merge "Auto-show IME for dialogs on large screens." 2010-11-29 22:56:03 -08:00
Dianne Hackborn
7d3a5bcf30 Auto-show IME for dialogs on large screens.
On a large screen the IME is not going to as significantly
cover a pan & scan window, so allow it to auto-show if the
app hasn't otherwise specified its visibility.

Also some fixes here and there.

Change-Id: I10227ec59c43454e06e6870633f53426f4d78b83
2010-11-29 22:52:12 -08:00
satok
af4bf400ab Fix a bug of equals in InputMethodSubtype
Change-Id: I68b4726bedfb55d4737cf859ad3cb54bc19f9511
2010-11-30 14:02:49 +09:00
Adam Powell
12190b36a9 Add the Switch widget
Switch is hidden currently; it will be used in SystemUI and preferences.

Change-Id: I2cd8458783f938f00f5ee5e7a67fb5a90404797d
2010-11-29 19:14:58 -08:00
Gilles Debunne
4ae0f29d26 Dragging inside the same TextView is a move instead of a copy.
Change-Id: I0edbe601455a951354e8671b8bd4d7e6afd6f439
2010-11-29 19:01:09 -08:00
Dianne Hackborn
af60e276e8 Merge "Fix issue #3225529: AlertDialogs are squishing their content views" 2010-11-29 18:14:35 -08:00
Dianne Hackborn
711e62a84f Fix issue #3225529: AlertDialogs are squishing their content views
ViewRoot is now smarter about measuring WRAP/WRAP windows.

Change-Id: I690fc78ddbe252d7c8070edb8e7352aec6c67ce9
2010-11-29 18:06:36 -08:00
Costin Manolache
6189be3f3d Merge "Revert "Merge "Fix permission."" It breaks apps that rely on the wrong permission." 2010-11-29 18:06:07 -08:00
Jim Miller
8b2a4001d0 Merge "Fix 3024522: Add "no lock screen" support to the framework." 2010-11-29 18:00:34 -08:00
Costin Manolache
fa04b8de11 Revert "Merge "Fix permission."" It breaks apps that rely on the wrong permission.
This reverts commit 974ab30569f9543c897047972260887cb33f8827, reversing
changes made to 8b780ec773b2d1765f3ce932ee8f86c9048fdb85.
2010-11-29 17:50:28 -08:00
Romain Guy
6d95662f98 Put @ViewDebug.ExportedProperty back on TextView.mText
Change-Id: I68d36ebad07b4ad828c245e1d57ebe0effcc4239
2010-11-29 17:41:48 -08:00
Costin Manolache
974ab30569 Merge "Fix permission." 2010-11-29 16:11:26 -08:00
Eric Fischer
8b780ec773 Merge "Import revised translations." 2010-11-29 16:03:04 -08:00
Svetoslav Ganov
206316a61f New Number picker widget
Change-Id: I834e725b58682e7a48cc3f3302c93c57b35d4e27
2010-11-29 15:47:55 -08:00
Jim Miller
2a98a4cbaa Fix 3024522: Add "no lock screen" support to the framework.
This adds a new feature where LockScreen can be disabled to
allow the device to go straight to the home screen when
powered on.

Change-Id: I288e8d5359442c042ae7911340885877a864faff
2010-11-29 15:39:08 -08:00
Olivier Bailly
997d15e1a6 Merge "fix int vs. pointer mismatch in return statement. Add missing include header for compilation on x86 target." 2010-11-29 15:12:33 -08:00
Eric Fischer
8d1efa9577 Import revised translations.
Change-Id: I8d5fe7c1cf2f2a7903997da38b6abfe4dcabdab7
2010-11-29 15:10:37 -08:00
Vasu Nori
a84a744bb1 Merge "if db close() fails due to un-closed sql statements, print useful msg" 2010-11-29 15:09:30 -08:00
Gilles Debunne
8df09a0906 SelectAllOnFocus switches to highlighted mode, not text selection mode
Change-Id: Ia0adf561f207e0a82d9588471823da7f5b2f1799
2010-11-29 14:57:12 -08:00