4453 Commits

Author SHA1 Message Date
Costin Manolache
88a211b148 Revert the changes that introduced new exception that wouldn't have occured before, applications don't seem to be able to handle them and we get crashes. 2009-10-29 13:14:47 -07:00
Android (Google) Code Review
b575e4dffe Merge change I4a943184 into eclair
* changes:
  Avoid trying to throw multiple exceptions at once.
2009-10-29 13:02:53 -04:00
Android (Google) Code Review
22dad5928d Merge change I6cae32c7 into eclair
* changes:
  When upgrading packages with shared user ids make sure we are eliminating the package about to be deleted or upgraded when updating permissions associated with the shared user. Include a simple null check when retrieving the permission.
2009-10-29 03:55:49 -04:00
Suchi Amalapurapu
d83006cbe8 When upgrading packages with shared user ids make sure we are eliminating
the package about to be deleted or upgraded when updating permissions associated
with the shared user. Include a simple null check when retrieving the permission.

Fix PackageParser to avoid ArrayIndexOutOfBounds exceptions in several places
2009-10-29 00:46:55 -07:00
Eric Fischer
38a9becfdd Import revised translations. DO NOT MERGE 2009-10-28 21:16:52 -07:00
Jack Palevich
4a94318454 Avoid trying to throw multiple exceptions at once.
The typical usage pattern for the get_char helper function is:

    bool thrown = false;

    n = get_char(env, s, 0, 1000, &thrown);
    n += get_char(env, s, 1, 100, &thrown);
    n += get_char(env, s, 2, 10, &thrown);
    n += get_char(env, s, 3, 1, &thrown);
    if (thrown) return false;

As you can see, get_char is called multiple times before the
thrown flag is checked. If the input text contains multiple
incorrect characters, then we have to guard against throwing
the same exception multiple times. (Because doing so will
cause the Dalvik runtime to abort.)

The fix is simple: modify get_char to check if an exception
has already been thrown before throwing a new exception.
2009-10-28 19:38:05 -07:00
Fred Quintana
31957f1bad - add javadoc for the account manager
- add some checks to the AccountManagerService to keep it from crashing when a null is passed in
- cleaned up the API a bit
2009-10-28 16:29:21 -07:00
Android (Google) Code Review
5e5eb39372 Merge change Id572ffc7 into eclair
* changes:
  don't throw an exception when we can't find a pending sync operation in the database
2009-10-28 18:05:09 -04:00
Fred Quintana
cb41faa285 don't throw an exception when we can't find a pending sync operation in the database 2009-10-28 14:52:33 -07:00
Android (Google) Code Review
d85c4b346f Merge change Idb328ab7 into eclair
* changes:
  Explicitly specify that online-sdk depends on framework-res.
2009-10-27 19:02:47 -04:00
Android (Google) Code Review
2dfaa69801 Merge change I882d2eb8 into eclair
* changes:
  do not merge
2009-10-27 15:50:10 -04:00
Android (Google) Code Review
1f668fff8a Merge change Idb13ed9a into eclair
* changes:
  Add SDK version for MR1.
2009-10-27 15:47:57 -04:00
Amith Yamasani
678cdbe55e Fix build. 2009-10-27 11:45:08 -07:00
Ying Wang
db328ab7d4 Explicitly specify that online-sdk depends on framework-res. 2009-10-27 11:00:30 -07:00
Amith Yamasani
aea1b3b24e Disambiguation between multiple pointers and swipe gestures.
Sometimes quickly touching the screen with two fingers will result
in the firmware thinking one finger moved very quickly. This code
tries to identify the difference between the two based on velocity
of the last N points versus the velocity of the last M points and
figure out if there was mostly acceleration or a sudden deceleration.

It's still not perfect and very dependent on the touch hardware.
2009-10-27 10:27:49 -07:00
Mike Reed
dafc19a140 do not merge
remove the filter when we're scrolling, so we don't degrade the quality

http://b/issue?id=2174463&cookieId=2009300052135424

same change (in spirit) in MR2

