17972 Commits

Author SHA1 Message Date
Dianne Hackborn
50929f089b Merge "Rename ApplicationContext to ContextImpl." 2010-02-04 16:53:47 -08:00
Doug Zongker
c04236c7de Merge "a new java implementation of base64 for android-common" 2010-02-04 16:51:10 -08:00
Dianne Hackborn
2155637d00 Rename ApplicationContext to ContextImpl.
I've been wanting to do this for a long long time.
2010-02-04 16:34:40 -08:00
Chris Tate
5c1779b8ac Merge "Add single-package restore from an app's most-recent data" 2010-02-04 16:27:42 -08:00
Christopher Tate
8472581aa3 Add single-package restore from an app's most-recent data
Renamed the RestoreSession performRestore() method to restoreAll(), and
added a new restorePackage() method that only restores the single
specified app.  In order to restore an app other than itself, the
caller must hold the android.permission.BACKUP permission.

This change also introduces dataset tracking:  the Backup Manager
persistently remembers both the current backup dataset's identity
and that of the "ancestral" dataset, i.e. the one most recently used
for a whole-device restore such as performed by SetupWizard.  When a
single package is restored via restorePackage(), the selection of
most-recent dataset to use is this:

1. The data from the currently-active backup dataset, if such exists.
   An app that has ever backed up data will therefore get its last-
   known-good data.

2. The app's data from the ancestral dataset, if such exists.  This
   covers the case of a factory reset followed by reinstallation of
   an app at a later time.  The app had not yet backed anything up
   post-wipe, but the old data is in the ancestral dataset and should
   be brought forward when the app reappears.

3. If neither 1. nor 2. exist, there is no data to restore, so just
   skip it and return failure.

Note that the infrastructure to automatically attempt a restore after
an application has been installed does not yet exist; that's coming.

Change-Id: I0ba170df9885128000c46ed28d3dddda3a63a143
2010-02-04 16:01:09 -08:00
Daniel Sandler
64226a49b7 Merge "Add support in StatusBarManager for disabling ticker text." 2010-02-04 15:58:18 -08:00
Daniel Sandler
91e1d0cdda Add support in StatusBarManager for disabling ticker text.
The new flag, DISABLE_NOTIFICATION_TICKER, will be used by
the car dock app (in conjunction with DISABLE_EXPAND) to
minimize distractions to the driver.

It may also be used by the secure lockscreen to avoid
leaking personal information when the screen is on but the
device is locked (e.g. when the desk dock app is running).

Change-Id: Ibc8efde7da7501767163ae0a75f7c369b824e2a2
2010-02-04 15:55:00 -08:00
Doug Zongker
6123eafa2c a new java implementation of base64 for android-common
A new Base64 encoder/decoder class.  Some benchmarks comparing the
decoder it to those from android.os.Base64Utils (a decode-only native
implementation not accessible to apps) and
org.apache.commons.codec.binary.Base64, all with the JIT enabled:

  1k encoded data
  APACHE   avg:   811 us    min:   244 us    max: 13671 us
  COMMON   avg:   263 us    min:    30 us    max:  4730 us
  NATIVE   avg:   102 us    min:    61 us    max:  5493 us

  10k encoded data
  APACHE   avg:  3624 us    min:  2746 us    max: 23895 us
  COMMON   avg:   979 us    min:   518 us    max:  7751 us
  NATIVE   avg:   817 us    min:   762 us    max:  3143 us

  100k encoded data
  APACHE   avg: 33167 us    min: 31829 us    max: 140411 us
  COMMON   avg:  6047 us    min:  5493 us    max: 45227 us
  NATIVE   avg: 10109 us    min: 10009 us    max: 12451 us

Change-Id: Ic622e3a967a62d57d30bd25b80cbe4e0dd60e764
2010-02-04 15:54:00 -08:00
Dima Zavin
214ea34bca Merge "Move the NDK graphics wrapper (libjnigraphics) to frameworks/base/native" 2010-02-04 15:40:39 -08:00
Dima Zavin
3227631fe9 Move the NDK graphics wrapper (libjnigraphics) to frameworks/base/native
Change-Id: I2a5adde9f8e4683c4b4526a29ad276c3e581e029
Signed-off-by: Dima Zavin <dima@android.com>
2010-02-04 15:31:19 -08:00
Mathias Agopian
ac72cb96e4 Merge "fix [2313526] sensor enable race condition" 2010-02-04 15:26:27 -08:00
Mathias Agopian
b3dc5eb4e4 fix [2313526] sensor enable race condition
Make sure we wait until the SensorThread is running an has open the sensors fd.
Also handle errors when/if this fails.
2010-02-04 15:25:05 -08:00
Michael Chan
cf6b299ec8 Merge "Unhiding Rfc822Tokenizer.tokenize(CharSequence text, Collection<Rfc822Token> out)" 2010-02-04 14:59:31 -08:00
Suchi Amalapurapu
c4aac70a81 Merge "Some tests for install and replace package." 2010-02-04 14:59:00 -08:00
Michael Chan
a969dc4ea4 Unhiding Rfc822Tokenizer.tokenize(CharSequence text, Collection<Rfc822Token> out)
Note that Rfc822Tokenizer.tokenize(CharSequence text) is already in the SDK
and it just wraps the version I am unhiding.

