37510 Commits

Author SHA1 Message Date
Adam Cohen
26e30bb7fe Preventing StackView auto-advance during / near interaction
Change-Id: Ieea5492933b87f1eb30703a23c90f53869f92c20
2010-12-03 18:36:57 -08:00
Shimeng (Simon) Wang
82609adab8 Merge "Make sure the returned web view width is at least 0." 2010-12-03 18:22:29 -08:00
Michael Jurka
4d2bd4c9ae fixing getLocationInWindow
- takes into account mTranslationX/Y

Change-Id: I7d622fe9e8b5e021f8585894b72ffd82c087cc57
2010-12-03 18:05:12 -08:00
Irfan Sheriff
bd3dd73b36 Merge "DO NOT MERGE Avoid nullifying dhcp target" into gingerbread 2010-12-03 17:58:17 -08:00
James Dong
f6bd1ea0c7 Replace MediaMetadataRetriever.captureFrame() with MediaMetadataRetriever.getFrameAtTime()
as part of the preparation for publishing MediaMetadataRetriever as public Java API

bug - 2433195

Change-Id: I6e8a771347e3d89bfe359ae403ebfe3205ea6313
2010-12-03 17:14:25 -08:00
Irfan Sheriff
9beea36441 Hold network hand-off wakelock only when connected
Change-Id: I31132cb2966cfc1eb205e070116b4c784d292f46
2010-12-03 17:00:13 -08:00
Romain Guy
7c2bacf6a9 Merge "Don't render degenerate triangles in 9patches. Bug #3251983" 2010-12-03 16:49:45 -08:00
Joe Onorato
4b2970c115 Merge "make screencap able to save pngs." 2010-12-03 16:49:39 -08:00
Romain Guy
a5ef39a216 Don't render degenerate triangles in 9patches.
Bug #3251983

Change-Id: Ib0b38a7b8111542372f4c4c106b6321c26fe4ad4
2010-12-03 16:48:20 -08:00
Dianne Hackborn
50ed8294d3 Fix issue #3201066: Locale change not reflected by settings
Change-Id: I356c7ec021df7a20f52017e0630d341230ea349f
2010-12-03 16:38:25 -08:00
Shimeng (Simon) Wang
3712754941 Make sure the returned web view width is at least 0.
This will fix issue 3241963; since in WebViewCore.java there's a way
to deal with a 0-width view, but not with negative width.

issue: 3241963
Change-Id: I177bee48e53ba5108889bc2c06aebffbc6cb44c6
2010-12-03 16:34:00 -08:00
Dianne Hackborn
8c7a580b34 Some theme cleanup.
- Add new dialog themes without a title bar.
- Add new Theme.Holo.NoActionBar.DialogWhenLarge.
- Remove old Extended and Theme.Light.Holo themes.
- Reorder the public definitions to keep things nice.

Also @hide the MipmapDrawable class.

Change-Id: Ic69a56e9b28aacf441780633f37f0bc6a475d08a
2010-12-03 16:32:50 -08:00
Gilles Debunne
aaa8479a97 Made TextView use the new localState API for drag info
Change-Id: I5448bd45d20fab5a541382e101556f5c9d8ea1e4
2010-12-03 16:10:26 -08:00
Joe Onorato
5cff0630eb make screencap able to save pngs.
Change-Id: Idf3542ff05670bc872bd91770810ed775266514f
2010-12-03 16:07:08 -08:00
James Dong
988f382308 Merge "Prepare for publishing MediaMetadataRetriever as public API" 2010-12-03 15:36:06 -08:00
Fred Quintana
56285a60e8 add caching to the AccountManagerService
- cache the accounts, userdata and authtokens
 - make the AccountManagerServiceTest work again
 - add a log statement for every binder call

http://b/issue?id=3188457

Change-Id: I96b94b9b690cf391fe4341e2a72893a6d823777b
2010-12-03 15:35:48 -08:00
James Dong
faf09ba940 Prepare for publishing MediaMetadataRetriever as public API
step one:
o replaced captureFrame with getFrameAtTime
o removed getMode

bug - 2433195

