776 Commits

Author SHA1 Message Date
Android (Google) Code Review
df1d0ff4ba Merge change 20858
* changes:
  Don't let bmgr leave a restore session hanging on error
2009-08-11 17:28:49 -07:00
Christopher Tate
0e0b4ae5bc Don't let bmgr leave a restore session hanging on error
Specifically, don't wait for the RestoreObserver to be informed that the restore
has completed unless performRestore() ran.  We were winding up in a case where
bmgr was hanging forever waiting on a nonexistent restore process instead of
calling endRestoreSession().

Also improve the documentation, explicitly calling out the need to call
endRestoreSession() even if previous operations on the session were
unsuccessful.
2009-08-11 17:25:12 -07:00
Dianne Hackborn
c8a0a75e1c Implement support for scrolling a wallpaper.
This currently only works for a wallpaper that is larger than the
screen.  Set the scroll position with the new wallpaper API.  Right
now only does jump scrolls.
2009-08-11 10:03:16 -04:00
Christopher Tate
f2c321aeff Print restore tokens in hex 2009-08-10 15:43:36 -07:00
Dianne Hackborn
759a39e8d2 Live wallpapers become a little more real.
This adds a new theme for having a wallpaper, and fixes up the window manager
to do the right thing when transitioning between a windows with and without
wallpapers (between two windows with wallpapers is not yet addressed).

The wallpaper API now has callbacks to tell you when to start/stop animating.

Also fiddle the image wallpaper to be a little more interesting.
2009-08-09 17:20:27 -07:00
Dianne Hackborn
4c62fc0e1e Very primitive wallpapers in a surface.
This is all of the basic pieces:

- The WallpaperService now creates a surface with the window manager for its
  contents.
- There is a simple service that displays a bitmap.
- The wallpaper manager takes care of starting and stopping the service.
- The window manager knows about wallpaper windows and how to layer them with
  the windows that want to be shown on top of wallpaper.

Lots and lots of issues remain, but at this point you can actually write a
wallpaper service, select it in the UI, and see it behind an activity.
2009-08-08 22:13:46 -07:00
Amith Yamasani
2e6bca6901 Temporarily rollback a change that's causing SetupWizard failures during restore. #2042337
Don't kill the process of the package that's being restored. This is causing a chain
reaction of killing a provider needed by the setup process.
2009-08-07 20:28:33 -07:00
Android (Google) Code Review
509ca0792b Merge change 20331
* changes:
  KeyInputQueue: get the name of the virtual-keys file from the input-device name
2009-08-06 15:10:57 -07:00
Android (Google) Code Review
4d426b9447 Merge change 20333
* changes:
  Clear app data via the Activity Manager, not Package Manager
2009-08-06 15:03:00 -07:00
Christopher Tate
9dfdac5b08 Clear app data via the Activity Manager, not Package Manager
This is because doing it through the Activity Manager also makes sure that the
app has been shut down first, which is quite a desirable invariant for restore
handling.
2009-08-06 14:57:53 -07:00
Iliyan Malchev
75b2aed276 KeyInputQueue: get the name of the virtual-keys file from the input-device name
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-06 14:52:13 -07:00
Android (Google) Code Review
4cba59cb1f am 40c10bf4: Merge change 20304 into donut
Merge commit '40c10bf4dfbaf2a48b3fe6d2fcc58843cefc01bc'

* commit '40c10bf4dfbaf2a48b3fe6d2fcc58843cefc01bc':
  More work on issue #2030135: Device sluggish
2009-08-06 13:53:31 -07:00
Android (Google) Code Review
40c10bf4df Merge change 20304 into donut
* changes:
  More work on issue #2030135: Device sluggish
2009-08-06 13:51:04 -07:00
Dianne Hackborn
151ceb9691 More work on issue #2030135: Device sluggish
Also include the page faults in the cpu info, to help determine if the system is
paging at the time of an ANR.
2009-08-06 12:40:56 -07:00
Android (Google) Code Review
9488437b4f Merge change 20240
* changes:
  First bit of wallpaper work.
2009-08-05 21:39:14 -07:00
Dianne Hackborn
8cc6a5026a First bit of wallpaper work.
This is mostly refactoring, adding a new WallpaperManager class that takes care
of the old wallpaper APIs on Context, so we don't need to pollute Context with
various new wallpaper APIs as they are needed.  Also adds the first little
definition of a wallpaper service, which is not yet used or useful.
2009-08-05 21:29:42 -07:00
Android (Google) Code Review
a65b989ce3 Merge change 20218
* changes:
  Correct the backup manager's identity around wakelock use
