OSDN Git Service

android-x86/frameworks-base.git
13 years agoIncrease the number of useful bits in the spectrum.
Marco Nelissen [Wed, 19 Jan 2011 00:44:28 +0000 (16:44 -0800)]
Increase the number of useful bits in the spectrum.

Change-Id: I3efc2ac8db689285566df35cb6f594aab41141db

13 years agoMerge "Add operands to mifare classic increment, decrement." into gingerbread
Nick Pelly [Mon, 24 Jan 2011 06:12:25 +0000 (22:12 -0800)]
Merge "Add operands to mifare classic increment, decrement." into gingerbread

13 years agoAdd operands to mifare classic increment, decrement.
Nick Pelly [Mon, 24 Jan 2011 06:11:35 +0000 (22:11 -0800)]
Add operands to mifare classic increment, decrement.

Change-Id: Ib35f615142bda48a5e33888a09ebae2880624788

13 years agoMerge "Make MifareClassic methods more consistent." into gingerbread
Nick Pelly [Mon, 24 Jan 2011 05:36:14 +0000 (21:36 -0800)]
Merge "Make MifareClassic methods more consistent." into gingerbread

13 years agoMake MifareClassic methods more consistent.
Nick Pelly [Sat, 22 Jan 2011 06:11:29 +0000 (22:11 -0800)]
Make MifareClassic methods more consistent.

Remove method overloading for combinations of sector+block addressing.
Instead provide methods that more closly match the raw commands, and more
efficient helpers to convert between blocks and sectors.

o fix off-by-one bug in getBlockCountInSector()
o add BLOCK_SIZE
o remove DESFIRE not operating in classic emulation (SAK 0x20)
o hide isEmulated(), there is no use case, and the info is available elsewhere
o getTotalBlockCount() -> getBlockCount()
o getBlockCount(int) -> getBlockCountInSector(int)
o introduce blockToSector() and sectorToBlock()
o remove authenticateBlock()
    make it really clear that authentication is per sector, and reduce function
    explosion. blockToSector() allows you to use authenticateSector...
o explicit authenticateSectorWithKeyA() / authenticateSectorWithKeyB()
    get rid of magic boolean
o remove all (int sector, int block) parameters
    always address by absolute block. this makes the API crystal clear, and
    helps reduce function explosion
o validation of all sector and block indices
o dont & 0xff when converting to byte - its redundant
o Remove TYPE_OTHER. Mifare Classic types are well-known and stable.

Change-Id: I3c9f8254ff307f31b388b3d7592c862d5de6afa5

13 years agoMerge "Allow null filters for foreground dispatch to act as catch all." into gingerbread
Jeff Hamilton [Mon, 24 Jan 2011 03:17:22 +0000 (19:17 -0800)]
Merge "Allow null filters for foreground dispatch to act as catch all." into gingerbread

13 years agoFix 3379239: Catch exceptions from workaround for OOM.
Jim Miller [Sun, 23 Jan 2011 21:40:31 +0000 (13:40 -0800)]
Fix 3379239: Catch exceptions from workaround for OOM.

This catches possible exceptions caused by attempting to
unregister a receiver that may have already been unregistered.
This is related to the OOM issue workaround in Change I99a7e0c3.

Change-Id: Ib69a8acc6b12659125c958a03efac0a8a68a3859

13 years agoAllow null filters for foreground dispatch to act as catch all.
Jeff Hamilton [Sun, 23 Jan 2011 18:14:42 +0000 (12:14 -0600)]
Allow null filters for foreground dispatch to act as catch all.

Change-Id: Idf3d2e344a6e87035ccb5b533ed9e81fec596132

13 years agoMerge "Do Not Merge Connect other profiles when priority is auto connect." into ginge...
Jaikumar Ganesh [Sat, 22 Jan 2011 05:25:01 +0000 (21:25 -0800)]
Merge "Do Not Merge Connect other profiles when priority is auto connect." into gingerbread

13 years agoDo Not Merge Connect other profiles when priority is auto connect.
Jaikumar Ganesh [Sat, 22 Jan 2011 02:58:17 +0000 (18:58 -0800)]
Do Not Merge Connect other profiles when priority is auto connect.

ACL auto connection was removed so other profiles
won't auto connect when priority was auto connect.

Reduced connect other profiles time delay.

Bug: 3281016
Change-Id: Ic56ca6e95f618f02bc316d1f80014e58c4b6c3bc

13 years agoMerge "DO NOT MERGE - Create db path if it doesn't exit" into gingerbread
John Reck [Fri, 21 Jan 2011 22:03:30 +0000 (14:03 -0800)]
Merge "DO NOT MERGE - Create db path if it doesn't exit" into gingerbread

13 years agoDO NOT MERGE - Create db path if it doesn't exit
John Reck [Tue, 18 Jan 2011 23:42:49 +0000 (15:42 -0800)]
DO NOT MERGE - Create db path if it doesn't exit

 Bug: 3241808
 Make sure the directory the caller is trying to open the icon db
 in actually exists and create it if it doesn't.

