2134 Commits

Author SHA1 Message Date
Mike Lockwood
ab2628c23d Merge "Remove the ProximityAlerts update Receiver when the last ProximityAlert expires. Fixes issue 6900." 2010-03-04 18:32:37 -08:00
Robert Greenwalt
e7085e909d Update framework tethering UI
Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
2010-03-04 18:20:58 -08:00
Suchi Amalapurapu
d32c8020dd Fix persisting flags for apps with data only
Force gc's before deleting containers.:
2010-03-04 18:16:17 -08:00
Sean Foy
8fff645147 Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.
Fixes issue 6900.

Change-Id: Ifcd3fa9c34cfca02ed5e7a94aded33984ac81c60
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-04 21:05:51 -05:00
Dan Egnor
50490adfdc Merge "Improve watchdog diagnostics." 2010-03-04 17:37:16 -08:00
Dan Egnor
9bdc94b7a4 Improve watchdog diagnostics.
Capture stack traces from the system process using the same
mechanism as ANRs (which will initialize traces.txt, etc).
Also record the watchdog reset in the dropbox for uploading.

Bug: 2475557
2010-03-04 17:31:27 -08:00
Irfan Sheriff
5321aef4a2 Wifi AP framework changes first pass
Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
2010-03-04 16:07:14 -08:00
Dianne Hackborn
20cb56e26e Fix some bugs.
Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
2010-03-04 11:52:14 -08:00
Adam Powell
c11f9d339e Merge "Fix epsilon calculation for jumpy touchscreen filtering" 2010-03-04 10:22:44 -08:00
Bernd Holzhey
4a3c3b23d0 Fixing automatic switching of night mode if network location is not enabled.
The current implementation does not take care of location changes in the case
the network location is not enabled. The fix will use the passive location provider
to receive any location updates (gps and network) and using the network location
provider to trigger the passive provider.

Change-Id: I851bb1ff90e9103712a0e741528a6dfa5d4353c8
2010-03-04 09:15:37 -08:00
Mike Lockwood
b42ab0f41c Delay setting initial screen brightness until after the sensors are initialized.
Some devices will not activate the light sensor properly on boot
unless we do this.

Change-Id: Ia27b6fc2d515c31eb8597e1d52127d70e2643bd7
BUG: 2269307

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-04 08:02:44 -05:00
Adam Powell
6651a1321c Fix epsilon calculation for jumpy touchscreen filtering 2010-03-03 20:43:16 -08:00
Adam Powell
37f700a83c Merge "InputDevice filtering for jumpy screens. Updated ScaleGestureDetector for framework deprecations." 2010-03-03 17:22:15 -08:00
Adam Powell
f5bcc6addd InputDevice filtering for jumpy screens.
Updated ScaleGestureDetector for framework deprecations.
2010-03-03 17:12:55 -08:00
Robert Greenwalt
351434bd17 Merge "Add error reporting for Tethering." 2010-03-03 16:35:23 -08:00
Dianne Hackborn
c1552397be Allow multiple original-package tags.
Also fix some issues with moving files from update commands.
2010-03-03 16:26:26 -08:00
Robert Greenwalt
5a73506cdd Add error reporting for Tethering.
Also make the usb interface configuration more robust so retries are possible.

Makes all Tethering errors recoverable - no harm letting them try again anyway.  Worst case
is they need to reboot.
2010-03-03 15:14:29 -08:00
Suchi Amalapurapu
9b10ef5fe8 Rework the way PackageManager binds to default container service.
Clean up stale containers when enabling/disabling packages on sdcard.
Check the path of packages which are being enabled.
Make sure gc's are done prior to destroying containers when moving applicati
as well as enabling/disabling packages for sdcard mount status changes.

Some miscellaneous issues
   Remove hack to avoid renaming containers.
   Fix test with forward locked apps
   Remove adding container id to asec list when renaming
   Some cosmetic changes to DefaultContainerService
2010-03-03 14:06:10 -08:00
Mike Lockwood
5f8a300a12 Merge "Fix off by one error in NetworkManagementService.isUsbRNDISStarted()" 2010-03-03 12:15:35 -08:00
Mike Lockwood
4ac163f3cb Merge "MountService: Send ACTION_MEDIA_UNSHARED Intent a volume is no longer shared via UMS." 2010-03-03 12:14:54 -08:00
Mike Lockwood
51cb9d5d55 Fix off by one error in NetworkManagementService.isUsbRNDISStarted()
Change-Id: I74eea36464696d63ad072661704b410bfe40c1c8
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-03 15:13:58 -05:00
Tadashi G. Takaoka
d9894bc3b3 Fixed NPE by guarding the reference of variable
Bug: 2395174
2010-03-03 20:47:47 +09:00
Mike Lockwood
bf2dd44a6f MountService: Send ACTION_MEDIA_UNSHARED Intent a volume is no longer shared via UMS.
Change-Id: I21c887ae76eccabcc5d8449aa0a38e98758e8958
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-03 06:16:52 -05:00
Dianne Hackborn
97106ab5af Fix issue #2325621 Runtime restart after launching Android keyboard setting . 2010-03-03 00:08:31 -08:00
Mike Lockwood
b5ccb59e06 Merge "DockObserver: Watch for exceptions in LocationManger.isProviderEnabled()." 2010-03-02 18:06:30 -08:00
Mike Lockwood
faa7e8363e DockObserver: Watch for exceptions in LocationManger.isProviderEnabled().
Change-Id: Ieb9f6b0c20a6ce2223cb4b4956580b8543094c2f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-02 20:52:46 -05:00
Dianne Hackborn
a2e92266b3 Maybe fix issue #2482201: Paired bluetooth device looks like a qwerty keyboard
We now only consider a device to be a default keyboard if its name
has "-keypad".  A hack, but whatever.

