23896 Commits

Author SHA1 Message Date
Adam Powell
d06caed8d6 Fix bug 5048482 - mischievous monkeys editing text in IME extract mode
Change-Id: I0bb8d85bc6fdb52c718dca99d69a1571bd64c517
2011-07-21 17:29:24 -07:00
Jeff Brown
162a021756 Decouple GLES20RecordingCanvas lifetime from GLES20DisplayList.
Bug: 5062011

Previously, each GLES20DisplayList would hold onto an instance of
GLES20RecordingCanvas.  In turn, each GLES20RecordingCanvas
held onto an SkWriter with a 16Kb buffer along with several other
objects.  With one display list per view and hundreds of views,
the overhead could add up to a few megabytes.

Ensured that the GLES20RecordingCanvas is reset as soon as
the display list has been constructed, thereby promptly freeing
the 16Kb buffer.

Changed GLES20DisplayList so that it acquires a GLES20RecordingCanvas
from a pool as needed and recycles it when done.

Removed some dead code and cruft related to the construction of
GLES20Canvas objects in general.  Some code was written with the
assumption that the underlying renderer object could change
behind the scenes or might be lazily constructed, but that isn't
actually the case so we can simplify things.

Removed an unnecessary weak reference from GLES20DisplayList
to the View.  It isn't actually used anywhere.

Fixed a bug in GLES20DisplayList where isValid() would return
true while the display list was being recorded.  This is incorrect
because the native display list might not actually exist.  Worse,
even if the native display list does exist, it is stale and
potentially refers to old Bitmaps that have been GC'd (because the
mBitmaps list was cleared when recording started).

Change-Id: Ib12d5483688cb253478edeb0156d34c476c2566b
2011-07-21 17:15:48 -07:00
Jaikumar Ganesh
1352531dc7 Merge "Auto Pairing tweaks." 2011-07-21 16:27:55 -07:00
Mike Lockwood
a5e9bab0e4 Merge "UsbDeviceManager: Add USB notification string for USB accessory mode" 2011-07-21 16:24:27 -07:00
John Reck
8afdd412ac Merge "Fixup handling destroy" 2011-07-21 16:21:13 -07:00
Dianne Hackborn
c09bd156b7 Merge "Fix bug where memory trim was not being delivered with correct level." 2011-07-21 16:19:11 -07:00
Fabrice Di Meglio
b72dedfa5e Merge "Fix CheckTextView padding" 2011-07-21 16:12:43 -07:00
Adam Powell
038f1c80af Bug 5061529 - Save/restore action view state for menu items across
invalidations.

This includes expand/collapse state.

Add CollapsibleActionView interface. Views can implement this to have
special behavior when they are presented as an expanding/collapsing
action view. This lets SearchView and others take care of fiddly
behavior (focus stealing; opening the IME) automatically without apps
needing to implement this themselves.

Change-Id: Ibbd1eb5fcf3e3a862419e9344ad50f896bd05e36
2011-07-21 16:10:01 -07:00
Dianne Hackborn
f0754f5ba7 Fix bug where memory trim was not being delivered with correct level.
Also improve how we handle services, keeping track of whether they showed
UI and if so putting them immediately on the LRU list.

Change-Id: I816834668722fc67071863acdb4a7f427a982a08
2011-07-21 16:02:56 -07:00
Chris Craik
b4cd566767 Merge "New log format, Manual log generation, plus logging of invalidates" 2011-07-21 15:59:17 -07:00
Jeff Hamilton
6675ae11d5 Merge "Make READ_FRAME_BUFFER signatureOrSystem." 2011-07-21 15:57:41 -07:00
Chia-chi Yeh
6abf39879a VPN: add VpnBuilder as the public API of user space VPN.
Change-Id: I5d30cf592bead315509038632647c88de5060e50
2011-07-21 15:37:16 -07:00
Makoto Onuki
85a01a6b46 Add new contacts intent action for the "invite" feature
Bug 5061956

Change-Id: Iaf9926108db51adb3a8742130b1f0418186090c2
2011-07-21 15:37:12 -07:00
Mike Lockwood
6e680dea3b UsbDeviceManager: Add USB notification string for USB accessory mode
Bug: 5062341

Change-Id: I93af8274e538009dd8f00d1cea782b62334e43f1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-21 15:36:09 -07:00
Romain Guy
6ee8c2495d Merge "Add looper profiling to adb shell am" 2011-07-21 15:31:59 -07:00
Fabrice Di Meglio
aff599b4ab Fix CheckTextView padding
- fix for bug #5051724 and bug #5051674
- override resolvePadding for doing correct padding resolution

