30017 Commits

Author SHA1 Message Date
Romain Guy
ba6be8a62d Prevent WebView from crashing when detached from the window
Bug #6365056

WebView enqueues a functor in the hardware renderer to handle
animations and this functor is called at a later time by the
hardware renderer. However, the functor was not removed from
the queue when WebView was removed from the window. This could
cause the hardware renderer to attempt to execute an invalid
functor and lead to a crash.

Change-Id: I9d38e80f3fdc5e29d4d0cdfa1e893c251a954508
2012-04-23 20:29:31 -07:00
Maurice Chu
88fffb7a34 Merge "Fix build breakage resulting from change id: Ia1038f45" 2012-04-23 19:06:09 -07:00
Maurice Chu
2dfba0e6cf Fix build breakage resulting from change id: Ia1038f45
Corrected adding a backslash before apostrophes in the strings.xml file.

Change-Id: I83574042184c9abb78409441ddf2d0e58a68f207
2012-04-23 19:03:13 -07:00
Gilles Debunne
8b48244668 Merge "Centered text is not updated" 2012-04-23 18:31:22 -07:00
Gilles Debunne
9177947741 Merge "Fixed SSB. Correct broadcast of removed spans' positions" 2012-04-23 18:17:30 -07:00
Maurice Chu
395d725ff4 Merge "Changed the description of android.permission.READ_CONTACTS" 2012-04-23 17:56:07 -07:00
Maurice Chu
8aae6a8e94 Changed the description of android.permission.READ_CONTACTS
Bug:6141955
Change-Id: Ia1038f45d4f72358446ec265130bb34f8b228f82
2012-04-23 17:34:59 -07:00
Glenn Kasten
2427a4c49e Merge "Scheduling group cleanup" 2012-04-23 17:11:55 -07:00
Gilles Debunne
fb9f5be318 Centered text is not updated
Bug 6378843

Emergency fix. May submit a proper fix with less translations later.

Change-Id: I9d8348e29d5436580202d3ee0456d341bf81dab8
2012-04-23 16:51:29 -07:00
Gilles Debunne
b983e27af4 Merge "Re-added a flag to prevent the IME from showing" 2012-04-23 15:53:37 -07:00
Glenn Kasten
f1b56449f5 Scheduling group cleanup
The C++ API for scheduling groups is going away, so use the C API.

Renumber THREAD_GROUP_* constants to have the same values as SP_*.
They are @hide so this should be OK.

The old THREAD_GROUP_FG_BOOST constant is removed, and replaced by a
(private) THREAD_GROUP_FOREGROUND constant that is just a placeholder
to correspond to SP_FOREGROUND.  It is not usable at this level.

Improved performance of android_os_Process_setProcessGroup:
avoid unnecessary syscall to getpriority for each tid.

Fixed error handling in android_os_Process_setThreadGroup.
It raises an exception if set_sched_policy() returns an error.

Add comments and fix typos in existing comments.

Change-Id: Ib922e92c945985c695ef0addbd2b83b8e82865f8
2012-04-23 15:30:02 -07:00
Romain Guy
19f86e831e Invoke onTrimMemory with an EGL context
Bug #6369600

Change-Id: I3ded47c3688ef2f2873495392c35e898357204da
2012-04-23 15:19:07 -07:00
Chris Wren
b023bf85a0 let default notifications with actions get bigger that 64dp.
Bug: 6377749

Change-Id: I8c92ef67b59f7a44b61926c32480cce6990a1375
2012-04-23 13:51:52 -07:00
Adam Powell
32ef750af0 Merge "Add TaskStackBuilder#addParentStack(ComponentName)" 2012-04-23 13:41:36 -07:00
Chet Haase
27bfcedc37 Merge "Remove USE_DISPLAY_LIST_PROPERTIES flag" 2012-04-23 13:36:46 -07:00
Adam Powell
3c464bdefe Add TaskStackBuilder#addParentStack(ComponentName)
Let TaskStackBuilder discover a parent activity stack by ComponentName
in addition to explicit Activity classes.

Change-Id: I18b8378548ed1d6ef033800e6a3e11ab965d07e5
2012-04-23 13:18:06 -07:00
Eric Fischer
ad7628a8aa Merge "Import translations. DO NOT MERGE" 2012-04-23 12:23:52 -07:00
Eric Fischer
f4a5cc1b52 Import translations. DO NOT MERGE
Change-Id: I9e4dcac71ac7430b6b51e49b4e9c4f6882a7f8b7
2012-04-23 12:21:11 -07:00
Chet Haase
1271e2cc80 Remove USE_DISPLAY_LIST_PROPERTIES flag
This flag was still hanging around pending any need to disable
DisplayList properties. But things seem stable, so it's time to clean up
and simplify the code.

