1531 Commits

Author SHA1 Message Date
Mike Lockwood
148f666b0a am aa66ea88: Use separate flags for enabling hardware and software auto-brightness.
Merge commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21' into eclair-mr2

* commit 'aa66ea880f58c9caa49e31c166bb3bd6bbf14e21':
  Use separate flags for enabling hardware and software auto-brightness.
2009-11-01 05:31:36 -08:00
Mike Lockwood
4984e73dc5 Manage button and keyboard backlights with light sensor in both manual and automatic mode.
Now the manual brightness mode only applies to the LCD backlight and
button and keyboard backlights are always managed automatically.

Fixes bug b/2195798 (Passion capacitive key backlights don't always come on)

This change only affects the framework based auto-brightness implementation.
Hardware auto-brightness is not affected.

Change-Id: Ib88310d642d498591e8879c8269d630ff3f7c8af
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-01 08:20:42 -05:00
Mike Lockwood
df024920eb Don't turn on keyboard backlights when keyboard is closed in auto brightness mode.
For framework light sensor support (does not affect hardware based approach).

Change-Id: I6896a7c5b3fd3ed136c4f25c63a0e5813c349f68
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-31 17:05:00 -04:00
Mike Lockwood
aa66ea880f Use separate flags for enabling hardware and software auto-brightness.
This cleans up the code in preparation for some other auto-brightness changes
and fixes support for devices without light sensors.

Change-Id: I3d4802cf860a865ffd86a8bb57cd57b46359433d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-31 16:31:27 -04:00
Dan Egnor
c1c49c024f Use setRepeating() rather than setInexactRepeating() for backup scheduling,
and add some random fuzz to the scheduling times, to make sure we aren't
creating hour-aligned server load spikes.

See bug 2226553 for details & Dr. No information.
2009-10-30 18:12:29 -07:00
Suchi Amalapurapu
df4bc1d1d5 am a7bbedca: am 22dad592: Merge change I6cae32c7 into eclair
Merge commit 'a7bbedca97498e75b32c6f6ca4afe56d4cf481f7' into eclair-mr2-plus-aosp

* commit 'a7bbedca97498e75b32c6f6ca4afe56d4cf481f7':
  When upgrading packages with shared user ids make sure we are eliminating
2009-10-29 19:56:20 -07:00
Suchi Amalapurapu
a7bbedca97 am 22dad592: Merge change I6cae32c7 into eclair
Merge commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e' into eclair-mr2

* commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e':
  When upgrading packages with shared user ids make sure we are eliminating
2009-10-29 19:26:46 -07:00
Suchi Amalapurapu
f545e798eb am 18eedbac: am a47a1e77: Merge change Ic03d28b9 into eclair
Merge commit '18eedbacac964f200309f99fdfca06a0a01e5bf5' into eclair-mr2-plus-aosp

* commit '18eedbacac964f200309f99fdfca06a0a01e5bf5':
  Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
2009-10-29 14:02:18 -07:00
Suchi Amalapurapu
18eedbacac am a47a1e77: Merge change Ic03d28b9 into eclair
Merge commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0' into eclair-mr2

* commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0':
  Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
2009-10-29 13:45:05 -07:00
Eric Fischer
25510e0777 am 8071b146: am fb872d1a: Merge change Id4d04def into eclair
Merge commit '8071b14680f8081019ac1b995d7c7f09a8aeeba7' into eclair-mr2-plus-aosp

* commit '8071b14680f8081019ac1b995d7c7f09a8aeeba7':
  Fix a race that kept the locale picker from working under heavy CPU load.
2009-10-29 01:47:34 -07:00
Mike Lockwood
a41ff4b7c2 am c867958e: am d376d240: Merge change I081f08c1 into eclair
Merge commit 'c867958eb6fb50210a767fa24757bfa19228c22e' into eclair-mr2-plus-aosp

* commit 'c867958eb6fb50210a767fa24757bfa19228c22e':
  A better solution for ignoring user activity while the screen is animating off.
2009-10-29 01:46:47 -07:00
Mike Lockwood
4f049475c7 am f634f492: am 5ef89808: Merge change I9c242127 into eclair
Merge commit 'f634f4922894cc23a9b2298a0c971ffac763c132' into eclair-mr2-plus-aosp

* commit 'f634f4922894cc23a9b2298a0c971ffac763c132':
  PowerManagerService: Animate LCD backlight changes due to autobrightness support.
2009-10-29 01:44:29 -07:00
Eric Fischer
8071b14680 am fb872d1a: Merge change Id4d04def into eclair
Merge commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df' into eclair-mr2

* commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df':
  Fix a race that kept the locale picker from working under heavy CPU load.
2009-10-29 01:28:53 -07:00
Mike Lockwood
c867958eb6 am d376d240: Merge change I081f08c1 into eclair
Merge commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550' into eclair-mr2

* commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550':
  A better solution for ignoring user activity while the screen is animating off.
2009-10-29 01:27:40 -07:00
Mike Lockwood
f634f49228 am 5ef89808: Merge change I9c242127 into eclair
Merge commit '5ef898080c1b8b596531c938eae87b3c35331ac2' into eclair-mr2

* commit '5ef898080c1b8b596531c938eae87b3c35331ac2':
  PowerManagerService: Animate LCD backlight changes due to autobrightness support.
2009-10-29 01:21:46 -07:00
Suchi Amalapurapu
ebacbff0f4 am 22dad592: Merge change I6cae32c7 into eclair
Merge commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e' into eclair-plus-aosp

* commit '22dad5928d1d1f2c791616d9d6ab3a3172cec62e':
  When upgrading packages with shared user ids make sure we are eliminating
2009-10-29 01:03:12 -07:00
Suchi Amalapurapu
d83006cbe8 When upgrading packages with shared user ids make sure we are eliminating
the package about to be deleted or upgraded when updating permissions associated
with the shared user. Include a simple null check when retrieving the permission.

Fix PackageParser to avoid ArrayIndexOutOfBounds exceptions in several places
2009-10-29 00:46:55 -07:00
Dan Egnor
473bbd2140 am 95240270: Instead of a raw AIDL interface, give DropBox a Java interface (android.os.DropBox); move the Binder interface behind the scenes. Make DropBoxEntry into DropBox.Entry. Make it possible to get a dropbox from an (Application)Context with the usual getSyste
Merge commit '952402704a175ba27f6c89dff1ada634c5ce5626' into eclair-mr2-plus-aosp

* commit '952402704a175ba27f6c89dff1ada634c5ce5626':
  Instead of a raw AIDL interface, give DropBox a Java
2009-10-28 23:32:21 -07:00
Dan Egnor
952402704a Instead of a raw AIDL interface, give DropBox a Java
interface (android.os.DropBox); move the Binder interface
behind the scenes.  Make DropBoxEntry into DropBox.Entry.
Make it possible to get a dropbox from an (Application)Context
with the usual getSystemService(DROPBOX_SERVICE) type thing.
Update the tests accordingly.
2009-10-28 15:49:11 -07:00
Suchi Amalapurapu
cdf899435f am a47a1e77: Merge change Ic03d28b9 into eclair
Merge commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0' into eclair-plus-aosp

* commit 'a47a1e77a4dc9510187f57d5cdf12f5ecf6b3ab0':
  Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
2009-10-28 15:37:27 -07:00
Suchi Amalapurapu
c03d28b9e9 Check that the window which wants to force hide is visible before setting the flag forceHiding to true. If we do layout the surfaces
again this flag gets set no matter what since the keyguard window is always present in the list of tokens and this hides the window which would
have become visible since the keyguard just got dismissed.
This causes unnecessary focus changes due to changes in visibility of current window.

This will resolve issues related to current focus and time outs when dispatching key events.
2009-10-28 14:47:45 -07:00
Mike Lockwood
80b6367dc6 am 8d1eeb21: am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
Merge commit '8d1eeb2144945365cae281552bd7bc5eb14f7688' into eclair-mr2-plus-aosp

* commit '8d1eeb2144945365cae281552bd7bc5eb14f7688':
  PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
2009-10-28 12:45:54 -07:00
Mike Lockwood
e1da9d3583 am 7c64d448: am 8061f64f: Merge change Ib0d3d9d0 into eclair
Merge commit '7c64d4486ad8704f0b63474e2da0dd89147771ad' into eclair-mr2-plus-aosp

* commit '7c64d4486ad8704f0b63474e2da0dd89147771ad':
  PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
2009-10-28 12:45:38 -07:00
Christopher Tate
c2f735741b am 763ccae7: Merge change I8e7f5f07 into eclair
Merge commit '763ccae7d734cc7e55772936dc3f101a2bf453d4' into eclair-plus-aosp

* commit '763ccae7d734cc7e55772936dc3f101a2bf453d4':
  DO NOT MERGE: Fix loss of focus after wakeup into incall screen
2009-10-28 12:19:01 -07:00
Android (Google) Code Review
763ccae7d7 Merge change I8e7f5f07 into eclair
* changes:
  DO NOT MERGE: Fix loss of focus after wakeup into incall screen
2009-10-28 15:09:29 -04:00
Christopher Tate
405d089863 DO NOT MERGE: Fix loss of focus after wakeup into incall screen
Because of the asynchronous behavior of keyguard, and incall explicitly
disabling keyguard, sometimes the window manager would wind up in a state in
which the "correct" app and activity window were shown, but focus was
recalculated "too soon," at a time when keyguard was just about gone but not
quite, and incall was not yet fully shown.  In this case there was no currently
valid event target, but the final show of the incall window would not prompt a
focus recalculation, so that "no current focus" state would incorrectly persist,
resulting in spurious ANRs until some other phone activity forced a focus
update.

We now detect the problematic case when windows are shown, and make sure to
recalculate focus explicitly thereafter.  This change does *not* fix the
underlying race conditions that have been resulting in mismatched state within
the window manager, but it does force a validation pass that puts things in
order so that normal operation can continue.

Change-Id: I8e7f5f0795f0042a0da074aeed385e3fbc210360
2009-10-28 11:52:58 -07:00
Mike Lockwood
8d1eeb2144 am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
Merge commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec' into eclair-mr2

* commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec':
  PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
2009-10-28 11:41:10 -07:00
Mike Lockwood
7c64d4486a am 8061f64f: Merge change Ib0d3d9d0 into eclair
Merge commit '8061f64f6246116381131fc7951b6d88be37161a' into eclair-mr2

* commit '8061f64f6246116381131fc7951b6d88be37161a':
  PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
2009-10-28 11:40:47 -07:00
Mike Lockwood
5b9dee8c07 am 4dee223c: am 86328a99: LocationManagerService: clear calling identity in mock provider calls.
Merge commit '4dee223c68d98ebac6bb3d91c2d6e47eb2b0a001' into eclair-mr2-plus-aosp

* commit '4dee223c68d98ebac6bb3d91c2d6e47eb2b0a001':
  LocationManagerService: clear calling identity in mock provider calls.
2009-10-28 10:37:43 -07:00
Mike Lockwood
84b0d236a3 am ed7755cc: am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
Merge commit 'ed7755cc30fe6b2b0254207347629ad0cae094db' into eclair-mr2-plus-aosp

* commit 'ed7755cc30fe6b2b0254207347629ad0cae094db':
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
2009-10-28 10:37:28 -07:00
Mike Lockwood
4dee223c68 am 86328a99: LocationManagerService: clear calling identity in mock provider calls.
Merge commit '86328a99bd55532e318441d48ee9eb96cdc42403' into eclair-mr2

* commit '86328a99bd55532e318441d48ee9eb96cdc42403':
  LocationManagerService: clear calling identity in mock provider calls.
2009-10-28 10:28:19 -07:00
Mike Lockwood
ed7755cc30 am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
Merge commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372' into eclair-mr2

* commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372':
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
2009-10-28 10:27:45 -07:00
Eric Fischer
bf09620baf am fb872d1a: Merge change Id4d04def into eclair
Merge commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df' into eclair-plus-aosp

* commit 'fb872d1af3c775114ac7d241eb1924a9aafbb9df':
  Fix a race that kept the locale picker from working under heavy CPU load.
2009-10-28 10:24:53 -07:00
Android (Google) Code Review
fb872d1af3 Merge change Id4d04def into eclair
* changes:
  Fix a race that kept the locale picker from working under heavy CPU load.
2009-10-28 13:18:39 -04:00
Mike Lockwood
69dfa62308 am d376d240: Merge change I081f08c1 into eclair
Merge commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550' into eclair-plus-aosp

* commit 'd376d2407bbc14a2d221dfef9955d0feeab0d550':
  A better solution for ignoring user activity while the screen is animating off.
2009-10-28 05:55:22 -07:00
Mike Lockwood
0506712068 A better solution for ignoring user activity while the screen is animating off.
Fixes a deadlock that occurred because mAnimatingScreenOff was left set to true
after aborting turning off the screen.
This change removes the mAnimatingScreenOff flag and checks for
(mScreenBrightness.animating && mScreenBrightness.targetValue == 0) instead.

Fixes bug b/2219706

Change-Id: I081f08c14ad7585a953fb567867238b1f3db841f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-27 23:13:39 -04:00
Eric Fischer
d4d04def2c Fix a race that kept the locale picker from working under heavy CPU load.
The locale picker and the activity transition would both change the
configuration, and depending upon the timing, the activity transition
would undo what the locale picker had just done.  Usually it worked right,
but would often fail if the user changed locales just after a data wipe,
when the media scanner was working hard in the background to index
the contents of the SD card.

http://b/issue?id=2216298
2009-10-27 18:55:57 -07:00
Mike Lockwood
21df525f67 am 5ef89808: Merge change I9c242127 into eclair
Merge commit '5ef898080c1b8b596531c938eae87b3c35331ac2' into eclair-plus-aosp

* commit '5ef898080c1b8b596531c938eae87b3c35331ac2':
  PowerManagerService: Animate LCD backlight changes due to autobrightness support.
2009-10-27 13:53:46 -07:00
Mike Lockwood
dd9668ec63 PowerManagerService: Animate LCD backlight changes due to autobrightness support.
Change-Id: I9c242127df801125c30f399198d1f7e9c8579612
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-27 15:47:03 -04:00
Mike Lockwood
a5ead91de5 am 2d155d26: PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
Merge commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec' into eclair-plus-aosp

* commit '2d155d264e5cefc27abf2c5020fcfa06bde755ec':
  PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
2009-10-27 07:12:09 -07:00
Mike Lockwood
2d155d264e PowerManagerService: Fix bug resulting in backlights turning on while screen is off.
Fixes bugs b/2216879 and b/2197060

Change-Id: I5de3cbdbc0601dd7950dba74cacfff06d41ad18e
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-27 09:47:50 -04:00
Mike Lockwood
cc9961e195 am 8061f64f: Merge change Ib0d3d9d0 into eclair
Merge commit '8061f64f6246116381131fc7951b6d88be37161a' into eclair-plus-aosp

* commit '8061f64f6246116381131fc7951b6d88be37161a':
  PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
2009-10-27 05:10:48 -07:00
Mike Lockwood
809ad0fce3 PowerManagerService: Clear Binder calling identity around calls to Sensor Manager.
This fixes a problem that resulted in bogus battery statistics for the prox and light sensors
due to the sensors being enabled in an app's context and disabled in the system context.

Fixes problems reported in bug b/2211960

Change-Id: Ib0d3d9d06f043b386d3b8d494b9bad5bd40bb6e1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-26 22:12:06 -04:00
Mike Lockwood
ce5d49d043 am 86328a99: LocationManagerService: clear calling identity in mock provider calls.
Merge commit '86328a99bd55532e318441d48ee9eb96cdc42403' into eclair-plus-aosp

* commit '86328a99bd55532e318441d48ee9eb96cdc42403':
  LocationManagerService: clear calling identity in mock provider calls.
2009-10-26 13:32:06 -07:00
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
dc1b4bd3eb am 3333fa4f: PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
Merge commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372' into eclair-plus-aosp

* commit '3333fa4f3d2e1bd3842fe7d41d19557ff9a98372':
  PowerManagerService: Ensure that recent changes do not effect the hardware ALS case.
2009-10-26 12:39:52 -07: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
a6f7e41979 am 9baeff05: am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
Merge commit '9baeff05a8bf9bd4479f2a357dca0463cc750202' into eclair-mr2-plus-aosp

* commit '9baeff05a8bf9bd4479f2a357dca0463cc750202':
  PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
2009-10-25 09:13:05 -07: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
1b1cfbad20 am 6eb14c30: PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
Merge commit '6eb14c30387d9c13538887e54bc180a430b2ac40' into eclair-plus-aosp

* commit '6eb14c30387d9c13538887e54bc180a430b2ac40':
  PowerManagerService: Do not enable light sensor if hardware backlight management is being used.
2009-10-25 09:03:51 -07:00