2131 Commits

Author SHA1 Message Date
Romain Guy
8abb26ee6c Merge "Preserve widgets on upgrade. Bug #2464545" 2010-03-11 18:14:23 -08:00
Romain Guy
d2671e1fcf Preserve widgets on upgrade.
Bug #2464545

Change-Id: I802878af49dc4d98210fb8049df0bbdc49268d99
2010-03-11 18:06:42 -08:00
Robert Greenwalt
ce8efead60 Merge "Stop creating threads for tethering." 2010-03-11 17:21:12 -08:00
Dianne Hackborn
4ea833d9a2 Merge "Need to keep new package's cert when using original-package." 2010-03-11 17:12:48 -08:00
Dianne Hackborn
4b45041006 Need to keep new package's cert when using original-package.
Fixes bug #2504353: Lost all widgets and shortcuts after upgrading form FRE68 to FRE69

Change-Id: I62bab66bbd90bf0956d1716bae1b6073d01e2d8a
2010-03-11 16:20:08 -08:00
Romain Guy
05e552a6ef Merge "Support old/new package names for widgets." 2010-03-11 15:41:22 -08:00
Robert Greenwalt
dfadaeac08 Stop creating threads for tethering.
Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
2010-03-11 15:39:30 -08:00
Romain Guy
ff3e61c6d5 Support old/new package names for widgets.
Change-Id: I134c4e694e66aaea47ad7da83d37b6621f4a527a
2010-03-11 15:30:02 -08:00
Dianne Hackborn
26b1ef9583 Merge "Fix issue #2461567: Home screen redraw messed up" 2010-03-11 15:13:15 -08:00
Dianne Hackborn
ac3587d7ce Fix issue #2461567: Home screen redraw messed up
Make sure that we have a window redraw itself after resizing its
surface.

Also includes a little optimization to avoid having an extra thread
for the ImageWallpaper.

Change-Id: I88d1eb66e3116077f48e6f9086a5b6459505ef69
2010-03-11 14:52:34 -08:00
Dan Egnor
c95142d4a0 Move boot log file writing into a background thread to avoid ANR.
Bug: 2507228
Change-Id: I35695f89f1d62b907f04511e3e6b71722008949b
2010-03-11 13:16:04 -08:00
San Mehat
6fc4fe98ab Merge "MountService: If USB cable is unplugged while UMS is active, clean up and remount" 2010-03-11 12:23:50 -08:00
San Mehat
2fe718a87b MountService: If USB cable is unplugged while UMS is active, clean up and remount
Change-Id: I9c20e7bfc215549cd8a6e14625e5d005bb53f8fa
Signed-off-by: San Mehat <san@google.com>
2010-03-11 12:01:49 -08:00
Daniel Sandler
e96ffb18c1 Turn off pulsing jogball while on a call.
Bug: 2336573
Change-Id: If0f0151cbead4eb8acf9e1ce2f6dbca088814694
2010-03-11 13:38:06 -05:00
Dianne Hackborn
409578fcb1 Don't remove alarms for packages that are being updated.
Change-Id: I296e6587aa1bb391e748ff4bb5649dcfa6ebbc24
2010-03-10 23:23:11 -08:00
Dianne Hackborn
2ee89ea288 Applications should -not- be able to set preferred activities.
I can't believe I let this slip through.  And in the SDK no less. :(

The APIs for setting preferred activities will now throw a security
exception when used.  This may break some apps, we'll see how it
goes.  If it is too bad we can just make these log and not throw
anything, but I would much prefer they throw an exception.

Change-Id: I3aed434750eef8b202aa9d5bd774a0121be521c6
2010-03-10 21:26:23 -08:00
Robert Greenwalt
94d4b034ad Merge "Disable USB Tethering when UMS is active" 2010-03-10 17:24:46 -08:00
Dan Egnor
ff34fc2b45 Merge "Fix rare NPE in DropBoxManagerService" 2010-03-10 16:53:15 -08:00
Robert Greenwalt
b9e1ed2b80 Merge "Make HiPri work when already connected." 2010-03-10 16:52:27 -08:00
Robert Greenwalt
030f5e18df Disable USB Tethering when UMS is active
Make the tethering module aware of UMS.