2009-08-05 18:41:38 -07:00
Android (Google) Code Review
7b38f73a4b am ae18ca5c: Merge change 20140 into donut
Merge commit 'ae18ca5ceb7ebe376288c8c7653d2c3875f1d18e'

* commit 'ae18ca5ceb7ebe376288c8c7653d2c3875f1d18e':
  Work on issue #2030135: Device sluggish
2009-08-05 18:39:48 -07:00
Android (Google) Code Review
ae18ca5ceb Merge change 20140 into donut
* changes:
  Work on issue #2030135: Device sluggish
2009-08-05 18:34:55 -07:00
Christopher Tate
aa93b0418f Correct the backup manager's identity around wakelock use 2009-08-05 18:21:40 -07:00
Dianne Hackborn
de42bb61ad Work on issue #2030135: Device sluggish
This adds some new debugging code to make it easier to see why a process is at
a certain oom_adj level -- for example telling you that a certain other process
has a binding to a certain one of its services.  This has helped a lot in
identifying cases where processes are holding references to other processes that
they don't need and thus not allowing the system to get memory it needs.

Also fix a few problems with leaking entries on the service restarting and
service stopping lists.
2009-08-05 15:57:16 -07:00
Android (Google) Code Review
b13f32c0a0 am 8b2cdcd1: Merge change 20037 into donut
Merge commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050'

* commit '8b2cdcd184acfebfb245b15a71f5f1c32e53b050':
  fix issue with gids not being added for packages with shared user id
2009-08-05 15:45:34 -07:00
Android (Google) Code Review
8b2cdcd184 Merge change 20037 into donut
* changes:
  fix issue with gids not being added for packages with shared user id
2009-08-05 15:42:54 -07:00
Suchi Amalapurapu
2ed287b6ba fix issue with gids not being added for packages with shared user id
Squashed commit of the following:

commit 2bc4c29dab22d8a541dfca0a20320b307ba64cfb
Author: Suchi Amalapurapu <asuchitra@google.com>
Date:   Tue Aug 4 16:24:55 2009 -0700

    fix issue with gids not being added for packages with shared user id
2009-08-05 14:59:07 -07:00
Android (Google) Code Review
b1d39aae13 Merge change 9649
* changes:
  Finish implementation of multiple pointer support for MotionEvent.
2009-08-05 12:36:11 -07:00
Android (Google) Code Review
a1bd466d5c am 89888b2d: Merge change 20038 into donut
Merge commit '89888b2d9dc2d1994a8236ffbce5aaefd6782bf3'

* commit '89888b2d9dc2d1994a8236ffbce5aaefd6782bf3':
  Remove debug code which reads the max_events_per_sec property on every touch event
2009-08-05 12:35:18 -07:00
Michael Chan
9f028e6d2b Remove debug code which reads the max_events_per_sec property on every touch event 2009-08-05 11:20:00 -07:00
Zheng BaoZhong
8d1668da94 Wifi: Fix synchronization bug in multicast lock.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-05 08:57:49 -04:00
Dianne Hackborn
0dd7cb4b4e Finish implementation of multiple pointer support for MotionEvent.
The major things going on here:

- The MotionEvent API is now extended to included "pointer ID" information, for
  applications to keep track of individual fingers as they move up and down.
  PointerLocation has been updated to take advantage of this.

- The input system now has logic to generate MotionEvents with the new ID
  information, synthesizing an identifier as new points are down and trying to
  keep pointer ids consistent across events by looking at the distance between
  the last and next set of pointers.

- We now support the new multitouch driver protocol, and will use that instead
  of the old one if it is available.  We do NOT use any finger id information
  coming from the driver, but always synthesize pointer ids in user space.
  (This is simply because we don't yet have a driver reporting this information
  from which to base an implementation on.)

- Increase maximum number of fingers to 10.  This code has only been used
  with a driver that reports up to 2, so no idea how more will actually work.

- Oh and the input system can now detect and report physical DPAD devices.
2009-08-04 20:53:52 -07:00
Jean-Baptiste Queru
f59af9a387 merge from open-source master 2009-08-04 16:20:52 -07:00
Android (Google) Code Review
81bea0f943 Merge change 20005
* changes:
  Use USB notification instead of battery notification for USB debugging warning.
