681 Commits

Author SHA1 Message Date
Mathias Agopian
317a6280cc Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.
this also ripples into the window manager API by making some constant there deprecated as well.
2009-08-13 18:19:32 -07:00
Dianne Hackborn
f21adf6fc1 Always have a wallpaper service running. 2009-08-13 17:14:39 -07:00
Christopher Tate
0749dcd193 Backup participants must now hold the BACKUP_DATA permission
Packages that do not use android.permission.BACKUP_DATA will neither be backed
up nor restored.  That permission is currently signature-only.  In the future if
access to the backup/restore infrastructure is made available to arbitrary 3rd
party applications, the permission checks (and indeed, the permission itself)
can simply be removed.
2009-08-13 15:15:55 -07:00
Android (Google) Code Review
f71db95992 Merge change 21134
* changes:
  Add a more compact representation of usage stats.
2009-08-13 14:04:37 -07:00
Android (Google) Code Review
a9085a59ec Merge change 20853
* changes:
  Add net type to mobile for mobile-required traffic
2009-08-13 14:02:08 -07:00
Christian Sonntag
6639bb65c5 Add a more compact representation of usage stats.
We are replaceing the package name in the activity name with a * iff the activity is in the
same package, otherwise the activity name is pritned out in full.
This small change will remove a lot of bytes (in the order of kilobytes for a real log) from the logged data on the network and downstream processing,
since the package name is repeated in almost all cases.

 An exampe of the new format is here:
 DUMP OF SERVICE usagestats:
 D:4,20090813
 P:com.android.launcher,4,155456
 A:*.Launcher,4,0,0,0,0,0,0,0,0,0,2
 P:com.android.browser,1,6724
 A:*.BrowserActivity,1,0,0,0,0,0,0,0,0,0,0
 A:*.CombinedBookmarkHistoryActivity,1,0,0,0,0,0,0,0,0,0,1
 P:com.google.android.apps.maps,1,2219
 A:com.google.android.maps.MapsActivity,1,0,0,0,0,0,0,0,0,0,0
 P:com.android.contacts,1,0
 A:*.DialtactsActivity,1,0,0,0,0,0,0,0,0,0,1
2009-08-13 12:02:14 -07:00
Dianne Hackborn
766cbfe44b Add new API to compare certs of two UIDs. 2009-08-12 21:40:05 -07:00
Dianne Hackborn
2a2b34434a Fix issue #2045895: Finger IDs are not tracked properly.
This was a problem with not dealing well with how the driver was
reporting data in the old touch protocol.

Also fixed issue with not correctly rotating non-primary touches.
2009-08-12 17:13:55 -07:00
Robert Greenwalt
42acef3733 Add net type to mobile for mobile-required traffic
This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc.
Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
2009-08-12 16:08:25 -07:00
Dianne Hackborn
72c82ab992 Report wallpaper offset to the wallpaper, use this in the image wallpaper.
Wallpapers can now be just the size of the screen, and get told when their
scroll position should change to do the updating on their own.
2009-08-12 14:41:29 -07:00
Dianne Hackborn
e7037b6c9e am fe6e733a: Merge change 20960 into donut
Merge commit 'fe6e733a01b1ab8a6c7b651c65bf7abeb97f9525'

* commit 'fe6e733a01b1ab8a6c7b651c65bf7abeb97f9525':
  Fix issue #2049588: App widget can crash causing system to be unable to boot
2009-08-12 12:36:47 -07:00
Dianne Hackborn
90f77218a2 am b8546001: Merge change 20878 into donut
Merge commit 'b8546001701405a76dad7e6235046e592296fac2'

* commit 'b8546001701405a76dad7e6235046e592296fac2':
  Fix issue #2048263: More debugging information
2009-08-12 12:36:12 -07:00
Android (Google) Code Review
fe6e733a01 Merge change 20960 into donut
* changes:
  Fix issue #2049588: App widget can crash causing system to be unable to boot
2009-08-12 11:29:59 -07:00
Dianne Hackborn
002716d49a Fix issue #2049588: App widget can crash causing system to be unable to boot 2009-08-12 11:13:26 -07:00
Mike Lockwood
07a500f0de BatteryService: Fix problems shutting down when the battery is dead:
Wait until system is booted before attempting to display the shutdown dialog.
Use ShutdownActivity rather than attempting to run ShutdownThread in the battery service.
Fix logic error (check !isPowered() instead of isPowered())

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-12 09:59:32 -04:00
Dianne Hackborn
82e1ee93ee Fix issue #2048263: More debugging information
We now hopefully do better about generating the anr reports, and include
information about the malloc loaded assets in meminfo.
2009-08-11 18:56:41 -07:00
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
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
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