bug:2469818
Change-Id: I29995812db41bf01a17c303f31fd1707a8d55328
2010-03-10 16:51:35 -08:00
Dianne Hackborn
c3243e242d Merge "Further improvements to window management!" 2010-03-10 16:51:13 -08:00
Dan Egnor
f283e36210 Fix rare NPE in DropBoxManagerService
Change-Id: I2e9713802c59feb539d5d4c1ab1dfa21ec88d9f6
2010-03-10 16:49:55 -08:00
Dianne Hackborn
b8b11a0b1d Further improvements to window management!
Fix issue #2493497: Stuck in the Emergency dialer - Home/Back keys doesn't work
This was another case of not updating the window focus when needed, this time
when the lock screen was hidden.

Also re-arrange the layout/animate flow to address issues where you would see
a flicker of whatever was behind the lock screen when showing a new activity that
hides the lock screen.  This was because we were deciding to hide the lock screen
during the layout phase, which meant we had to do it without considering whether
it had drawn.  So we could hide the lock screen before the window is shown for the
first time after being drawn.  Now we can do this in the policy during animate, so
we can wait until the window is drawn and actually being shown.

The flow in perform layout is thus significantly changed, where the layout and
animate loops are both under the same repeating loop.  The actual flow from this
should be the same, but it now allows the policy to request a new layout after
the animation loop is done.  This actually cleans up a number of things in this
code as the complexity has increased.

Finally this includes a change to the ui mode manager when switching modes, to do
the resource configuration switch at a different time.  This makes transitions
between modes much cleaner (though not yet perfect).

Change-Id: I5d9e75c1e79df1106108dd522f8ffed6058ef82b
2010-03-10 16:47:57 -08:00
Irfan Sheriff
0f34406009 Clean up native access from framework
Driver commands should be issued when driver has started.
Supplicant commands should be issued when Wi-Fi is enabled
Bug: 2339709
Bug: 2371609
Change-Id: I9ba6ddfa0cf4c4b8ca049b0eb7eaaa8edb42bad1
2010-03-10 16:42:23 -08:00
Robert Greenwalt
78a640af95 Make HiPri work when already connected.
A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows).  Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.

Manifested itself on HiPri connections when we were already on 3g.

See change 42422 on master platform/frameworks/base for the change this is completing.

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
2010-03-10 16:19:18 -08:00
Suchi Amalapurapu
6069beb2df Rename ApplicationInfo.FLAG_ON_SDCARD to ApplicationInfo.FLAG_EXTERNAL_STORAGE
Change-Id: Iadef9f9bb2851c38b6d79be1bafbf932abce4210

Change-Id: I2e412bace3d8005db5057a3497bd836d0038b90c
2010-03-10 09:46:49 -08:00
Irfan Sheriff
a8fbe1fb74 Re-organize access to native interface through WifiStateTracker
Bug: 2339709
Change-Id: Ibb2eeb09b83dc24897116ea15a9016f81a08d442
2010-03-10 08:28:08 -08:00
Robert Greenwalt
aa3780b6f7 Merge "Fix NO_CONNECTIVITY flag in some cases." 2010-03-09 15:42:34 -08:00
Mike Lockwood
4acdcb7217 Merge "Don't let hidden keyguard interfere with button and screen brightness overrides" 2010-03-09 14:57:42 -08:00
Robert Greenwalt
f0fa39ed74 Fix NO_CONNECTIVITY flag in some cases.
Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
2010-03-09 14:55:08 -08:00
Mike Lockwood
17bc415ded Merge "Add new shutdown observer for MountService. Use new observer before rebooting and shutting down. Add some unit tests for unmount and shutdown code paths Fix registering/unregistering part in MountService Use ShutdownThread in PowerManager.reboot() Add reboot support to ShutdownThread. Remove MountService code from PowerManagerService.java and Power.java. Clean shutdown/reboot is handled exclusively by ShutdownThread now." 2010-03-09 14:50:18 -08:00
Suchi Amalapurapu
6ffce2e9a3 Add new shutdown observer for MountService.
Use new observer before rebooting and shutting down.
Add some unit tests for unmount and shutdown code paths
Fix registering/unregistering part in MountService
Use ShutdownThread in PowerManager.reboot()
Add reboot support to ShutdownThread.
Remove MountService code from PowerManagerService.java and Power.java.
Clean shutdown/reboot is handled exclusively by ShutdownThread now.

