15983 Commits

Author SHA1 Message Date
Christopher Tate
855e4c9884 Hide DragEvent pool implementation and add docs
Change-Id: Idaead8ab604c69d6dbc1bd5de3afa86e1fae8396
2010-11-19 15:32:09 -08:00
Brian Muramatsu
3f6b3b6430 Fix ClipboardManager#hasText
Bug 3202642

I didn't see any usage of ClipboardService#hasClipboardText.
It seemed like this method was designed to be called by the
deprecated hasText method to retain compatibility rather
than calling hasPrimaryClip.

Change-Id: I84d73d618a6ee2feb2e8e603c611b393850230e7
2010-11-19 15:31:04 -08:00
Dianne Hackborn
f9f3dc2ade Merge "Implement issue #2367442: Please add API for manipulating installer package names" 2010-11-19 14:38:16 -08:00
Gilles Debunne
77b25a34a2 Keyboard is not displayed when selecting read-only text.
Change-Id: Id8d1fb7ebd85a36a1e587b4e2bbbabf82aa1bdd7
2010-11-19 13:31:45 -08:00
Dianne Hackborn
880119bf43 Implement issue #2367442: Please add API for manipulating installer
package names

Change-Id: I0563e896a47ae1a6e77aebc2d624fb1bde52ffbc
2010-11-19 13:21:08 -08:00
Brad Fitzpatrick
5e9d94505b Fix AbsListView StrictMode.Span end point on flings.
Noticed after logs showed a ton of false positives, I went back and
looked at the history.  During the review of the previous CL, I
accidentally moved the finish() of the fling animation tracking inside
the PROFILE_FLINGING block, which is normally off.

Re-tested this CL with StrictMode debugging enabled and it now always
propertly resets to 0 animations in flight when no animations are
running.

Change-Id: Ie9746df36e2ec3f82679b20e91e3d93c05b863d4
2010-11-19 12:03:22 -08:00
Brad Fitzpatrick
de8da848cd Merge "StrictMode: use Log.isLoggable" 2010-11-19 11:07:47 -08:00
Gilles Debunne
a944828d3b Merge "Clean-up in StaticLayout" 2010-11-19 11:07:15 -08:00
Gilles Debunne
6611147383 Clean-up in StaticLayout
Change-Id: I81ac5d8bef7ce8f4f65e3a8c7da8393ce0a87558
2010-11-19 11:04:37 -08:00
Robert Greenwalt
44138f15ce Merge "Notify all VMs when proxy changes." 2010-11-19 10:34:17 -08:00
Brad Fitzpatrick
33710fc4a9 am 096c4c44: am 251384a7: Merge "Improve performance when getting styled string."
* commit '096c4c448d8110c21108f2db4a19a85099e78557':
  Improve performance when getting styled string.
2010-11-19 10:27:56 -08:00
Brad Fitzpatrick
096c4c448d am 251384a7: Merge "Improve performance when getting styled string."
* commit '251384a7595022ddbc53f4ab0fa386f9c040f1f5':
  Improve performance when getting styled string.
2010-11-19 10:25:09 -08:00
Robert Greenwalt
434203a277 Notify all VMs when proxy changes.
bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
2010-11-19 10:24:30 -08:00
Kenny Root
9c950b41c5 Merge "Use different version of CLDR data in DatePicker" 2010-11-19 09:11:42 -08:00
Mike Lockwood
cc34eed58d Merge "PTP: Improve performance and reliability of file importing" 2010-11-19 08:33:21 -08:00
Mike Lockwood
954c267725 PTP: Improve performance and reliability of file importing
Now the file copy is done completely within the media process
rather than pushing data to the client via ContProvider.openFile().

File system writes are now interleaved with USB reads, which allows us
to copy the data faster and prevents the camera from timing out during transfer.

File is automatically inserted in the media provider after a successful import
and a Uri is returned to the client.

BUG: 2994234

Change-Id: Ie75c63da76f623343d3d966c6a707aa1ae871972
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-11-19 11:30:10 -05:00
Brad Fitzpatrick
251384a759 Merge "Improve performance when getting styled string." 2010-11-19 07:41:39 -08:00
Kristian Monsen
9803d7f870 Merge "Find mime from file extension if the mime is empty" 2010-11-19 06:58:01 -08:00
Kristian Monsen
9d005a1039 Find mime from file extension if the mime is empty
Fix for bug 3170039