Change-Id: I38a8cecef29014692f0b08b8818326e3ebb40a12
2010-12-03 15:32:47 -08:00
Amith Yamasani
4838548209 Added to SearchView : getQuery() and setOnSearchClickListener()
Bug: 3083393
Bug: 3172295
2010-12-03 15:21:07 -08:00
Chet Haase
f870c28d76 Merge "Fix invalidation issue for optimized/GL case." 2010-12-03 15:17:01 -08:00
Jan Brands
2fe24e3e14 First implementation of MifareUltralight
Change-Id: I77818ddc89b529c17fc41d6c0850688365c6b770
2010-12-03 23:45:03 +01:00
Adam Powell
d3f5ce154f Merge "Fix bug 3248342 - resource not found for non-xlarge" 2010-12-03 14:42:11 -08:00
Chet Haase
f2f7d8f9dd Fix invalidation issue for optimized/GL case.
The bug caused intermittent artifacts where some apps would not get
repainted until some overall screen invalidation occurred.

Change-Id: I82a3294429f15fe51cc8f4b47134e3b5540cb240
2010-12-03 14:35:29 -08:00
Adam Powell
de0f5c99d9 Fix bug 3248342 - resource not found for non-xlarge
Change-Id: Ie3db1dcdec2bded49dc7579277f5c81773284647
2010-12-03 14:34:29 -08:00
Andy Stadler
110988c8b7 Fix notification/builder defaults
* Builder wasn't setting mAudioStreamType to its non-zero default
* Clean up warnings (imports, unused variables, overrides)

Bug: 3250299
Change-Id: I019f54a0d6c97e71681d24144e784fa4b4737f7e
2010-12-03 14:29:16 -08:00
Irfan Sheriff
00506e38dc Merge "Fix configuration change handling" 2010-12-03 14:29:08 -08:00
Jim Miller
848024f744 Merge "Fix 3201849: Remove builder pattern from DrawableHolder setters" 2010-12-03 14:21:42 -08:00
Mathias Agopian
698a8aaca2 [3229973, 3247470, ...] set EGLNativeWindowSurface's format in EGL
(there are multiple bugs this should fix)

we now use the EGL_NATIVE_VISUAL_ID of a config to set
the ANativeWindow's format from eglCreateWindowSurface(),
this guarantees that the surface's format will match
whatever EGLConfig the user chose.

this should fix all current and future config/surface format
mismatch and allow users to easily select 32-bits surfaces.

Change-Id: I3835d0eb70c75eeecded3c3509a0a8207554c98b
2010-12-03 14:15:40 -08:00
Irfan Sheriff
be9ee6a498 Fix configuration change handling
When IP or proxy config changes, we now reconfigure
the network and inform connectivityservice.

Also, fixed the naming for changes on configured
networks.

Bug: 3237735
Change-Id: I2a94b3158b6b0e0d27442d7fd525a8a23f0497f8
2010-12-03 14:15:39 -08:00
Dianne Hackborn
88bf6084c3 Merge "Fix issue #3175809: system_server crash with SEGV_MAPERR (IKXEVEREST-1372)" 2010-12-03 13:16:38 -08:00
Dianne Hackborn
87fc308282 Fix issue #3175809: system_server crash with SEGV_MAPERR (IKXEVEREST-1372)
Don't crash if dump() is called before we have set mDisplay.

Change-Id: I0d3d356ff27dbc61353a5b99e348178937d5f4a5
2010-12-03 13:09:12 -08:00
Daniel Sandler
3e8f5a2c1b Hide navigation buttons and clock on lockscreen.
(This introduces a StatusBarManager disable flag to ask the
status bar to hide just the clock, which might be useful in
other situations, such as clock/dock apps.)

Bug: 3130393
Change-Id: Ia08627508518e2ed3713ffbf856e4ec42952b3a8
2010-12-03 15:55:04 -05:00
Xavier Ducrohet
ad2ff860bf Merge "LayoutLib: Animation support in insert/move/removeChild actions." 2010-12-03 12:27:27 -08:00
Xavier Ducrohet
5f1644fb25 Merge "LayoutLib: Create new layoutparams when moving a child" 2010-12-03 12:27:14 -08:00
Wink Saville
17db4067a3 Merge "Cleanup logging." 2010-12-03 12:16:50 -08:00
Wink Saville
ed9c02b56c Cleanup logging.
Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
2010-12-03 12:01:38 -08:00
Jeff Brown
6a9566592a Merge "Add method for sending wallpaper commands directly to an engine." 2010-12-03 11:52:38 -08:00
Xavier Ducrohet
e1179ea065 LayoutLib: Animation support in insert/move/removeChild actions.
Also update to use the new SceneResult API.