https://android-git.corp.google.com/g/#change,30860
2009-10-27 08:30:13 -04:00
Dianne Hackborn
0fa35918af Add SDK version for MR1.
Change-Id: Idb13ed9a35397effbfb72a934a7db5f5a882c79c
2009-10-26 17:40:52 -07:00
Android (Google) Code Review
6158038a09 Merge change I2811f162 into eclair
* changes:
  Add Authentication Type field to the APN settings.
2009-10-26 18:14:15 -04:00
Jaikumar Ganesh
2811f1625e Add Authentication Type field to the APN settings.
Use auth type to setup data connection.
This value defaults to -1 (unset) to maintain compatibility.
When the value is -1, the auth type gets set to 0 (if no user is specified)
or 3.
Bug: 181700
2009-10-26 13:11:55 -07:00
Eric Laurent
a47d153647 do not merge - Fix for issue 2184627 cherry picked from eclair-mr2
Bluetooth A2DP suspend-resume improvements.

This change will reduce the occurence rate of A2DP sink suspend resume failures observed in issues 2184627, 2181005 and possibly 2189628.

More robust suspend/resume logic.
Use only the suspend request to audio hardware to avoid having two concurent suspend resume control paths.
2009-10-26 09:17:10 -07:00
Mike Lockwood
6897e36b89 Add comment warning to not use hardware based autobrightness support.
This is deprecated and will be removed in the next release.

Change-Id: I23c5e711fd8e6768da2f5190d1b6c9fa77de41a6
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-25 11:53:52 -04:00
Android (Google) Code Review
78a50aa1db Merge change If3c30fc9 into eclair
* changes:
  Patching in hidden API to allow app managed preview frame buffers.
2009-10-23 22:08:30 -04:00
Android (Google) Code Review
8f89a1a360 Merge change Ic620a52b into eclair
* changes:
  Add size checks for glBufferData and glBufferSubData
2009-10-23 20:30:33 -04:00
Tom Taylor
246978b8dc Add a method to clear info about a contact
Add a method so the ContactInfoWidget will throw away the cached
info it has on a contact (e.g. picture and uri).

Change-Id: Ia8f376e356c6bcf246bbd72239c5ca2a3b7c9574
2009-10-23 13:33:25 -07:00
Andrew Harp
94927dffce Patching in hidden API to allow app managed preview frame buffers.
Commit-Id: If3c30fc932697afa966cc97b17749e9996de92ee
2009-10-23 01:44:47 -04:00
Dianne Hackborn
7580493b01 Implement feature #2117336: Create event communication APIs for live wallpaper
Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
2009-10-22 20:10:53 -07:00
Fred Quintana
0bf653b531 am f4520f3e: Merge change I9161f53d into eclair-sdk
Merge commit 'f4520f3e03e120ed109a579c1936994b142523c3' into eclair

* commit 'f4520f3e03e120ed109a579c1936994b142523c3':
  update account manager javadoc
2009-10-22 17:53:28 -07:00
Fred Quintana
756b735e93 update account manager javadoc 2009-10-22 16:56:08 -07:00
Mike Lockwood
3d0ea72dd7 Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
Part of a fix for bug b/2198537

Change-Id: I99dc64772fa7644b12432d5549603025196ea3e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-21 23:08:13 -04:00
Android (Google) Code Review
f8e3ac8519 Merge change Ifa8ab30e into eclair
* changes:
  In onKeyUp for DPAD_CENTER, show the IME for text input.
2009-10-21 16:11:23 -04:00
Leon Scroggins
9d1abc43f5 In onKeyUp for DPAD_CENTER, show the IME for text input.
Fixes http://b/issue?id=2201966

Change-Id: Ifa8ab30e205e21e9e69e9a7405a0a6fc86c6c488
2009-10-21 15:35:33 -04:00
Android (Google) Code Review
2cb6b7fb86 Merge change Ic4bf942c into eclair
* changes:
  Import revised translations.  DO NOT MERGE
2009-10-21 15:09:58 -04:00
Jack Palevich
c620a52b69 Add size checks for glBufferData and glBufferSubData
Without the size checks it's possible for calls to glBufferData
and glBufferSubData to read off the end of the Buffer object's
data, which can cause page faults.

Fix end-of-line characters for the "spec" files. (That's why
every line of these files is changed.)

