619 Commits

Author SHA1 Message Date
Android (Google) Code Review
e4162b2129 Merge change 9011
* changes:
  Allow zero-length lists in EventLog entries.   (I'm verifying that the consumers of EventLog -- logcat, checkin -- are OK with this.) Improve the error handling in RestoreSession.
2009-07-29 13:23:24 -07:00
Dan Egnor
0084da561e Allow zero-length lists in EventLog entries.
(I'm verifying that the consumers of EventLog -- logcat, checkin -- are OK with this.)
Improve the error handling in RestoreSession.
2009-07-29 12:57:16 -07:00
Joe Onorato
a7e4cf9b5c Fix bug 1982892 - batteryservice turns off device even while plugged in
Also, make the battery service do it, not some keyguard thing.
2009-07-28 18:30:15 -07:00
Mike Lockwood
bc706a03a2 PowerManager: Add proximity sensor support.
Add new wakelock flag PROXIMITY_SCREEN_OFF_WAKE_LOCK.
If you create a wakelock with this flag, while the wakelock is acquired,
the screen will turn off automatically when the sensor detects an object close to the screen.
Removing the object will cause the screen to wake up again.

Added PowerManager.getSupportedWakeLockFlags(), which can be used to determine
if proximity screen off wakelocks are supported by the hardware.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-28 13:09:21 -07:00
Android (Google) Code Review
b3c82efb47 am 1dd6936a: Merge change 8728 into donut
Merge commit '1dd6936a862be97efca02e4b7582a9fca1fcc269'

* commit '1dd6936a862be97efca02e4b7582a9fca1fcc269':
  Fix resource code and version attributes
2009-07-28 10:21:45 -07:00
Android (Google) Code Review
1dd6936a86 Merge change 8728 into donut
* changes:
  Fix resource code and version attributes Create a new package setting object for updated system apps rather than moving around the same setting. This updates the resource, code and version correctly. For updating system packages, disable the package first which removes the entry from internal structures, create a new package setting, add it to list of user id's then rest of installation steps, kill the process if needed via ActivityManager then add this setting if everything was successful. This also fixes issues with updating values prematurely.
2009-07-28 10:18:47 -07:00
Suchi Amalapurapu
261e66acd1 Fix resource code and version attributes
Create a new package setting object for updated system apps rather than moving
around the same setting. This updates the resource, code and version correctly.
For updating system packages, disable the package first which removes the entry
from internal structures, create a new package setting, add it to list of user id's
then rest of installation steps, kill the process if needed via ActivityManager
then add this setting if everything was successful. This also fixes issues with
updating values prematurely.

When a new version of system package is available via OTA, just physically remove
entries for pkg. Note that the component and other info will be eventually updated
later on when scanning the package.
Also move certificate verification slightly ahead before scanning packages.

Some null checks

New api's in ActivityManager to kill an application pkg before finishing installation
2009-07-28 10:21:38 -07:00
Dianne Hackborn
88e1babcae am 20583ff9: Fix issue #2015611: layering problem when moving an activity to the foreground.
Merge commit '20583ff9d49257bd4ccc60e7b6337661e34ed887'

* commit '20583ff9d49257bd4ccc60e7b6337661e34ed887':
  Fix issue #2015611: layering problem when moving an activity to the foreground.
2009-07-27 22:14:41 -07:00
Dianne Hackborn
20583ff9d4 Fix issue #2015611: layering problem when moving an activity to the foreground.
"surface of singleTop acitivy is not added at the top, causing the activity is resumed
behind the top activity."
2009-07-27 21:51:05 -07:00
Dan Egnor
bb9001c69a clean up error recovery; log events tracking backup activity 2009-07-27 17:48:50 -07:00
Android (Google) Code Review
5483448216 Merge change 8651
* changes:
  Backup manager should default to not "provisioned" so backups don't start until the setup wizard is done.
2009-07-27 12:55:08 -07:00
Joe Onorato
ab9a2a52c5 Backup manager should default to not "provisioned" so backups don't start until the setup wizard is
done.
2009-07-27 08:56:39 -07:00
Jiafa Liu
3f41673265 frameworks/base: Add PBAP support
- Update according to comments
- Add aidl support in frameworks for Settings to retrieve current
  PBAP transaction status.
- Add status bar support for PBAP
2009-07-26 22:54:35 -07:00
Android (Google) Code Review
a69f055445 am 4ca6659f: Merge change 8565 into donut
Merge commit '4ca6659fe4c8299f886eba7f745bed509be8126b'

* commit '4ca6659fe4c8299f886eba7f745bed509be8126b':
  Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService
2009-07-26 21:46:23 -07:00
Dianne Hackborn
ddca3ee3e8 Add support for power keys, improve behavior of virtual keys.
The platform now knows how to deal with a platform key, which at this
point is "just like end call, but don't end a call."

Also improve the handling of virtual keys, to allow for canceling when
sliding off into the display and providing haptic feedback.

Finally fixes a bug where the raw x and y in motion event were not
always set which caused the status bar to not work.
2009-07-24 17:30:15 -07:00
Christopher Tate
1531dc80e6 Don't leave restore data lying around after the operation 2009-07-24 16:37:43 -07:00
Charles Chen
bbc1934e0e Fixing bug 2003639 - this is a fix to prevent the AccessibilityManagerService
from crashing if it gets an invalid accessibility event.
2009-07-24 16:06:09 -07:00
Mitsuru Oshima
30b06eb8b9 am 589cebe2: * Use the scaled size for surface view instead of native. The surface will be always scaled by surface flinger in compatiblity mode. The original approach confused the app because the surface size and the view size were different. * a few clean up. remo
Merge commit '589cebe2d58591403de4a77077941c0454bc91bc'

* commit '589cebe2d58591403de4a77077941c0454bc91bc':
  * Use the scaled size for surface view instead of native. The surface will be always scaled
2009-07-23 23:58:16 -07:00
Android (Google) Code Review
ba2bdce2ae am ea9f9637: Merge change 8338 into donut
Merge commit 'ea9f9637e459c10024d09b53a803dfc91dd3eeb5'

* commit 'ea9f9637e459c10024d09b53a803dfc91dd3eeb5':
  Have the notification service only have notifications diabled until setup wizard has been run.
2009-07-23 16:25:34 -07:00
Android (Google) Code Review
c8f3614504 Merge change 8413
* changes:
  Need to be able to call the backup manager from the system process.
2009-07-23 15:31:31 -07:00
Android (Google) Code Review
82bc9f5392 Merge change 8412
* changes:
  Revert "Have the notification service only have notifications diabled"
2009-07-23 15:30:05 -07:00
Joe Onorato
5933a49722 Need to be able to call the backup manager from the system process. 2009-07-23 18:29:27 -04:00
Joe Onorato
093d1a5a97 Revert "Have the notification service only have notifications diabled"
This reverts commit eb176588e2d8e8d57f0250d3e90e8166dc7c00a7.
2009-07-23 18:29:27 -04:00
Android (Google) Code Review
155cedb5cb Merge change 8410
* changes:
  Have the notification service only have notifications diabled until setup wizard has been run.
2009-07-23 15:27:12 -07:00
Mitsuru Oshima
589cebe2d5 * Use the scaled size for surface view instead of native. The surface will be always scaled
by surface flinger in compatiblity mode. The original approach confused the app because
 the surface size and the view size were different.
* a few clean up. removed unsed arguments, obsolete conditions from getTranslator()
 (expandable check was a bug)
2009-07-23 13:38:01 -07:00
Android (Google) Code Review
35d7a94c33 am de08cdc0: Merge change 8262 into donut
Merge commit 'de08cdc0a56ab8d48a226dadef02740520c274b7'

* commit 'de08cdc0a56ab8d48a226dadef02740520c274b7':
  Implement the device ConfigurationInfo.reqGlEsVersion field.
2009-07-23 13:29:35 -07:00
Joe Onorato
39f5b6a081 Have the notification service only have notifications diabled until setup wizard has been run. 2009-07-23 12:29:19 -04:00
Joe Onorato
eb176588e2 Have the notification service only have notifications diabled
until setup wizard has been run.
2009-07-23 10:47:24 -04:00
Eric Laurent
a553c25b33 Fix issue 1795088 Improve audio routing code
Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
2009-07-23 06:03:39 -07:00
Jack Palevich
b90d28cf95 Implement the device ConfigurationInfo.reqGlEsVersion field.
This was previously hard-coded to 0. Now set to the value of the
"ro.opengles.version" system property. The default value is
ConfigurationInfo.GL_ES_VERSION_UNDEFINED.
2009-07-22 15:35:24 -07:00
Dianne Hackborn
c00c04d7d8 am 11b822d2: Simplify density compatibility to a boolean.
Merge commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864'

* commit '11b822d2a91ea17c34c0cb1c11e80a9a30d72864':
  Simplify density compatibility to a boolean.
2009-07-22 12:01:19 -07:00
Dianne Hackborn
11b822d2a9 Simplify density compatibility to a boolean.
Instead of a list, we now just have a single boolean indicating whether an
application is density aware, and this set set to true by default as of
Donut.
2009-07-22 11:58:31 -07:00
Android (Google) Code Review
d72aa3b92c am 356d4a14: Merge change 8172 into donut
Merge commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3'

* commit '356d4a14aa96cf52c16f7a4d381044ce28b01af3':
  Add the phase2 field for EAP WiFi configuration.
2009-07-22 11:51:06 -07:00
Chung-yih Wang
b96ea206d9 Add the phase2 field for EAP WiFi configuration. 2009-07-22 15:58:30 +08:00
Android (Google) Code Review
a8339dfec9 am 9fc20b0e: Merge change 8126 into donut
Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf'

* commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf':
  First pass at reworking screen density/size APIs.
2009-07-21 19:03:53 -07:00
Dianne Hackborn
9822d2b273 First stab at poly-finger support.
The MotionEvent API should be fairly solid, but there is still a lot of
work to do in the input device code.  In particular, right now we are
really stupid about watching how fingers change -- we just take whatever
the driver reports as down and dump that directly into the motion event.

The big remaning work is to assign pointer IDs so that applications have
help in determine which fingers go up and down, and adding support for
the official multi-touch driver protocol.
2009-07-21 19:02:12 -07:00
Dianne Hackborn
c4db95c077 First pass at reworking screen density/size APIs.
This changes the names of the directories in aapt, to what you see
in the list of DpiTest resources.  Also adds a new "long" configuration
for wide screens, which the platform sets appropriate, and introduces
a new kind of resizeability for not large but significantly larger
than normal screens which may have compatibility issues.
2009-07-21 18:28:42 -07:00
Android (Google) Code Review
fe923cf2d6 am 2c25fac2: Merge change 8036 into donut
Merge commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1'

* commit '2c25fac23e5daafd62238f4c3dd031e3f4cd76f1':
  * Disable compatibility mode for all cases.
2009-07-21 14:38:32 -07:00
Android (Google) Code Review
71effba5ac am 6fb608ee: Merge change 7854 into donut
Merge commit '6fb608ee67c3ad82baf2253b87b63fff8907992a'

* commit '6fb608ee67c3ad82baf2253b87b63fff8907992a':
  Issue #1884058 (Need to only record frequency and duration for selected Google apps)
2009-07-21 14:38:26 -07:00
Android (Google) Code Review
2c25fac23e Merge change 8036 into donut
* changes:
  * Disable compatibility mode for all cases.
2009-07-21 11:37:27 -07:00
Mitsuru Oshima
69fff4a72d * Disable compatibility mode for all cases. 2009-07-21 11:35:18 -07:00
Android (Google) Code Review
6fb608ee67 Merge change 7854 into donut
* changes:
  Issue #1884058 (Need to only record frequency and duration for selected Google apps)
2009-07-21 11:10:16 -07:00
Android (Google) Code Review
a695d185f1 am ef1a92ab: Merge change 7961 into donut
Merge commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0'

* commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0':
  Bluetooth at command tracking.
2009-07-20 23:33:44 -07:00
Android (Google) Code Review
fce2972c77 am 3b5449e9: Merge change 7862 into donut
Merge commit '3b5449e90247e77c173d7bbdd4d5e49ad856afe1'

* commit '3b5449e90247e77c173d7bbdd4d5e49ad856afe1':
  * Don't clip the display if LAYOUT_NO_LIMITS is specified (as with PhoneWindowmanager does)
2009-07-20 23:33:27 -07:00
Android (Google) Code Review
ef1a92abe1 Merge change 7961 into donut
* changes:
  Bluetooth at command tracking.
2009-07-20 17:42:21 -07:00
Android (Google) Code Review
73c6afc91a Merge change 7945
* changes:
  Clean up when an attempted restore throws
2009-07-20 14:51:59 -07:00
Christopher Tate
9673304964 Clean up when an attempted restore throws
When a restore agent throws an exception back into the framework, assume that it
may have left the app's data in an inconsistent state and clear the data for
that app (again -- it was cleared just prior to the attempted restore, too).
2009-07-20 14:49:13 -07:00
Mitsuru Oshima
d2967e2616 * Don't clip the display if LAYOUT_NO_LIMITS is specified (as with PhoneWindowmanager does)
* FullScreen mode was not hiding status bar for app in compatibility mode
      * fixed fillsScreenLw to take compatibility window into account
    * Fixed the logic in needsBackgroundFiller to be consistent with other places.
    * Fix NPE in WindowManagerService#applyAnimationLocked  LayoutParam can be null.
2009-07-20 14:01:43 -07:00
Amith Yamasani
3f7e35c2c7 Bluetooth at command tracking. 2009-07-20 12:38:55 -07:00
Mitsuru Oshima
a065b01904 am 841f13c8: * Reverted the change in PackageParser that I checked by accident * More surface view fix. - correct event translation on surface view. - use compatible window * removed FLAG_NO_COMPATIBILITY_SCALE. It was my misunderstanding of how SurfaceView works,
Merge commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff'

* commit '841f13c8e9ff3f7695b6c18a8abcec3c947983ff':
  * Reverted the change in PackageParser that I checked by accident
2009-07-19 21:14:56 -07:00