1158 Commits

Author SHA1 Message Date
Mike Lockwood
86328a99bd LocationManagerService: clear calling identity in mock provider calls.
Fixes bug b/2198028 (testDirectionsFromScratchByTyping fails because of android.permission.ACCESS_WIFI_STATE)

Change-Id: I44e95981d805189ed6d906d388c5189ee788802f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-26 16:18:58 -04:00
Mike Lockwood
3333fa4f3d PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
Change-Id: I42d2d1331c2a6234dfbdaa99f0cc8ab249f7ce22
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-26 14:52:00 -04:00
Mike Lockwood
9baeff05a8 am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
Merge commit '6eb14c30387d9c13538887e54bc180a430b2ac40' into eclair-mr2

* commit '6eb14c30387d9c13538887e54bc180a430b2ac40':
  PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
2009-10-25 09:04:50 -07:00
Mike Lockwood
6eb14c3038 PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
Change-Id: Ic652ac22ec3256d71d12504148927349dfbd3384
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-24 19:43:38 -04:00
Robert Greenwalt
f75aa36fc8 Add wifi "HANGED" driver state triggering reload.
The driver can now report to us that they are hosed and we'll shut
down wifi and restart it - only to be used as a last resort.

Also fixing synch problem with updateWifiState.

bug: 2173119
2009-10-23 11:12:47 -07:00
Dianne Hackborn
c6bead14fe am 7580493b: Implement feature #2117336: Create event communication APIs for live wallpaper
Merge commit '7580493b014a2c7ea883cd291255798dc72ebbff' into eclair-mr2

* commit '7580493b014a2c7ea883cd291255798dc72ebbff':
  Implement feature #2117336: Create event communication APIs for live wallpaper
2009-10-22 20:21:07 -07:00
Dianne Hackborn
7580493b01 Implement feature #2117336: Create event communication APIs for live wallpaper
Note: currently only implements an async version (no result), and not yet
actually tested.

Change-Id: Id47ed045a4b0eb309ea8c58daf41a0e03eff1d3a
2009-10-22 20:10:53 -07:00
Eric Fischer
fa48000a25 am 94f2c524: Merge change I63c2d9ed into eclair
Merge commit '94f2c524214b56ac2416f79cf9e81fa598327917' into eclair-mr2

* commit '94f2c524214b56ac2416f79cf9e81fa598327917':
  Update the names of the widgets when the locale changes.
2009-10-22 15:47:24 -07:00
Android (Google) Code Review
94f2c52421 Merge change I63c2d9ed into eclair
* changes:
  Update the names of the widgets when the locale changes.
2009-10-22 18:38:29 -04:00
Eric Fischer
63c2d9ed9c Update the names of the widgets when the locale changes.
Bug 1814373, Bug 2152730
2009-10-22 15:28:05 -07:00
Mike Lockwood
d278ffc098 am 96e0c315: Merge change Ia3f7ef64 into eclair
Merge commit '96e0c3156e21bbdb0d94201b08d80379b98c472a' into eclair-mr2

* commit '96e0c3156e21bbdb0d94201b08d80379b98c472a':
  PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
2009-10-22 13:31:37 -07:00
Mike Lockwood
3c9435a205 PowerManager: Don't poke user activity in setKeyboardVisibility unless the state actually changed.
Fixes bug b/2158297 (lock screen should time out after 7 seconds)

Change-Id: Ia3f7ef6464129ab78283923dbfd7f7472136e676
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-22 15:45:37 -04:00
Mike Lockwood
3d4247ef95 am fee0f577: Merge change I99dc6477 into eclair
Merge commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33' into eclair-mr2

* commit 'fee0f5773335e42f4ffdf2d2d1c344ceee3ccb33':
  Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
2009-10-22 10:49:23 -07:00
Mike Lockwood
f8a57dcb59 am eadb97b4: Merge change I53f83502 into eclair
Merge commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9' into eclair-mr2

* commit 'eadb97b4826bb6a2fa34db9c65b5a0d6f7baade9':
  PowerManagerService: Ignore user activity while the screen is animating off.
2009-10-22 10:49:11 -07:00
Brandon Ballinger
9f9f562126 am 0737b164: Merge change I959a6f46 into eclair
Merge commit '0737b1643071694cf8767e3609ad628f1679d63a' into eclair-mr2

* commit '0737b1643071694cf8767e3609ad628f1679d63a':
  Fix bug	2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
2009-10-22 10:48:49 -07:00
Dianne Hackborn
7fad4ee736 am 8d9ddbe2: Merge change I1f30f3f1 into eclair
Merge commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3' into eclair-mr2

* commit '8d9ddbe2aa3db86237880102ccf320945e7f57d3':
  Fix #2201615: getCallingPackage returns calling process instead of calling package
2009-10-22 06:38:50 -07:00
Suchi Amalapurapu
6d924c69af am 5b48223d: Merge change I14e833fa into eclair
Merge commit '5b48223d0e8b8becea0c120895d964e6472b3552' into eclair-mr2