2009-08-04 14:07:52 -07:00
Mike Lockwood
ea8b7d568a Use USB notification instead of battery notification for USB debugging warning.
Fixes a problem with false positives that occurred when connecting an AC charger slowly.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-04 17:03:15 -04:00
Christopher Tate
dfec20b10b Bootstrap the ever-backed-up bookkeeping properly 2009-08-04 10:45:37 -07:00
Kenny
19b8d8acc2 fix method table wrong in com_android_server_HardwareService.cpp 2009-08-05 00:30:58 +08:00
Android (Google) Code Review
637854c9b5 Merge change 9512
* changes:
  Display a helpful label for PROXIMITY_SCREEN_OFF_WAKE_LOCKs in the output of "dumpsys power".
2009-08-03 12:38:35 -07:00
David Brown
251faa6250 Display a helpful label for PROXIMITY_SCREEN_OFF_WAKE_LOCKs in the output
of "dumpsys power".
2009-08-02 22:04:36 -07:00
Mike Lockwood
69eb0bfcce Close the "Please connect charger" alert after a charger is connected.
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-01 23:02:28 -04:00
Jean-Baptiste Queru
5c1207be90 donut snapshot 2009-07-31 17:38:20 -07:00
Android (Google) Code Review
cb798bcf13 am 73139aea: Merge change 9075 into donut
Merge commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1'

* commit '73139aead7203c22f3a4abb5e9fd8abd5ef249b1':
  Change the resource path for fwd locked apps when scanning the fwd locked install
2009-07-30 16:05:33 -07:00
Mike Lockwood
bad80e0dcc Add Activity Intent.ACTION_REQUEST_SHUTDOWN for requesting a system shutdown.
The Intent.EXTRA_KEY_CONFIRM extra can be set to require user confirmation before shutting down.
The ACTION_REQUEST_SHUTDOWN Intent is protected by android.permission.SHUTDOWN.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-30 10:16:28 -07:00
Android (Google) Code Review
0c05edf0c5 am 9c71716e: Merge change 9063 into donut
Merge commit '9c71716e3de9b6a7e1830cae13da35ebdeeaaa80'

* commit '9c71716e3de9b6a7e1830cae13da35ebdeeaaa80':
  Fixing bug #2023024 - there is an out of bounds exception that
2009-07-30 09:57:23 -07:00
Android (Google) Code Review
ba272be725 Merge change 9097
* changes:
  Wifi: Add support for enabling Wifi while in airplane mode.
2009-07-30 08:35:03 -07:00
Mike Lockwood
bd5ddf01e4 Wifi: Add support for enabling Wifi while in airplane mode.
If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS
contains RADIO_WIFI, then the user will be allowed to enable Wifi
while in airplane mode.
Turning on airplane mode will still disable Wifi, but the user will
be free to reenable it in the Settings app.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-29 21:37:14 -07:00
Android (Google) Code Review
73139aead7 Merge change 9075 into donut
* changes:
  Change the resource path for fwd locked apps when scanning the fwd locked install directory
2009-07-29 21:14:34 -07:00
Yong Zhang
96f2747dd6 Fix wrong Singal Strength interpretation.
The issue this change fixes is that phone status bar shows full
signal strength bar even when phone is in bad signal area. The
root cause is that the signal strenth  is incorrectly interpreted.
2009-07-29 20:39:52 -07:00
Suchi Amalapurapu
f2c1072a3b Change the resource path for fwd locked apps when scanning the fwd locked install
directory
2009-07-29 18:29:19 -07:00
Charles Chen
85b598beda Fixing bug #2023024 - there is an out of bounds exception that
can happen if services are going away as the AccessibilityManagerService
is trying to dispatch notifications to these services. Catching this
exception and bailing because having this exception means that there
are no more services around that need to get this notification.
2009-07-29 17:23:50 -07:00
Android (Google) Code Review
cda5ad5b70 am 9b91d78a: Merge change 8911 into donut
Merge commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8'

* commit '9b91d78a21f6e66f571169f2c6f2f94e638511e8':
  Fix issue #1999179: search -> click result -> press home = search dialog is shown then hidden
2009-07-29 16:45:14 -07:00
Joe Onorato
2d9c9e3f67 Less log spew. 2009-07-29 16:43:06 -07:00
Joe Onorato
e712ee3fe1 Take ctate's suggestions from 9008. 2009-07-29 16:23:58 -07:00