Change-Id: Icc0a67b0ceba03a746ac2cd3b84fc34c2c8b4fe2

13 years agoMerge "API changes for NFC." into gingerbread
Jeff Hamilton [Fri, 21 Jan 2011 19:34:20 +0000 (11:34 -0800)]
Merge "API changes for NFC." into gingerbread

13 years agoAPI changes for NFC.
Jeff Hamilton [Fri, 21 Jan 2011 07:13:06 +0000 (01:13 -0600)]
API changes for NFC.

Bug: 3366009
Change-Id: Ia28e03e1501421906b640b78d4c9a59a20e9c668

13 years agoMerge "Bug 3365937 notify TTS initialization listener of binding errors" into gingerbread
Jean-Michel Trivi [Fri, 21 Jan 2011 17:09:30 +0000 (09:09 -0800)]
Merge "Bug 3365937 notify TTS initialization listener of binding errors" into gingerbread

13 years agoMerge "do not merge - Fix issue 3371096." into gingerbread
Eric Laurent [Fri, 21 Jan 2011 01:43:04 +0000 (17:43 -0800)]
Merge "do not merge - Fix issue 3371096." into gingerbread

13 years agoBug 3365937 notify TTS initialization listener of binding errors
Jean-Michel Trivi [Fri, 21 Jan 2011 01:25:48 +0000 (17:25 -0800)]
Bug 3365937 notify TTS initialization listener of binding errors

The creation of a TextToSpeech object causes the TTS service to
 start, and the initialization listener to be called when the
 service is connected. But the listener is never called when
 the service binding failed to be notified of this error.
The fix consists in checking the result of the bind to service
 operation, and notify the listener in case of an error.

More log was added in case speak() and synthesizeToFile() are
 called but the service is not known to have started.

Change-Id: I7dcc1fa44be31fee3177ec6215fca3306377b934

13 years agoFix issue #3373438: Update GBMR versions
Dianne Hackborn [Thu, 20 Jan 2011 20:16:43 +0000 (12:16 -0800)]
Fix issue #3373438: Update GBMR versions

Change-Id: Ic4b4f1b0534fd2fbd6322eae01a4cb9d5a67cc6f

13 years agodo not merge - Fix issue 3371096.
Eric Laurent [Thu, 20 Jan 2011 02:36:13 +0000 (18:36 -0800)]
do not merge - Fix issue 3371096.

EffectModule::process() was copying effect chain input buffer to
output buffer if no effect was active instead of accumulating it.

Change-Id: If4ca75601ea69a088d0f71d88aec53e90a1dec89

13 years agoMerge "DO NOT MERGE: Prefill the cache before trying to instantiate the media extract...
Dave Sparks [Thu, 20 Jan 2011 03:23:32 +0000 (19:23 -0800)]
Merge "DO NOT MERGE: Prefill the cache before trying to instantiate the media extractor." into gingerbread

13 years agoMerge "fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when...
Mathias Agopian [Thu, 20 Jan 2011 01:32:21 +0000 (17:32 -0800)]
Merge "fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when running slowly" into gingerbread

13 years agoMerge "Never drag scroll views with no children. (DO NOT MERGE)" into gingerbread
Jeff Brown [Thu, 20 Jan 2011 01:03:03 +0000 (17:03 -0800)]
Merge "Never drag scroll views with no children. (DO NOT MERGE)" into gingerbread

13 years agoDO NOT MERGE: Prefill the cache before trying to instantiate the media extractor.
Andreas Huber [Wed, 19 Jan 2011 23:07:19 +0000 (15:07 -0800)]
DO NOT MERGE: Prefill the cache before trying to instantiate the media extractor.

The latter is an operation that otherwise could block on the datasource
for a significant amount of time. During that time we'd be unable to
abort the preparation phase without this prefill.

Change-Id: I3bc889b264f599bfd5c2bbdf48b88ccb55d86172
related-to-bug: 3362836

13 years agofix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when running...
Mathias Agopian [Wed, 19 Jan 2011 22:26:25 +0000 (14:26 -0800)]
fix [3369027] Sensor.TYPE_ROTATION_VECTOR is unstable and returns NaNs when running slowly

The cut-off frequency of the lowpass filter was too high
for the sampling rate used by DELAY_NORMAL.

Now we use the same filters used for the gravity vector
(cascaded biquad at 1.5 Hz)

Change-Id: Iac290a716cc47a78337a8f0e45b103e49b4d9d78

13 years agoMerge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into gingerbread
Mathias Agopian [Wed, 19 Jan 2011 19:31:07 +0000 (11:31 -0800)]
Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into gingerbread

13 years agoNever drag scroll views with no children. (DO NOT MERGE)
Jeff Brown [Wed, 19 Jan 2011 02:22:48 +0000 (18:22 -0800)]
Never drag scroll views with no children. (DO NOT MERGE)

