18095 Commits

Author SHA1 Message Date
Jeff Hamilton
420bc12ed0 Remove reference to unused static library.
Change-Id: I5ad76658129b003fb96fc1e960a12f6e672da108
2010-02-05 18:27:08 -06:00
Romain Guy
8186ae5a96 Merge "Do not let negative margins reduce the size of the LinearLayout." 2010-02-05 15:35:10 -08:00
Romain Guy
053b48051a Do not let negative margins reduce the size of the LinearLayout. 2010-02-05 15:34:33 -08:00
Gloria Wang
75ed81427d Merge "Replace Tremor with Tremolo (an ARM optimised version of the Tremor library for doing Ogg Vorbis decompression)" 2010-02-05 15:18:37 -08:00
Fred Quintana
c5d1c6db61 add sync polling
- added the ability to specify that a sync (of account/authority/extras)
  should occur at a given frequency
- the existing daily poll code was replaced with seeding each
  account/authority with a 24 hour periodic sync
- enhanced the "adb shell dumpsys content" output to show the
  periodic syncs and when they will next run
2010-02-05 15:16:20 -08:00
The Android Open Source Project
0a45a09814 am 0af04493: am 31bfdf69: reconcile main tree with open-source eclair
Merge commit '0af0449301e72a52beeed8f26021e5460004d67a'

* commit '0af0449301e72a52beeed8f26021e5460004d67a':
  android-2.1_r1 snapshot
  Use 128p map tiles for high dpi devices.
  Throttle nitz updates as the are too numerous on cdma.
  don't request a sync when temp providers are created
  Increase light sensor delay from one to two seconds.
  Revert jparks code from IPCThreadState.
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
2010-02-05 14:23:32 -08:00
Mathias Agopian
4023afd759 Merge "Add support for direct EGLImageKHR use with pushbuffer API" 2010-02-05 13:44:01 -08:00
Mathias Agopian
cb2d35d2bb Merge "Proper EGLImageKHR error handling" 2010-02-05 13:43:50 -08:00
Romain Guy
b74a84dea5 Merge "Fix dialogs to occupy more space." 2010-02-05 13:00:06 -08:00
Romain Guy
d60d3742ab Fix dialogs to occupy more space. 2010-02-05 12:58:47 -08:00
Ken Shirriff
2cd2374805 Merge "Make ACCOUNT_NAME/ACCOUNT_TYPE consistent." 2010-02-05 12:45:15 -08:00
Ken Shirriff
15049e46f7 Make ACCOUNT_NAME/ACCOUNT_TYPE consistent.
Some code was using "account_name" and some was using "_sync_account".
Also move definitions so they can be accessed by Event, Calendar,
and EventsEntity.

bug 2420732
2010-02-05 12:44:04 -08:00
Chris Tate
cb14ec1305 Merge "Don't hold the backup queue lock across a backup operation" 2010-02-05 12:38:51 -08:00
Mike Lockwood
1688d312e5 Merge "Keep automatic screen brightness monotonically increasing until screen is turned off." 2010-02-05 12:38:02 -08:00
Dan Egnor
97e4494728 Add an AlarmManager API to set the system time (with the proper permissions). 2010-02-05 12:31:41 -08:00
James Dong
9446c50468 Merge "When the extractor is not able to be created successfully, don't crash" 2010-02-05 12:05:42 -08:00
Mike Lockwood
b286541674 Keep automatic screen brightness monotonically increasing until screen is turned off.
This is an experimental change to avoid the light sensor screen fluctuation problem.
We only do this when undocked to since the lighting should be stable in the docked case
and since the dock keeps the screen on we need to be able to adjust the lighting.

Change-Id: I70afcc393f51f2679be8228d6cb993ddc07e5986
BUG: 2387223
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-05 14:33:14 -05:00
Christopher Tate
c61da3136b Don't hold the backup queue lock across a backup operation
This got lost in the shuffle when the backup process was retooled to run
synchronously within a single spun-off HandlerThread.  Formerly it was okay
to hold the lock around the point in time when the backup service thread was
being spun off, but once that became synchronous it wound up locking out
apps' calls to dataChanged(), which in turn led to ANRs.

