9003 Commits

Author SHA1 Message Date
Dianne Hackborn
53cd579459 Fix issue #2186709: Can't unlock the device for a while
Change-Id: Iac5342254036cc286ad502dba943520f55ea2405
2009-10-13 19:50:51 -07:00
Dmitri Plotnikov
6e144ad885 Making new Contacts APIs visible in Eclair SDK
Bug: http://b/2186595
 
Change-Id: Iaba8514276299504af6ab0714577eb37d9608237
2009-10-13 18:24:08 -07:00
Jeff Sharkey
a78a9d4c93 Correct non-opaque list separator assets.
Fixes http://b/2186076
2009-10-13 16:28:53 -07:00
Android (Google) Code Review
64d54042ff Merge change I61c08260 into eclair
* changes:
  Futher reduce the logging of EriManager.
2009-10-13 17:07:10 -04:00
Robert Greenwalt
61c082603f Futher reduce the logging of EriManager.
There was another log statement that was poluting radio logs.

bug: 2180891
2009-10-13 13:53:22 -07:00
Android (Google) Code Review
2a21a77d5c Merge change I1369e9ab into eclair
* changes:
  Work on issue #2144454: Inconsistent swipes...
2009-10-13 14:45:56 -04:00
Dianne Hackborn
1411d1c822 Work on issue #2144454: Inconsistent swipes...
This introduces some hacks in the framework to try to clean up the
data we are getting from the touch screen.  There are two main things
being done here:

1. Look for changes in position that are unreasonably large, and
ignore them.  This is intended to eliminate the spurious jumps that
often happen when releasing.

2. Add some simple adaptive averaging of the touch data.  If the
difference between the last and next point is large enough, we
disable the averaging; otherwise we average up to the last 5 points.
The goal is to get rid of the noise of small movements so that things
like taps don't look like short flings, while still responding quickly
to rapid movement.

For averaging pressure, we also weight each averaged coordinate by
the reported pressure at that point.  This is intended to keep the
coordinates closer together during a release, when the pressure is
going down and the accuracy decreasing.  It may also result in some
other interesting artifacts, but hopefully nothing problematic.

Change-Id: I1369e9ab015c406946a45c2d72547da9c604178f
2009-10-13 11:44:29 -07:00
Android (Google) Code Review
16cb04ab1c Merge change If1acb2dd into eclair
* changes:
  Add a little logging to diagnose wifi cycle bug
2009-10-13 12:45:30 -04:00
Robert Greenwalt
f1acb2ddcd Add a little logging to diagnose wifi cycle bug
Hiroshi approved (with serious code review).
bug: 2171575
2009-10-13 08:20:55 -07:00
Android (Google) Code Review
69e2ef473c Merge change I9f93ce61 into eclair
* changes:
  Throttle camera preview frames to the app. Bug 2180302.
2009-10-13 06:02:59 -04:00
Dave Sparks
a6118c6383 Throttle camera preview frames to the app. Bug 2180302.
With higher frame rates and larger preview frames, we can easily
flood the application with too much data. This patch fakes the
old camera preview mode by doing continuous one-shot frames.
After the previous frame is handled, if the application hasn't
cleared the preview callback, we start another one-shot preview
frame. With this change, the application should never have more
than one preview frame unless it is explicitly saving references
to them.

	modified:   core/java/android/hardware/Camera.java
2009-10-13 02:52:00 -07:00
Android (Google) Code Review
2e778c176d Merge change I124356f6 into eclair
* changes:
  Continue caching "POST" result so that we won't get the resubmission warning when back to Google search result.
2009-10-12 21:30:04 -04:00
Grace Kloba
124356f630 Continue caching "POST" result so that we won't get
the resubmission warning when back to Google search result.

Fix http://b/issue?id=1490379
Break/reopen http://b/issue?id=1980031
2009-10-12 17:39:50 -07:00
Katarina Stenstedt
d1f3d4e829 SDK doc change per http://b/2158141 - adds new res wizard to L10N tutorial.
Changed image links to use @docRoot.

Change-id: If30c5e20bbbb0dd4a6eb0563ede2767d110e1c2e
Bug: 2158141
2009-10-12 16:17:42 -07:00
Libin Tang
febb94cdbb Make standard roaming indicator display indications configurable
Allow the ERI overlay file to specify the text for any built-in strings.
Currently only the hard-coded strings are used for those.

Bug: 2170881
Change-Id: I5d6169696a4558e62587585e17f908f823c54a2b
2009-10-12 14:13:04 -07:00
Android (Google) Code Review
6d02f3f3ff Merge change I71f48a21 into eclair
* changes:
  Reduce the amount of EriManager Logging.
2009-10-12 15:25:51 -04:00
Robert Greenwalt
71f48a21b0 Reduce the amount of EriManager Logging.
It was filling the radio log with noise.  Added a VDBG set to false to preserve the logging
but deactivate it.

bug: 2180891
2009-10-12 12:13:14 -07:00
Android (Google) Code Review
98b3def298 Merge change I6261ab54 into eclair
* changes:
  Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"
