Merge "Fix how we hide and show the nav bar."
This commit is contained in:
committed by
Android (Google) Code Review
commit
ba8ecd206c
@@ -415,6 +415,13 @@ public interface WindowManager extends ViewManager {
|
||||
*/
|
||||
public static final int TYPE_BOOT_PROGRESS = FIRST_SYSTEM_WINDOW+21;
|
||||
|
||||
/**
|
||||
* Window type: Fake window to consume touch events when the navigation
|
||||
* bar is hidden.
|
||||
* @hide
|
||||
*/
|
||||
public static final int TYPE_HIDDEN_NAV_CONSUMER = FIRST_SYSTEM_WINDOW+22;
|
||||
|
||||
/**
|
||||
* End of types of system windows.
|
||||
*/
|
||||
|
||||
@@ -23,6 +23,7 @@ import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.os.IBinder;
|
||||
import android.os.LocalPowerManager;
|
||||
import android.os.Looper;
|
||||
import android.view.animation.Animation;
|
||||
|
||||
import java.io.FileDescriptor;
|
||||
@@ -314,6 +315,36 @@ public interface WindowManagerPolicy {
|
||||
public boolean showLw(boolean doAnimation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Representation of a "fake window" that the policy has added to the
|
||||
* window manager to consume events.
|
||||
*/
|
||||
public interface FakeWindow {
|
||||
/**
|
||||
* Remove the fake window from the window manager.
|
||||
*/
|
||||
void dismiss();
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface for calling back in to the window manager that is private
|
||||
* between it and the policy.
|
||||
*/
|
||||
public interface WindowManagerFuncs {
|
||||
/**
|
||||
* Ask the window manager to re-evaluate the system UI flags.
|
||||
*/
|
||||
public void reevaluateStatusBarVisibility();
|
||||
|
||||
/**
|
||||
* Add a fake window to the window manager. This window sits
|
||||
* at the top of the other windows and consumes events.
|
||||
*/
|
||||
public FakeWindow addFakeWindow(Looper looper, InputHandler inputHandler,
|
||||
String name, int windowType, int layoutParamsFlags, boolean canReceiveKeys,
|
||||
boolean hasFocus, boolean touchFullscreen);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bit mask that is set for all enter transition.
|
||||
*/
|
||||
@@ -395,6 +426,7 @@ public interface WindowManagerPolicy {
|
||||
* @param powerManager
|
||||
*/
|
||||
public void init(Context context, IWindowManager windowManager,
|
||||
WindowManagerFuncs windowManagerFuncs,
|
||||
LocalPowerManager powerManager);
|
||||
|
||||
/**
|
||||
@@ -762,7 +794,7 @@ public interface WindowManagerPolicy {
|
||||
/**
|
||||
* A new window has been focused.
|
||||
*/
|
||||
public void focusChanged(WindowState lastFocus, WindowState newFocus);
|
||||
public int focusChangedLw(WindowState lastFocus, WindowState newFocus);
|
||||
|
||||
/**
|
||||
* Called after the screen turns off.
|
||||
@@ -967,6 +999,14 @@ public interface WindowManagerPolicy {
|
||||
*/
|
||||
public void setUserRotationMode(int mode, int rotation);
|
||||
|
||||
/**
|
||||
* Called when a new system UI visibility is being reported, allowing
|
||||
* the policy to adjust what is actually reported.
|
||||
* @param visibility The raw visiblity reported by the status bar.
|
||||
* @return The new desired visibility.
|
||||
*/
|
||||
public int adjustSystemUiVisibilityLw(int visibility);
|
||||
|
||||
/**
|
||||
* Print the WindowManagerPolicy's state into the given stream.
|
||||
*
|
||||
|
||||
@@ -34,7 +34,6 @@ oneway interface IStatusBar
|
||||
void topAppWindowChanged(boolean menuVisible);
|
||||
void setImeWindowStatus(in IBinder token, int vis, int backDisposition);
|
||||
void setHardKeyboardStatus(boolean available, boolean enabled);
|
||||
void userActivity();
|
||||
void toggleRecentApps();
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,5 @@ interface IStatusBarService
|
||||
void onNotificationClear(String pkg, String tag, int id);
|
||||
void setSystemUiVisibility(int vis);
|
||||
void setHardKeyboardEnabled(boolean enabled);
|
||||
void userActivity();
|
||||
void toggleRecentApps();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user