History log of /frameworks/base/services/java/com/android/server/UiModeManagerService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
299e5cfa3d5948869f456c5291517e94139d14dd 18-Jun-2010 Dianne Hackborn <hackbod@google.com> Work on issue # 2778549: Idle FRF72 is awake 18 mins more than ERE27 in 13hr test

Modify UIModeManager to not get location updates every thirty minutes.
Instead it gets one once a day, and requests a new update when airplane
mode is turned off or the time zone changes.

Change-Id: I8044c27b5cd77709e4b872e2e8edd352f23e4af1
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
f5c5d22c471f399f215662a8e471bf02b5b6bcfa 09-Apr-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2581524: Car home icon should always go to car home

Rework how switching between modes work so the caller can tell us
whether they want to go to home. (So car home launcher can now
tell us they always want to go home.)

Change-Id: Id4a8129027d6d162b4bae6f983911f1f4bf2578f
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
8daf2a47995b4522bceb38eef8c310268b1d91b0 02-Apr-2010 Daniel Sandler <dsandler@android.com> Make desk mode work again.

Bug: 2564612
Change-Id: I858a86d14a6840f5f587343a64c5d0c4bc5d5263
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
9c9c532d3625ba2485eb4ea6924ed0a0163fd958 31-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2560791: Expose API to go in to car mode.

Also fix bug where night mode was being used in desk dock.

Change-Id: I56c1cf3d6fe800a4f986d40cc4cb2e70b76ac261
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
e2522466552f9c6b7fcea866709710f53aa1f2a8 30-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2547337: switching night modes

Dumb.

Change-Id: Iaa72eaac54422f7fd95cf1050f6b7b6da55af0c3
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
d49258fed489bcd72a2b2a6ce3a3c38d4b2531e6 26-Mar-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2544466: Car Home brightness icon comes and goes while phone is in car dock in FRE83

There was a really dumb bug that was causing us to not always apply
the new configuration. As a result of fixing this, there were new
glithes in the transition between car and regular mode, so further
work here to fix that. And since I was actually working during the
night and seeing night mode, I noticed how obnoxiously bright the
status bar is compared to the car home at night, so it now nicely
dims itself when we switch to the night config. Oh and in doing
that I also found and fixed a bug in dispatching config changes to
a window (where they wouldn't get dispatched if the window didn't
resize).

FINALLY... tweak the wallpaper enter/exit animations a bit to
make them a little smoother.

Change-Id: I4e062093cbcfbc919307799a794846db2920216f
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
2ccda4dc8d800c3592b4bd4d1d70a064d98dd4fe 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Improve switching to car mode, retain night mode option.

Fiddle with how we go into car mode to try to ensure we get a clean
transition. Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
c008e0a5b74de92f3fb3c704a55973f2d9d6c4fd 16-Mar-2010 Tobias Haamel <haamel@google.com> Fix 2514479: Putting phone in car dock ignores security pattern

Don't disable the keylock pattern when the device is in car mode.
Instead it should be possible to show the lock pattern at least once
and after valid authentication it should be disabled in the system.
Since this requires additional discussion it will be moved to the
next Android release.

Change-Id: I28cddcfb6640e44a29c716b59a3d6e37e8003dca
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
780b2603041a56800ff6e49fb14535c1b1ca8907 15-Mar-2010 Tobias Haamel <haamel@google.com> Fix issue 2512221: Car Dock Notification doesn't go away

Bug description:
1) Start Car Dock app.
2) Drop phone into Desk Dock
3) Press back to quit Desk Dock app.

Car Dock Notification doesn't go away if I select it from the shade.

Change-Id: I9d3ad4dbbe8f886fc8d523d104676194c3943473
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
ba9ab183186cb2ef704759485a8481d5b8c8a650 12-Mar-2010 Bernd Holzhey <holzhey@google.com> Fix: Retrieval of location to caclulate twilight

The provider determined by getBestProvider may not have a LastKnownLocation and
therefore the system might use a fake location, even if one provider will have
a location.

Change-Id: Iec4a377b141b0260af5611f51affa5f0c4a84ed2
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
b8b11a0b1d82e24f7a79f2e1672e7f5cf1611a55 11-Mar-2010 Dianne Hackborn <hackbod@google.com> 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
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
9f93881f57e4627964311afbf4e0f6d9cb9d904e 08-Mar-2010 Tobias Haamel <haamel@google.com> 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
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
e29db6a2d2ba8d9458c88fe6c6dbb2164462773e 05-Mar-2010 Mike Lockwood <lockwood@android.com> Keep screen on when in car mode and the device is powered.

BUG: 2477103

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
924e164a83056600642a3181f19094b3ecb5262d 05-Mar-2010 Mike Lockwood <lockwood@android.com> Disable the keyguard when in car mode

BUG: 2367912

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/UiModeManagerService.java
7299c41630935a2b106e73e5603579a7747f7535 05-Mar-2010 Dianne Hackborn <hackbod@google.com> 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. :(
/frameworks/base/services/java/com/android/server/UiModeManagerService.java