Fixes a regression from Froyo.  Previously, when a scroll view
had no children, its onTouchEvent would return because the scroll
view would only start dragging if the user touched one of its children.
In Gingerbread, the user can drag from anywhere within the scroll
view, not just by touching a child.  However, it makes no sense
to drag a scroll view that has no children so an empty scroll view
should just ignore touches like any other empty view group would.

This change fixes applications that for some reason or other happen
to have empty scroll views in strange places.

Bug: 3246230
Change-Id: I76c6136d3cd74968983033014d60deec1718ce30

13 years agoMerge "DO NOT MERGE: Apparently our native TCP sockets do not return an error from...
Andreas Huber [Wed, 19 Jan 2011 16:11:39 +0000 (08:11 -0800)]
Merge "DO NOT MERGE: Apparently our native TCP sockets do not return an error from blocking "connect"" into gingerbread

13 years agoMerge "Change signature of MifareClassic.authenticate*() to throw IOException." into...
Nick Pelly [Wed, 19 Jan 2011 02:53:42 +0000 (18:53 -0800)]
Merge "Change signature of MifareClassic.authenticate*() to throw IOException." into gingerbread

13 years agoMerge "Support for TagLostException (API)." into gingerbread
Nick Pelly [Wed, 19 Jan 2011 02:53:40 +0000 (18:53 -0800)]
Merge "Support for TagLostException (API)." into gingerbread

13 years agoChange signature of MifareClassic.authenticate*() to throw IOException.
Nick Pelly [Wed, 19 Jan 2011 02:52:37 +0000 (18:52 -0800)]
Change signature of MifareClassic.authenticate*() to throw IOException.

Update API for this and the previous commit.

Change-Id: I19275a5d00081bd0f00afea59a2b673344a32954

13 years agoMerge "Watchdog can get deadlocked on activity manager" into gingerbread
Brad Fitzpatrick [Wed, 19 Jan 2011 02:52:04 +0000 (18:52 -0800)]
Merge "Watchdog can get deadlocked on activity manager" into gingerbread

13 years agoSupport for TagLostException (API).
Martijn Coenen [Tue, 18 Jan 2011 23:57:17 +0000 (00:57 +0100)]
Support for TagLostException (API).

Change-Id: Idf2c3253f7bc5f371133c4f18bfc2afde69c3010

13 years agoMerge "Fix javadoc which broke build." into gingerbread
Nick Pelly [Wed, 19 Jan 2011 01:07:56 +0000 (17:07 -0800)]
Merge "Fix javadoc which broke build." into gingerbread

13 years agoFix javadoc which broke build.
Nick Pelly [Wed, 19 Jan 2011 01:07:05 +0000 (17:07 -0800)]
Fix javadoc which broke build.

Change-Id: Ie3cac9bec04e80defae44ba02086ad0cdfd301a9

13 years agoWatchdog can get deadlocked on activity manager
Brad Fitzpatrick [Fri, 14 Jan 2011 19:28:22 +0000 (11:28 -0800)]
Watchdog can get deadlocked on activity manager

Bug: 3351719
Change-Id: Idf3907709340062849a09dd094137e86256ed739

13 years agoMerge "Fix omission in NOTICE file." into gingerbread
Eric Laurent [Wed, 19 Jan 2011 00:42:20 +0000 (16:42 -0800)]
Merge "Fix omission in NOTICE file." into gingerbread

13 years agoMerge "hange the default IsoDep timeout to 300ms (docs update)." into gingerbread
Nick Pelly [Wed, 19 Jan 2011 00:11:14 +0000 (16:11 -0800)]
Merge "hange the default IsoDep timeout to 300ms (docs update)." into gingerbread

13 years agoMerge "fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE...
Mathias Agopian [Wed, 19 Jan 2011 00:10:08 +0000 (16:10 -0800)]
Merge "fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE" into gingerbread

13 years agoDO NOT MERGE: Apparently our native TCP sockets do not return an error from blocking...
Andreas Huber [Tue, 18 Jan 2011 23:26:40 +0000 (15:26 -0800)]
DO NOT MERGE: Apparently our native TCP sockets do not return an error from blocking "connect"

if the network interface is shutdown while connecting.

Change-Id: I168c6026de24812efa9b7e607a9eb83efded8c1f
related-to-bug: 3362836

13 years agoMerge "Set the default state of NOTIFICATIONS_USE_RING_VOLUME to true." into gingerbread
Amith Yamasani [Tue, 18 Jan 2011 23:41:26 +0000 (15:41 -0800)]
Merge "Set the default state of NOTIFICATIONS_USE_RING_VOLUME to true." into gingerbread

13 years agohange the default IsoDep timeout to 300ms (docs update).
Martijn Coenen [Tue, 18 Jan 2011 20:22:08 +0000 (21:22 +0100)]
hange the default IsoDep timeout to 300ms (docs update).