At the same time, I reduced redundance in DisplayList dimensions. We
used to call drawDisplayList() with width/height parameters that were
used to do a clip reject. This is redundant with the DisplayList properties
that set the bounds of the DisplayList; the left/right and top/bottom properties
represent the same width/height properties formerly used in drawDisplayList().
The new approach is to not pass dimensions to drawDisplayList(), but to
instead pull those dimensions directly from the DisplayList when needed.

Change-Id: I8871beff03b1d4be95f7c6e079c31a71d31e0c56
2012-04-23 11:13:17 -07:00
Jonathan Dixon
003952ba33 Merge "Fix dumprendertree crash" 2012-04-23 10:56:21 -07:00
Jonathan Dixon
03b433c031 Fix dumprendertree crash
This is a quick workaround to get tests running again, will follow up with full fix tomorrow.

Bug: 6379925
Change-Id: I96d6e27bfb8f8cd41ec08845ab0fb1e584dbc9da
2012-04-23 18:51:28 +01:00
Gilles Debunne
de09576f49 Merge "Cursor is moved at end of word when it is added to dictionary" 2012-04-23 10:42:21 -07:00
Steve Block
5e1243e6f7 Merge "Fix use of API level in android.webkit JavaDoc" 2012-04-23 10:33:14 -07:00
Steve Block
b838aef488 Fix use of API level in android.webkit JavaDoc
Bug: 5461416
Change-Id: Id17b10fec6bebc46260db6abe6df5f7d44a711ae
2012-04-23 18:24:29 +01:00
Jeff Sharkey
f913d002a6 Merge "Expose statfs() through IMediaContainerService." 2012-04-23 10:08:01 -07:00
Ben Murdoch
1579a67ee9 Merge "Pause the WebCore thread watchdog at the right time." 2012-04-23 05:52:05 -07:00
Ben Murdoch
cba778dc21 Pause the WebCore thread watchdog at the right time.
There are times when we deliberately put the WebCore thread
to sleep (i.e. waiting for a user to complete a JS prompt or
dismiss an alert). In this case, we don't want the WebCore thread
watchdog to fire. Pause the watchdog before we put the WebCore thread
to sleep and resume it again when the thread wakes up.

Factor out the repeated send/pause/wait/resume code into it's own
function.

Bug: 6366520
Change-Id: I17ecf9d466ce21b25a9e5cb8ff4cb0e5fab7605b
2012-04-23 13:50:03 +01:00
Jonathan Dixon
47bc84760a Merge "Seperate interface and implementation of 4 WebView classes" 2012-04-23 05:48:40 -07:00
Daniel Sandler
03c63ebebb Merge "Update SystemUI for sw600dp devices." 2012-04-23 04:48:35 -07:00
Jonathan Dixon
d3101b1d30 Seperate interface and implementation of 4 WebView classes
GeolocationPermissionsClassic
CookieManagerClassic
WebIconDatabaseClassic
WebStorageClassic

Also creats a WebViewFactory top level class - this remains hidden
for now, as it's currently only used implicitly by the other
public WebView classes to create the provider instances.

Bug: 5626244

Change-Id: Id0ca1c16d8058f31a86414bbc0e8a55db4b907ba
2012-04-23 12:43:02 +01:00
satok
eb65757d24 Merge "Fix the first boundary of the sentence level spell check" 2012-04-22 22:39:48 -07:00
satok
979de90369 Fix the first boundary of the sentence level spell check
Change-Id: I7c7659c921103d31f9909c14850088aef0d2eb19
2012-04-23 13:46:40 +09:00
Jeff Sharkey
9cbe986a44 Expose statfs() through IMediaContainerService.
Bug: 6346248
Change-Id: I03ae02578f546fc9f19652cbdece56e2e0ab6a1c
2012-04-22 18:56:43 -07:00
Jeff Sharkey
49b0246bc4 Merge "System context should inherit base package name." 2012-04-22 17:30:41 -07:00
Jeff Sharkey
816e4f7583 System context should inherit base package name.
Otherwise registerReceiver() from views inflated with the returned
context will throw (like DateTimeView).