Bug: 2421333
Change-Id: Icf378e5733af5f28a689c564494486cd3555eca7
2010-02-05 10:41:27 -08:00
Paul Westbrook
7722abe259 Bug 2420366
Rehide NumberPicker widget
2010-02-05 09:31:38 -08:00
The Android Open Source Project
0af0449301 am 31bfdf69: reconcile main tree with open-source eclair
Merge commit '31bfdf695ef741f64066ef605bd6a7e23df88714' into eclair-plus-aosp

* commit '31bfdf695ef741f64066ef605bd6a7e23df88714':
  android-2.1_r1 snapshot
  Use 128p map tiles for high dpi devices.
  Throttle nitz updates as the are too numerous on cdma.
  don't request a sync when temp providers are created
  Increase light sensor delay from one to two seconds.
  Revert jparks code from IPCThreadState.
  Add a warning when we leave threads in the binder thread pool in the background scheduling group.
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
  Fix regression.
  Fix broken build.
  Bluetooth A2DP suspend/resume functionality
  EventLog when a database file is deleted due to corruption.
  Don't forget to clear "backup in progress" state when finishing a pass
  Fix issue #2148939: Sholes slow to wake up in landscape mode
  Fix Cdma re-start of default connection.
  Merge change 26821 into eclair
  Not all WebView's host have permission to read the history.
  Merge change 26908 into eclair
2010-02-05 08:48:38 -08:00
Leon Scroggins
744d902453 Add a new permission and remove createTitleFromFilename.
Part of http://b/issue?id=2384554

Requires a change to packages/providers/DownloadProvider
2010-02-05 11:18:34 -05:00
The Android Open Source Project
31bfdf695e reconcile main tree with open-source eclair 2010-02-05 08:09:38 -08:00
Bjorn Bringert
1009e82ef2 Merge "Adding speech recognition service public API" 2010-02-05 06:25:45 -08:00
Valentin Kravtsov
3da3cad972 Adding speech recognition service public API
Change-Id: Ia2c13d4c7993d646956090aa5c56d1a441af9e5a
2010-02-05 14:21:07 +00:00
Doug Zongker
17fe395dab Merge "rename encodeString to encodeToString" 2010-02-05 05:44:17 -08:00
Dan Egnor
f6e003bc4a Merge "Add ability to parse HTTP-format moratorium times (since pretty much every user wants this)." 2010-02-04 19:48:52 -08:00
James Dong
e4cfcb82a8 When the extractor is not able to be created successfully, don't crash 2010-02-04 18:11:32 -08:00
Dianne Hackborn
f575403e31 Whoops I am an idiot. 2010-02-04 18:10:33 -08:00
James Dong
760dcecd9d Merge "Camcorder profile Java API support - Use Enum for Quality instead of int - Use static values() method from Enum, rather than if-else" 2010-02-04 17:50:05 -08:00
Dianne Hackborn
8fca8ab684 Whoops, update preloaded classes. 2010-02-04 17:39:50 -08:00
Gloria Wang
2f46c062b0 Replace Tremor with Tremolo (an ARM optimised version of the Tremor library for doing Ogg Vorbis decompression) 2010-02-04 17:32:56 -08:00
Mathias Agopian
fcdd394f3b Add support for direct EGLImageKHR use with pushbuffer API
We now always first try to use the EGLImageKHR directly before
making a copy with copybit. The copy may be needed when
EGLImage doesn't support the requested format, which is
currently the case with YUV.
2010-02-04 17:13:06 -08:00
Doug Zongker
e2127fb486 rename encodeString to encodeToString
Change-Id: I777530b80a9e8be8c487e140574621cd9d35dc35
2010-02-04 17:07:59 -08:00
Mathias Agopian
42d99d211f Proper EGLImageKHR error handling
Validate EGLImageKHR format and return an error for unsupported ones.
Also make sure to return an error when binding EGL_NO_IMAGE_KHR to a texture
2010-02-04 17:04:53 -08:00
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