Change-Id: I1ac3b405a04df960fc1e65ca4797d6f5adf85dc4
2010-02-04 14:51:28 -08:00
Ken Shirriff
5c19aeca3d API review: TrafficStats: rename Pkts to Packets
Rename getMobileTxPackets(), getMobileRxPackets(), getTotalTxPackets(),
getMobileRxPackets()

bug 2420318
2010-02-04 14:37:21 -08:00
Romain Guy
46c53129c6 Rename GestureUtilities to GestureUtils. 2010-02-04 14:27:00 -08:00
Kenny Root
8f3ff09556 Merge "resolved conflicts for merge of dd24f599 to master" 2010-02-04 14:26:40 -08:00
Kenny Root
2cce6267a0 resolved conflicts for merge of dd24f599 to master
Change-Id: I57c349c493d69585d4c85e8c0970649708c6bd33
2010-02-04 14:23:39 -08:00
Dianne Hackborn
7b4030dbe7 Merge "Framework part of issue #2391576: Add method to start the Jit and call it" 2010-02-04 12:48:12 -08:00
Bjorn Bringert
fb06c59a55 Merge "Remove source selector from SearchDialog" 2010-02-04 12:28:48 -08:00
Dianne Hackborn
2a9094d079 Framework part of issue #2391576: Add method to start the Jit and call it 2010-02-04 11:54:34 -08:00
Daniel Sandler
1ec608d13a Sharper mdpi transfers of usb_android{,_connected}.png.
Change-Id: Ic5b6a0b23b5fc4c71e2628156905e69faf56b999
2010-02-04 11:51:41 -08:00
Bjorn Bringert
da5c1bd444 Remove source selector from SearchDialog
Fixes http://b/issue?id=2419208

This reverts commit 32d580c360da0a0f15e7a080f4ebd0b7b514fe4c.

Change-Id: I5d8821d52badf3e0347230b86671f8ceb65a663d
2010-02-04 19:34:19 +00:00
Andreas Huber
76bc4a6bb3 Merge "Stop using the PV software decoders and use ours (based on PV code) instead even in non-FULL_STAGEFRIGHT builds." 2010-02-04 10:59:08 -08:00
Andreas Huber
acfbc801a8 Stop using the PV software decoders and use ours (based on PV code) instead even in non-FULL_STAGEFRIGHT builds. 2010-02-04 10:48:37 -08:00
Daniel Sandler
09922d855b Merge "Stop scaring the kids when USB is connected." 2010-02-04 10:44:50 -08:00
Daniel Sandler
fb37dc8a53 Stop scaring the kids when USB is connected.
Bug: 2416542
Change-Id: I8ab7149201e35b8b41a890d5fd64cf0fc05d600c
2010-02-04 09:59:16 -08:00
Ben Murdoch
caa2a69278 Merge "When a window is closed, destroy the WebView properly so that WebCore is informed of it's destruction." 2010-02-04 09:54:26 -08:00
Grace Kloba
5c33c6252c Merge "Enable StreamLoader to be loaded in a separate thread." 2010-02-04 09:47:57 -08:00
Eric Laurent
dd24f59906 am aead64de: Fix issue: 2413494: [Passion-c] Add TTY support.
Merge commit 'aead64def1fe58c95c086a0ca00cf0b13fa32ef1' into eclair-plus-aosp

* commit 'aead64def1fe58c95c086a0ca00cf0b13fa32ef1':
  Fix issue: 2413494: [Passion-c] Add TTY support.
2010-02-04 09:34:34 -08:00
Robert Greenwalt
d0e18ffb82 First pass at USB Tethering.
bug:2281900
2010-02-04 09:15:06 -08:00
Grace Kloba
ac75f56600 Enable StreamLoader to be loaded in a separate thread.
Move ContentLoader and FileLoader to this new way
as they involves IO. Will work on CacheLoader later.