2009-10-12 15:01:43 -04:00
Android (Google) Code Review
6abf7c8fcc Merge change Iad66a274 into eclair
* changes:
  Fix race condition in WindowManagerService.disableKeyguard()
2009-10-12 14:14:44 -04:00
Android (Google) Code Review
d301c90446 Merge change I305c181c into eclair
* changes:
  Delay 500ms between each registering each SDP record using sdptool.
2009-10-12 14:05:44 -04:00
Android (Google) Code Review
f836acf241 Merge change I067d55ea into eclair
* changes:
  Fix issue #2179931: Power key to wake up frequently ignored when in dock app
2009-10-12 14:04:31 -04:00
Nick Pelly
bc1fc05c1b Delay 500ms between each registering each SDP record using sdptool.
This is to workaround an issue where SDP records will fail to register using
sdptool. When we run SystemService.start() it forks sdptool, so if we do this
four times in a row these forked processes can run in parallel, and one or
more of them fails. There is probably some thready safety issue in sdptool
or Bluez that makes it unsafe to run sdptool in parallel.

As a workaround, delay 500ms between each run of sdptool to register SDP
records when starting Bluetooth.

Before this fix it was easy to reproduce problems with service record
registration. If you turn BT off/on multiple times you can see that sometimes
one or more service records are missing. Repro rate is about 20% in my tests.
Result is that remote devices cannot connect to the missing service.

After this fix I am unable to reproduce any missing SDP records, after 30+
cycles of BT on/off. Motorola BT team also ran stress tests overnight with this
fix and were unable to reproduce the missing SDP records.

This is a low risk fix. It does delay some records from being registered
by an additional 1.5 seconds (on top of the 3 second delay we already had),
so if you try and very quickly connect a BT service after turning BT on it
won't work the first time.

Do not merge. (I will use a less hacky fix for MR2/Master)

Change-Id: I305c181c3194e8ce25e3825320cc2e1ef6d3d3cc
Bug: 2180800
DrNo: eastham
Joke: Why can't you play cards in the jungle? Because there's too many cheetas!
2009-10-12 10:26:25 -07:00
Mike Lockwood
dd8846886a Fix race condition in WindowManagerService.disableKeyguard()
TokenWatcher.acquire() synchronizes on mTokens, not this,
so we need to synchronize on mKeyguardDisabled in disableKeyguard()
to synchronize properly with reenableKeyguard().

This should fix b/2180142 (Stuck in enable keyguard when receiving phone call)

Change-Id: Iad66a2748c7fbf2c516fdb8a00988696719ea80c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-11 17:07:55 -04:00
Jeff Hamilton
6dc3f4e553 Now that Eclair has been defined as API revision 5 mark Build.VERSION_CODES.ECLAIR as such.
Change-Id: I45af1fe80f6f93a1db8389600dc780af9cedf22c
2009-10-10 12:50:25 -05:00
Android (Google) Code Review
083a50a394 Merge change I66693ea2 into eclair
* changes:
  fix sync exponential backoff for expedited syncs
2009-10-10 00:10:29 -04:00
Dima Zavin
6261ab5422 Revert "egl: temporarily also include eglTerminate->eglInitialize hack for 8k"
This reverts commit ed5ecdba36648973be3033a045e2ece8bf039e4a.
2009-10-09 18:23:08 -07:00
Dianne Hackborn
aa80b60b59 Fix issue #2179931: Power key to wake up frequently ignored when in dock app
The dock app is forcing the screen to a particular brightness level.  This
causes the window manager to often call into the power manager with the
new brightness.  This causes us to go in to updateLightsLocked() to figure
out and apply the real brightness to use.  When the screen is off the
real brightness always remains 0, but even if it didn't change from the
last one we would start an animation which would when done put the system
to sleep and fight with the user trying to turn the device on.

Now, if the new target brightness is the same as the last one, we leave the
animation as-is -- either running or not as appropriate.

Change-Id: I067d55ea2b39e294c5d5291587a4d8727c0b8083
2009-10-09 17:38:26 -07:00
Dianne Hackborn
ee110be022 Fix issue #2179891: Need to update 5.xml
Copied current.xml to 5.xml.

Change-Id: I5eaa806eef9a9a3135b021d7db179325ff7663fc
2009-10-09 16:41:40 -07:00
Fred Quintana
66693ea208 fix sync exponential backoff for expedited syncs 2009-10-09 16:32:02 -07:00
Android (Google) Code Review
8eb955b934 Merge change I5e482bbc into eclair
* changes:
  Add new RenderScript sample: ImageProcessing.