* commit '5b48223d0e8b8becea0c120895d964e6472b3552':
  If we fail to persist the current settings and fall back to the back settings file
2009-10-22 06:38:33 -07:00
Android (Google) Code Review
fee0f57733 Merge change I99dc6477 into eclair
* changes:
  Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
2009-10-22 07:07:04 -04:00
Android (Google) Code Review
eadb97b482 Merge change I53f83502 into eclair
* changes:
  PowerManagerService: Ignore user activity while the screen is animating off.
2009-10-22 07:06:51 -04:00
Mike Lockwood
3d0ea72dd7 Add WindowManagerPolicy.allowKeyRepeat() method for disabling key repeats.
Part of a fix for bug b/2198537

Change-Id: I99dc64772fa7644b12432d5549603025196ea3e2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-21 23:08:13 -04:00
Mike Lockwood
f003c0c15d PowerManagerService: Ignore user activity while the screen is animating off.
Fixes bug b/2202165 (Often I when pressing power to turn off I get the lock screen)

Change-Id: I53f8350203d57fbb5f143edc44985879caadd78f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-21 23:06:56 -04:00
Android (Google) Code Review
0737b16430 Merge change I959a6f46 into eclair
* changes:
  Fix bug	2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.     - Ensure system IMEs are put on the enabled list at startup/install.     - If the default IME is not installed, choose another one whenever building input method list.
2009-10-21 22:58:39 -04:00
Brandon Ballinger
6da35a0c12 Fix bug 2194213: Non-default system IMEs are enabled, but not initially shown in input method switcher.
- Ensure system IMEs are put on the enabled list at startup/install.
    - If the default IME is not installed, choose another one whenever building input method list.
2009-10-21 18:24:29 -07:00
Robert Greenwalt
e2d155a51e Add a new API for initing Wifi multicast filtering
Gets rid of the old method which generated Log noise.

bug: 1973855
2009-10-21 15:03:44 -07:00
Android (Google) Code Review
8d9ddbe2aa Merge change I1f30f3f1 into eclair
* changes:
  Fix #2201615: getCallingPackage returns calling process instead of calling package
2009-10-20 19:14:20 -04:00
Android (Google) Code Review
5b48223d0e Merge change I14e833fa into eclair
* changes:
  If we fail to persist the current settings and fall back to the back settings file when reading settings in PackageManager, we might rename the corrupted settings to backup(in case of power failure between the earlier write failure and file deletion) and end up loosing both files. So just clear up the corrupted current settings file if we have backup. The backup wouldn't exist if everything went well with persisting the earlier settings.
2009-10-20 18:51:06 -04:00
Dianne Hackborn
9bbcb916c5 Fix #2201615: getCallingPackage returns calling process instead of calling package
Change-Id: I1f30f3f1ce8928796c1ab502d0c2dc02de86e8e7
2009-10-20 15:42:38 -07:00
Suchi Amalapurapu
14e833faa0 If we fail to persist the current settings and fall back to the back settings file
when reading settings in PackageManager, we might rename the corrupted settings to
backup(in case of power failure between the earlier write failure and file deletion)
and end up loosing both files.
So just clear up the corrupted current settings file if we have backup.
The backup wouldn't exist if everything went well with persisting the earlier settings.

We do this in both read and write just in case.
2009-10-20 13:26:37 -07:00
Android (Google) Code Review
2a2805b7fb Merge change Ib3b06fc3 into eclair-mr2
* changes:
  It turns out to be useful to allow enumeration on a per-tag basis, and it's easy to support based on the data structures we have, so add a tag parameter to getNextEvent().
2009-10-20 16:23:01 -04:00
Dan Egnor
b3b06fc39b It turns out to be useful to allow enumeration on a per-tag basis,
and it's easy to support based on the data structures we have, so
add a tag parameter to getNextEvent().
2009-10-20 13:05:17 -07:00
Dianne Hackborn
a8f1a805c8 am 61462b43: Merge change I1864d098 into eclair
Merge commit '61462b437067a591bfc52c498ad964e566aaffac' into eclair-mr2

* commit '61462b437067a591bfc52c498ad964e566aaffac':
  Improve wallpaper offset handling.
2009-10-20 11:34:47 -07:00
Dianne Hackborn
cc62ee77d3 am 359f0b09: Merge change Ib5736616 into eclair
Merge commit '359f0b0998c26d2501346334d8850a2248920f0f' into eclair-mr2

* commit '359f0b0998c26d2501346334d8850a2248920f0f':
  Fix issue #2191572: Difficulties drawing window shade
2009-10-20 11:29:39 -07:00
Android (Google) Code Review
61462b4370 Merge change I1864d098 into eclair
* changes:
  Improve wallpaper offset handling.