Change-Id: Iefb157451d3d9c426cb431707b870a873c09123d
2010-03-09 17:00:18 -05:00
Robert Greenwalt
a599fe7c0d Re-add tethered notification to framework.
Add new artwork and string.

Change-Id: I9c4b2b4bdbd10ee9355c3a7ca81b29fba3b5830c
2010-03-09 11:20:13 -08:00
Suchi Amalapurapu
a2b6c3775e Add conditions to check for updated system applications. Restrict them
to internal flash only even before we copy.

Return error codes when install flag options mismatch.
Some conditions for existings apps
 - install flags override existing location
 - explicity manifest option install location overrides previous location
 - if upgraded package's install location is unspecified or auto, fall
   back to recommended install policy which considers user setting as well.

Check for sdcard status before finding available size on sdcard
Add light weight parsing for manifest attributes including package name and
install location only

Change-Id: I5143dda87c88c595f564b317326c926d0ec3ceb8
2010-03-09 09:24:35 -08:00
Mike Lockwood
46af6a8b1f Don't let hidden keyguard interfere with button and screen brightness overrides
Change-Id: Ibdc115b8fb6900b0f859085c13a707750deeab57
BUG: 2252317

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-09 08:31:30 -05:00
Mike Lockwood
2390380944 Merge "location: dump LocationProvider internal state" 2010-03-08 06:47:49 -08:00
Tobias Haamel
9f93881f57 Disable car mode should not require DISABLE_KEYGUARD permission
Only the system can enable the car mode and the system should
already have appropriate permissions.
But since we wanna allow all other apps to disable the car mode
again, we don't want to enforce them to specify the DISABLE_KEYGUARD
permission in their manifest.

Change-Id: I1ad244a98d65b7193ea9817bff8406cfc2bce6f3
2010-03-08 11:30:38 +01:00
Fred Fettinger
3c8fbdf5dd location: dump LocationProvider internal state
For each location provider, call getInternalState() to see if it has any
state information to include in a bugreport. If the returned string is not
null, then print a header with the provided name followed by the returned
string.

Change-Id: I0a388d7fba14ac8cadcb80eda0a0ceb95032410b
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-07 09:29:15 -05:00
Christopher Tate
4528186e0d Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2010-03-05 16:27:15 -08:00
Suchi Amalapurapu
43dcdb2ec5 Merge "Add null checks for strings" 2010-03-05 13:24:06 -08:00
Mike Lockwood
e29db6a2d2 Keep screen on when in car mode and the device is powered.
BUG: 2477103

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-05 15:44:22 -05:00
Mike Lockwood
924e164a83 Disable the keyguard when in car mode
BUG: 2367912

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-05 15:05:47 -05:00
Suchi Amalapurapu
9444bea903 Add null checks for strings 2010-03-05 11:37:57 -08:00
Dianne Hackborn
7299c41630 Refactor car mode.
Extract all UI behavior from dock observer and ACTION_DOCK_EVENT.

Also introduce a desk type to go along with the car type all through
the resource system, since we now need to have corresponding high-level
broadcasts for desk dock mode.  As part of that I also reworked some
of the logic for switching modes to all funnel through a single
update() call that looks all of the current state to decide what to
do next, and fixed various locking issues.

In addition I found there were bugs in the configuration change
handling causing us to only switch into the car mode config and
then never get out of it.  Unfortunately now that we are actually
changing the configuration for each mode change, the transitions
between them are really crummy as we restart all kinds of
activities. :(
2010-03-05 10:57:47 -08:00
Suchi Amalapurapu
6d141b0a9b Merge "Fix persisting flags for apps with data only Force gc's before deleting containers.:" 2010-03-05 10:36:15 -08:00
Bernd Holzhey
c44c6d038d fix NullPointerException if location is not set.
Bug: http://b/issue?id=2490154
2010-03-05 14:13:29 +01:00
Robert Greenwalt
1533020321 Merge "Update framework tethering UI" 2010-03-04 18:47:24 -08:00
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