2009-10-09 19:07:12 -04:00
Romain Guy
d7fa122dfe Add new RenderScript sample: ImageProcessing.
Change-Id: I5e482bbc34911c940a3a74258f8f8549b1939bc4
2009-10-09 16:05:25 -07:00
Eric Fischer
c08efb2712 Import revised translations. DO NOT MERGE
Approver: jerryw
2009-10-09 15:33:15 -07:00
Robert Greenwalt
98e0b146b8 Make PhoneStateListeners not call TelephonyManager
Since the StatusBarPolicy is run in the System Process and shouldn't therefore call into
the Telephony process we decided to make sure all the needed info was passed along with the
original notifications.

bug: 2173053
2009-10-09 00:54:31 -07:00
Grace Kloba
1184313cbe Setting WebCore cache limit depending on the memory class.
Fix http://b/issue?id=2176656
2009-10-08 21:01:49 -07:00
Android (Google) Code Review
6903d5cedc Merge change Iee649a81 into eclair
* changes:
  Add LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads. See bug 2177046.
2009-10-08 23:19:03 -04:00
Dan Egnor
ee649a811b Add LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads.
See bug 2177046.
2009-10-08 19:51:51 -07:00
Android (Google) Code Review
ad60e7fe2c Merge change I9485aec1 into eclair
* changes:
  Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen
2009-10-08 22:04:36 -04:00
Jim Miller
9485aec1df Fix for 2177367: Reduce duration of vibrate in RotaryLockScreen
BUG=2177367
2009-10-08 18:49:53 -07:00
Dianne Hackborn
2c6c5e6e49 Fix issue #2176944: Need API so browser, others can determine memory size of device
Change-Id: I65d91cdb70df91b67fe84297dd6a94d26a785131
2009-10-08 18:43:47 -07:00
Android (Google) Code Review
d10d02f53e Merge change I490e01ba into eclair
* changes:
  Fix issue #2174566: HOT STABILITY: NPE in activity manager
2009-10-08 21:38:39 -04:00
Dianne Hackborn
89becd79da Fix issue #2177262: Improve animations
Slower is better.

Change-Id: Id609f253e43814b4c7689ed9b076ef75f4e345a6
2009-10-08 18:34:57 -07:00
Android (Google) Code Review
9e2562b8f9 Merge change I88c6e267 into eclair
* changes:
  Fix issue #2175693: Add vmallocinfo to dumpstate
2009-10-08 19:52:35 -04:00
Nick Pelly
db7ae10d6b Remove STOPSHIP BT logging.
Do not merge.

Change-Id: I428bc0fc67030f24112f2e9c865824dfaea4897d
DrNo: eastham
Bug: 2089423
Joke: Why was Tigger looking in the toilet? To find Pooh
2009-10-09 01:35:11 +02:00
Nick Pelly
e6ee3be1c2 BT API security audit: fix a couple of permission mistakes.
Make functions that are meant to be BLUETOOTH_ADMIN really
BLUETOOTH_ADMIN.

Add some missing javadoc for permissions.

The only functional change here is the BLUETOOTH->BLUETOOTH_ADMIN
changes. This is super safe because every system app that uses BT
has both permissions.

Change-Id: Iddc61f9fd5d81fe0171358665a0fa52f2fa02871
DrNo: eastham
Joke: How do you catch a rabbit? Hide behind a tree and make carrott noises.
2009-10-09 01:35:10 +02:00
Dianne Hackborn
b80b8d5637 Fix issue #2175693: Add vmallocinfo to dumpstate
Change-Id: I88c6e2679919e56f581fcf79dbe683393dd8ce27
2009-10-08 16:33:30 -07:00
Dianne Hackborn
3612487d61 Fix issue #2174566: HOT STABILITY: NPE in activity manager
- Don't crash if the service's app process doesn't have a thread (this
  can happen if we are currently starting the process and then try to
  start the service again).
- Be more robust about deciding to start a service's process: try each
  time it is started; the startProcess call will take care of ignoring
  it if the process is already started.
- Fix some issues where we would leave dead processes on the low memory
  list.

Change-Id: I490e01ba7b45adc191bab7ace377b6873e284897
2009-10-08 16:22:03 -07:00
Android (Google) Code Review
846322a9ae Merge change Ib96df854 into eclair
* changes:
  add a way to easily catch and log GL errors (compile time flag)
2009-10-08 19:10:42 -04:00
Mathias Agopian
b96df8548e add a way to easily catch and log GL errors (compile time flag) 2009-10-08 15:58:11 -07:00
Eric Fischer
aaa6299bcd am 24c8645a: (-s ours) Import revised translations. DO NOT MERGE
Merge commit '24c8645a995f58885fefcaade0681dd459452deb' into eclair

* commit '24c8645a995f58885fefcaade0681dd459452deb':
  Import revised translations.  DO NOT MERGE
2009-10-08 15:03:24 -07:00
Jean-Baptiste Queru
ea11027401 am ac62c84a: (-s ours) DO NOT MERGE merge from donut-gms
Merge commit 'ac62c84a321e2720ab99e37724aba0b6406f39a6' into eclair

* commit 'ac62c84a321e2720ab99e37724aba0b6406f39a6':
  Import revised translations.  DO NOT MERGE
2009-10-08 15:03:15 -07:00