Also add some debug logging for the input state to help identify such
issues in the future.
2010-03-02 17:37:45 -08:00
Dianne Hackborn
b601ce14f9 Fix issue #2468687: back and home keys don't work on InCallScreen
Make sure we update the focus after hiding a window via the
policy visibility.
2010-03-02 11:43:16 -08:00
Mike Lockwood
3b9ef08bbb Don't eat IllegalArgumentExceptions in LocationManagerService.
The exeptions should be returned to the Binder client instead.

Change-Id: I8ab36880622bf8b4fdf28407dec50652c48b6712
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-02 10:33:55 -05:00
Mike Lockwood
debecf2e40 Merge "Don't poke user activity when unplugging unless screen is already on." 2010-03-02 04:29:04 -08:00
Mathias Agopian
5d26c1e38d Added a name to Surface created by SurfaceFlinger
Updated the window manager to use this new facility.
Surfaces name are now printed by "dumpsys".
2010-03-01 18:34:50 -08:00
Mathias Agopian
69f22feb85 fix [2476230] sensor battery stats could get out of sync if an error occurs
Fixed a few problems with the SensorService:
- a race condition when talking to the BatteryStatService
- only report changes to BatteryStatService when there are no errors
(ie: when a change actually happens)
- tell the BatteryStatService when a sensor is deactivated because its
client died
- rewrite enableSensor() so it's readable
- implement dump() so dumpsys will display some infos about active sensors
- recompute the delay properly when sensors are added/removed
2010-03-01 18:31:16 -08:00
Mike Lockwood
84a8934673 Don't poke user activity when unplugging unless screen is already on.
Change-Id: I5a5f233541e13b3a916ad0d8b3bf8d6fb49ab7fd
BUG: 1317687

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-01 21:28:58 -05:00
Joe Onorato
5d3bea6229 fix the build 2010-03-01 13:44:29 -08:00
Joe Onorato
8a9b22056b Switch the services library to using the new Slog 2010-03-01 13:06:50 -08:00
Dianne Hackborn
28a8c2bc14 resolved conflicts for merge of 4dcd2ee8 to master 2010-03-01 11:30:02 -08:00
The Android Open Source Project
4dcd2ee8ca merge from open-source master 2010-03-01 09:30:21 -08:00
Magnus Edlund
7bb2581e6f Fix problem with restarting an application process that recently has died.
There exists a race condition when starting a process that recently has died.
If the ActivityManager receives the death notification for the died process
after the new process has been started but before an application thread has
been attached to the new process will the newly created process be removed
during the cleanup of the died process. If this happens when sending a broadcast
could it result in an ANR.

This is solved by doing the clean up before starting a new process that uses
the same process record.
2010-03-01 09:12:07 -08:00
Mike Lockwood
a33097d6d1 Merge "Fix synchronization problem in PowerManagerService.dump()" 2010-02-27 06:16:54 -08:00
Dianne Hackborn
87bba1ee14 Move DeviceAdmin APIs to android.app.admin.
Also add ability for admins to hide themselves when not in use,
a facility for admins to not allow other admins to reset
their password, and debug dumping.
2010-02-26 23:32:48 -08:00
Robert Greenwalt
c9d5fb7c95 Add build options for tethering.
Dun-required bool and list of allowed upstream ifaces.
2010-02-26 17:48:09 -08:00
Dianne Hackborn
8f7f35e0cc Add new -W option to Am to wait for the start to complete. 2010-02-26 16:34:33 -08:00
Mike Lockwood
d84aca7d3c Merge "Tethering: Use battery changed broadcast instead of UMS broadcast to determine when USB is connected and disconnected." 2010-02-26 15:19:10 -08:00
Mike Lockwood
1cb3cb1a94 Tethering: Use battery changed broadcast instead of UMS broadcast to determine
when USB is connected and disconnected.

This is needed because the UMS broadcasts will not be sent when UMSis disabled.

Change-Id: I4488fee2c19ac9c901596d1430ea371df97e4325
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-26 18:00:58 -05:00
Suchi Amalapurapu
1f9e1b4c37 Remove public variables in PackageManager
Dont invoke getInstallLocation for forward locked apps.
If INSTALL_ON_SDCARD is selected as default, forward locked
apps are not being installed because of conflicting flags.
2010-02-26 14:32:24 -08:00
Chris Tate
f8219914f2 Merge "Add single-package restore to Bmgr feature set" 2010-02-26 13:06:42 -08:00
Suchi Amalapurapu
0eec21d97d Add dialog to display storage users when enabling/disabling ums
Some error dialogs and related strings
MountService changes to follow unmount path when enabling ums.

Please note that MountService api setUmsEnabled does not return
error codes for now. This is a known limitation.
2010-02-26 12:48:21 -08:00
Christopher Tate
7d411a3b94 Add single-package restore to Bmgr feature set
Also sanity-check the package name on the Backup Manager side, failing gracefully
if the given package is not a backup/restore participant.

Bug: 2293977

Change-Id: I3575046ffcaa3cf45c1c602824baeadd64082f70
2010-02-26 12:45:22 -08:00
Christopher Tate
5035fdab3d Default the auto-restore setting to "enabled."
Change-Id: I7d8710466214a1b09aabdd71e77b9b34d3d62365
2010-02-25 18:01:14 -08:00
Christopher Tate
ae06ed9738 Fix the build
Change-Id: I41616afc75a3366ea7e9e79ac7ea4c46d1863d83
2010-02-25 17:13:28 -08:00