24188 Commits

Author SHA1 Message Date
Justin Ho
7ef38ff91e Merge "Updated btn_default and btn_toggle assets Bug: 5076695" 2011-08-02 07:27:38 -07:00
Justin Ho
407b13440b Merge "Updated scrollbars and fast scroller assets. Bug: 5076695" 2011-08-02 07:27:22 -07:00
Justin Ho
c4badaf035 Merge "Updated progress bar and scrubbers, adding xhdpi Bug: 5076695" 2011-08-02 07:27:12 -07:00
Justin Ho
26508fcbc0 Merge "Updated spinners Bug: 5076695" 2011-08-02 07:27:03 -07:00
Derek Sollenberger
09a22e33e7 Reverting until we can find a better way to address this issue without affecting nine-patches with large stretchable areas.
Revert "Fix NinePatch decoder when the target is smaller than the source."

This reverts commit c4c458c678567b899aae04631570460c5e729512
2011-08-02 05:17:49 -07:00
Wu-cheng Li
bb1e275c0e Pass camera frame metadata from camera service to Java.
bug:4460717
Change-Id: I2fae6e1dfca6b8f3a5ee5716fc7817f5417bf657
2011-08-02 15:48:41 +08:00
Wu-cheng Li
0175028b73 Merge "Add camera recording hint parameter." 2011-08-02 00:16:28 -07:00
satok
9407c601ea Merge "Move SpellCheckerSession" 2011-08-02 00:11:06 -07:00
satok
aafd955fa8 Move SpellCheckerSession
SpellCheckerSession should be in android.view.textservice because this class will be used directly by users.

Change-Id: I0df6d7958adda421312b5f641ac4459ca4739cc9
2011-08-02 16:04:39 +09:00
Wu-cheng Li
25d8fb51da Add camera recording hint parameter.
The API is still hidden.

bug:4266229
Change-Id: I5e4c24e9e2808582aecb55ac4f1d5be3ed7e36a2
2011-08-02 14:27:58 +08:00
satok
5b9b5a9553 Change SpellCheckerInfo IPC inputs to String
Change-Id: I4c3f3c7aa7587e3f2582b43702108fa78f37ec54
2011-08-02 14:04:43 +09:00
satok
1164d776c6 Merge "Add a method to set the current spell checker" 2011-08-01 19:49:37 -07:00
satok
046cbe750b Add a method to set the current spell checker
Change-Id: I0e1fbe99538c873eed3723fb419bbfa626dec509
2011-08-02 11:41:20 +09:00
Dianne Hackborn
b1c44b1738 Merge "Move ImageWallpaper to SystemUI process." 2011-08-01 18:59:58 -07:00
Adam Powell
349f5d557b Merge "Fix bug 5105394 - Get rid of btn_default_small" 2011-08-01 18:31:40 -07:00
Gilles Debunne
3bdd2546d2 Bug 4280211: permission green checkboxes removed
Change-Id: Ic1d1d6f90b2105cd634eb49c1aba2636c1d9e0b5
2011-08-01 18:27:52 -07:00
Adam Powell
52eb4cc724 Fix bug 5105394 - Get rid of btn_default_small
Remove the small holo button resources and their preload entries.

Change-Id: I58a61e3f8d532b4d1887d39969dc81d5190d27ca
2011-08-01 18:15:48 -07:00
Dianne Hackborn
ba39839444 Move ImageWallpaper to SystemUI process.
Nice to not load 4MB bitmaps in the system process.

Also, hey, with how we are now scrolling the surface instead of
the bitmap, there is no reason to keep that 4MB bitmap loaded in
to memory.  So don't.

Unfortunately it looks like for some reason the VM is still
holding on to the bitmap.  I'll need to figure out why.  Later.

Change-Id: Ib3503756144502fc5c8d5e294248c2417c4fe8c8
2011-08-01 17:55:54 -07:00
Jeff Brown
2a2ec87b55 Merge "Refactor input reader to add stylus support. Bug: 5064702" 2011-08-01 17:48:21 -07:00
Romain Guy
8a2da33c77 Merge "Allow Canvas.setBitmap() to receive a null Bitmap." 2011-08-01 17:42:36 -07:00
Romain Guy
0965a3244b Allow Canvas.setBitmap() to receive a null Bitmap.
Change-Id: I6096f0b44866e532ccd96a29c816bf34d48c1dc2
2011-08-01 17:39:21 -07:00
Eric Fischer
ba30be5754 Restore deleted string still referenced from a layout.
Change-Id: I5285b44118d08f3f18d9a2dc4065c20b4a3a22c2
2011-08-01 17:22:34 -07:00
Adam Powell
b1eaf8f552 Merge "Fix bug 5090996 - Crash on tapping Menu on dial pad" 2011-08-01 17:20:06 -07:00
Amith Yamasani
42722bfa13 Volume panel changes.
Combined volume panel only in tablets. On phones show active volume.
Added dummy assets for ring+notification icon.