Change-Id: I6d32ae157ec276575aad8fbcd73f02c48fe219d0
2010-11-19 14:53:44 +00:00
Wu-cheng Li
99a3f3e4e0 Improve camera documentation.
bug:3212606
Change-Id: Iee7106e4665c08a4c75471114010b75d63ac74ce
2010-11-19 16:20:04 +08:00
Jesse Wilson
a8bbc11afc Merge "Decode JSON literal types eagerly and with our own decoder." 2010-11-18 23:09:44 -08:00
Jesse Wilson
9d9b4e70a1 Decode JSON literal types eagerly and with our own decoder.
Previously we relied on Double.parseDouble() to decode tokens. Since
that method is expensive, we deferred calling it unless absolutely
necessary.

Now we decode the literal type immediately. For efficiency we decode
the token right out of the char buffer. This makes things more
complicated but it saves many calls to charAt().

With this change overall performance is 7% faster for JSON documents
cited in the bug.

    benchmark                     run  ms linear runtime                    %
GsonParseFull no switch, no int parse 309 ============================    93%
GsonParseFull                baseline 330 ============================== 100%

http://b/3201883
Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
2010-11-18 23:06:50 -08:00
Dianne Hackborn
8e11ef0d94 Some work on issue #3201795: Improve transition when keyboard comes up
Now try to slide dialogs if they end up moving due to the IME (or
other system things) showing/hiding.  Pretty hackish, but seems to
work.

Change-Id: Icd297e941cf847fa920c9605145c46be63043d52
2010-11-18 19:57:49 -08:00
Brad Fitzpatrick
82829ef3b7 StrictMode: use Log.isLoggable
Change-Id: Ic28450066a43a168cfe3026d6d4b06b752f8423c
2010-11-18 18:25:29 -08:00
Adam Powell
0788bc9db2 Merge "Make holo widget styles public" 2010-11-18 17:23:54 -08:00
Eric Fischer
6a8519acea Merge "Add date format strings for the new locales." 2010-11-18 17:20:43 -08:00
Eric Fischer
ec5e0cd80a Merge "Import initial translations for 20 new locales." 2010-11-18 17:12:43 -08:00
Adam Powell
113744cef2 Make holo widget styles public
Change-Id: Ibd427601d9eb31b4c832485c8d19191ed08fe245
2010-11-18 16:47:56 -08:00
Eric Fischer
24fcd54c91 Add date format strings for the new locales.
Change-Id: I8fed7d72ebed542084cc9ac39ad20bc1dab71cb3
2010-11-18 15:55:04 -08:00
Adam Cohen
9c295482dd Fixing issue #3200503
-StackView was using the wrong view to draw the click feedback

Change-Id: Ibb0a24af2d740fd1e3f6a6345518d730b66673f4
2010-11-18 15:29:03 -08:00
Olivier Bailly
d7c8672ccc fix int vs. pointer mismatch in return statement.
Add missing include header for compilation on x86 target.

Change-Id: I3651fb3be0178b888c5ada3d3754fb379b55a847
2010-11-18 14:43:36 -08:00
Jeff Brown
dd4e4603ef Merge "Added support for full PC-style keyboards." 2010-11-18 14:20:30 -08:00
Adam Powell
b33be1c672 Fix bug 3208911 - apps not getting default ActionBar style values
Change-Id: Ie2855d6ebbaf49d187dc8bd63fda7f1b397325b5
2010-11-18 12:31:56 -08:00
Ed Heyl
1c60300129 Revert "Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up"""
This reverts commit 8b8914b50d36734305d582485fa839b7d04b8872.

Change-Id: Ib3ee99257ed10af5f729f3d29af37b5b48a8e139
2010-11-18 12:18:23 -08:00
Daisuke Miyakawa
d6dbd7665b Merge "Make AsyncQueryHandler emit more helpful log." 2010-11-18 11:27:49 -08:00
Gilles Debunne
ab2aeeeb13 Merge "Added new timepicker assets" 2010-11-18 11:00:50 -08:00
Shimeng (Simon) Wang
7fc7d2b9da Merge "Add supported video/m4v mimeType to the support list." 2010-11-18 10:55:08 -08:00
Daisuke Miyakawa
62fd4e3fcb Make AsyncQueryHandler emit more helpful log.
The log is introduced in a5f743f1fc7c5037ee7ad4ab611115b6d44af5b8
We need more info for understanding what is happening.

Bug: 3204897
Change-Id: Ie2fbc838cb76757837c8dedb05055fbcc287d2b4
2010-11-18 10:54:00 -08:00
Shimeng (Simon) Wang
b394d9a5f8 Add supported video/m4v mimeType to the support list.
This is to support video/m4v mimeType in the Browser.
Even though it's not listed in MediaFile.java, it's
supported and plays well.

issue:3207898
Change-Id: I35c7905527ce2c46f8861662b3a2ee94a690b38e
2010-11-18 10:53:07 -08:00
android-build SharedAccount
8b8914b50d Temp fix; Revert "Fix bug 3167081 - Action Bar redesign to support "up""
This reverts commit 432e5f9f167e622d03fee0e10215b6e2234c1a3c.