Change-Id: Iaac6df0c250fbefc8758310c37e0cf47cae6875d
2010-12-03 11:50:36 -08:00
Jeff Brown
9f3bdfe3eb Add method for sending wallpaper commands directly to an engine.
This enables the livewallpaper preview activity to send tap commands to the
wallpaper so that the preview is more interactive.

Also add a command for sending secondary pointer taps for multitouch
enabled wallpapers.

Change-Id: I9fa10cc47d92dfa9f1a1208aba44c66943eee3ec
2010-12-03 11:35:42 -08:00
Gilles Debunne
647fc85af8 Merge "Removed unused text_select_handle asset" 2010-12-03 11:33:51 -08:00
Gilles Debunne
7ffbc13776 Removed unused text_select_handle asset
Change-Id: Ide48933d372f95e80df16f90b8bb915193d6cebb
2010-12-03 11:28:10 -08:00
Kenny Root
592f4dd8c1 Merge "Move disk usage utilities to its own library" 2010-12-03 11:23:48 -08:00
Amith Yamasani
3b7fec8d56 Merge "Use SearchView in SearchDialog for legacy apps using the old model." 2010-12-03 11:22:48 -08:00
Amith Yamasani
968ec93839 Use SearchView in SearchDialog for legacy apps using the old model.
Bug: 3140925

Removed all the code from SearchDialog that is already in SearchView
and moved more stuff into SearchView.

SearchDialog layout changed to be more like a Holo.Light themed action mode.
Search field is right justified and limited to 500dip.

Zero query dropdown added to SearchView (causing some problems with Gmail,
but that may be an existing issue that's only now showing up due to this change)

Holo.Light search views assets still need to be updated, as the contrast is too low.
2010-12-03 11:18:25 -08:00
Teng-Hui Zhu
c99821d01a Fix the stretching issue when viewport change.
When native webkit code ask java to provide the visibleRect,
the calculation should not take the overscrolling into concern.

The original change was added for this issue, http://b/issue?id=2496502,
and we don't have overscroll any more, so it should be safe to
revert the original change.

bug:3212547

Change-Id: I57e3353b3277f83302ccfd9916a38aa691fa15c7
2010-12-03 10:59:19 -08:00
Dianne Hackborn
189ee18d6c Implement smarter sizing of WRAP_CONTENT windows.
This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size.  They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
2010-12-03 10:46:18 -08:00
Irfan Sheriff
d69f649eaf DO NOT MERGE Avoid nullifying dhcp target
A race condition causes an NPE on mDhcpTarget. The safest change is
to avoid nullifying it. A dummy call to remove messages
on a handler whose looper is quit should do no harm.

Bug: 3191203
Change-Id: I7613a5add873ce9512e9719cb2dc8da61255370e
2010-12-03 09:59:07 -08:00
Cary Clark
32820249ad abandon long press on scroll; clear hit on keydown
If the application scrolls the webview without allowing
WebView.java to receive the motion event, stop any long
press timer in progress. This prevents select text from
appearing in applications that host webviews and do their
own flinging.

If the cursor is moved with the dpad or trackball,
reset the hit test state used by long press. This allows
cts tests to run reliably; they emulate key presses
to move between links.

bug:3250291 (app fling)
bug:3241830 (cts fail)
Change-Id: Ida364051ffa090455ddc6c3c3dd41baea5615293
2010-12-03 10:52:07 -05:00
Patrick Scott
2f492277ea Attempt to scroll layers everytime the user drags.
This allows the user to continue scrolling a layer even after reaching the end
of it.  Only pin the fling velocity in the direction of the fling.  This is
preparation for flinging layers.

Record the inval region when updating layers so that the new layer will draw.

TODO: Keep track of whether the user started on a layer to prevent scrolling a
layer if the user drags across one.

Bug: 3022562

Change-Id: I25f84497a67dfb1e0fc424207f6c97817715501c
2010-12-03 10:32:57 -05:00
Steve Block
bcdf40b42f Merge "Update WebView.addJavascriptInterface() to ignore null instances" 2010-12-03 03:38:00 -08:00
Ben Murdoch
cbdfd0fc0c Merge "Add a value for the dimensions of xlarge app icons." 2010-12-03 03:05:54 -08:00