12719 Commits

Author SHA1 Message Date
Chet Haase
5977baa1fa Reuse of native display list objects
Change-Id: Ia4553e23930ad20e56c11faa7809be788a1ad4bb
2011-01-06 12:50:30 -08:00
Vasu Nori
42edf0f8cf Merge "requery() should close cursorwindow insead of setting it to null." into honeycomb 2011-01-06 11:37:00 -08:00
Vasu Nori
8e6a513c97 Merge "set default mode of WAL to be off." into honeycomb 2011-01-06 11:36:53 -08:00
Cary Clark
b83a4b98de Merge "pass enter key to webkit more often" into honeycomb 2011-01-06 11:29:33 -08:00
Cary Clark
ddbda005ad pass enter key to webkit more often
If the cursor is active and on a node that doesn't want
key events, treat the enter key as a click.

Otherwise, pass key down and key up to webkit.

A companion change in external/webkit adds frames
as nodes that wants key events.

bug:3325093
Change-Id: I134d2999505925ee1e571841759cb295103b5a30
2011-01-06 13:42:11 -05:00
Vasu Nori
0e453d1115 requery() should close cursorwindow insead of setting it to null.
just in case GC takes a while to kick in.

Change-Id: I3a00b52afe1303be0c7d6bb561e5c07734e4dcb3
2011-01-06 09:52:51 -08:00
Steve Block
67ba204aa2 Tidy up CacheManager comments and documentation
Change-Id: I3a7d3836a51ef3092652ade87f29bc84af69ee7d
2011-01-06 17:20:21 +00:00
Steve Block
e7fc1d26c5 Remove an unused non-public CacheManager method
Change-Id: Ia0bef0a66167ce948802701e1dd85e82b937dbdf
2011-01-06 17:19:58 +00:00
Vasu Nori
a22d88493e set default mode of WAL to be off.
apps will have to enable WAL explicitly.

Change-Id: Iba5c47a40f465e668ef0d538282230e99fe04ce6
2011-01-06 09:18:47 -08:00
Mike Lockwood
264f6cd0b9 Temporarily remove UsbManager support for USB host.
A new USB host API will be added in an upcoming commit

Change-Id: I5816c10c7acd236d31ab8ae255fc83c77121eea0
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-06 11:48:19 -05:00
Mike Lockwood
27480cd494 Remove support for obsolete PTP content provider
This will be replaced by a new PTP host API in an upcoming commit.

Change-Id: Ib914194e332b5c090cb8e34ed35bd691bc9f85d1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-01-06 11:47:56 -05:00
Adam Powell
9456655f93 Fix a bug that could cause padded lists to draw dividers incorrectly
Change-Id: I6483848c55567f901ac8b1628991de3343bd3f3d
2011-01-05 23:25:33 -08:00
Adam Powell
1470f9c24e Merge "Fix bug 3326380 - ListView motion scrolling stops too early when list is padded" 2011-01-05 22:38:35 -08:00
Adam Powell
a13fc67b81 Fix bug 3326380 - ListView motion scrolling stops too early when list
is padded

Change-Id: Iaca31e030aefc87f115d5022c2a42aefd73b88ea
2011-01-05 22:37:33 -08:00
Dianne Hackborn
1122566613 Merge "Implement issue #3326435: Battery stats improvements" 2011-01-05 21:35:56 -08:00
Dianne Hackborn
c1b40e361c Implement issue #3326435: Battery stats improvements
Keep track of discharge while screen is on vs. off.

Checkin looks like:

5,0,u,dc,1,1,1,0

The last four numbers are, from left:

- Maximum battery drain over time period.
- Minimum battery drain over time period.
- Battery drain while screen was on.
- Battery drain while screen was off.

Change-Id: Ie4026a7cc8aabb2a6d47d03d2e278aa51c2d5ddf
2011-01-05 21:02:01 -08:00
Vasu Nori
6a904bc65e Revert "treat 'can't open database file error' as 'database corruption error'"
This reverts commit c7fe777d6348bd740d3f2554e9308176a0c462ed.

Change-Id: I9992d404394917537d5c22470efbd970605976ed
2011-01-05 18:38:15 -08:00
Jean-Michel Trivi
32cef98de8 Merge "Add support in TTS for volume and panning control of the synth output" 2011-01-05 17:36:46 -08:00
Michael Jurka
dab559a24f exposing isDirty() method on View
- needed in Launcher2 for implementation of caching views to bitmaps

Change-Id: I1dc1e8e4328106f88e1aa8e55ccb17b08fc9756b
2011-01-05 17:14:24 -08:00
Adam Powell
a39b987bb7 Fix Holo Spinners
Fix bug 3321329 - Spinner dropdown does not match widget width

Fix a bug in ListPopupWindow where setContentWidth was misbehaving

Add gravity setting to Spinner. This controls the positioning of the
selected item view within the widget. Holo default is left, legacy
default is center.

In dropdown mode, Spinners now WRAP_CONTENT width based on a limited
set of dropdown content. This means the dropdown can display a
reasonable amount of its content without clipping, while matching
width with the Spinner widget itself.

Change-Id: Ia17fd5f71526548408f4ad3b16bde536b0d3b207
2011-01-05 17:08:33 -08:00
Jean-Michel Trivi
9d2d26af2e Add support in TTS for volume and panning control of the synth output
Add two new parameters that are used when synthesizing text and
 playing it back directly to control the volume and left-right
 panning of the output.
Panning is applied using a balance law, which is not energy-preserving
 but which doesn't lower the volume when not panning / panning to
 center (legacy behavior).

Reduced amount of logs, and removed spoken text.

In TextToSpeech.java: added convenience method to handle the setting
 of the cached synthesis parameters.

Change-Id: I235d3d3193283ccc1891e2065d43787e3f63304d
2011-01-05 16:24:30 -08:00
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