Bug: 6376149
Change-Id: I038a680e49fba81bbebfc8c0c94f15e7cd072f33
2012-04-22 17:08:52 -07:00
Eric Laurent
e93cccb634 Merge "Fix threading issues in AudioRecord JNI" 2012-04-22 13:26:29 -07:00
Daniel Sandler
4a066c5c77 Update SystemUI for sw600dp devices.
Devices between 600 and 719dp will now use the two-bar
(phone) SystemUI layout, or something like it, derived from
PhoneStatusBar. Devices above 720dp will use the system bar
from TabletStatusBar.

However, this distinction is not to be made based on dp, at
least, not by the SystemUI; the goal is to drive most of
this switch from the window manager. Therefore most of
SystemUI's sw600dp resources have been folded into the main
set of resources (renaming them to avoid collisions where
appropriate). This allows SystemUI to choose which set of
resources to use entirely by switching status bar
components, entirely independent of Configuration.

(For some resources, particularly around recents, it seemed
more expeditious to keep relying on the device
configuration, so those resources have been bumped up to
sw720dp.)

Bug: 6297838
Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c
2012-04-21 00:19:47 -04:00
Jeff Brown
7838025812 Merge "Make InputEvent.getEventTime() public." 2012-04-20 20:16:25 -07:00
Jeff Brown
a2c68198b1 Merge "Get alias for Bluetooth devices." 2012-04-20 20:15:20 -07:00
Jeff Brown
b11499d2db Make InputEvent.getEventTime() public.
Also add new methods to access the event timestamp in
nanoseconds.  Hidden for now but useful for prototyping.

Bug: 6374616
Change-Id: I7030734a908e8e31a17a356debc269db7c0f0783
2012-04-20 20:11:19 -07:00
Jeff Brown
5bbd4b4f5f Get alias for Bluetooth devices.
Bluetooth devices can be renamed by the user.  Make the
input system aware of the user-specified name and transparently
pass it down to applications.  This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
2012-04-20 20:11:12 -07:00
Dianne Hackborn
8ff0c9204e Merge "You can now long press on the power off menu to reboot to safe mode." 2012-04-20 18:58:53 -07:00
Svetoslav Ganov
d6e716dce9 Adding a couple of missing accessibility focus directions.
Change-Id: Id404155591cf3fe5f9bef3ed8fe0d03908944ce1
2012-04-20 18:40:21 -07:00
Dianne Hackborn
19caadc08f You can now long press on the power off menu to reboot to safe mode.
Change-Id: I3aa575285058cf5a3d89486d6b944f6ea13d645c
2012-04-20 17:50:26 -07:00
Svetoslav Ganov
122b2c32de Fixing a couple of issues I have introduces in the last patch.
1. Fix waiting for the wrong instance.

2. Fix cloning of accessibility node info.

Change-Id: Icabf0d4bc947602a32fddc6642cc787f2bc766e4
2012-04-20 17:04:23 -07:00
Eric Laurent
532bc1cb7d Fix threading issues in AudioRecord JNI
Made native AudioRecord ref based to allow use
of strong pointers in JNI and solve concurrency issues
between read() and release() in particular.

Applied the same fixes to AudioTrack JNI.

Issue 6254582.

Change-Id: I381a66cb00b6639f87f4fcd19a2e202d1a4e6704
2012-04-20 16:26:07 -07:00
Gilles Debunne
3473b2b1f4 Re-added a flag to prevent the IME from showing
Revert of CL 161404

This flag will be used by the dialer. It prevents any IME from
showing as a result of a focus given to a TextView through a tap
or a D-Pad click.

Change-Id: Ifa5bfcbff124b300780f76dea443d26cf172f5e3
2012-04-20 16:21:13 -07:00
Kenny Root
8b0af62799 Merge "Move forward lock utilities to PackageHelper" 2012-04-20 16:10:45 -07:00
Jeff Sharkey
8d3696eca2 Merge "Connect metered DHCP hint for Wi-Fi networks." 2012-04-20 16:03:26 -07:00
Jeff Sharkey
9f6e4ba50e Connect metered DHCP hint for Wi-Fi networks.
When DHCP lease includes vendor info indicating that remote Wi-Fi
network is metered, advise NetworkPolicy.  Users can still manually
change the metered flag in Settings.

Also remove any policies belonging to removed Wi-Fi networks, and
teach isNetworkMetered() about ethernet networks.

Bug: 6344821, 6369307, 6365872
Change-Id: I108606c6fddf2d02828fcab011f3a1501415f1bc
2012-04-20 15:57:19 -07:00