Change-Id: I4fe5a6bf9fd42a28c9619e6e0bf11885bcc43f91

13 years agoFix omission in NOTICE file.
Eric Laurent [Tue, 18 Jan 2011 23:25:32 +0000 (15:25 -0800)]
Fix omission in NOTICE file.

Added copyright notice for audio effects source files under
media/libeffects/lvm.

Change-Id: I8e142bacb7e4b1faaeafe88e907b73f21fced1c3

13 years agoMerge "Do not add unsolicited events to queue" into gingerbread
Irfan Sheriff [Tue, 18 Jan 2011 22:40:18 +0000 (14:40 -0800)]
Merge "Do not add unsolicited events to queue" into gingerbread

13 years agoMerge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbread
Jeff Brown [Tue, 18 Jan 2011 22:31:31 +0000 (14:31 -0800)]
Merge "Filter virtual keys after touches.  (DO NOT MERGE)" into gingerbread

13 years agoSet the default state of NOTIFICATIONS_USE_RING_VOLUME to true.
Amith Yamasani [Tue, 18 Jan 2011 21:13:47 +0000 (13:13 -0800)]
Set the default state of NOTIFICATIONS_USE_RING_VOLUME to true.

Bug: 3319615

This doesn't affect upgrades, only new installs.

Change-Id: I86fa77b36867649becce8fc470bf9a559fe48131

13 years agoCheck NDEF before calling makeReadOnly().
Martijn Coenen [Fri, 14 Jan 2011 15:26:45 +0000 (16:26 +0100)]
Check NDEF before calling makeReadOnly().

Change-Id: Iadbaf5c29821eff78ad487b248af529febcdc4ce

13 years agoImplement IsoDep timeout handling (API).
Martijn Coenen [Wed, 12 Jan 2011 20:17:43 +0000 (21:17 +0100)]
Implement IsoDep timeout handling (API).

Added a method for setting the timeout on IsoDep transactions.

Change-Id: Ie627e7a826556e46295fefe69b9be83ebf911d93

13 years agoMerge "Fix the ISurfaceComposer onTransact switch." into gingerbread
Mathias Agopian [Tue, 18 Jan 2011 19:20:04 +0000 (11:20 -0800)]
Merge "Fix the ISurfaceComposer onTransact switch." into gingerbread

13 years agoMerge "Javadoc updates for NFC." into gingerbread
Jeff Hamilton [Tue, 18 Jan 2011 19:01:55 +0000 (11:01 -0800)]
Merge "Javadoc updates for NFC." into gingerbread

13 years agoMerge "New APIs for NDEF Push Protocol." into gingerbread
Jeff Hamilton [Tue, 18 Jan 2011 19:01:05 +0000 (11:01 -0800)]
Merge "New APIs for NDEF Push Protocol." into gingerbread

13 years agoJavadoc updates for NFC.
Jeff Hamilton [Mon, 17 Jan 2011 19:05:03 +0000 (11:05 -0800)]
Javadoc updates for NFC.

Change-Id: Ibd91829979576297599fbcc9eb8054924af1d527

13 years agoRemove API that snuck into MockPackageManager
Kenny Root [Mon, 17 Jan 2011 20:40:57 +0000 (12:40 -0800)]
Remove API that snuck into MockPackageManager

We didn't release the get/setPackageObbPath API, but it snuck into
MockPackageManager. However, it is not usable as a developer anyway.
Removing it so it doesn't stay in the API forever.

Change-Id: Ia569754691dc3a9f2672c1f25e4e08d780db6028

13 years agoRevert "Add the {get,set}PackageObbPaths calls to API"
Kenny Root [Mon, 17 Jan 2011 01:25:18 +0000 (17:25 -0800)]
Revert "Add the {get,set}PackageObbPaths calls to API"

This reverts commit 6c4d904851772313930f800ac7c323cf90c709bb.

Going with a different tactic that doesn't dump stuff on
PackageManagerService.

Bug: 3214719
Change-Id: I0bbeccf3c21d264deda4256eb53713d2c98284f4

13 years agoNew APIs for NDEF Push Protocol.
Jeff Hamilton [Mon, 17 Jan 2011 15:59:03 +0000 (07:59 -0800)]
New APIs for NDEF Push Protocol.

The NPP is only usable by the foregorund
activity to prevent dispatching confusion
on the far end.

Change-Id: I08475a52083fd7f81b79b7fe2faf4e126121a809

13 years agofix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE
Mathias Agopian [Mon, 17 Jan 2011 03:11:20 +0000 (19:11 -0800)]
fix [3355413] Gyro calls onAccuracyChanged and reports accuracy as UNRELIABLE

- make sure to call onAccuracyChanged only when it actually changes
- only call onAccuracyChanged on Magnetic and Orientation sensors, which
  are the only ones to support it.