Change-Id: Id8c7bf4afa24ff2169fd1bd7f5024a342279aab2
2011-07-21 15:24:09 -07:00
Romain Guy
7eabe55db6 Add looper profiling to adb shell am
To profile the looper, run the following command:

adb shell am profile looper start <process> <file>
adb shell am profile looper stop <process>

Change-Id: I781f156e473d7bdbb6d13aaffeeaae88bc01a69f
2011-07-21 14:56:34 -07:00
Jeff Hamilton
0bc369ee66 Make READ_FRAME_BUFFER signatureOrSystem.
Bug: 4941390
Change-Id: I6d38b2d5ca2ed3bbf9ec0561659a486a99cbc024
2011-07-21 16:30:04 -05:00
Chris Craik
21555abad7 New log format, Manual log generation, plus logging of invalidates
bug:5062896

Added features to TileProfiler, updated jni interface to allow querying of
arbitrary log data via strings. Depends on the following webkit change:

https://android-git.corp.google.com/g/#change,122779

For new logging jni interface, and logging of invalidates.

Change-Id: I80ba6702b87e86ec76e5b0eafde45f4ef3a80ad3
2011-07-21 14:22:55 -07:00
Daisuke Miyakawa
3604bc5020 Introduce hidden API Contacts.CONTENT_FREQUENT_URI
Required to support frequent view in Contacts app.

Bug: 5050315
Change-Id: Ia670229e4d3e793446b0a0dce2590e20709ee18c
2011-07-21 14:01:31 -07:00
Jaikumar Ganesh
8adcacbf83 Auto Pairing tweaks.
When the stack returns an incorrect error code, we were going on
in a loop trying auto pairing. Ideally, the stack shouldn't be returning
this incorrect code, but add a fail safe in the userspace code.

Also cap attempts at 2. There is no point trying more than that.

Change-Id: I5bf3ea871b9c2241ae5ac88e9818c9eb847fac92
2011-07-21 13:52:15 -07:00
Irfan Sheriff
d7a374f6f8 Merge "Fix multicast API" 2011-07-21 13:45:38 -07:00
Irfan Sheriff
b0c1b80f47 Fix multicast API
Fix multicast API and disable mutlicast V6 packets at driver start

Bug: 5016558
Change-Id: I1e04a905a36045e52c785c1dc702cc246a381a57
2011-07-21 13:37:57 -07:00
Gilles Debunne
d2bea20965 Merge "Bug 4534376: Suggestion popup is not clipped." 2011-07-21 13:33:13 -07:00
Svetoslav Ganov
d24cd90486 Merge "Adding accessibility support to the Status Bar." 2011-07-21 13:11:44 -07:00
Adam Powell
374d387203 Merge "Bug 4948805 - fix custom title divider for dialogs" 2011-07-21 13:10:28 -07:00
Adam Powell
5ea0bc1abc Bug 4948805 - fix custom title divider for dialogs
Change-Id: I1b4fc8da71deb6450b21def15570a18a6b7200e2
2011-07-21 13:07:05 -07:00
John Reck
00d5bf7e44 Fixup handling destroy
Bug: 5002925
 White list certain messages that can be handled after WebViewCore
 was destroyed (specificially pause/resumeTimers, which are per process)
 and reject all other messages. This avoids using the undocumented
 removeCallbacksAndMessages(null) trick, as well as makes sure PAUSE_TIMERS
 and RESUME_TIMERS are processed in the correct order the correct number
 of times.

Change-Id: I8c51172e015f923ffeb0816a8ee2ab63219d0f96
2011-07-21 12:42:40 -07:00
Svetoslav Ganov
6179ea3196 Adding accessibility support to the Status Bar.
1. Added content description to pretty much all animals
   in the zoo including buttons in the navigation bar,
   notifications and status icons for battery, signal,
   data, etc.

2. Rectored to avoid ovelaying views since they block
   touch exploratino. In general overlaying views
   cause trouble for touch exploration and accessibility
   in general.

3. Avoid sending accessibility events in case the user is
   touching outside of the StatauBAr panels to avoid
   confusion.

4. Added records to accessibility events in the places where
   this would help the presentation. So the event comes from
   a given "leaf" view and its predecessor is adding a record
   to the event for itself to provide more cotext. It is up
   to the accessiiblity service to choose how to present that.

bug:4686943

