2073 Commits

Author SHA1 Message Date
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
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
Christopher Tate
f087272d56 Start respecting the auto-restore-at-install setting
Change-Id: I420ff6b4ba72f87bee56f45d8906f086f7a2b114
2010-02-25 15:28:38 -08:00
Robert Greenwalt
7964d1f7ac Merge "Fix no-mobile-data after wifi." 2010-02-25 12:18:26 -08:00
Robert Greenwalt
3542959972 Fix no-mobile-data after wifi.
Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458
2010-02-25 12:04:29 -08:00
Dianne Hackborn
2269d1572e Re-arrange android-common so framework no longer links with it.
This is the framework part, moving classes around so the framework
no longer needs to link to android-common.  Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
2010-02-25 11:39:33 -08:00
Mike Lockwood
ca44df86ac Fix synchronization problem in PowerManagerService.dump()
Fixes a race condition that resulted in an IndexOutOfBoundsException
due to a wakelock being released while dump() was iterating through the
wakelock list.

BUG: 2469910

Change-Id: I10d7a65b9f397934942b290cb047c4ca81214297
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-02-25 14:08:55 -05:00
Tobias Haamel
a712dcec1c Init car mode when phone is booted in a dock.
When the device is booted in a car dock the car mode needs to be set
as well, so that the status bar notification shows up and the system
is initialized the same way as if the phone is placed into a car dock
when it's booted already.
2010-02-25 11:14:21 +01:00
Suchi Amalapurapu
c42e29e0a5 Add new handler mechanism in MountService to make unmount api asynchronous.
MountService updates state on PackageManager and then tries to
kill processes holding file references to media about to be unmounted by
invoking api on ACtivityManager. This is retried upto 4 times to make sure all
processes holding file references are killed before unmounting the media
at specified path.

Also changed PackageManger api to return boolean value to indicate if
MountService is likely to receive broadcasts related to apps on sd.
2010-02-24 20:30:03 -08:00
Robert Greenwalt
406b09bbd1 Merge "Add mobile data on/off switch." 2010-02-24 19:45:32 -08:00
San Mehat
982bb24f5d Merge "MountService: Send UMS_CONNECTED broadcast on boot if UMS connected." 2010-02-24 19:04:48 -08:00
San Mehat
6a965af2d7 MountService: Send UMS_CONNECTED broadcast on boot if UMS connected.
UMS detection is now done wayyyy before the system is booted, so set a flag
to send our intent broadcast once we've booted.

Signed-off-by: San Mehat <san@google.com>
2010-02-24 18:14:18 -08:00
Robert Greenwalt
c03fa50149 Add mobile data on/off switch.
bug:2251458
2010-02-24 18:14:07 -08:00