- for other sensors, call onAccuracyChanged only once with the
  SENSOR_STATUS_ACCURACY_HIGH value

Change-Id: Ic861e3d48d3b98dab74ffebe2746576f5b69f371

13 years agoUse EGL_NATIVE_VISUAL_ID to select EGLConfig
Mathias Agopian [Mon, 17 Jan 2011 01:57:20 +0000 (17:57 -0800)]
Use EGL_NATIVE_VISUAL_ID to select EGLConfig

EGLUtils::selectConfigForPixelFormat() now uses EGL_NATIVE_VISUAL_ID
to select a config with the proper format. this is more robust and
future proof.

Change-Id: Ib85e0974160945d838956b50a3cac4de78618957

13 years agoFix the ISurfaceComposer onTransact switch.
Jamie Gennis [Mon, 20 Dec 2010 19:05:18 +0000 (11:05 -0800)]
Fix the ISurfaceComposer onTransact switch.

Two of the cases in the ISurfaceComposer onTransact switch statement
were missing 'break' statements at the end, and would fall through to
the next case block. This change adds those break statements.

Change-Id: I6dcc84263d3ea03d94612c667103283846b3dee1

13 years agoMerge "Flush Binder commands in ndk looper." into gingerbread
Jeff Brown [Mon, 17 Jan 2011 00:15:32 +0000 (16:15 -0800)]
Merge "Flush Binder commands in ndk looper." into gingerbread

13 years agoMerge "Fix 3106227: use WeakReferences for receivers in DigitalClock class" into...
Jim Miller [Mon, 17 Jan 2011 00:14:52 +0000 (16:14 -0800)]
Merge "Fix 3106227: use WeakReferences for receivers in DigitalClock class" into gingerbread

13 years agoDo not add unsolicited events to queue
Irfan Sheriff [Sun, 16 Jan 2011 22:31:55 +0000 (14:31 -0800)]
Do not add unsolicited events to queue

Adding unsolicited events to response queue
results in doCommand() returning the wrong
result.

Pulling this change from master.

Bug: 3258529
Change-Id: I2a4b0bd8bb30b31682d7d61ee94a0d246bf10de2

13 years agoMerge "Make sure service handles are live before passing to other objects." into...
Nick Pelly [Sat, 15 Jan 2011 02:18:25 +0000 (18:18 -0800)]
Merge "Make sure service handles are live before passing to other objects." into gingerbread

13 years agoFix 3106227: use WeakReferences for receivers in DigitalClock class
Jim Miller [Fri, 14 Jan 2011 01:56:35 +0000 (17:56 -0800)]
Fix 3106227: use WeakReferences for receivers in DigitalClock class

This works around a bug in the framework where LockScreen wouldn't
get GC'd under certain circumstances which would lead to an OOM
crash.  It now uses WeakReferences for observers inside the
DigitalClock container class and unregisters them if the containing
DigitalClock goes away.

Also removed mLive variable which was unused and could potentially
leak the receivers.

Left mAttached for debugging so we can use it to determine if the
calls to onAttachToWindow() and onDetachFromWindow() are grossly
unbalanced which may be the root cause of the original problem.

Have cleanUp() explicitly clear unused references to make
tracing through hprof references easier.

Change-Id: I99a7e0c356001b05eab5aa729564553666febfea

13 years agoMerge "Squash commits of the following patches, cherry-picked from other branch ...
James Dong [Sat, 15 Jan 2011 00:27:48 +0000 (16:27 -0800)]
Merge "Squash commits of the following patches, cherry-picked from other branch - do not merge." into gingerbread

13 years agoMerge "Do Not Merge: Expose insecure rfcomm Bluetooth API." into gingerbread
Jaikumar Ganesh [Sat, 15 Jan 2011 00:11:41 +0000 (16:11 -0800)]
Merge "Do Not Merge: Expose insecure rfcomm Bluetooth API." into gingerbread

13 years agoMerge "Added check to make orientation calculations more robust" into gingerbread
Dianne Hackborn [Fri, 14 Jan 2011 23:36:26 +0000 (15:36 -0800)]
Merge "Added check to make orientation calculations more robust" into gingerbread

13 years agoMerge "Make the Phone options dialog use current language" into gingerbread
Dianne Hackborn [Fri, 14 Jan 2011 23:33:44 +0000 (15:33 -0800)]
Merge "Make the Phone options dialog use current language" into gingerbread

13 years agoDo Not Merge: Expose insecure rfcomm Bluetooth API.
Jaikumar Ganesh [Fri, 14 Jan 2011 06:50:51 +0000 (22:50 -0800)]
Do Not Merge: Expose insecure rfcomm Bluetooth API.

This complements the secure rfcomm API.
The link key is unauthenticated and is subject to MITM attacks.
The link key may be encrypted depending on the type of Bluetooth device.
This helps apps which don't need the extra security or
have their own security layer built on top of the rfcomm link.

Bug: 3352266

