am cb81d183: Merge "Tell PhoneWindowManager when we start/finish interactive changes." into mnc-dev

* commit 'cb81d183672a3d9858ade10a997990c5d66a1be3':
  Tell PhoneWindowManager when we start/finish interactive changes.
This commit is contained in:
Jeff Brown
2015-05-30 01:04:02 +00:00
committed by Android Git Automerger
4 changed files with 204 additions and 130 deletions

View File

@@ -945,17 +945,30 @@ public interface WindowManagerPolicy {
public int focusChangedLw(WindowState lastFocus, WindowState newFocus);
/**
* Called when the device is waking up.
* Called when the device has started waking up.
*/
public void wakingUp();
public void startedWakingUp();
/**
* Called when the device is going to sleep.
*
* @param why {@link #OFF_BECAUSE_OF_USER} or
* {@link #OFF_BECAUSE_OF_TIMEOUT}.
* Called when the device has finished waking up.
*/
public void goingToSleep(int why);
public void finishedWakingUp();
/**
* Called when the device has started going to sleep.
*
* @param why {@link #OFF_BECAUSE_OF_USER}, {@link #OFF_BECAUSE_OF_ADMIN},
* or {@link #OFF_BECAUSE_OF_TIMEOUT}.
*/
public void startedGoingToSleep(int why);
/**
* Called when the device has finished going to sleep.
*
* @param why {@link #OFF_BECAUSE_OF_USER}, {@link #OFF_BECAUSE_OF_ADMIN},
* or {@link #OFF_BECAUSE_OF_TIMEOUT}.
*/
public void finishedGoingToSleep(int why);
/**
* Called when the device is about to turn on the screen to show content.