Deprecated the NOTIFICATION_USES_RING_VOLUME. Now they are always
tied together. Audio manager changes still required to ensure that.

Initialize all feedback sounds to true.

Change-Id: I3ad7890c9be9334eedb5f3b709a4b6995fe24638
2011-08-01 16:45:28 -07:00
Jeff Sharkey
d20482de2f Merge "Add operation counts to network statistics." 2011-08-01 16:33:50 -07:00
Adam Powell
f0f5fffc6f Fix bug 5090996 - Crash on tapping Menu on dial pad
Let the FragmentManager handle deferring menu invalidation when
not currently resumed.

Change-Id: I6e5de9c8ab5288c7c90a59ce8e0c7bb9133b6eb5
2011-08-01 15:55:16 -07:00
Justin Ho
8a36891727 Updated btn_default and btn_toggle assets
Bug: 5076695

Change-Id: Ie50af9d9a972ad84a0674d0f35fda6289adbb9f8
2011-08-01 15:19:32 -07:00
Justin Ho
489ba29843 Updated scrollbars and fast scroller assets.
Bug: 5076695

Change-Id: I4c013726e0cb1a5f692694cfc090e786a41a591d
2011-08-01 15:16:46 -07:00
Justin Ho
369a6bb941 Updated progress bar and scrubbers, adding xhdpi
Bug: 5076695

Change-Id: I6543ec9d24ac19cebd8a7a221ee8a3cac535ed69
2011-08-01 15:15:06 -07:00
Justin Ho
cbab966601 Updated spinners
Bug: 5076695

Change-Id: I69e94ca4c2333a24deb9015c90e24e067be3a84c
2011-08-01 15:13:24 -07:00
Chia-chi Yeh
44dabe3da3 Merge "Revert "Unhide APIs for user space VPN."" 2011-08-01 14:09:58 -07:00
Chia-chi Yeh
e1538f0558 Revert "Unhide APIs for user space VPN."
This reverts commit 3c2529c717cda3df321c1d0d6abe23ac1f298ac9.

Change-Id: I37d4ea6c1079d337ede7ac567d88414a41fc1e11
2011-08-01 14:06:58 -07:00
Romain Guy
a7edc40faa Merge "Plug memory leak in EditText." 2011-08-01 14:02:54 -07:00
Romain Guy
e5ea4403ce Plug memory leak in EditText.
Change-Id: I0b42c23ceeaa958d02255945c35ff6807c177114
2011-08-01 14:01:37 -07:00
Bjorn Bringert
dbe55b722c Merge "Fix exception when a focused item is detached." 2011-08-01 13:39:30 -07:00
Dianne Hackborn
c98c3597ab Merge "Hide permissions that are not available to apps." 2011-08-01 12:23:47 -07:00
Jeff Brown
07c6cc7b7b Merge "Tweak hover for better accessibility and compatibility. Bug: 5087943" 2011-08-01 12:14:24 -07:00
Dianne Hackborn
24a12104fd Hide permissions that are not available to apps.
Change-Id: I5f3bc72114b780fffe218a5600bfd011ede029d3
2011-08-01 11:25:53 -07:00
Matthew Xie
569980c349 Merge "Change setDevicePropertyNative to no block." 2011-08-01 10:20:30 -07:00
Luca Zanolin
7702a59344 Merge "Sort the suggestions based based on the length of the text they are attached too." 2011-08-01 09:51:29 -07:00
Mike Lockwood
6031b5de96 Merge "MediaScanner: Move genre table management to MediaProvider" 2011-08-01 09:31:57 -07:00
Mark Brophy
1ea6889136 Fix exception when a focused item is detached.
When a ListView has itemsCanFocus set, and scrolling moves the currently
focused item off the display, its focus is cleared. This is checked by
calling getDistanceToView().

However, it's possible that the view will have been recycled.  If so, it
will have been detached from the parent by calling
ViewGroup.detachViewFromParent.  Since this doesn't clear the view's
focus, we'll still try to call getDistanceFromView(), causing an
IllegalArgumentException since the view is not a descendant of the
ListView anymore.