Change-Id: I1c1bd123d828fb10911bca92130e9a05c1f020b3
2011-07-21 12:04:54 -07:00
Jaikumar Ganesh
ac4159549c Merge "Incoming connection dialog tweaks." 2011-07-21 11:53:44 -07:00
Svetoslav Ganov
d578be2784 Merge "Activity selections not always persisted by AcitivtyChooserView." 2011-07-21 11:48:57 -07:00
Svetoslav Ganov
8dbace2dc9 Activity selections not always persisted by AcitivtyChooserView.
1. ActivityChooserModel was delegating the rsponsibility for reading
   and persisting data to its clients i.e. ActivityChooserView and
   the latter was persisting on detach from window. However, it is
   not guaranteed that this callback will be received leading to
   lack of presistence sometimes. Now the model is responsible for
   loading and persisting thus voiding the posisbility a misbehaved
   client to cause data loss.

bug:5061638

Change-Id: Ia2b7bb659f7b9abe8869c94b3eaa726ddd4e4fad
2011-07-21 11:36:36 -07:00
Irfan Sheriff
4735a5d3d4 Merge "WifiWatchdogSM notification for first wifi disable" 2011-07-21 11:28:51 -07:00
Huahui Wu
598b6fe86b Merge "b/4070489 Jumpy motion when switching fingers during zoom gesture." 2011-07-21 11:08:55 -07:00
Gilles Debunne
31a41d35f6 Bug 4534376: Suggestion popup is not clipped.
This happened when the popup was larger than the screen because of a very long suggestion.
The text will now be ellipsized with a marquee (better than using 2 lines I believe).

Also removed the up layout that was intended to be used when the popup did not fit vertically.
The popup is moved up instead if needed.

Change-Id: Ie741610e74ade10c691614f1c30d0e17b213c698
2011-07-21 10:49:50 -07:00
Isaac Levy
d7b3e6a39b WifiWatchdogSM notification for first wifi disable
Also moved customizable settings into Settings.Secure and
added listeners for setting changes into the state machine.

Change-Id: Ia6859c71f7edae13062685867959adc423af4643
2011-07-21 10:34:56 -07:00
Ben Murdoch
9999c1d977 Add a System.Secure setting for the Autofill server URL.
The Autofill server is now configured as a system setting. Add
that setting and a method to be called over JNI from the chrome
stack to retrieve it.

See also external/chromium change I3a22ae42402f52207eee2d0d9df64700cb7c9f45

Bug: 4515820
Change-Id: I0aa85c5bef834b1120baaabdc2dd2e4e607a63b6
2011-07-21 18:13:22 +01:00
Huahui Wu
5f4835af72 b/4070489 Jumpy motion when switching fingers during zoom gesture.
Change-Id: Ia7845cef5e58b4922e4475e48085b7b95e15bea2
2011-07-21 09:27:40 -07:00
Narayan Kamath
967eac2f8d Merge "Fix some AudioTrack related issues." 2011-07-21 05:12:34 -07:00
Narayan Kamath
673f360b0e Fix some AudioTrack related issues.
(a) Call stop() when we've written less than the
AudioTrack buffer. This forces pending buffers to
get mixed.

(b) Introduce a minimum sleep time to avoid spinlocks
if they system is busy

Change-Id: If70937e8b4e8c5d02d7dadc0d3086f97a10eb7ef
2011-07-21 13:06:28 +01:00
Martijn Coenen
7a1ac5c0fb Hide new interface to fix build.
Change-Id: I9d408ad5ab64399af67b37a01be973634a194ae2
2011-07-21 12:30:24 +02:00
Martijn Coenen
6d74894079 Interfaces for enabling/disabling zero-click.
Change-Id: If7a90e67ca0f05cb18bea2861001e9cb6a14f4d6
2011-07-21 09:57:28 +02:00
Martijn Coenen
63fc01d044 Merge "Support for getTimeout() (API)." 2011-07-21 00:32:11 -07:00
Jeff Hamilton
33ef62e5c6 Merge "Remove the hidden My Tag APIs." 2011-07-20 21:54:15 -07:00
Jeff Hamilton
a77258b98e Remove the hidden My Tag APIs.
Bug: 5048185
Change-Id: Iaf8a77e301fd378738db632e23674facd2c8fccc
2011-07-20 23:15:51 -05:00
Eric Laurent
0eecc27714 Merge "AudioRecord JAVA: expose audio session Id" 2011-07-20 19:25:34 -07:00
Matthew Xie
7699c18a07 Merge "when disconnectHeadsetInternal, allow it when the BT is not disabled" 2011-07-20 19:08:38 -07:00
Romain Guy
22a72964ed Merge "Convert looper traces to traceview traces" 2011-07-20 18:47:49 -07:00
Romain Guy
648bee18a1 Convert looper traces to traceview traces
Change-Id: If9238e8b00744118c1c4d2182727569f94deb638
2011-07-20 18:47:17 -07:00
Gilles Debunne
317ab3427a Merge "Suggestions are dismissed by back key" 2011-07-20 17:51:36 -07:00