13698 Commits

Author SHA1 Message Date
Chet Haase
9e90a9953b Reuse display lists at the java level.
Objects are invalidated and reset instead of being nulled out
and recreated. This avoids creating small amounts of garbage for
the display list and canvas objects.

Change-Id: I464fac7ea8944c19ad6d03f13a95d9017e3f4262
2011-01-05 15:13:16 -08:00
Jeff Brown
64da12ab1f Add dispatch key shortcut window callback.
Enables Activities and Dialogs to implement key shortcut behavior.
Useful for global key shortcuts that are not bound to the focused
view or to a menu.

Change-Id: If377d20b227ee1c5cac84c47c9630b2d77f67e2c
2011-01-05 14:51:24 -08:00
Brad Fitzpatrick
70588bf864 resolved conflicts for merge of 3a2c6bf0 to master
Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
2011-01-05 14:04:06 -08:00
Brad Fitzpatrick
3a2c6bf0fc am 69ea4e15: Documentation fixes found over vacation hacking.
* commit '69ea4e15e52c456537575d21443ac1efdb03a902':
  Documentation fixes found over vacation hacking.
2011-01-05 13:52:53 -08:00
Brad Fitzpatrick
69ea4e15e5 Documentation fixes found over vacation hacking.
Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
2011-01-05 13:07:34 -08:00
Shimeng (Simon) Wang
22c5dfcaed Merge "Refactor zoom overview width calculation." 2011-01-05 13:05:29 -08:00
Leon Scroggins
67a08dda34 Merge "Show the keyboard when opening Find from the menu." 2011-01-05 12:57:37 -08:00
Leon Scroggins
ae0238cae5 Do not show past entries if autocomplete=off.
Bug:3300365

Requires a change in external/webkit.

Change-Id: I2f15d9dfce1002d0bf7a77a14605769fd654aa51
2011-01-05 15:42:20 -05:00
Gilles Debunne
3dbf55c3a2 TextView's color transparency is taken into account.
Unless it has a background, the TextView will be able to support
alpha (text, cursor and highlighted text colors).

Background colored spans should be detected and should also multiply
their alpha by mCurrentAlpha.

Bug 3144861

Change-Id: If640895b8c0b25dc00b909a0a118b68fac0cfd76
2011-01-05 12:03:33 -08:00
Jason parks
ac1325bcd3 Merge "Add decryption support to MountService." 2011-01-05 11:56:42 -08:00
Adam Powell
3f476b3404 Revisiting ActionBar API and layout.
Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
2011-01-05 11:41:26 -08:00
Leon Scroggins
eb492a02fd Merge "Do not open the keyboard when opening Find from CAB." 2011-01-05 11:14:58 -08:00
Patrick Scott
73ae078a05 Merge "Use the app context to avoid a memory leak." 2011-01-05 11:07:21 -08:00
Shimeng (Simon) Wang
2c782e3d53 Refactor zoom overview width calculation.
Refactor zoom overview width calculation in FirstLayout and NewPicture;
also taking care of the case when wide viewport is not enabled.

This fixes the setInitialScale Cts test case, which is broken by some
scale related changed for fixed viewport browser.

issue: 3242034
Change-Id: Ie54d089763ee38029ef25e6029884a17c2135f97
2011-01-05 11:04:23 -08:00
Leon Scroggins
18cf9a7828 Show the keyboard when opening Find from the menu.
Bug:3324846
Change-Id: Ia8b1eea096660b3c01bc0ee3906ecc86ec1c20f3
2011-01-05 13:47:57 -05:00
Patrick Scott
624051aabf Use the app context to avoid a memory leak.
Bug: 3288583
Change-Id: Id259a0148c06f6e98b94c07e5d2e2296c6aef65a
2011-01-05 13:36:00 -05:00
Jason parks
5af0b916f8 Add decryption support to MountService.
* Implement the decryptStorage() method on the Mount Service.
  This method makes the calls into vold to decrypt the encrypted
  volumes and mount them.

Change-Id: I4f6e07a111cf0b36611d590debf9f6579c5ac5f7
2011-01-05 12:32:49 -06:00
Romain Guy
7f3d515f5e Merge changes Ia8a15db8,I20ac5203
* changes:
  Don't enable hardware acceleration when the app owns the surface. Bug #3323096
  Make FrameLayout support mixed wrap_content/match_parent children. Bug #3259668
2011-01-05 10:32:15 -08:00
Leon Scroggins
571354fd29 Do not open the keyboard when opening Find from CAB.
Bug:3312049

Do not start Find on page if the action mode fails to
start.  Clean up showFindDialog.

Requires a change to packages/apps/Browser