Check whether the view is still a descendant before calling
getDistanceToView(). If it's not, we also need to clear the focus.

Bug: 4556022
Change-Id: Iebee56032223b70d714e2ec3bb7a19093ab5f81c
2011-08-01 16:32:03 +01:00
Hugo Hudson
978f712f37 Add OpenableColumns to the Voicemail table.
Bug: 5066115
Change-Id: I0f7c142fe1244c91a32cc534e258d78a2ce1fa45
2011-08-01 16:22:37 +01:00
Justin Ho
9a6c7383b3 Merge "Update list_ states Bug: 5076695" 2011-08-01 07:27:11 -07:00
Luca Zanolin
e3f89c08f2 Sort the suggestions based based on the length of the text they are attached too.
When the suggestions are displayed, the shortest one will be at the top of the list, as they are the most relevant one.

Bug: 5006130

Change-Id: Id3ac3accce5198a6a58a0c3028ee5f77957ceac6
2011-08-01 09:57:25 +01:00
Jeff Brown
be1aa8250c Refactor input reader to add stylus support.
Bug: 5064702

Introduced the concept of an InputListener to further decouple
the InputReader from the InputDispatcher.  The InputListener
exposes just the minimum interface that the InputReader needs
to communicate with the outside world.  The InputReader
passes arguments to the InputListener by reference, which makes
it easy to queue them up.

Consolidated all of the InputReader locks into one simple global
Mutex.  The reason this wasn't done before was due to potential
re-entrance in outbound calls to the InputDispatcher.  To fix this,
the InputReader now queues up all of the events it wants to send
using a QueuedInputListener, then flushes them outside of the
critical section after all of the event processing is finished.
Removing all of the InputMapper locks greatly simplifies the
implementation.

Added tests for new stylus features such as buttons, tool types,
and hovering.

Added some helpers to BitSet32 to handle common code patterns
like finding the first marked bit and clearing it.

Fixed a bug in VelocityTracker where the wrong pointer trace
could get cleared when handling ACTION_POINTER_DOWN.  Oops.

Changed PointerCoords so it no longer stores useless zero
axis values.  Removed editAxisValue because it is not very
useful when all zero value axes are absent and therefore
cannot be edited in place.

Added dispatch of stylus hover events.

Added support for distance and tool types.

Change-Id: I4cf14d134fcb1db7d10be5f2af7b37deef8f8468
2011-07-31 15:38:09 -07:00
Mike Lockwood
e5d0495d52 MediaScanner: Move genre table management to MediaProvider
Fixes problems introduced with bulk insert support

Bug: 5092877

Change-Id: If3c0c9054d5effe0a1d7a75e85635b41ba1591f5
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-07-31 17:06:01 -04:00
Jeff Sharkey
a63ba59260 Add operation counts to network statistics.
Provide API to increment "operation counts" for a UID and tag, used
to eventually derive bytes/operation stats.  Internally is stored at
network layer, but should belong at data layer.  Switch profiling
to use data layer stats, which are emulated by summarizing network
layer details.

Read packet counts from new /proc/ columns and collect them into
NetworkStatsHistory.  Prevent double-counting by ignoring values from
first snapshot.  Watch for duplicate /proc/ entries.  Update tests
to verify packet and operation counters.

Bug: 5052136, 5097392
Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
2011-07-29 22:24:01 -07:00
Svetoslav Ganov
4e03f5910c Removing firing of spurious scroll accesibility events.
1. Adding a TextView to a layout fires an accessibility scroll event
   with mScrollX = 8144. Now TextView does not fire scroll events
   since they are not interesting for accessibility and also the
   implementation fires scroll to frequently - though correctly.

2. AbsListView was firing accessibility events for the same location.
   Here the caveat is that this class does not know its height and
   calls onScrollChange every time is scroll as seen by the user
   may have changed but for accessibility purposes we care for the
   start and end indices of visible views. The fix is to avoid
   sending access events with duplicate data.

bug:5097467

Change-Id: I7bf11efd638ea3673843f1095a03f518e57cfe9d
2011-07-29 22:20:44 -07:00
Svetoslav Ganov
9ea764f159 No selection or click accessibility events are fired when a list item is tapped.
1. It appears that this was never working!?

bug:5098631

Change-Id: I37cd93e6e94137918a2cade13f24846563b23633
2011-07-29 22:14:41 -07:00