15759 Commits

Author SHA1 Message Date
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
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
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
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
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
Jean-Baptiste Queru
74923d3ae4 am d34c1495: Merge "Prevent system crash when OOM in Binder thread."
* commit 'd34c1495020e5d72dd18959fb906375dc0874c04':
  Prevent system crash when OOM in Binder thread.
2010-11-17 17:56:05 -08:00
Jean-Baptiste Queru
d34c149502 Merge "Prevent system crash when OOM in Binder thread." 2010-11-17 17:49:19 -08:00
Jean-Baptiste Queru
2f0a3307fd Fix build (broken documentation link)
Change-Id: Ic36f81bbd9f112bd79f9177a407593e8c8f7f0ed
2010-11-17 17:39:16 -08:00
Jean-Baptiste Queru
0d9b02c47b Merge "resolved conflicts for merge of 1a2344b8 to master" 2010-11-17 17:35:09 -08:00
Jean-Baptiste Queru
8565a8ebbc resolved conflicts for merge of 1a2344b8 to master
Change-Id: I974f7f388ddc74d661f07fda1e308e7c15e00dfc
2010-11-17 17:31:25 -08:00
Gilles Debunne
04cdb78c6a New spline physics for list fling motion.
Change-Id: I72216acb29f1cd475682141701e1f2e56f52d527
2010-11-17 17:22:01 -08:00
Gilles Debunne
2a51e78044 Added new timepicker assets
Change-Id: I5f5ff07b331fd1644bba1352db75143bdd84d08c
2010-11-17 17:18:43 -08:00
Jean-Baptiste Queru
1a2344b8b2 am 09e50cdb: Merge "Reorder lock acquision vs try."
* commit '09e50cdbc62938b178f4c9a66b3cec8a466daaa8':
  Reorder lock acquision vs try.
2010-11-17 17:16:06 -08:00
Jean-Baptiste Queru
09e50cdbc6 Merge "Reorder lock acquision vs try." 2010-11-17 17:03:10 -08:00
Jean-Baptiste Queru
0b92c44f8a am 7ee42771: Merge "resolved conflicts for merge of 8fc378f9 to gingerbread-plus-aosp" into gingerbread-plus-aosp
* commit '7ee427714d4621bd9a0b15364a073aff60ebf20c':
  Added buildQuery and buildUnionSubQuery methods without misleading selectionArgs parameter.
2010-11-17 16:54:39 -08:00
Jean-Baptiste Queru
f4072fcc14 resolved conflicts for merge of 8fc378f9 to gingerbread-plus-aosp
Change-Id: I938c0a66ad4271b33626d6b12406a2f6c6d1b6d8
2010-11-17 16:47:59 -08:00
Eric Fischer
113141e091 Import initial translations for 20 new locales.
Change-Id: I37d479c9d6293eb57d68ad686d00838445a18890
2010-11-17 16:24:41 -08:00
Adam Powell
96aad38290 Merge "Fix bug 3207067 - adjust AbsListView content pop-in when clipToPadding=false" 2010-11-17 16:05:53 -08:00
Adam Powell
8c3e0fc84f Fix bug 3207067 - adjust AbsListView content pop-in when clipToPadding=false
Known issue: Dividers are not drawn on top. This should be handled
once overscroll is merged in.

Change-Id: I778703601183f919e7c4345cfc4af6036b4ada4e
2010-11-17 16:01:37 -08:00
Dmitri Plotnikov
37c34861d0 Adding a new provider status
Change-Id: I673f522e41c2b70ba77e1b1d0cd58831657b1c06
2010-11-17 15:49:12 -08:00
Amith Yamasani
b65897ba50 Adjust preference activity margins and move the widget back to the right side.
Add a new "icon" field to Preference for adding icons to the left of the preference title.
Several screens such as BluetoothSettings and Accounts have added their own custom preferences
just to add an icon to the left. This makes it simpler going forward.
2010-11-17 15:34:45 -08:00
Jean-Baptiste Queru
8fc378f9f5 Merge "Added buildQuery and buildUnionSubQuery methods without misleading selectionArgs parameter." 2010-11-17 15:10:05 -08:00
Adam Powell
c6aa9edc36 Merge "Add resource ID variants of ActionBar tab setters" 2010-11-17 14:12:19 -08:00
Adam Powell
32555f3479 Add resource ID variants of ActionBar tab setters
Bugs 3204153 and 2901235

Change-Id: Ib430f96da77f8e7647b22d190243a2fcd766d842
2010-11-17 14:07:26 -08:00
Teng-Hui Zhu
a53fbaecf1 Merge "Update Useragent String" 2010-11-17 13:46:25 -08:00
Jim Miller
6b2cc4a126 Merge "Fix 3191824: Fix lockscreen portrait mode for xlarge devices" 2010-11-17 13:28:22 -08:00
Gilles Debunne
d348bb4fef Changes to scrolling physics
Spline curve for Scroller fling motion (debunne)

Flywheel motion for AbsListView

Change-Id: Ic1f226878745ff4c302dc6bd0752868fa182dd7b
2010-11-17 12:16:09 -08:00