2009-10-20 14:27:55 -04:00
Android (Google) Code Review
359f0b0998 Merge change Ib5736616 into eclair
* changes:
  Fix issue #2191572: Difficulties drawing window shade
2009-10-20 14:22:37 -04:00
Mike Lockwood
cf2a595f58 am fa68ab4f: PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
Merge commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746' into eclair-mr2

* commit 'fa68ab4fb0750b429c43af1d0c20539462ba6746':
  PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
2009-10-20 09:22:49 -07:00
Mike Lockwood
bca5bb8a25 am 6c97fcab: Power Manager light sensor fixes:
Merge commit '6c97fcabbc4592a115afa5f3357b3172c4791855' into eclair-mr2

* commit '6c97fcabbc4592a115afa5f3357b3172c4791855':
  Power Manager light sensor fixes:
2009-10-20 09:22:37 -07:00
Mike Lockwood
aa033b7971 am d7786b41: Power Manager support for light sensor backlight management.
Merge commit 'd7786b41b78ba8592daea708b024b5a75e441992' into eclair-mr2

* commit 'd7786b41b78ba8592daea708b024b5a75e441992':
  Power Manager support for light sensor backlight management.
2009-10-20 09:22:20 -07:00
Mike Lockwood
fa68ab4fb0 PowerManagerService: Add missing synchronization in mAutoBrightnessTask.
Change-Id: Ie9b93253e991f709b223b28a9148be3b254fb273
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-20 11:08:49 -04:00
Mike Lockwood
6c97fcabbc Power Manager light sensor fixes:
Fix problem with ignored sensor events right after screen turns on.
Do not flash button backlights when device is booting.
Process the first light sensor change after waking the screen immediately rather than debouncing.
Cancel mAutoBrightnessTask when light sensor is disabled.

Change-Id: Iffc5e090b239432b7643812fa8ecb5f69da1679d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-20 08:56:52 -04:00
Mike Lockwood
d7786b41b7 Power Manager support for light sensor backlight management.
Change-Id: I470e2d7d12abf0dbfd31d84859b06bfae3cb36a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-19 22:30:34 -04:00
Dianne Hackborn
73e92b4291 Improve wallpaper offset handling.
Fiddle around with the offsets of wallpapers to have better defaults, and
update the offset when the currently wallpaper target is not setting an
offset itself.

Change-Id: I1864d098fb4813fb0c67857af8ebf398b35e6876
2009-10-19 15:53:45 -07:00
Dianne Hackborn
dc95372cb5 Fix issue #2191572: Difficulties drawing window shade
The touch location filtering hacks had a little problem.

Change-Id: Ib57366169c87f83af1adcc8b6a00dadc01582339
2009-10-19 15:52:22 -07:00
Amith Yamasani
b0f4d0cd24 am f37447ba: Proper fix for zero signal strength and no_service. Fixes #2176141
Merge commit 'f37447bad3773b62176baa837908daf6edb44273' into eclair-mr2

* commit 'f37447bad3773b62176baa837908daf6edb44273':
  Proper fix for zero signal strength and no_service. Fixes #2176141
2009-10-19 15:30:01 -07:00
Amith Yamasani
f37447bad3 Proper fix for zero signal strength and no_service. Fixes #2176141
Track phone service state changes and use a separate timer for out-of-service
since the hunting can timeout on some devices.

Store the timeout value in the config.xml, as it is device/network specific.

Settings App will also change to use the hunting duration to compute the cost
of zero signal.
2009-10-19 15:16:26 -07:00
Android (Google) Code Review
c75348a938 Merge change Ib897cff1 into eclair
* changes:
  do not merge Return valid package info for packages that have been uninstalled with an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES These packages do not have a package setting. just check the flag and return the required info from PackageParser.generatePackageInfo
2009-10-16 15:36:40 -04:00
Mike Lockwood
08bb61a529 am 0b08abe1: Merge change I9521cf8b into eclair
Merge commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a' into eclair-mr2

* commit '0b08abe1b8e4f49cfaefb8226696664ad3d5ca6a':
  Register for light sensor events if non-hardware based auto-brightnees is enabled
2009-10-16 09:38:12 -07:00
Mike Lockwood
2086152c1b am f55aa972: Merge change I01935be3 into eclair
Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-mr2

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
  Remove PowerManager.setAutoBrightness()
2009-10-16 09:38:03 -07:00
Android (Google) Code Review
0b08abe1b8 Merge change I9521cf8b into eclair
* changes:
  Register for light sensor events if non-hardware based auto-brightnees is enabled
2009-10-16 12:29:39 -04:00
Android (Google) Code Review
f55aa972f9 Merge change I01935be3 into eclair
* changes:
  Remove PowerManager.setAutoBrightness()
2009-10-16 12:29:15 -04:00
Mike Lockwood
8738e0c040 Register for light sensor events if non-hardware based auto-brightnees is enabled
Change-Id: I9521cf8b315306bdafa70c1500f2e4af83d94ec3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-16 08:40:23 -07:00