Change-Id: I204315665d3bf9f3ac78e78c4059c5a6f24695db
2011-01-05 13:31:02 -05:00
Romain Guy
1aec9a2212 Don't enable hardware acceleration when the app owns the surface.
Bug #3323096

Change-Id: Ia8a15db844703199b3cee3d178f118159315c2b9
2011-01-05 09:37:12 -08:00
Cary Clark
2cdee23312 make select all, copy text public but hidden
For keyboard accelerators, add public interfaces
to copy text and select all.

bug:3270434
Change-Id: I4a38b95a373dcf73575f66fe13b082205d2423ce
2011-01-05 08:02:29 -05:00
Dianne Hackborn
a01ac783c2 Merge "No longer needed." 2011-01-04 22:45:44 -08:00
Dianne Hackborn
b35cd54b88 No longer needed.
Change-Id: Ia2e8264147bb02e29599227d0588e40b1e626358
2011-01-04 22:41:20 -08:00
Joe Onorato
c91d8c3ea5 Merge changes I49263df9,Ie733ad38,I84908fd3,Ia4e869b8,I8240e763,Id5704cc5
* changes:
  fix the build
  Don't re-show the ticker for a notification if they have set FLAG_ONLY_SHOW_ONCE.
  Notification.Builder.setAutoCancel() was setting the wrong flag.
  Allow taps on the ticker to pass through to the notification target view so the notification panel still opens.
  The whole title area of the notification panel should toggle the settings view.
  When the number field on a notifications is >100, just say "100+" instead of listing the number.
2011-01-04 18:54:49 -08:00
Nick Pelly
ea3c57176b am 978e41fc: am 8d98aebe: Merge "Fix technology extra naming for IsoDep and NfcB (API part)." into gingerbread
* commit '978e41fccf278bb64c5204d80d8de95c9bf2e3d5':
  Fix technology extra naming for IsoDep and NfcB (API part).
2011-01-04 18:35:40 -08:00
Nick Pelly
978e41fccf am 8d98aebe: Merge "Fix technology extra naming for IsoDep and NfcB (API part)." into gingerbread
* commit '8d98aebe286be0ca963232afce3d5ceec67d3d7a':
  Fix technology extra naming for IsoDep and NfcB (API part).
2011-01-04 18:33:41 -08:00
Martijn Coenen
a559aa4759 Fix technology extra naming for IsoDep and NfcB (API part).
Change-Id: Iaa8f1b4dec5d626ffb17a33d71d2f92dd0d99636
2011-01-05 13:30:15 +11:00
Joe Onorato
281d83f61f Notification.Builder.setAutoCancel() was setting the wrong flag.
Bug: 3306725
Change-Id: I84908fd3ac2cf9a4ce164179620c33df907d018f
2011-01-04 18:12:32 -08:00
Joe Onorato
059a2f8664 When the number field on a notifications is >100, just say "100+" instead of listing the number.
Bug: 3271445
Change-Id: Id5704cc5cba770b918c974eeec8f9ffb3f294450
2011-01-04 18:12:32 -08:00
Gilles Debunne
d434d2334d MaxLines is respected in TextViews, even when ellipsize is set to end.
Bug 3322607