Change StreamLoader to contain a Handler instead of
derive from a Handler so that the Handler can be
created in the thread where load() is called.

Rename StreamLoader's old "LoadListener mHandler"
to mLoadListener.

Remove unused import and unreachable exception.

Fix http://b/issue?id=2158613

This improved page_cycler performance in moz/intl by
10-30% as we are not blocked by IO any more.
2010-02-04 08:59:10 -08:00
Ben Murdoch
fc4a69e9c1 When a window is closed, destroy the WebView properly so that WebCore is informed of it's destruction.
Change-Id: I00002f53ec52c6056df4d7ddeec7cf0957423bd6
2010-02-04 16:54:06 +00:00
Ben Murdoch
3141e0a62a Add new ConsoleMessage class that adds more information (such as the Message Log Level from WebCore) and a new overload of onConsoleMessage that takes this as a parameter.
This change requires a corresponding change in external/webkit.

BUG=2401755

Change-Id: Iea2c58e93172240f162d8ad57eb2c8f2352f8162
2010-02-04 10:44:18 +00:00
Wu-cheng Li
5d9661be8e Add getAttributeDouble() and focal length tag.
bug:2375989
2010-02-04 16:11:38 +08:00
Eric Laurent
aead64def1 Fix issue: 2413494: [Passion-c] Add TTY support.
Handle TTY mode change events received by HeadsetObserver and send information down to AudioHardware with AudioManager.setParameters()

Use setting "tty_mode_uses_heaset_events" in core config.xml to indicate if the product uses this particular
method of indicating the TTY mode change.
2010-02-03 23:35:34 -08:00
Katie McCormick
fcebc0cd2d am b5c01b96: am 8a6c0607: Merge "SDK doc change: Fixed typo--fingure->finger Bug: 1993220" into eclair
Merge commit 'b5c01b96a8e1780d8ac0638041b08e06b8c88a83'

* commit 'b5c01b96a8e1780d8ac0638041b08e06b8c88a83':
  SDK doc change: Fixed typo--fingure->finger
2010-02-03 20:27:42 -08:00
Joe Onorato
f1dd37ac28 Merge "Fix 1667521 - system process crash after bad notification" 2010-02-03 20:25:43 -08:00
Joe Onorato
68065e0a19 Fix 1667521 - system process crash after bad notification
The steps to reproduce this were kind of interesting.  You needed to have
a notification with a bogus RemoteViews in the first position in the list,
and then have another notification come in with an earlier timestampe.  In
that case, it would get a bad index for the new (not bogus) view that was
being added.
2010-02-03 20:21:41 -08:00
Katie McCormick
b5c01b96a8 am 8a6c0607: Merge "SDK doc change: Fixed typo--fingure->finger Bug: 1993220" into eclair
Merge commit '8a6c060719c8870f370b82faa48ae2f437915214' into eclair-plus-aosp

* commit '8a6c060719c8870f370b82faa48ae2f437915214':
  SDK doc change: Fixed typo--fingure->finger
2010-02-03 20:21:26 -08:00
Dianne Hackborn
fa6bc84e01 Merge "Implement system data migration support." 2010-02-03 18:18:56 -08:00
Suchi Amalapurapu
afbaaa189f Some tests for install and replace package. 2010-02-03 17:34:18 -08:00
Adam Powell
b039fd4c4a Merge "Fixed an overscrolling bug in AbsListView with a root in OverScroller." 2010-02-03 17:05:53 -08:00
Katie McCormick
8a6c060719 Merge "SDK doc change: Fixed typo--fingure->finger Bug: 1993220" into eclair 2010-02-03 16:52:18 -08:00
Andreas Huber
5258919fab Merge "Defer creating the video renderer until we see the first video frame." 2010-02-03 16:45:57 -08:00
Adam Powell
eb6b1fa7b8 Fixed an overscrolling bug in AbsListView with a root in OverScroller. 2010-02-03 16:41:07 -08:00
Scott Main
d9ebf24829 Merge "Merge commit '2f7b69aa' into manualmerge" 2010-02-03 16:39:26 -08:00
Eric Fischer
75e15985bc Merge "Fix Czech lock screen date format." 2010-02-03 16:38:49 -08:00
Katie McCormick
db72f1ba85 SDK doc change: Fixed typo--fingure->finger
Bug: 1993220
2010-02-03 16:37:15 -08:00