Enhance our code emitter to properly handle bounds checks for
possibly-null pointers.
2009-10-21 11:02:44 -07:00
Eric Fischer
c4bf942cef Import revised translations. DO NOT MERGE
Approver: jerryw
2009-10-21 10:41:17 -07:00
Jack Palevich
d443ba4534 Prevent transparent region from getting out of sync with Surface Flinger
The ViewRoot is responsible for calculating the current view's surface's
transparent region and reporting this to the window server, which in
turn notifies Surface Flinger.

To minimize cross-process traffic, ViewRoot keeps track of the
most recent transparent region that it has reported to the window
server, and only sends updates when the region shape changes.

ViewRoot is effectively shadowing the internal state of the window
server, and usually this works fine, because ViewRoot is usually the
only thing that changes this value.

But when the surface is recreated, the window server resets the
transparent region to empty. So in order to properly update the window
server we need to reset our copy of its state to empty too.

Fixes issue #2133090: GL Gears runs at half speed in some cases
2009-10-21 09:33:34 -07:00
Android (Google) Code Review
cdc8b326dd Merge change I61741f5a into eclair
* changes:
  Fix high density bug 2179543: use 'dip' instead of 'px'
2009-10-20 13:10:42 -04:00
Marco Nelissen
b0905dc788 Fix high density bug 2179543: use 'dip' instead of 'px' 2009-10-20 07:54:00 -07:00
Mike Lockwood
d7786b41b7 Power Manager support for light sensor backlight management.
Change-Id: I470e2d7d12abf0dbfd31d84859b06bfae3cb36a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-19 22:30:34 -04:00
Amith Yamasani
f37447bad3 Proper fix for zero signal strength and no_service. Fixes #2176141
Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
2009-10-19 15:16:26 -07:00
Android (Google) Code Review
f55aa972f9 Merge change I01935be3 into eclair
* changes:
  Remove PowerManager.setAutoBrightness()
2009-10-16 12:29:15 -04:00
Mike Lockwood
dc3494e3d8 Remove PowerManager.setAutoBrightness()
We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.
Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants.

Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-16 07:42:26 -07:00
Cary Clark
39e6773431 do not merge: fix copy/paste using trackball on passion
This fix is alrady in mr2. It does not affect sholes --
this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
2009-10-16 09:27:47 -04:00
Mike Lockwood
37a13208c9 Add separate configuration flag for hardware ALS support.
A new flag config_hardware_automatic_brightness_available indicates
that the device has hardware support for automatic screen brightness management,
while config_automatic_brightness_available now indicates that automatic
brightness mode is available in general.

If config_automatic_brightness_available is true but config_hardware_automatic_brightness_available is false,
then automatic brightness mode support in PowerManager support will be used.

Bug b/2015734 (Ambient light sensor support in power manager)

Change-Id: I6cd888252043dd63df3c25a1d14c21a04a91ad28
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-15 19:58:33 -04:00
Romain Guy
a8a720d8cd Fix possible NPE in the code that restores widgets' state.
Bug #2189714
Reviewed by: ryanpc

Change-Id: I0d74deb6dc8e90e3b0eafd6b3c16b0c557c72873
2009-10-15 15:09:26 -07:00
Nick Pelly
53f33d8477 Revert "Remove STOPSHIP comment."
This reverts commit 3d0726b4d8a30e57852b70f1dcf4d8d20508cd1e

Change-Id: Ie1ce5d09cc0b799ef0799f30eedc95f0ca5d3fad
DrNo: jerrryw
2009-10-14 12:25:29 -07:00
Android (Google) Code Review
a04ca9b489 Merge change I2492bffe into eclair
* changes:
  Remove STOPSHIP comment.
2009-10-14 14:55:44 -04:00
Nick Pelly
3d0726b4d8 Remove STOPSHIP comment.
Change-Id: I2492bffe57bded65fdbef5cf98e22cef3937e537
DrNo: eastham
Bug: 2089423
Joke: Why don't anteaters get sick? Because they're full of anty-bodies!
2009-10-14 11:46:18 -07:00
Dmitri Plotnikov
fe4c8715c0 Making new Contacts APIs visible in Eclair SDK - Part II
Bug: http://b/2186595
Change-Id: Id87533c25cceb0fe3b0845aed10912c937679f45
2009-10-14 00:28:53 -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