Re-applying the revert that fixed the ANR (https://android-git.corp.google.com/g/#change,87129),
whith an updated here value that seems to fix the problem.

This layout code is pretty involved, with destabilizing variable names and
uses. Althought I tested it, this fix is not 100% garanteed.

Change-Id: I1f4b09b329fb8a328ae8ab26ae472e343453beda
2011-01-04 18:05:53 -08:00
Dianne Hackborn
87121accdb Some new API cleanup.
- Tweak Fragment docs to match new sample code.
- Make some new attributes public.
- Hide all of the XmlAdapter stuff, since it is not actually being used.

Change-Id: Iae2062f91d1ca0c6b1d656ae948417d3d048482f
2011-01-04 17:42:01 -08:00
Romain Guy
9c95737211 Make FrameLayout support mixed wrap_content/match_parent children.
Bug #3259668

If a FrameLayout is measured with an UNSPECIFIED or AT_MOST spec,
it cannot correctly define the size of its children set to
match_parent. This change adds a second measurement pass similar
to what LinearLayout does in the same situation.

Change-Id: I20ac5203c2efc2e559f88b2c9573d4ad7df488b4
2011-01-04 17:39:43 -08:00
Eric Hassold
a5af5d6b12 Add support for downgrading database version in SQLiteOpenHelper
Provide an API to allow application to support downgrade in databases
managed with SQLiteOpenHelper. Since onUpgrade() is now called only
if requested version is newer than current one, this adds support for
a similar onDowngrade() method, so customers can implement graceful
downgrading. If no downgrade method is implemented by caller, this
fallback to current behavior by throwing an exception.

Bug: 1609474
Change-Id: I0e0166984d4a700b1c43ce780b91244bc2fc87a6
2011-01-04 16:55:27 -08:00
Romain Guy
6b5108bc9c Change the OpenGL viewport when new layout params are used.
Bug #3303158

Change-Id: Id0b8667b262c218ead5feeb5df2c3a256f522bed
2011-01-04 16:11:10 -08:00
Romain Guy
633b1107f6 Merge "Change the OpenGL viewport when new layout params are used. Bug #3303158" 2011-01-04 16:08:34 -08:00
Carl Shapiro
b596198d8d Remove functionality related to external allocation tracking.
The android.os.Debug class exposed two interfaces related to external
allocation.  The first interface provided a counter of global external
allocation events.  This change makes the global counter getters
constantly return 0 and stubs out the counter setters.  The second
interface attempted to provide a counter of per-thread external
allocation events.  That interface was never implemented.  This change
makes the per-thread counter getters constantly return -1 and stubs
out the setters.

Change-Id: I240fe9bf05297a83607a4350d40d20581e2a9e2f
2011-01-04 15:51:33 -08:00
Gilles Debunne
4cf435df2e Revert "Fix for ellipsized text that has two lines at maximum."
This reverts commit 32ea4ffdca0f4706e447d0a275f259fe121b9e6a.

This change introduces an ANR in AutoComplete text view. There is
an infinite loop when the suggestion TextView is measured.

Reverted to fix the ANR, opening a new bug for the ellipsize.

Bug 3315813, 3320375, 3318059

Change-Id: I1872116ca1f39324ed4500d338bafac7e0d195ec
2011-01-04 15:37:41 -08:00
Vasu Nori
78526012a1 Merge "treat "can't open database file error" as "database corruption error"" 2011-01-04 15:05:21 -08:00
Vasu Nori
c7fe777d63 treat "can't open database file error" as "database corruption error"
bug:3083665
if sqlite can't open the database, delete it and create a new one.
what else is sqlite supposed to do?

Change-Id: I8b7c3b051fd1a146e4026f8f8acfdd099f9a70cf
2011-01-04 14:36:16 -08:00
Gilles Debunne
87380bcaeb Added support for asian characters in text selection.
Inspired by https://review.source.android.com/#change,16606

Test class has been revamped to mimic new behavior: selectCurrentWord
is no longer used to add words to the dictionary. We rely on the suggestion
bar in the IME for that.

Change-Id: I1cb88df54dffb166c75f75fefb743ff55a33519b
2011-01-04 14:18:13 -08:00
Derek Sollenberger
1451862b0a Merge "Add full-screen support for OpenGL based plugins." 2011-01-04 13:42:41 -08:00
Gilles Debunne
75b7a931bc Removed simple compilation warnings.
Change-Id: I471b8895db4321d49e324e7137a1f5cee08ff5d4
2011-01-04 13:36:17 -08:00
Gilles Debunne
c0752ee7ce No spaces are inserted around pasted text when there are already new lines.
Bug 3304489

Change-Id: I3c1bf915a2e20f87ed3cec3c30dbcc884bf6b46f
2011-01-04 13:30:24 -08:00
Vasu Nori
36c4cec853 don't call methods doing database lock from a synchronized block
bug:3188552
Change-Id: I08a73f06aa0cbefddd282885f62b8dcc451b9deb
2011-01-04 13:15:56 -08:00
Derek Sollenberger
36a4f232c6 Add full-screen support for OpenGL based plugins.
bug: 3321891
Change-Id: Ief8ef6d3c4b9ea535054b80b84df080567b9b163
2011-01-04 16:05:43 -05:00
Vasu Nori
dc3c9c4b85 Merge "when cursorwindow allocation fails, print the number of cursors left open" 2011-01-04 12:15:53 -08:00
Dianne Hackborn
6d978d6d2e Merge "Few little fragment, wm tweaks." 2011-01-04 11:40:14 -08:00
Dianne Hackborn
352cc98b46 Few little fragment, wm tweaks.
Deal with fragments being restored when their containing view is
gone.

Try to put in a black background during rotation.  Currently commented
out because it appears to cause surface flinger to hang.

Change-Id: I150d061e64488356d17513f4e2d124d7c3d04f6b
2011-01-04 11:34:18 -08:00
John Reck
18e80648c5 Merge "Fix testGetAllVisitedUrls to match BP1 behavior" 2011-01-04 11:02:05 -08:00
Svetoslav Ganov
ad9a064ff2 Merge "Fixing bugs 3315632 3235958, performing a clean up of the WebView accessibility feature. Updated event hadndling to deliver all key events to javaScript if a screen reader is injected since the latter is responsible for the full set of navigation and exploration actions." 2011-01-04 10:59:48 -08:00