Change-Id: I633fd0372e5e23288d6fec950dd1abc2896031f1

13 years agoMake the Phone options dialog use current language
Anders Hammar1 [Fri, 14 Jan 2011 09:00:39 +0000 (10:00 +0100)]
Make the Phone options dialog use current language

The title of the Phone options dialog is displayed using wrong
translation if the user changes the current language setting. Moving
the setTitle call to prepareDialog to ensure that the title gets
updated before the dialog is shown.

Change-Id: I03ff59c7f4ff711a06b05de7cca94fa928cf67ef

13 years agoAdded check to make orientation calculations more robust
Niclas Kellgren [Fri, 14 Jan 2011 08:11:35 +0000 (09:11 +0100)]
Added check to make orientation calculations more robust

Added check avoid a division by zero resulting in NaN which in turn
makes checkFullyTilted to ignore high tilt angles from then on.
If (x, y, z) == (0, 0, 0) then there is no tilt or rotation and
this vector must be ignored. This check is extended to ignore all
small acceleration values where noise can be of big influence.

Low or zero readings can happen when space travelling free falling,
but more commonly when shaking or getting bad readings from the sensor.
The accelerometer is turned off when not used and polling it too soon
after it is turned on may result in (0, 0, 0).

Change-Id: I19aec653abb8ab6f7126778035c8c96449f1326f

13 years agoDeep clone settings for system package update DO NOT MERGE
Kenny Root [Thu, 13 Jan 2011 22:53:17 +0000 (14:53 -0800)]
Deep clone settings for system package update DO NOT MERGE

The copyFrom() method was not written to create a clone of the
PackageSetting, so just create a new constructor that actually does a
clone.

Bug: 3349588
Change-Id: I24bdce6c3559e097ecb64b61585ef3b12bca491f

13 years agoMerge "Add date format and map center resources for new locales." into gingerbread
Eric Fischer [Thu, 13 Jan 2011 21:08:18 +0000 (13:08 -0800)]
Merge "Add date format and map center resources for new locales." into gingerbread

13 years agoAdd dispatching overrides for foreground apps.
Jeff Hamilton [Sat, 8 Jan 2011 21:31:26 +0000 (15:31 -0600)]
Add dispatching overrides for foreground apps.

Apps can register to override the default dispatching
but only when they're in the foreground.

Change-Id: I8e9a9254d3f79f097fb3c8c677d806043574ba4d

13 years agoMerge "Do not merge." into gingerbread
Wei-Ta Chen [Thu, 13 Jan 2011 20:02:32 +0000 (12:02 -0800)]
Merge "Do not merge." into gingerbread

13 years agoAdding ASL2 attribution for VisualOn.
Dan Morrill [Thu, 13 Jan 2011 17:24:01 +0000 (09:24 -0800)]
Adding ASL2 attribution for VisualOn.

Change-Id: I870133fc366507d95741f8aa234776de58ba60a9

13 years agoMake sure service handles are live before passing to other objects.
Nick Pelly [Thu, 13 Jan 2011 17:22:57 +0000 (09:22 -0800)]
Make sure service handles are live before passing to other objects.

Change-Id: Ia3fa799b56463f313da0e84a50c4dc75d584eaca

13 years agoSquash commits of the following patches, cherry-picked from other branch - do not...
James Dong [Fri, 3 Dec 2010 01:42:08 +0000 (17:42 -0800)]
Squash commits of the following patches, cherry-picked from other branch - do not merge.

o Prepare for publishing MediaMetadataRetriever as public API
  step one:
  o replaced captureFrame with getFrameAtTime
  o removed getMode

o Replace MediaMetadataRetriever.captureFrame() with MediaMetadataRetriever.getFrameAtTime()
  as part of the preparation for publishing MediaMetadataRetriever as public Java API

o Remove captureFrame from MediaMetadataRetriever.java class
  It has been replaced by getFrameAtTime() method

o Replace extractAlbumArt() with getEmbeddedPicture() in MediaMetadataRetriever.java

o Publish MediaMetadataRetriever.java as public API
  o Removed setMode() methods and related mode constants
  o Removed some of the unused the metadata keys
  o Updated the javadoc
  o part of a multi-project change.

bug - 3309041

Change-Id: I2efb6e8b8d52897186b016cb4efda6862f5584c4

13 years agoAdd date format and map center resources for new locales.
Eric Fischer [Thu, 13 Jan 2011 00:44:09 +0000 (16:44 -0800)]
Add date format and map center resources for new locales.

Change-Id: I62e7724993c160a11b3ece922a50b7b8ebc06c31

13 years agoMerge "New Intent defined for RF ON/OFF events" into gingerbread
Nick Pelly [Thu, 13 Jan 2011 00:28:59 +0000 (16:28 -0800)]
Merge "New Intent defined for RF ON/OFF events" into gingerbread