Conflicts:

	core/res/res/values/public.xml

Change-Id: I7212626479da7aef80b9bcb4c2144435364dafae
2010-11-18 10:52:41 -08:00
Jeff Brown
6b53e8daa6 Added support for full PC-style keyboards.
BREAKING CHANGE: Redesigned the key character map format to
accomodate full keyboards with more comprehensive suite of modifiers.
Old key character maps will not work anymore and must be updated.
The new format is plain text only and it not compiled to a binary
file (so the "kcm" tool will be removed in a subsequent check-in).

Added FULL keyboard type to support full PC-style keyboards.

Added SPECIAL_FUNCTION keyboard type to support special function
keypads that do not have any printable keys suitable for typing
and only have keys like HOME and POWER

Added a special VIRTUAL_KEYBOARD device id convention that maps
to a virtual keyboard with a fixed known layout.  This is designed
to work around issues injecting input events on devices whose
built-in keyboard does not have a useful key character map (ie.
when the built-in keyboard is a special function keyboard only.)

Modified several places where events were being synthesized
to use the virtual keyboard.

Removed support for the "qwerty" default layout.
The new default layout is "Generic".  For the most part "qwerty"
was being used as a backstop in case the built-in keyboard did
not have a key character map (probably because it was a special
function keypad) and the framework needed to be able to inject
key events anyways.  The latter issue is resolved by using the
special VIRTUAL_KEYBOARD device instead of BUILT_IN_KEYBOARD.

Added the concept of a key modifier behavior so that
MetaKeyKeyListener can distinguish between keyboards that use
chorded vs. toggled modifiers.

Wrote more robust key layout and key character map parsers
to enable support for new keyboard features and user installable
key maps.

Fixed a bug in InputReader generating key ups when keys
are released out of sequence.

Updated tons of documentation.

Currently QwertyKeyListener is being used for full keyboards
with autotext and capitalization disabled.  This mostly works
but causes some problems with character pickers, etc.
These issues will be resolved in subsequent changes.

Change-Id: Ica48f6097a551141c215bc0d2c6f7b3fb634d354
2010-11-18 09:49:03 -08:00
Kenny Root
7200ab4a8f Merge "Don't waste memory creating new Boolean objects" 2010-11-18 09:05:25 -08:00
Joe Onorato
4daaeafd27 Status bar formatting tweaks
Change-Id: Icb6c8d87e109d9e133e86b0fdb7bea12fe376d92
2010-11-17 23:14:57 -08:00
Peter Eliasson
ac4a181d2e Improve performance when getting styled string.
The style used in the composing text for input methods
takes a long time to create. This is experienced as a
lag when composing the first word.

The bottleneck lies in the 10 calls to
nativeIndexOfString which does a linear search through
thousands of strings.

Change-Id: I3184b2be3673d384cca19e9a70ad94b4d3085576
2010-11-18 07:28:06 +01:00
Joe Onorato
e70b375c4b Add an opacity attribute to LayerDrawable that lets you control the opacity directly instead of
collecting the values from the children-- a task that is much harder to get right than we want to
spend startup time on.

Change-Id: Idf5b1d612472c6accfdc935c6a6fadb1eb239a73
2010-11-17 21:20:08 -08:00
Adam Powell
432e5f9f16 Fix bug 3167081 - Action Bar redesign to support "up"
Integrate new assets for action bar "up" and menu. Restructure action
bar layout to support the new design. First pass at metrics.

Change-Id: Iefc502bf398905208129ef41072bdf4a0225bfe0
2010-11-17 20:30:33 -08:00
Brad Fitzpatrick
85a395dce0 Merge "StrictMode: shut up VM penalty logging on debug builds." 2010-11-17 19:27:29 -08:00
Dmitri Plotnikov
6be6dc9f76 Merge "Adding a new provider status" 2010-11-17 18:37:19 -08:00
Brad Fitzpatrick
d188ededa6 StrictMode: shut up VM penalty logging on debug builds.
Thread penalties were just dropboxing, but VM penalties were both
dropboxing *and* logging, and most annoyingly.

Change-Id: Ifc64b642dd0e2b17f0234ce3724650489883f62b
2010-11-17 18:02:56 -08:00
Jean-Baptiste Queru
5376c65824 am 74923d3a: am d34c1495: Merge "Prevent system crash when OOM in Binder thread."
* commit '74923d3ae4bf7043a62a02c4df988ef3255737ce':
  Prevent system crash when OOM in Binder thread.
2010-11-17 17:58:25 -08:00