13 years agoNew Intent defined for RF ON/OFF events
daniel_tomas [Fri, 7 Jan 2011 03:50:59 +0000 (19:50 -0800)]
New Intent defined for RF ON/OFF events

Change-Id: Ie1bc056bd36eb999b4678c594a3edc801a0cf6a1

13 years agoMerge "Add the {get,set}PackageObbPaths calls to API" into gingerbread
Kenny Root [Wed, 12 Jan 2011 23:03:43 +0000 (15:03 -0800)]
Merge "Add the {get,set}PackageObbPaths calls to API" into gingerbread

13 years agoMerge "DO NOT MERGE: Remove auto connection on ACL connection." into gingerbread
Jaikumar Ganesh [Wed, 12 Jan 2011 21:56:13 +0000 (13:56 -0800)]
Merge "DO NOT MERGE: Remove auto connection on ACL connection." into gingerbread

13 years agoMerge "Fix issue 3302649." into gingerbread
Eric Laurent [Wed, 12 Jan 2011 21:50:51 +0000 (13:50 -0800)]
Merge "Fix issue 3302649." into gingerbread

13 years agoDO NOT MERGE: Remove auto connection on ACL connection.
Jaikumar Ganesh [Fri, 7 Jan 2011 00:22:21 +0000 (16:22 -0800)]
DO NOT MERGE: Remove auto connection on ACL connection.

There is no need for this and causes problems with certian cars.

Fixes bug: 3281016

Change-Id: Idb65bbd4c8573923ebf82195b828ae071cb20aef

13 years agoMerge "Updated flightmode assets" into gingerbread
Justin Ho [Wed, 12 Jan 2011 21:47:59 +0000 (13:47 -0800)]
Merge "Updated flightmode assets" into gingerbread

13 years agoUpdated flightmode assets
Justin Ho [Wed, 12 Jan 2011 21:43:20 +0000 (13:43 -0800)]
Updated flightmode assets

Change-Id: Ia26da7982822d818f8416a110a21d17d316d7b3f

13 years agoMerge "Allow updated system apps to retain priority" into gingerbread
Kenny Root [Wed, 12 Jan 2011 19:56:25 +0000 (11:56 -0800)]
Merge "Allow updated system apps to retain priority" into gingerbread

13 years agoFail to parse duration instead of asserting, if the server response cannot be parsed.
Andreas Huber [Wed, 12 Jan 2011 17:57:23 +0000 (09:57 -0800)]
Fail to parse duration instead of asserting, if the server response cannot be parsed.

Change-Id: I95c61ed83800db82e99c0023b942fb8ae05ed3cf
related-to-bug: 3338518

13 years agoDo not merge.
Wei-Ta Chen [Fri, 24 Dec 2010 00:31:25 +0000 (16:31 -0800)]
Do not merge.

Backport changes related to BitmapRegionDecoder from HoneyComb to
Gingerbread.

Bug: 3309014

////////////////////////////////////////////////////
This is a combination of 7 commits.
Revert "Do not merge."

This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82.

Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6

Fix a initialization bug in BitmapRegionDecoder.

Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5

Fix segfault when tring to throw IOException.

Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f

Fix 3122139, where previewing an attachment for the second time will
fail.

Use AutoFDSeek to mark and restore the position before we read data from
the descriptor.

Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195

Add inPreferQualityOverSpeed into BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925
Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4

Unhide inPreferQualityOverSpeed in BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925

Related changes: https://android-git.corp.google.com/g/#change,83291 and
                 https://android-git.corp.google.com/g/#change,83294

Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4

Correct the API comments.

BitmapRegionDecoder supports PNG as well.

13 years agoFilter virtual keys after touches. (DO NOT MERGE)
Jeff Brown [Sun, 24 Oct 2010 21:39:33 +0000 (14:39 -0700)]
Filter virtual keys after touches.  (DO NOT MERGE)

Adds a new virtualKeyQuietTimeMillis configuration resource that sets
the duration for which virtual keys will be dropped after recent touches
on screen.  The default value is 0; it is intended to be overridden
per device using a resource overlay.

This change is designed to help in two cases:

1. Swipes from touchscreen into virtual key area.
2. Accidental taps in virtual key area while using on-screen keyboard.

Bug: 3089163
Change-Id: Id6733c83c2e2bc8d9553aa0e5c1fd74b741bec6e

13 years agoDO NOT MERGE: Fix Matroska issues
Andreas Huber [Wed, 12 Jan 2011 00:01:33 +0000 (16:01 -0800)]
DO NOT MERGE: Fix Matroska issues

related-to-bug: 3331623

Squashed commit of the following:

commit 8484811f3784564ce962ec1b6311bac532d73ffc
Author: Andreas Huber <andih@google.com>
Date:   Tue Jan 11 11:56:06 2011 -0800

    Properly parse Matroska lacing flags and extract all frames contained in a block.

    related-to-bug: 3331623

commit 38f1f39381a01659577461b3d35bd22db45ba317
Author: Andreas Huber <andih@google.com>
Date:   Mon Nov 15 15:10:34 2010 -0800

    Proper support for variable NALsize lengths of AVC content in .mkv files.

    related-to-bug: 3197442

Change-Id: I4b404f3c3d0a2a2fa336b9edff75eb25ffc66a2f

13 years agoAllow updated system apps to retain priority
Kenny Root [Mon, 10 Jan 2011 21:48:15 +0000 (13:48 -0800)]
Allow updated system apps to retain priority

Previously any updated system apps would not be able to have a greater
than 0 priority on an activity intent filter. Moving the priority check
later in the package scanning allows it to apply to updated system
packages as well.

Bug: 2572398
Change-Id: I9fdf7906809518b28b49ffec31afec1442d85d3c

13 years agoMerge "DO NOT MERGE: Fix parsing of ntp= PLAY response." into gingerbread
Andreas Huber [Tue, 11 Jan 2011 21:52:12 +0000 (13:52 -0800)]
Merge "DO NOT MERGE: Fix parsing of ntp= PLAY response." into gingerbread

13 years agoCopy user info from PackageSetting as well
Kenny Root [Tue, 11 Jan 2011 18:08:01 +0000 (10:08 -0800)]
Copy user info from PackageSetting as well

In order not to clobber the internal system's settings, we duplicate it
before putting it back into mPackages, but the PackageSetting has a
couple extra pieces of information that weren't being copied.

Bug: 3339279
Change-Id: I047087ac3477c7b2d5ce23e5e0a5e8c094bd0d3f

13 years agoDO NOT MERGE: Fix parsing of ntp= PLAY response.
Andreas Huber [Tue, 11 Jan 2011 17:51:34 +0000 (09:51 -0800)]
DO NOT MERGE: Fix parsing of ntp= PLAY response.

related-to-bug: 3340186

Squashed commit of the following:

commit b61c36b7228aec9f5360883b1e1c1e0530488974
Author: Andreas Huber <andih@google.com>
Date:   Wed Oct 27 13:59:59 2010 -0700

    Better support for MP4A-LATM RTP disassembly. This used to fail if mNumSubFrames > 1 and the sub frames did not align with RTP packet boundaries.

commit b10f322c07e5bebcaf032e8624cb4a5d733dfc15
Author: Andreas Huber <andih@google.com>
Date:   Mon Oct 25 09:40:52 2010 -0700

    We don't have access to the md5 implementation on the simulator, let's disable digest authentication in rtsp for simulator targets.

commit 0aa83cf9e4637adf9501708fcdf7d0d6d4dc4fe1
Author: Andreas Huber <andih@google.com>
Date:   Wed Oct 20 15:00:34 2010 -0700

    Support for BASIC and DIGEST authentication schemes in RTSP. Support for malformed packet descriptions that end lines in LF only, instead of CRLF.

    related-to-bug: 3084183

Change-Id: I6e512cb73cc8d5624a83f7154aa5699f7fef7534

13 years agoMerge "Add auth. username in SipProfile." into gingerbread
Chung-yih Wang [Tue, 11 Jan 2011 10:08:19 +0000 (02:08 -0800)]
Merge "Add auth. username in SipProfile." into gingerbread

13 years agoFlush Binder commands in ndk looper.
Jeff Brown [Mon, 10 Jan 2011 22:36:37 +0000 (14:36 -0800)]
Flush Binder commands in ndk looper.

Bug: 3258183
Change-Id: I943808d6297a442b84ec95643e88ceb125f8c0c6

13 years agoUpdate API current.xml to unbreak build.
Nick Pelly [Mon, 10 Jan 2011 22:16:16 +0000 (14:16 -0800)]
Update API current.xml to unbreak build.

Change-Id: I151ee987fdae73fdf8f339dbb64f8fd27a0436b6

13 years agoImplement canMakeReadonly().
Martijn Coenen [Mon, 10 Jan 2011 15:12:52 +0000 (16:12 +0100)]
Implement canMakeReadonly().

The method is needed since makeReadOnly() only works on T1T/T2T. Also removed
makeLowlevelReadonly(), since NFC forum does not allow setting the CC and the lock
bits separately.

Change-Id: I8e6d7c065b1f017ef07d878c41df05e1a8193f5a

13 years agoMerge "Avoid deadlock in OMX::freeNode by making sure OMXCodecObserver does not hold...
James Dong [Mon, 10 Jan 2011 20:04:50 +0000 (12:04 -0800)]
Merge "Avoid deadlock in OMX::freeNode by making sure OMXCodecObserver does not hold the last reference of OMXCodec object - do not merge" into gingerbread

13 years agoMerge "Remove attemptDeadServiceRecovery() from TagTechnology's." into gingerbread
Nick Pelly [Mon, 10 Jan 2011 20:02:36 +0000 (12:02 -0800)]
Merge "Remove attemptDeadServiceRecovery() from TagTechnology's." into gingerbread